amis-editor 5.2.5-beta.5 → 5.2.5-beta.6
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.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 +39 -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/divider.svg.js +1 -1
- package/esm/icons/other/property-sheet.svg.js +1 -1
- package/esm/icons/other/tooltip.svg.js +1 -1
- package/esm/icons/show/URL.svg.js +1 -1
- package/esm/icons/show/avatar.svg.js +1 -1
- package/esm/icons/show/breadcrumb.svg.js +1 -1
- package/esm/icons/show/card.svg.js +1 -1
- package/esm/icons/show/cards.svg.js +1 -1
- package/esm/icons/show/carousel.svg.js +1 -1
- package/esm/icons/show/chart.svg.js +1 -1
- package/esm/icons/show/code.svg.js +1 -1
- package/esm/icons/show/date.svg.js +1 -1
- package/esm/icons/show/datetime.svg.js +1 -1
- package/esm/icons/show/image.svg.js +1 -1
- package/esm/icons/show/images.svg.js +1 -1
- package/esm/icons/show/json-view.svg.js +1 -1
- package/esm/icons/show/list.svg.js +1 -1
- package/esm/icons/show/log.svg.js +1 -1
- package/esm/icons/show/mapping.svg.js +1 -1
- package/esm/icons/show/markdown.svg.js +1 -1
- package/esm/icons/show/plain.svg.js +1 -1
- package/esm/icons/show/progress.svg.js +1 -1
- package/esm/icons/show/sparkline.svg.js +1 -1
- package/esm/icons/show/status.svg.js +1 -1
- package/esm/icons/show/steps.svg.js +1 -1
- package/esm/icons/show/time.svg.js +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.js +4 -1
- package/esm/locale/en-US.js +1 -1
- package/esm/locale/zh-CN.js +1 -1
- package/esm/plugin/Alert.d.ts +1 -1
- package/esm/plugin/Alert.js +80 -160
- package/esm/plugin/AnchorNav.js +236 -331
- package/esm/plugin/Audio.d.ts +1 -1
- package/esm/plugin/Audio.js +104 -169
- package/esm/plugin/Avatar.d.ts +1 -1
- package/esm/plugin/Avatar.js +219 -299
- package/esm/plugin/Breadcrumb.js +66 -136
- package/esm/plugin/Button.d.ts +1 -1
- package/esm/plugin/Button.js +269 -367
- package/esm/plugin/ButtonGroup.d.ts +1 -1
- package/esm/plugin/ButtonGroup.js +101 -181
- package/esm/plugin/CRUD.d.ts +1 -2
- package/esm/plugin/CRUD.js +1077 -1215
- package/esm/plugin/CRUD2.d.ts +1 -2
- package/esm/plugin/CRUD2.js +867 -1136
- package/esm/plugin/Card.d.ts +1 -1
- package/esm/plugin/Card.js +175 -270
- package/esm/plugin/Card2.d.ts +1 -1
- package/esm/plugin/Card2.js +68 -143
- package/esm/plugin/Cards.js +212 -307
- package/esm/plugin/Carousel.d.ts +2 -2
- package/esm/plugin/Carousel.js +257 -332
- 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 +1 -1
- package/esm/plugin/Container.js +130 -283
- package/esm/plugin/Custom.js +72 -142
- package/esm/plugin/CustomRegion.js +98 -173
- package/esm/plugin/Date.d.ts +1 -1
- package/esm/plugin/Date.js +47 -117
- package/esm/plugin/Datetime.d.ts +0 -1
- package/esm/plugin/Datetime.js +42 -87
- package/esm/plugin/Dialog.d.ts +2 -2
- package/esm/plugin/Dialog.js +158 -228
- package/esm/plugin/Divider.js +29 -94
- package/esm/plugin/Drawer.d.ts +2 -2
- package/esm/plugin/Drawer.js +197 -257
- package/esm/plugin/DropDownButton.js +173 -268
- package/esm/plugin/Each.js +103 -188
- package/esm/plugin/Flex.js +5 -25
- package/esm/plugin/Form/ButtonGroupSelect.d.ts +1 -1
- package/esm/plugin/Form/ButtonGroupSelect.js +116 -201
- package/esm/plugin/Form/ButtonToolbar.d.ts +1 -1
- package/esm/plugin/Form/ButtonToolbar.js +89 -174
- package/esm/plugin/Form/ChainedSelect.d.ts +1 -1
- package/esm/plugin/Form/ChainedSelect.js +124 -209
- package/esm/plugin/Form/Checkbox.d.ts +1 -1
- package/esm/plugin/Form/Checkbox.js +121 -211
- package/esm/plugin/Form/Checkboxes.d.ts +1 -1
- package/esm/plugin/Form/Checkboxes.js +142 -232
- package/esm/plugin/Form/CodeEditor.d.ts +0 -1
- package/esm/plugin/Form/CodeEditor.js +152 -242
- package/esm/plugin/Form/Combo.d.ts +1 -1
- package/esm/plugin/Form/Combo.js +433 -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 +159 -249
- 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 -1
- package/esm/plugin/Form/Form.js +581 -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 +1 -1
- package/esm/plugin/Form/InputCity.js +122 -212
- package/esm/plugin/Form/InputColor.d.ts +1 -1
- package/esm/plugin/Form/InputColor.js +201 -301
- package/esm/plugin/Form/InputDate.d.ts +1 -1
- package/esm/plugin/Form/InputDate.js +202 -297
- package/esm/plugin/Form/InputDateRange.d.ts +1 -1
- package/esm/plugin/Form/InputDateRange.js +255 -350
- package/esm/plugin/Form/InputDateTime.js +24 -89
- package/esm/plugin/Form/InputDateTimeRange.js +25 -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 +1 -2
- package/esm/plugin/Form/InputGroup.js +65 -150
- package/esm/plugin/Form/InputImage.d.ts +1 -1
- package/esm/plugin/Form/InputImage.js +302 -382
- package/esm/plugin/Form/InputKV.js +90 -170
- package/esm/plugin/Form/InputMonth.js +21 -86
- package/esm/plugin/Form/InputMonthRange.js +25 -95
- package/esm/plugin/Form/InputNumber.d.ts +1 -1
- package/esm/plugin/Form/InputNumber.js +186 -276
- package/esm/plugin/Form/InputPassword.js +22 -77
- package/esm/plugin/Form/InputQuarter.js +21 -86
- package/esm/plugin/Form/InputQuarterRange.js +25 -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 -297
- package/esm/plugin/Form/InputSubForm.js +155 -240
- package/esm/plugin/Form/InputTable.d.ts +1 -1
- package/esm/plugin/Form/InputTable.js +543 -643
- package/esm/plugin/Form/InputTag.d.ts +1 -1
- package/esm/plugin/Form/InputTag.js +115 -205
- package/esm/plugin/Form/InputText.d.ts +1 -1
- package/esm/plugin/Form/InputText.js +299 -399
- package/esm/plugin/Form/InputTime.js +24 -89
- package/esm/plugin/Form/InputTimeRange.js +25 -95
- package/esm/plugin/Form/InputTree.d.ts +1 -1
- package/esm/plugin/Form/InputTree.js +424 -520
- package/esm/plugin/Form/InputURL.js +23 -83
- package/esm/plugin/Form/InputYear.js +21 -86
- package/esm/plugin/Form/InputYearRange.js +25 -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 -1
- package/esm/plugin/Form/ListSelect.js +86 -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.js +176 -261
- package/esm/plugin/Form/Radios.d.ts +1 -1
- package/esm/plugin/Form/Radios.js +135 -230
- package/esm/plugin/Form/Select.d.ts +1 -1
- package/esm/plugin/Form/Select.js +245 -340
- package/esm/plugin/Form/Static.d.ts +1 -1
- package/esm/plugin/Form/Static.js +109 -209
- package/esm/plugin/Form/Switch.d.ts +1 -1
- package/esm/plugin/Form/Switch.js +157 -252
- 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 -1
- package/esm/plugin/Form/Textarea.js +122 -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 +0 -1
- package/esm/plugin/Grid.js +513 -643
- package/esm/plugin/HBox.d.ts +0 -1
- package/esm/plugin/HBox.js +463 -583
- package/esm/plugin/IFrame.d.ts +2 -11
- package/esm/plugin/IFrame.js +55 -126
- package/esm/plugin/Image.d.ts +2 -2
- package/esm/plugin/Image.js +219 -309
- package/esm/plugin/Images.d.ts +3 -3
- package/esm/plugin/Images.js +160 -230
- package/esm/plugin/Json.d.ts +1 -1
- package/esm/plugin/Json.js +40 -110
- package/esm/plugin/Layout/FlexPluginBase.js +180 -357
- package/esm/plugin/Layout/Layout_fixed.js +23 -63
- package/esm/plugin/Layout/Layout_free_container.js +18 -58
- package/esm/plugin/Layout/Layout_sorption_container.js +27 -70
- package/esm/plugin/Link.js +63 -133
- package/esm/plugin/List.js +267 -382
- package/esm/plugin/ListItem.d.ts +1 -1
- package/esm/plugin/ListItem.js +133 -193
- package/esm/plugin/Log.d.ts +1 -1
- package/esm/plugin/Log.js +96 -166
- package/esm/plugin/Mapping.js +147 -247
- package/esm/plugin/Markdown.d.ts +1 -1
- package/esm/plugin/Markdown.js +32 -102
- package/esm/plugin/Nav.d.ts +1 -1
- package/esm/plugin/Nav.js +301 -386
- package/esm/plugin/OfficeViewer.d.ts +22 -0
- package/esm/plugin/OfficeViewer.js +91 -0
- package/esm/plugin/Operation.d.ts +1 -1
- package/esm/plugin/Operation.js +47 -112
- package/esm/plugin/Others/Action.js +304 -329
- package/esm/plugin/Others/TableCell.d.ts +1 -1
- package/esm/plugin/Others/TableCell.js +304 -329
- package/esm/plugin/Page.d.ts +2 -3
- package/esm/plugin/Page.js +282 -377
- package/esm/plugin/Pagination.d.ts +1 -1
- package/esm/plugin/Pagination.js +211 -296
- package/esm/plugin/Panel.d.ts +1 -1
- 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 +1 -1
- package/esm/plugin/Progress.js +203 -283
- package/esm/plugin/Property.js +84 -149
- package/esm/plugin/QRCode.js +64 -134
- package/esm/plugin/Reset.js +13 -58
- package/esm/plugin/Service.d.ts +1 -1
- package/esm/plugin/Service.js +166 -251
- package/esm/plugin/Sparkline.js +24 -89
- package/esm/plugin/Status.d.ts +1 -1
- package/esm/plugin/Status.js +226 -304
- package/esm/plugin/Steps.js +76 -141
- package/esm/plugin/Submit.js +13 -53
- package/esm/plugin/Table.d.ts +1 -1
- package/esm/plugin/Table.js +544 -641
- package/esm/plugin/Table2.d.ts +1 -1
- package/esm/plugin/Table2.js +731 -827
- package/esm/plugin/TableCell2.js +410 -437
- package/esm/plugin/TableView.d.ts +0 -1
- package/esm/plugin/TableView.js +566 -622
- package/esm/plugin/Tabs.d.ts +0 -1
- package/esm/plugin/Tabs.js +341 -468
- package/esm/plugin/Tag.d.ts +1 -1
- package/esm/plugin/Tag.js +122 -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 +44 -84
- package/esm/plugin/Timeline.d.ts +1 -1
- package/esm/plugin/Timeline.js +91 -168
- package/esm/plugin/TooltipWrapper.d.ts +1 -1
- package/esm/plugin/TooltipWrapper.js +190 -270
- package/esm/plugin/Tpl.d.ts +1 -1
- package/esm/plugin/Tpl.js +93 -184
- 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 +624 -735
- package/esm/plugin/Wrapper.d.ts +1 -1
- package/esm/plugin/Wrapper.js +105 -258
- package/esm/renderer/APIControl.d.ts +128 -4854
- package/esm/renderer/APIControl.js +730 -837
- package/esm/renderer/ActionApiControl.d.ts +74 -6384
- package/esm/renderer/BadgeControl.d.ts +5 -5
- package/esm/renderer/BadgeControl.js +229 -269
- package/esm/renderer/ButtonGroupControl.d.ts +21 -0
- package/esm/renderer/ButtonGroupControl.js +37 -0
- package/esm/renderer/DataBindingControl.js +175 -210
- package/esm/renderer/DataMappingControl.d.ts +2 -2
- package/esm/renderer/DataMappingControl.js +29 -40
- package/esm/renderer/DataPickerControl.js +35 -50
- package/esm/renderer/DateShortCutControl.js +251 -346
- package/esm/renderer/ExpressionFormulaControl.js +169 -238
- 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 +152 -0
- package/esm/renderer/FormulaControl.js +344 -463
- package/esm/renderer/GoConfigControl.js +25 -35
- package/esm/renderer/MapSourceControl.d.ts +9 -1603
- package/esm/renderer/MapSourceControl.js +271 -357
- package/esm/renderer/NavBadgeControl.d.ts +11 -15
- package/esm/renderer/NavBadgeControl.js +228 -263
- package/esm/renderer/NavDefaultActive.d.ts +1 -1
- package/esm/renderer/NavDefaultActive.js +61 -70
- package/esm/renderer/NavSourceControl.d.ts +2 -2
- package/esm/renderer/NavSourceControl.js +296 -390
- package/esm/renderer/OptionControl.d.ts +3 -4
- package/esm/renderer/OptionControl.js +612 -781
- package/esm/renderer/RangePartsControl.js +264 -339
- package/esm/renderer/StatusControl.js +134 -170
- package/esm/renderer/SwitchMoreControl.d.ts +46 -86
- package/esm/renderer/SwitchMoreControl.js +311 -413
- package/esm/renderer/TimelineItemControl.d.ts +1 -1
- package/esm/renderer/TimelineItemControl.js +422 -540
- package/esm/renderer/TransferTableControl.d.ts +1 -1
- package/esm/renderer/TransferTableControl.js +332 -408
- package/esm/renderer/TreeOptionControl.d.ts +2 -2
- package/esm/renderer/TreeOptionControl.js +479 -611
- package/esm/renderer/ValidationControl.js +229 -283
- package/esm/renderer/ValidationItem.js +124 -160
- package/esm/renderer/event-control/action-config-dialog.js +200 -217
- package/esm/renderer/event-control/action-config-panel.d.ts +1 -1
- package/esm/renderer/event-control/action-config-panel.js +37 -42
- package/esm/renderer/event-control/comp-action-select.js +28 -38
- package/esm/renderer/event-control/helper.d.ts +18 -32
- package/esm/renderer/event-control/helper.js +57 -73
- package/esm/renderer/event-control/index.js +673 -816
- 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.js +7 -12
- package/esm/renderer/style-control/font-family.js +1 -1
- package/esm/renderer/style-control/transformation.js +3 -2
- package/esm/renderer/textarea-formula/FormulaPicker.js +4 -3
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +223 -323
- package/esm/renderer/textarea-formula/plugin.js +157 -226
- package/esm/renderer/textarea-formula/utils.js +5 -5
- package/esm/tpl/api.js +1 -1
- package/esm/tpl/common.js +21 -22
- package/esm/tpl/horizontal.js +1 -1
- package/esm/tpl/layout.js +27 -12
- package/esm/tpl/options.js +3 -3
- package/esm/tpl/remark.js +1 -1
- package/esm/tpl/style.js +5 -5
- package/esm/tpl/validations.js +4 -4
- package/esm/util.d.ts +9 -33
- package/esm/util.js +1 -1
- 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.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 +39 -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/divider.svg.js +1 -1
- package/lib/icons/other/property-sheet.svg.js +1 -1
- package/lib/icons/other/tooltip.svg.js +1 -1
- package/lib/icons/show/URL.svg.js +1 -1
- package/lib/icons/show/avatar.svg.js +1 -1
- package/lib/icons/show/breadcrumb.svg.js +1 -1
- package/lib/icons/show/card.svg.js +1 -1
- package/lib/icons/show/cards.svg.js +1 -1
- package/lib/icons/show/carousel.svg.js +1 -1
- package/lib/icons/show/chart.svg.js +1 -1
- package/lib/icons/show/code.svg.js +1 -1
- package/lib/icons/show/date.svg.js +1 -1
- package/lib/icons/show/datetime.svg.js +1 -1
- package/lib/icons/show/image.svg.js +1 -1
- package/lib/icons/show/images.svg.js +1 -1
- package/lib/icons/show/json-view.svg.js +1 -1
- package/lib/icons/show/list.svg.js +1 -1
- package/lib/icons/show/log.svg.js +1 -1
- package/lib/icons/show/mapping.svg.js +1 -1
- package/lib/icons/show/markdown.svg.js +1 -1
- package/lib/icons/show/plain.svg.js +1 -1
- package/lib/icons/show/progress.svg.js +1 -1
- package/lib/icons/show/sparkline.svg.js +1 -1
- package/lib/icons/show/status.svg.js +1 -1
- package/lib/icons/show/steps.svg.js +1 -1
- package/lib/icons/show/time.svg.js +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/plugin/Alert.d.ts +1 -1
- package/lib/plugin/Alert.js +80 -160
- package/lib/plugin/AnchorNav.js +235 -330
- package/lib/plugin/Audio.d.ts +1 -1
- package/lib/plugin/Audio.js +104 -169
- package/lib/plugin/Avatar.d.ts +1 -1
- package/lib/plugin/Avatar.js +219 -299
- package/lib/plugin/Breadcrumb.js +66 -136
- package/lib/plugin/Button.d.ts +1 -1
- package/lib/plugin/Button.js +268 -366
- package/lib/plugin/ButtonGroup.d.ts +1 -1
- package/lib/plugin/ButtonGroup.js +101 -181
- package/lib/plugin/CRUD.d.ts +1 -2
- package/lib/plugin/CRUD.js +1076 -1214
- package/lib/plugin/CRUD2.d.ts +1 -2
- package/lib/plugin/CRUD2.js +865 -1134
- package/lib/plugin/Card.d.ts +1 -1
- package/lib/plugin/Card.js +175 -270
- package/lib/plugin/Card2.d.ts +1 -1
- package/lib/plugin/Card2.js +68 -143
- package/lib/plugin/Cards.js +212 -307
- package/lib/plugin/Carousel.d.ts +2 -2
- package/lib/plugin/Carousel.js +257 -332
- 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 +1 -1
- package/lib/plugin/Container.js +129 -282
- package/lib/plugin/Custom.js +72 -142
- package/lib/plugin/CustomRegion.js +98 -173
- package/lib/plugin/Date.d.ts +1 -1
- package/lib/plugin/Date.js +47 -117
- package/lib/plugin/Datetime.d.ts +0 -1
- package/lib/plugin/Datetime.js +42 -87
- package/lib/plugin/Dialog.d.ts +2 -2
- package/lib/plugin/Dialog.js +157 -227
- package/lib/plugin/Divider.js +29 -94
- package/lib/plugin/Drawer.d.ts +2 -2
- package/lib/plugin/Drawer.js +196 -256
- package/lib/plugin/DropDownButton.js +173 -268
- package/lib/plugin/Each.js +103 -188
- package/lib/plugin/Flex.js +5 -25
- package/lib/plugin/Form/ButtonGroupSelect.d.ts +1 -1
- package/lib/plugin/Form/ButtonGroupSelect.js +116 -201
- package/lib/plugin/Form/ButtonToolbar.d.ts +1 -1
- package/lib/plugin/Form/ButtonToolbar.js +89 -174
- package/lib/plugin/Form/ChainedSelect.d.ts +1 -1
- package/lib/plugin/Form/ChainedSelect.js +124 -209
- package/lib/plugin/Form/Checkbox.d.ts +1 -1
- package/lib/plugin/Form/Checkbox.js +121 -211
- package/lib/plugin/Form/Checkboxes.d.ts +1 -1
- package/lib/plugin/Form/Checkboxes.js +142 -232
- package/lib/plugin/Form/CodeEditor.d.ts +0 -1
- package/lib/plugin/Form/CodeEditor.js +152 -242
- package/lib/plugin/Form/Combo.d.ts +1 -1
- package/lib/plugin/Form/Combo.js +433 -529
- 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 +159 -249
- 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 -1
- package/lib/plugin/Form/Form.js +580 -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 +1 -1
- package/lib/plugin/Form/InputCity.js +122 -212
- package/lib/plugin/Form/InputColor.d.ts +1 -1
- package/lib/plugin/Form/InputColor.js +200 -300
- package/lib/plugin/Form/InputDate.d.ts +1 -1
- package/lib/plugin/Form/InputDate.js +201 -296
- package/lib/plugin/Form/InputDateRange.d.ts +1 -1
- package/lib/plugin/Form/InputDateRange.js +255 -350
- package/lib/plugin/Form/InputDateTime.js +24 -89
- package/lib/plugin/Form/InputDateTimeRange.js +25 -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 +1 -2
- package/lib/plugin/Form/InputGroup.js +65 -150
- package/lib/plugin/Form/InputImage.d.ts +1 -1
- package/lib/plugin/Form/InputImage.js +302 -382
- package/lib/plugin/Form/InputKV.js +90 -170
- package/lib/plugin/Form/InputMonth.js +21 -86
- package/lib/plugin/Form/InputMonthRange.js +25 -95
- package/lib/plugin/Form/InputNumber.d.ts +1 -1
- package/lib/plugin/Form/InputNumber.js +186 -276
- package/lib/plugin/Form/InputPassword.js +22 -77
- package/lib/plugin/Form/InputQuarter.js +21 -86
- package/lib/plugin/Form/InputQuarterRange.js +25 -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 -296
- package/lib/plugin/Form/InputSubForm.js +155 -240
- package/lib/plugin/Form/InputTable.d.ts +1 -1
- package/lib/plugin/Form/InputTable.js +543 -643
- package/lib/plugin/Form/InputTag.d.ts +1 -1
- package/lib/plugin/Form/InputTag.js +115 -205
- package/lib/plugin/Form/InputText.d.ts +1 -1
- package/lib/plugin/Form/InputText.js +298 -398
- package/lib/plugin/Form/InputTime.js +24 -89
- package/lib/plugin/Form/InputTimeRange.js +25 -95
- package/lib/plugin/Form/InputTree.d.ts +1 -1
- package/lib/plugin/Form/InputTree.js +424 -520
- package/lib/plugin/Form/InputURL.js +23 -83
- package/lib/plugin/Form/InputYear.js +21 -86
- package/lib/plugin/Form/InputYearRange.js +25 -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 -1
- package/lib/plugin/Form/ListSelect.js +86 -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.js +176 -261
- package/lib/plugin/Form/Radios.d.ts +1 -1
- package/lib/plugin/Form/Radios.js +135 -230
- package/lib/plugin/Form/Select.d.ts +1 -1
- package/lib/plugin/Form/Select.js +245 -340
- package/lib/plugin/Form/Static.d.ts +1 -1
- package/lib/plugin/Form/Static.js +109 -209
- package/lib/plugin/Form/Switch.d.ts +1 -1
- package/lib/plugin/Form/Switch.js +157 -252
- 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 -1
- package/lib/plugin/Form/Textarea.js +122 -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 +0 -1
- package/lib/plugin/Grid.js +513 -643
- package/lib/plugin/HBox.d.ts +0 -1
- package/lib/plugin/HBox.js +463 -583
- package/lib/plugin/IFrame.d.ts +2 -11
- package/lib/plugin/IFrame.js +54 -125
- package/lib/plugin/Image.d.ts +2 -2
- package/lib/plugin/Image.js +219 -309
- package/lib/plugin/Images.d.ts +3 -3
- package/lib/plugin/Images.js +160 -230
- package/lib/plugin/Json.d.ts +1 -1
- package/lib/plugin/Json.js +40 -110
- package/lib/plugin/Layout/FlexPluginBase.js +179 -356
- package/lib/plugin/Layout/Layout_fixed.js +23 -63
- package/lib/plugin/Layout/Layout_free_container.js +18 -58
- package/lib/plugin/Layout/Layout_sorption_container.js +27 -70
- package/lib/plugin/Link.js +63 -133
- package/lib/plugin/List.js +267 -382
- package/lib/plugin/ListItem.d.ts +1 -1
- package/lib/plugin/ListItem.js +133 -193
- package/lib/plugin/Log.d.ts +1 -1
- package/lib/plugin/Log.js +96 -166
- package/lib/plugin/Mapping.js +147 -247
- package/lib/plugin/Markdown.d.ts +1 -1
- package/lib/plugin/Markdown.js +32 -102
- package/lib/plugin/Nav.d.ts +1 -1
- package/lib/plugin/Nav.js +301 -386
- package/lib/plugin/OfficeViewer.d.ts +22 -0
- package/lib/plugin/OfficeViewer.js +95 -0
- package/lib/plugin/Operation.d.ts +1 -1
- package/lib/plugin/Operation.js +47 -112
- package/lib/plugin/Others/Action.js +304 -329
- package/lib/plugin/Others/TableCell.d.ts +1 -1
- package/lib/plugin/Others/TableCell.js +304 -329
- package/lib/plugin/Page.d.ts +2 -3
- package/lib/plugin/Page.js +281 -376
- package/lib/plugin/Pagination.d.ts +1 -1
- package/lib/plugin/Pagination.js +211 -296
- package/lib/plugin/Panel.d.ts +1 -1
- 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 +1 -1
- package/lib/plugin/Progress.js +203 -283
- package/lib/plugin/Property.js +84 -149
- package/lib/plugin/QRCode.js +64 -134
- package/lib/plugin/Reset.js +13 -58
- package/lib/plugin/Service.d.ts +1 -1
- package/lib/plugin/Service.js +166 -251
- package/lib/plugin/Sparkline.js +24 -89
- package/lib/plugin/Status.d.ts +1 -1
- package/lib/plugin/Status.js +225 -303
- package/lib/plugin/Steps.js +76 -141
- package/lib/plugin/Submit.js +13 -53
- package/lib/plugin/Table.d.ts +1 -1
- package/lib/plugin/Table.js +542 -639
- package/lib/plugin/Table2.d.ts +1 -1
- package/lib/plugin/Table2.js +730 -826
- package/lib/plugin/TableCell2.js +409 -436
- package/lib/plugin/TableView.d.ts +0 -1
- package/lib/plugin/TableView.js +565 -621
- package/lib/plugin/Tabs.d.ts +0 -1
- package/lib/plugin/Tabs.js +341 -468
- package/lib/plugin/Tag.d.ts +1 -1
- package/lib/plugin/Tag.js +122 -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 +44 -84
- package/lib/plugin/Timeline.d.ts +1 -1
- package/lib/plugin/Timeline.js +91 -168
- package/lib/plugin/TooltipWrapper.d.ts +1 -1
- package/lib/plugin/TooltipWrapper.js +189 -269
- package/lib/plugin/Tpl.d.ts +1 -1
- package/lib/plugin/Tpl.js +92 -183
- 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 +623 -734
- package/lib/plugin/Wrapper.d.ts +1 -1
- package/lib/plugin/Wrapper.js +104 -257
- package/lib/renderer/APIControl.d.ts +128 -4854
- package/lib/renderer/APIControl.js +729 -836
- package/lib/renderer/ActionApiControl.d.ts +74 -6384
- package/lib/renderer/BadgeControl.d.ts +5 -5
- package/lib/renderer/BadgeControl.js +229 -269
- package/lib/renderer/ButtonGroupControl.d.ts +21 -0
- package/lib/renderer/ButtonGroupControl.js +46 -0
- package/lib/renderer/DataBindingControl.js +174 -209
- package/lib/renderer/DataMappingControl.d.ts +2 -2
- package/lib/renderer/DataMappingControl.js +28 -39
- package/lib/renderer/DataPickerControl.js +35 -50
- package/lib/renderer/DateShortCutControl.js +250 -345
- package/lib/renderer/ExpressionFormulaControl.js +169 -238
- 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 +160 -0
- package/lib/renderer/FormulaControl.js +343 -462
- package/lib/renderer/GoConfigControl.js +25 -35
- package/lib/renderer/MapSourceControl.d.ts +9 -1603
- package/lib/renderer/MapSourceControl.js +270 -356
- package/lib/renderer/NavBadgeControl.d.ts +11 -15
- package/lib/renderer/NavBadgeControl.js +228 -263
- package/lib/renderer/NavDefaultActive.d.ts +1 -1
- package/lib/renderer/NavDefaultActive.js +60 -69
- package/lib/renderer/NavSourceControl.d.ts +2 -2
- package/lib/renderer/NavSourceControl.js +295 -389
- package/lib/renderer/OptionControl.d.ts +3 -4
- package/lib/renderer/OptionControl.js +611 -780
- package/lib/renderer/RangePartsControl.js +264 -339
- package/lib/renderer/StatusControl.js +133 -169
- package/lib/renderer/SwitchMoreControl.d.ts +46 -86
- package/lib/renderer/SwitchMoreControl.js +311 -413
- package/lib/renderer/TimelineItemControl.d.ts +1 -1
- package/lib/renderer/TimelineItemControl.js +421 -539
- package/lib/renderer/TransferTableControl.d.ts +1 -1
- package/lib/renderer/TransferTableControl.js +331 -407
- package/lib/renderer/TreeOptionControl.d.ts +2 -2
- package/lib/renderer/TreeOptionControl.js +478 -610
- package/lib/renderer/ValidationControl.js +228 -282
- package/lib/renderer/ValidationItem.js +124 -160
- package/lib/renderer/event-control/action-config-dialog.js +199 -216
- package/lib/renderer/event-control/action-config-panel.d.ts +1 -1
- package/lib/renderer/event-control/action-config-panel.js +36 -41
- package/lib/renderer/event-control/comp-action-select.js +27 -37
- package/lib/renderer/event-control/helper.d.ts +18 -32
- package/lib/renderer/event-control/helper.js +55 -71
- package/lib/renderer/event-control/index.js +672 -815
- 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.js +6 -11
- package/lib/renderer/style-control/font-family.js +1 -1
- package/lib/renderer/style-control/transformation.js +3 -2
- package/lib/renderer/textarea-formula/FormulaPicker.js +4 -3
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +223 -323
- package/lib/renderer/textarea-formula/plugin.js +157 -226
- package/lib/renderer/textarea-formula/utils.js +4 -4
- package/lib/tpl/api.js +1 -1
- package/lib/tpl/common.js +20 -21
- package/lib/tpl/horizontal.js +1 -1
- package/lib/tpl/layout.js +27 -12
- package/lib/tpl/options.js +2 -2
- package/lib/tpl/remark.js +1 -1
- package/lib/tpl/style.js +4 -4
- package/lib/tpl/validations.js +3 -3
- package/lib/util.d.ts +9 -33
- package/lib/util.js +1 -1
- package/lib/validator.js +4 -4
- package/package.json +4 -3
package/esm/plugin/CRUD2.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.5-beta.
|
2
|
+
* amis-editor v5.2.5-beta.6
|
3
3
|
* Copyright 2018-2023 @fex
|
4
4
|
*/
|
5
5
|
|
6
|
-
import { __extends, __awaiter, __generator, __spreadArray, __assign } from 'tslib';
|
6
|
+
import { __extends, __awaiter, __generator, __spreadArray, __read, __assign } from 'tslib';
|
7
7
|
import cloneDeep from 'lodash/cloneDeep';
|
8
8
|
import React__default from 'react';
|
9
|
-
import { generateNodeId,
|
9
|
+
import { generateNodeId, getSchemaTpl, DSBuilderManager, tipedLabel, defaultValue, BasePlugin, registerEditorPlugin, DSFeature } from 'amis-editor-core';
|
10
10
|
import { flattenDeep, fromPairs, isObject, remove } from 'lodash';
|
11
11
|
import { findTree } from 'amis';
|
12
12
|
import { getArgsWrapper } from '../renderer/event-control/helper.js';
|
@@ -17,7 +17,7 @@ var findObj = function (obj, predicate, stop) {
|
|
17
17
|
while (waitProcess.length) {
|
18
18
|
var item = waitProcess.pop();
|
19
19
|
if (Array.isArray(item)) {
|
20
|
-
waitProcess.push.apply(waitProcess, item);
|
20
|
+
waitProcess.push.apply(waitProcess, __spreadArray([], __read(item), false));
|
21
21
|
continue;
|
22
22
|
}
|
23
23
|
if (!isObject(item) || stop && stop(item)) {
|
@@ -26,7 +26,7 @@ var findObj = function (obj, predicate, stop) {
|
|
26
26
|
if (predicate(item)) {
|
27
27
|
return item;
|
28
28
|
}
|
29
|
-
waitProcess.push.apply(waitProcess, Object.values(item));
|
29
|
+
waitProcess.push.apply(waitProcess, __spreadArray([], __read(Object.values(item)), false));
|
30
30
|
}
|
31
31
|
};
|
32
32
|
var deepRemove = function (obj, predicate) {
|
@@ -35,15 +35,16 @@ var deepRemove = function (obj, predicate) {
|
|
35
35
|
var item = waitProcess.pop();
|
36
36
|
if (Array.isArray(item)) {
|
37
37
|
remove(item, predicate);
|
38
|
-
waitProcess.push.apply(waitProcess, item);
|
38
|
+
waitProcess.push.apply(waitProcess, __spreadArray([], __read(item), false));
|
39
39
|
return "continue";
|
40
40
|
}
|
41
41
|
if (!isObject(item)) {
|
42
42
|
return "continue";
|
43
43
|
}
|
44
44
|
Object.entries(item).forEach(function (_a) {
|
45
|
-
var
|
46
|
-
|
45
|
+
var _b = __read(_a, 2),
|
46
|
+
key = _b[0],
|
47
|
+
value = _b[1];
|
47
48
|
if (isObject(value) && predicate(value)) {
|
48
49
|
delete item[key];
|
49
50
|
}
|
@@ -425,771 +426,642 @@ var CRUDPlugin = /** @class */function (_super) {
|
|
425
426
|
__extends(CRUDPlugin, _super);
|
426
427
|
function CRUDPlugin(manager) {
|
427
428
|
var _this = _super.call(this, manager) || this;
|
428
|
-
|
429
|
-
enumerable: true,
|
430
|
-
configurable: true,
|
431
|
-
writable: true,
|
432
|
-
value: true
|
433
|
-
});
|
434
|
-
Object.defineProperty(_this, "dsBuilderMgr", {
|
435
|
-
enumerable: true,
|
436
|
-
configurable: true,
|
437
|
-
writable: true,
|
438
|
-
value: void 0
|
439
|
-
});
|
429
|
+
_this.disabledRendererPlugin = true;
|
440
430
|
// 关联渲染器名字
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
value: -1000
|
464
|
-
});
|
465
|
-
Object.defineProperty(_this, "docLink", {
|
466
|
-
enumerable: true,
|
467
|
-
configurable: true,
|
468
|
-
writable: true,
|
469
|
-
value: '/amis/zh-CN/components/crud'
|
470
|
-
});
|
471
|
-
Object.defineProperty(_this, "tags", {
|
472
|
-
enumerable: true,
|
473
|
-
configurable: true,
|
474
|
-
writable: true,
|
475
|
-
value: [i18n("73721e611daaafe5c34aa9f3f901d016")]
|
476
|
-
});
|
477
|
-
Object.defineProperty(_this, "scaffold", {
|
478
|
-
enumerable: true,
|
479
|
-
configurable: true,
|
480
|
-
writable: true,
|
481
|
-
value: void 0
|
482
|
-
});
|
483
|
-
Object.defineProperty(_this, "name", {
|
484
|
-
enumerable: true,
|
485
|
-
configurable: true,
|
486
|
-
writable: true,
|
487
|
-
value: void 0
|
488
|
-
});
|
489
|
-
Object.defineProperty(_this, "events", {
|
490
|
-
enumerable: true,
|
491
|
-
configurable: true,
|
492
|
-
writable: true,
|
493
|
-
value: [{
|
494
|
-
eventName: 'get-data',
|
495
|
-
eventLabel: i18n("1b79a4f49b7a21e62b8868f12189b0b0"),
|
496
|
-
description: i18n("5a28d015b7b3518f75bc4cc27d9f6c20")
|
497
|
-
}]
|
498
|
-
});
|
499
|
-
Object.defineProperty(_this, "actions", {
|
500
|
-
enumerable: true,
|
501
|
-
configurable: true,
|
502
|
-
writable: true,
|
503
|
-
value: [{
|
504
|
-
actionType: 'search',
|
505
|
-
actionLabel: i18n("cfd84204d9476936c949d071cc2338cf"),
|
506
|
-
description: i18n("c6bd3393c21379d3f75d179abe36da3d"),
|
507
|
-
descDetail: function (info) {
|
508
|
-
return React__default.createElement("div", null, React__default.createElement("span", {
|
509
|
-
className: "variable-right"
|
510
|
-
}, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u89E6\u53D1\u6570\u636E\u67E5\u8BE2");
|
511
|
-
},
|
512
|
-
schema: getArgsWrapper(
|
513
|
-
/*
|
514
|
-
{
|
515
|
-
type: 'input-formula',
|
516
|
-
variables: '${variables}',
|
517
|
-
evalMode: false,
|
518
|
-
variableMode: 'tabs',
|
519
|
-
label: '查询条件',
|
520
|
-
size: 'md',
|
521
|
-
name: 'query',
|
522
|
-
mode: 'horizontal'
|
523
|
-
}
|
524
|
-
*/
|
431
|
+
_this.rendererName = 'crud2';
|
432
|
+
_this.multifactor = true;
|
433
|
+
_this.$schema = '/schemas/CRUD2Schema.json';
|
434
|
+
_this.order = -1000;
|
435
|
+
_this.docLink = '/amis/zh-CN/components/crud';
|
436
|
+
_this.tags = [i18n("73721e611daaafe5c34aa9f3f901d016")];
|
437
|
+
_this.events = [{
|
438
|
+
eventName: 'get-data',
|
439
|
+
eventLabel: i18n("1b79a4f49b7a21e62b8868f12189b0b0"),
|
440
|
+
description: i18n("5a28d015b7b3518f75bc4cc27d9f6c20")
|
441
|
+
}];
|
442
|
+
_this.actions = [{
|
443
|
+
actionType: 'search',
|
444
|
+
actionLabel: i18n("cfd84204d9476936c949d071cc2338cf"),
|
445
|
+
description: i18n("c6bd3393c21379d3f75d179abe36da3d"),
|
446
|
+
descDetail: function (info) {
|
447
|
+
return React__default.createElement("div", null, React__default.createElement("span", {
|
448
|
+
className: "variable-right"
|
449
|
+
}, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u89E6\u53D1\u6570\u636E\u67E5\u8BE2");
|
450
|
+
},
|
451
|
+
schema: getArgsWrapper(
|
452
|
+
/*
|
525
453
|
{
|
526
|
-
|
527
|
-
label: i18n("cf12e55021998a8328201800ec356773"),
|
528
|
-
type: 'ae-formulaControl',
|
454
|
+
type: 'input-formula',
|
529
455
|
variables: '${variables}',
|
456
|
+
evalMode: false,
|
457
|
+
variableMode: 'tabs',
|
458
|
+
label: '查询条件',
|
530
459
|
size: 'md',
|
460
|
+
name: 'query',
|
531
461
|
mode: 'horizontal'
|
532
|
-
})
|
533
|
-
},
|
534
|
-
// {
|
535
|
-
// actionType: 'resetQuery',
|
536
|
-
// actionLabel: '重置查询',
|
537
|
-
// description: '重新恢复查询条件为初始值',
|
538
|
-
// descDetail: (info: any) => {
|
539
|
-
// return (
|
540
|
-
// <div>
|
541
|
-
// <span className="variable-right">{info?.__rendererLabel}</span>
|
542
|
-
// 重置初始查询条件
|
543
|
-
// </div>
|
544
|
-
// );
|
545
|
-
// }
|
546
|
-
// },
|
547
|
-
{
|
548
|
-
actionType: 'loadMore',
|
549
|
-
actionLabel: i18n("77281549955309c49f5eef77838a85e5"),
|
550
|
-
description: i18n("b3a4d6a345372c5def1d5a1bf6077bce"),
|
551
|
-
descDetail: function (info) {
|
552
|
-
return React__default.createElement("div", null, React__default.createElement("span", {
|
553
|
-
className: "variable-right"
|
554
|
-
}, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u52A0\u8F7D\u66F4\u591A\u6570\u636E");
|
555
462
|
}
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
463
|
+
*/
|
464
|
+
getSchemaTpl('formulaControl', {
|
465
|
+
name: 'query',
|
466
|
+
label: i18n("cf12e55021998a8328201800ec356773"),
|
467
|
+
variables: '${variables}',
|
468
|
+
size: 'md',
|
469
|
+
mode: 'horizontal'
|
470
|
+
}))
|
471
|
+
},
|
472
|
+
// {
|
473
|
+
// actionType: 'resetQuery',
|
474
|
+
// actionLabel: '重置查询',
|
475
|
+
// description: '重新恢复查询条件为初始值',
|
476
|
+
// descDetail: (info: any) => {
|
477
|
+
// return (
|
478
|
+
// <div>
|
479
|
+
// <span className="variable-right">{info?.__rendererLabel}</span>
|
480
|
+
// 重置初始查询条件
|
481
|
+
// </div>
|
482
|
+
// );
|
483
|
+
// }
|
484
|
+
// },
|
485
|
+
{
|
486
|
+
actionType: 'loadMore',
|
487
|
+
actionLabel: i18n("77281549955309c49f5eef77838a85e5"),
|
488
|
+
description: i18n("b3a4d6a345372c5def1d5a1bf6077bce"),
|
489
|
+
descDetail: function (info) {
|
490
|
+
return React__default.createElement("div", null, React__default.createElement("span", {
|
491
|
+
className: "variable-right"
|
492
|
+
}, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u52A0\u8F7D\u66F4\u591A\u6570\u636E");
|
493
|
+
}
|
494
|
+
}];
|
495
|
+
_this.previewSchema = {
|
496
|
+
syncLocation: false,
|
497
|
+
type: 'crud2',
|
498
|
+
className: 'text-left',
|
499
|
+
bodyClassName: 'm-b-none',
|
500
|
+
affixHeader: false,
|
501
|
+
data: {
|
502
|
+
items: [{
|
503
|
+
a: 1,
|
504
|
+
b: 2
|
584
505
|
}, {
|
585
|
-
|
586
|
-
|
506
|
+
a: 3,
|
507
|
+
b: 4
|
587
508
|
}, {
|
588
|
-
|
589
|
-
|
590
|
-
buttons: [{
|
591
|
-
icon: 'fa fa-eye',
|
592
|
-
type: 'button'
|
593
|
-
}, {
|
594
|
-
icon: 'fa fa-edit',
|
595
|
-
type: 'button'
|
596
|
-
}]
|
509
|
+
a: 5,
|
510
|
+
b: 6
|
597
511
|
}]
|
598
|
-
}
|
599
|
-
|
512
|
+
},
|
513
|
+
source: '${items}',
|
514
|
+
columns: [{
|
515
|
+
title: 'A',
|
516
|
+
name: 'a'
|
517
|
+
}, {
|
518
|
+
title: 'B',
|
519
|
+
name: 'b'
|
520
|
+
}, {
|
521
|
+
name: 'operation',
|
522
|
+
title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
|
523
|
+
buttons: [{
|
524
|
+
icon: 'fa fa-eye',
|
525
|
+
type: 'button'
|
526
|
+
}, {
|
527
|
+
icon: 'fa fa-edit',
|
528
|
+
type: 'button'
|
529
|
+
}]
|
530
|
+
}]
|
531
|
+
};
|
600
532
|
_this.dsBuilderMgr = new DSBuilderManager('crud2', 'api');
|
601
533
|
return _this;
|
602
534
|
}
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
_b.label = 3;
|
625
|
-
case 3:
|
626
|
-
return [2 /*return*/];
|
627
|
-
}
|
628
|
-
});
|
535
|
+
CRUDPlugin.prototype.afterBuildPanelBody = function (event) {
|
536
|
+
var _a;
|
537
|
+
return __awaiter(this, void 0, void 0, function () {
|
538
|
+
var context;
|
539
|
+
return __generator(this, function (_b) {
|
540
|
+
switch (_b.label) {
|
541
|
+
case 0:
|
542
|
+
context = event.context.context;
|
543
|
+
if (!(((_a = context.info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem) && new RegExp('/crud2/filter/').test(context.path))) return [3 /*break*/, 2];
|
544
|
+
return [4 /*yield*/, this.addFilterPanelSetting(event.context)];
|
545
|
+
case 1:
|
546
|
+
_b.sent();
|
547
|
+
return [3 /*break*/, 3];
|
548
|
+
case 2:
|
549
|
+
if (context.schema.type === 'crud2' && context.schema.mode === this.scaffold.mode) {
|
550
|
+
this.addListPanelSetting(event.context);
|
551
|
+
}
|
552
|
+
_b.label = 3;
|
553
|
+
case 3:
|
554
|
+
return [2 /*return*/];
|
555
|
+
}
|
629
556
|
});
|
630
|
-
}
|
631
|
-
}
|
557
|
+
});
|
558
|
+
};
|
632
559
|
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
host = node.getClosestParentByType('crud2');
|
648
|
-
if (!host || !form || !form.schema.behavior || host.schema.mode !== this.scaffold.mode) {
|
649
|
-
return [2 /*return*/];
|
650
|
-
}
|
560
|
+
CRUDPlugin.prototype.addFilterPanelSetting = function (context) {
|
561
|
+
var _a;
|
562
|
+
return __awaiter(this, void 0, void 0, function () {
|
563
|
+
var _b, info, node, form, host, builder, body_1;
|
564
|
+
return __generator(this, function (_c) {
|
565
|
+
switch (_c.label) {
|
566
|
+
case 0:
|
567
|
+
_b = context.context, info = _b.info, node = _b.node;
|
568
|
+
if (!((_a = info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem)) return [3 /*break*/, 2];
|
569
|
+
form = node.getClosestParentByType('form');
|
570
|
+
host = node.getClosestParentByType('crud2');
|
571
|
+
if (!host || !form || !form.schema.behavior || host.schema.mode !== this.scaffold.mode) {
|
572
|
+
return [2 /*return*/];
|
573
|
+
}
|
651
574
|
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
return [2 /*return*/];
|
662
|
-
}
|
663
|
-
// 可能会出错,但是cards table2 list 配置面板结构统一,因此
|
664
|
-
context.data.tabs.forEach(function (tab) {
|
665
|
-
if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
|
666
|
-
tab.body[0].body.forEach(function (collapse) {
|
667
|
-
var _a;
|
668
|
-
if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
|
669
|
-
// 在标题后面插入过滤条件
|
670
|
-
(_a = collapse.body).splice.apply(_a, __spreadArray([2, 0], body_1, false));
|
671
|
-
}
|
672
|
-
});
|
673
|
-
}
|
674
|
-
});
|
675
|
-
_c.label = 2;
|
676
|
-
case 2:
|
575
|
+
builder = this.dsBuilderMgr.resolveBuilderBySchema(host.schema, 'api');
|
576
|
+
return [4 /*yield*/, builder.makeFieldFilterSetting({
|
577
|
+
schema: host.schema,
|
578
|
+
sourceKey: 'api',
|
579
|
+
fieldName: node.schema.name
|
580
|
+
})];
|
581
|
+
case 1:
|
582
|
+
body_1 = _c.sent();
|
583
|
+
if (!body_1 || !body_1.length) {
|
677
584
|
return [2 /*return*/];
|
678
|
-
|
679
|
-
|
585
|
+
}
|
586
|
+
// 可能会出错,但是cards table2 list 配置面板结构统一,因此
|
587
|
+
context.data.tabs.forEach(function (tab) {
|
588
|
+
if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
|
589
|
+
tab.body[0].body.forEach(function (collapse) {
|
590
|
+
var _a;
|
591
|
+
if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
|
592
|
+
// 在标题后面插入过滤条件
|
593
|
+
(_a = collapse.body).splice.apply(_a, __spreadArray([2, 0], __read(body_1), false));
|
594
|
+
}
|
595
|
+
});
|
596
|
+
}
|
597
|
+
});
|
598
|
+
_c.label = 2;
|
599
|
+
case 2:
|
600
|
+
return [2 /*return*/];
|
601
|
+
}
|
680
602
|
});
|
681
|
-
}
|
682
|
-
}
|
603
|
+
});
|
604
|
+
};
|
683
605
|
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
columnClassName: 'text-right',
|
702
|
-
body: []
|
703
|
-
}]
|
704
|
-
}];
|
705
|
-
// 尝试放到左面第一个,否则只能放外头了
|
706
|
-
try {
|
707
|
-
schema[region][0].columns[align === 'left' ? 0 : 1].body.unshift(content);
|
708
|
-
} catch (e) {
|
709
|
-
schema[region].unshift(content);
|
710
|
-
}
|
606
|
+
CRUDPlugin.prototype.addDataOperatorSchema = function (schema, content) {};
|
607
|
+
CRUDPlugin.prototype.addFeatToToolbar = function (schema, content, position, align) {
|
608
|
+
var region = "".concat(position, "Toolbar");
|
609
|
+
schema[region] = schema[region] || [{
|
610
|
+
type: 'grid',
|
611
|
+
columns: [{
|
612
|
+
body: []
|
613
|
+
}, {
|
614
|
+
columnClassName: 'text-right',
|
615
|
+
body: []
|
616
|
+
}]
|
617
|
+
}];
|
618
|
+
// 尝试放到左面第一个,否则只能放外头了
|
619
|
+
try {
|
620
|
+
schema[region][0].columns[align === 'left' ? 0 : 1].body.unshift(content);
|
621
|
+
} catch (e) {
|
622
|
+
schema[region].unshift(content);
|
711
623
|
}
|
712
|
-
}
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
624
|
+
};
|
625
|
+
CRUDPlugin.prototype.filterOperators = function (builder, context) {
|
626
|
+
var _this = this;
|
627
|
+
var operators = [];
|
628
|
+
Tools.forEach(function (tool) {
|
629
|
+
if (!builder.features.includes(tool.value)) {
|
630
|
+
return;
|
631
|
+
}
|
632
|
+
operators.push(__assign(__assign({}, tool), {
|
633
|
+
remove: function (schema) {
|
634
|
+
deepRemove(schema.headerToolbar, function (item) {
|
635
|
+
return item.behavior === tool.value;
|
636
|
+
});
|
637
|
+
deepRemove(schema.footerToolbar, function (item) {
|
638
|
+
return item.behavior === tool.value;
|
639
|
+
});
|
640
|
+
},
|
641
|
+
add: function (data) {
|
642
|
+
_this.addFeatToToolbar(data, tool.resolveSchema(data, builder), 'header', tool.align);
|
643
|
+
},
|
644
|
+
isActive: function (data) {
|
645
|
+
return _this.isFeatActive(data, tool.value, 'headerToolbar', 'footerToolbar');
|
646
|
+
}
|
647
|
+
}));
|
648
|
+
});
|
649
|
+
// 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
|
650
|
+
if (context.schema.mode === 'table2') {
|
651
|
+
DataOperators.forEach(function (op) {
|
652
|
+
if (!builder.features.includes(op.value)) {
|
722
653
|
return;
|
723
654
|
}
|
724
|
-
operators.push(__assign(__assign({},
|
655
|
+
operators.push(__assign(__assign({}, op), {
|
725
656
|
remove: function (schema) {
|
726
|
-
deepRemove(schema.
|
727
|
-
return item.behavior ===
|
728
|
-
});
|
729
|
-
deepRemove(schema.footerToolbar, function (item) {
|
730
|
-
return item.behavior === tool.value;
|
657
|
+
deepRemove(schema.columns, function (item) {
|
658
|
+
return item.behavior === op.value;
|
731
659
|
});
|
732
660
|
},
|
733
661
|
add: function (data) {
|
734
|
-
_this.
|
662
|
+
_this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
|
735
663
|
},
|
736
664
|
isActive: function (data) {
|
737
|
-
return _this.isFeatActive(data,
|
665
|
+
return _this.isFeatActive(data, op.value, 'columns');
|
738
666
|
}
|
739
667
|
}));
|
740
668
|
});
|
741
|
-
// 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
|
742
|
-
if (context.schema.mode === 'table2') {
|
743
|
-
DataOperators.forEach(function (op) {
|
744
|
-
if (!builder.features.includes(op.value)) {
|
745
|
-
return;
|
746
|
-
}
|
747
|
-
operators.push(__assign(__assign({}, op), {
|
748
|
-
remove: function (schema) {
|
749
|
-
deepRemove(schema.columns, function (item) {
|
750
|
-
return item.behavior === op.value;
|
751
|
-
});
|
752
|
-
},
|
753
|
-
add: function (data) {
|
754
|
-
_this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
|
755
|
-
},
|
756
|
-
isActive: function (data) {
|
757
|
-
return _this.isFeatActive(data, op.value, 'columns');
|
758
|
-
}
|
759
|
-
}));
|
760
|
-
});
|
761
|
-
}
|
762
|
-
return operators;
|
763
669
|
}
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
670
|
+
return operators;
|
671
|
+
};
|
672
|
+
CRUDPlugin.prototype.makeFeatSetting = function (feat, builder, inScaffold) {
|
673
|
+
if (feat.makeSetting) {
|
674
|
+
return feat.makeSetting(builder);
|
675
|
+
}
|
676
|
+
return builder.makeFieldsSettingForm({
|
677
|
+
feat: feat.value,
|
678
|
+
inCrud: true,
|
679
|
+
inScaffold: inScaffold
|
680
|
+
});
|
681
|
+
};
|
682
|
+
CRUDPlugin.prototype.isFeatActive = function (schema, feat) {
|
683
|
+
var scope = [];
|
684
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
685
|
+
scope[_i - 2] = arguments[_i];
|
686
|
+
}
|
687
|
+
if (scope.length === 0) {
|
688
|
+
return findObj(schema, function (item) {
|
689
|
+
return item.behavior === feat;
|
777
690
|
});
|
778
691
|
}
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
var scope = [];
|
786
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
787
|
-
scope[_i - 2] = arguments[_i];
|
788
|
-
}
|
789
|
-
if (scope.length === 0) {
|
790
|
-
return findObj(schema, function (item) {
|
791
|
-
return item.behavior === feat;
|
792
|
-
});
|
793
|
-
}
|
794
|
-
var region = null;
|
795
|
-
while (region = scope.shift()) {
|
796
|
-
if (findObj(schema[region], function (item) {
|
797
|
-
return item.behavior === feat;
|
798
|
-
})) {
|
799
|
-
return true;
|
800
|
-
}
|
692
|
+
var region = null;
|
693
|
+
while (region = scope.shift()) {
|
694
|
+
if (findObj(schema[region], function (item) {
|
695
|
+
return item.behavior === feat;
|
696
|
+
})) {
|
697
|
+
return true;
|
801
698
|
}
|
802
|
-
return false;
|
803
699
|
}
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
var scope = [];
|
811
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
812
|
-
scope[_i - 2] = arguments[_i];
|
813
|
-
}
|
814
|
-
if (scope.length === 0) {
|
815
|
-
return deepRemove(schema, function (item) {
|
816
|
-
return item.behavior === feat;
|
817
|
-
});
|
818
|
-
}
|
819
|
-
var region = null;
|
820
|
-
while (region = scope.shift()) {
|
821
|
-
deepRemove(schema[region], function (item) {
|
822
|
-
return item.behavior === feat;
|
823
|
-
});
|
824
|
-
}
|
825
|
-
return false;
|
700
|
+
return false;
|
701
|
+
};
|
702
|
+
CRUDPlugin.prototype.removeFeatSchema = function (schema, feat) {
|
703
|
+
var scope = [];
|
704
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
705
|
+
scope[_i - 2] = arguments[_i];
|
826
706
|
}
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
configurable: true,
|
831
|
-
writable: true,
|
832
|
-
value: function (builder, context) {
|
833
|
-
var _a, _b, _c;
|
834
|
-
var existColsName = [];
|
835
|
-
var columns = [];
|
836
|
-
// 实时获取,否则点击预览再回到编辑的时context中的node失效
|
837
|
-
var node = this.manager.store.getNodeById(context.id);
|
838
|
-
if (!node) {
|
839
|
-
return columns;
|
840
|
-
}
|
841
|
-
var existCols = ((_b = (_a = node.children.find(function (child) {
|
842
|
-
return child.type === 'table2';
|
843
|
-
})) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children) || [];
|
844
|
-
var hasOperatorCol = (_c = node.schema.columns) === null || _c === void 0 ? void 0 : _c.some(function (col) {
|
845
|
-
return col.type === 'operation';
|
707
|
+
if (scope.length === 0) {
|
708
|
+
return deepRemove(schema, function (item) {
|
709
|
+
return item.behavior === feat;
|
846
710
|
});
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
}
|
853
|
-
col.schema && columns.push({
|
854
|
-
label: col.schema.title,
|
855
|
-
value: col.id
|
856
|
-
});
|
857
|
-
((_a = col.schema) === null || _a === void 0 ? void 0 : _a.key) && existColsName.push(col.schema.key);
|
858
|
-
return false;
|
711
|
+
}
|
712
|
+
var region = null;
|
713
|
+
while (region = scope.shift()) {
|
714
|
+
deepRemove(schema[region], function (item) {
|
715
|
+
return item.behavior === feat;
|
859
716
|
});
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
717
|
+
}
|
718
|
+
return false;
|
719
|
+
};
|
720
|
+
CRUDPlugin.prototype.filterColumns = function (builder, context) {
|
721
|
+
var _a, _b, _c;
|
722
|
+
var existColsName = [];
|
723
|
+
var columns = [];
|
724
|
+
// 实时获取,否则点击预览再回到编辑的时context中的node失效
|
725
|
+
var node = this.manager.store.getNodeById(context.id);
|
726
|
+
if (!node) {
|
727
|
+
return columns;
|
728
|
+
}
|
729
|
+
var existCols = ((_b = (_a = node.children.find(function (child) {
|
730
|
+
return child.type === 'table2';
|
731
|
+
})) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children) || [];
|
732
|
+
var hasOperatorCol = (_c = node.schema.columns) === null || _c === void 0 ? void 0 : _c.some(function (col) {
|
733
|
+
return col.type === 'operation';
|
734
|
+
});
|
735
|
+
existCols.some(function (col, index) {
|
736
|
+
var _a;
|
737
|
+
// 严格来说是单元格的集合,因此要屏蔽掉
|
738
|
+
if (index !== 0 && col.id === existCols[0].id) {
|
739
|
+
return true;
|
879
740
|
}
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
741
|
+
col.schema && columns.push({
|
742
|
+
label: col.schema.title,
|
743
|
+
value: col.id
|
744
|
+
});
|
745
|
+
((_a = col.schema) === null || _a === void 0 ? void 0 : _a.key) && existColsName.push(col.schema.key);
|
746
|
+
return false;
|
747
|
+
});
|
748
|
+
if (node.schema.__fields) {
|
749
|
+
var appendCols = builder.makeTableColumnsByFields(node.schema.__fields);
|
750
|
+
if (appendCols === null || appendCols === void 0 ? void 0 : appendCols.length) {
|
751
|
+
appendCols.forEach(function (col) {
|
752
|
+
if (existColsName.includes(col.name)) {
|
753
|
+
return;
|
893
754
|
}
|
755
|
+
columns.push({
|
756
|
+
label: col.title,
|
757
|
+
value: null,
|
758
|
+
add: function (data) {
|
759
|
+
data.columns.push(col);
|
760
|
+
},
|
761
|
+
isActive: function () {
|
762
|
+
return false;
|
763
|
+
}
|
764
|
+
});
|
894
765
|
});
|
895
766
|
}
|
896
|
-
// context.node.
|
897
|
-
// // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
|
898
|
-
// if (context.schema.mode === 'table2') {
|
899
|
-
// DataOperators.forEach(op => {
|
900
|
-
// if (!builder.features.includes(op.value)) {
|
901
|
-
// return;
|
902
|
-
// }
|
903
|
-
// operators.push({
|
904
|
-
// ...op,
|
905
|
-
// remove: (schema: any) => {
|
906
|
-
// deepRemove(schema.columns, item => item.behavior === op.value);
|
907
|
-
// },
|
908
|
-
// add: (data: any) => {
|
909
|
-
// this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
|
910
|
-
// },
|
911
|
-
// isActive:(data: any) => {
|
912
|
-
// return this.isFeatActive(data, op.value, 'columns');
|
913
|
-
// }
|
914
|
-
// });
|
915
|
-
// });
|
916
|
-
// }
|
917
|
-
return columns;
|
918
767
|
}
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
tab.body[0].body.forEach(function (collapse) {
|
932
|
-
var _a;
|
933
|
-
if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
|
934
|
-
(_a = collapse.body).unshift.apply(_a, __spreadArray(__spreadArray([], builder.makeSourceSettingForm({
|
935
|
-
name: 'api',
|
936
|
-
label: i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),
|
937
|
-
feat: 'List',
|
938
|
-
inCrud: true
|
939
|
-
}), false), [getSchemaTpl('interval'), getSchemaTpl('switch', {
|
940
|
-
name: 'syncLocation',
|
941
|
-
label: tipedLabel(i18n("569343b4fe5e48131b78611c11eadbeb"), i18n("6dbee29a8c54eef9d042ef3280999ad9")),
|
942
|
-
pipeIn: defaultValue(true)
|
943
|
-
}), getSchemaTpl('switch', {
|
944
|
-
label: i18n("240145572215920ae06db1eeb85b29c0"),
|
945
|
-
name: 'selectable'
|
946
|
-
}), getSchemaTpl('switch', {
|
947
|
-
name: 'keepItemSelectionOnPageChange',
|
948
|
-
label: tipedLabel(i18n("099cf136d6a4b6ed4646af4a2ed066b2"), i18n("60011314ed92794f3d4f3e874c359279")),
|
949
|
-
visbileOn: 'this.selectable'
|
950
|
-
})], false));
|
951
|
-
}
|
952
|
-
if (collapse.title === i18n("949a8b7bd2c10070a2fae16f9c66afbb")) {
|
953
|
-
collapse.body.unshift(getSchemaTpl('switch', {
|
954
|
-
name: 'columnsTogglable',
|
955
|
-
label: tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"), i18n("d3c5079f7e26b1a7374ff76341376de4")),
|
956
|
-
onChange: function (value, oldValue, model, form) {
|
957
|
-
var schema = cloneDeep(form.data);
|
958
|
-
if (value === true) {
|
959
|
-
_this.addFeatToToolbar(schema, {
|
960
|
-
type: 'column-toggler'
|
961
|
-
}, 'header', 'right');
|
962
|
-
} else {
|
963
|
-
deepRemove(schema.headerToolbar, function (item) {
|
964
|
-
return item.type === 'column-toggler';
|
965
|
-
});
|
966
|
-
}
|
967
|
-
form.setValues(schema);
|
968
|
-
return undefined;
|
969
|
-
}
|
970
|
-
}));
|
971
|
-
collapse.body.unshift({
|
972
|
-
type: 'ae-feature-control',
|
973
|
-
label: false,
|
974
|
-
features: function () {
|
975
|
-
return _this.filterColumns(builder, context.context);
|
976
|
-
},
|
977
|
-
goFeatureComp: function (feat) {
|
978
|
-
return feat.value;
|
979
|
-
},
|
980
|
-
removeFeature: function (feat) {
|
981
|
-
_this.manager.del(feat.value);
|
982
|
-
},
|
983
|
-
manager: _this.manager,
|
984
|
-
addable: true,
|
985
|
-
removeable: true
|
986
|
-
});
|
987
|
-
}
|
768
|
+
if (!hasOperatorCol) {
|
769
|
+
columns.push({
|
770
|
+
label: i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),
|
771
|
+
value: null,
|
772
|
+
isActive: function () {
|
773
|
+
return false;
|
774
|
+
},
|
775
|
+
add: function (data) {
|
776
|
+
data.columns.push({
|
777
|
+
type: 'operation',
|
778
|
+
title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
|
779
|
+
buttons: []
|
988
780
|
});
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
781
|
+
}
|
782
|
+
});
|
783
|
+
}
|
784
|
+
// context.node.
|
785
|
+
// // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
|
786
|
+
// if (context.schema.mode === 'table2') {
|
787
|
+
// DataOperators.forEach(op => {
|
788
|
+
// if (!builder.features.includes(op.value)) {
|
789
|
+
// return;
|
790
|
+
// }
|
791
|
+
// operators.push({
|
792
|
+
// ...op,
|
793
|
+
// remove: (schema: any) => {
|
794
|
+
// deepRemove(schema.columns, item => item.behavior === op.value);
|
795
|
+
// },
|
796
|
+
// add: (data: any) => {
|
797
|
+
// this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
|
798
|
+
// },
|
799
|
+
// isActive:(data: any) => {
|
800
|
+
// return this.isFeatActive(data, op.value, 'columns');
|
801
|
+
// }
|
802
|
+
// });
|
803
|
+
// });
|
804
|
+
// }
|
805
|
+
return columns;
|
806
|
+
};
|
807
|
+
CRUDPlugin.prototype.addListPanelSetting = function (context) {
|
808
|
+
var _this = this;
|
809
|
+
var body = context.data;
|
810
|
+
var builder = this.dsBuilderMgr.resolveBuilderBySchema(context.context.schema, 'api');
|
811
|
+
body.tabs.forEach(function (tab) {
|
812
|
+
var _a, _b;
|
813
|
+
if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
|
814
|
+
tab.body[0].body.forEach(function (collapse) {
|
815
|
+
var _a;
|
816
|
+
if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
|
817
|
+
(_a = collapse.body).unshift.apply(_a, __spreadArray(__spreadArray([], __read(builder.makeSourceSettingForm({
|
818
|
+
name: 'api',
|
819
|
+
label: i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),
|
820
|
+
feat: 'List',
|
821
|
+
inCrud: true
|
822
|
+
})), false), [getSchemaTpl('interval'), getSchemaTpl('switch', {
|
823
|
+
name: 'syncLocation',
|
824
|
+
label: tipedLabel(i18n("569343b4fe5e48131b78611c11eadbeb"), i18n("6dbee29a8c54eef9d042ef3280999ad9")),
|
825
|
+
pipeIn: defaultValue(true)
|
826
|
+
}), getSchemaTpl('switch', {
|
827
|
+
label: i18n("240145572215920ae06db1eeb85b29c0"),
|
828
|
+
name: 'selectable'
|
829
|
+
}), getSchemaTpl('switch', {
|
830
|
+
name: 'keepItemSelectionOnPageChange',
|
831
|
+
label: tipedLabel(i18n("099cf136d6a4b6ed4646af4a2ed066b2"), i18n("60011314ed92794f3d4f3e874c359279")),
|
832
|
+
visbileOn: 'this.selectable'
|
833
|
+
})], false));
|
834
|
+
}
|
835
|
+
if (collapse.title === i18n("949a8b7bd2c10070a2fae16f9c66afbb")) {
|
836
|
+
collapse.body.unshift(getSchemaTpl('switch', {
|
837
|
+
name: 'columnsTogglable',
|
838
|
+
label: tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"), i18n("d3c5079f7e26b1a7374ff76341376de4")),
|
839
|
+
onChange: function (value, oldValue, model, form) {
|
840
|
+
var schema = cloneDeep(form.data);
|
841
|
+
if (value === true) {
|
842
|
+
_this.addFeatToToolbar(schema, {
|
843
|
+
type: 'column-toggler'
|
844
|
+
}, 'header', 'right');
|
845
|
+
} else {
|
846
|
+
deepRemove(schema.headerToolbar, function (item) {
|
847
|
+
return item.type === 'column-toggler';
|
848
|
+
});
|
1039
849
|
}
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
body: [{
|
850
|
+
form.setValues(schema);
|
851
|
+
return undefined;
|
852
|
+
}
|
853
|
+
}));
|
854
|
+
collapse.body.unshift({
|
1046
855
|
type: 'ae-feature-control',
|
1047
856
|
label: false,
|
1048
|
-
features:
|
857
|
+
features: function () {
|
858
|
+
return _this.filterColumns(builder, context.context);
|
859
|
+
},
|
1049
860
|
goFeatureComp: function (feat) {
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
}
|
1055
|
-
return (_a = findTree(node.children, function (item) {
|
1056
|
-
return item.schema.behavior === feat.value;
|
1057
|
-
})) === null || _a === void 0 ? void 0 : _a.id;
|
861
|
+
return feat.value;
|
862
|
+
},
|
863
|
+
removeFeature: function (feat) {
|
864
|
+
_this.manager.del(feat.value);
|
1058
865
|
},
|
1059
866
|
manager: _this.manager,
|
1060
867
|
addable: true,
|
1061
|
-
addText: i18n("84a2f40385427bbf2edc79e3368e4e0f"),
|
1062
868
|
removeable: true
|
1063
|
-
}
|
1064
|
-
}
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
869
|
+
});
|
870
|
+
}
|
871
|
+
});
|
872
|
+
var moreCollapse = getSchemaTpl('collapseGroup', [{
|
873
|
+
title: i18n("4a3ebd0ef27212de3b0c39e6a9701b1d"),
|
874
|
+
order: 2,
|
875
|
+
body: FilterTypes.map(function (item) {
|
876
|
+
// 当前数据源可能不开启这个功能
|
877
|
+
if (!builder.features.includes(item.value)) {
|
878
|
+
return null;
|
879
|
+
}
|
880
|
+
var fields = [];
|
881
|
+
// await builder.getContextFileds({
|
882
|
+
// schema: context.node.schema,
|
883
|
+
// feat: item.value,
|
884
|
+
// sourceKey: 'api'
|
885
|
+
// });
|
886
|
+
// 开关配置
|
887
|
+
// const moreConfig = builder.makeFieldsSettingForm({
|
888
|
+
// feat: item.value,
|
889
|
+
// inCrud: true,
|
890
|
+
// inScaffold: false
|
891
|
+
// });
|
892
|
+
var base = {
|
893
|
+
label: item.label,
|
894
|
+
name: "__".concat(item.value),
|
1083
895
|
pipeIn: function (value, form) {
|
1084
|
-
|
1085
|
-
return item
|
1086
|
-
}
|
1087
|
-
return (
|
896
|
+
if (item.value === 'FuzzyQuery') {
|
897
|
+
return _this.isFeatActive(form.data, item.value, 'headerToolbar', 'footerToolvar');
|
898
|
+
}
|
899
|
+
return _this.isFeatActive(form.data, item.value, 'filter');
|
1088
900
|
},
|
1089
901
|
onChange: function (value, oldValue, model, form) {
|
1090
902
|
var schema = cloneDeep(form.data);
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
return item && ['Pagination', 'LoadMore'].includes(item.behavior);
|
1095
|
-
});
|
1096
|
-
} else {
|
1097
|
-
var remove_1;
|
1098
|
-
var content = void 0;
|
1099
|
-
if (value === 'Pagination') {
|
1100
|
-
remove_1 = 'LoadMore';
|
1101
|
-
content = {
|
1102
|
-
type: 'pagination',
|
1103
|
-
behavior: value,
|
1104
|
-
layout: ['total', 'perPage', 'pager', 'go']
|
1105
|
-
};
|
903
|
+
if (value === true) {
|
904
|
+
if (item.value === 'FuzzyQuery') {
|
905
|
+
_this.addFeatToToolbar(schema, item.resolveSchema(schema, builder), 'header', 'right');
|
1106
906
|
} else {
|
1107
|
-
|
1108
|
-
content = {
|
1109
|
-
type: 'button',
|
1110
|
-
behavior: value,
|
1111
|
-
label: i18n("77281549955309c49f5eef77838a85e5"),
|
1112
|
-
onEvent: {
|
1113
|
-
click: {
|
1114
|
-
actions: [{
|
1115
|
-
actionType: 'loadMore',
|
1116
|
-
componentId: schema.id
|
1117
|
-
}]
|
1118
|
-
}
|
1119
|
-
}
|
1120
|
-
};
|
907
|
+
schema.filter.push(item.resolveSchema(schema, builder));
|
1121
908
|
}
|
1122
|
-
|
1123
|
-
|
1124
|
-
});
|
1125
|
-
_this.addFeatToToolbar(schema, content, 'footer', 'right');
|
909
|
+
} else if (value === false) {
|
910
|
+
_this.removeFeatSchema(schema, item.value);
|
1126
911
|
}
|
1127
912
|
form.setValues(schema);
|
1128
913
|
return undefined;
|
1129
914
|
}
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
915
|
+
};
|
916
|
+
return fields && fields.length ? __assign(__assign({}, base), {
|
917
|
+
type: 'ae-switch-more',
|
918
|
+
formType: 'extend',
|
919
|
+
mode: 'normal',
|
920
|
+
form: {
|
921
|
+
body: fields
|
922
|
+
}
|
923
|
+
}) : getSchemaTpl('switch', base);
|
924
|
+
})
|
925
|
+
}, {
|
926
|
+
title: i18n("a9a3a4608d48214efbdfac99888f6e0f"),
|
927
|
+
order: 3,
|
928
|
+
body: [{
|
929
|
+
type: 'ae-feature-control',
|
930
|
+
label: false,
|
931
|
+
features: _this.filterOperators(builder, context.context),
|
932
|
+
goFeatureComp: function (feat) {
|
933
|
+
var _a;
|
934
|
+
var node = context.context.node;
|
935
|
+
if (node.isSecondFactor) {
|
936
|
+
node = node.parent;
|
937
|
+
}
|
938
|
+
return (_a = findTree(node.children, function (item) {
|
939
|
+
return item.schema.behavior === feat.value;
|
940
|
+
})) === null || _a === void 0 ? void 0 : _a.id;
|
941
|
+
},
|
942
|
+
manager: _this.manager,
|
943
|
+
addable: true,
|
944
|
+
addText: i18n("84a2f40385427bbf2edc79e3368e4e0f"),
|
945
|
+
removeable: true
|
946
|
+
}]
|
947
|
+
}, {
|
948
|
+
title: i18n("cb43abed5ba14bf32fbb1058e12d2303"),
|
949
|
+
order: 4,
|
950
|
+
body: [{
|
951
|
+
type: 'select',
|
952
|
+
label: i18n("48b42e5c3ea447092eaf0a1a13195540"),
|
953
|
+
name: '__pgType',
|
954
|
+
options: [{
|
955
|
+
label: i18n("d81bb206a889656035b929cd8bb1ef10"),
|
956
|
+
value: 'none'
|
957
|
+
}, {
|
958
|
+
label: i18n("3862626c138ce5945e0e273a1bdfbad0"),
|
959
|
+
value: 'Pagination'
|
960
|
+
}, {
|
961
|
+
label: i18n("77281549955309c49f5eef77838a85e5"),
|
962
|
+
value: 'LoadMore'
|
963
|
+
}].filter(function (i) {
|
1162
964
|
return i;
|
1163
|
-
})
|
1164
|
-
|
1165
|
-
|
965
|
+
}),
|
966
|
+
pipeIn: function (value, form) {
|
967
|
+
var pg = findObj([].concat(form.data.headerToolbar).concat(form.data.footerToolbar), function (item) {
|
968
|
+
return item && ['Pagination', 'LoadMore'].includes(item.behavior);
|
1166
969
|
});
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
970
|
+
return (pg === null || pg === void 0 ? void 0 : pg.behavior) || 'none';
|
971
|
+
},
|
972
|
+
onChange: function (value, oldValue, model, form) {
|
973
|
+
var schema = cloneDeep(form.data);
|
974
|
+
var region = [].concat(schema.headerToolbar).concat(schema.footerToolbar);
|
975
|
+
if (value === 'none') {
|
976
|
+
deepRemove(region, function (item) {
|
977
|
+
return item && ['Pagination', 'LoadMore'].includes(item.behavior);
|
978
|
+
});
|
979
|
+
} else {
|
980
|
+
var remove_1;
|
981
|
+
var content = void 0;
|
982
|
+
if (value === 'Pagination') {
|
983
|
+
remove_1 = 'LoadMore';
|
984
|
+
content = {
|
985
|
+
type: 'pagination',
|
986
|
+
behavior: value,
|
987
|
+
layout: ['total', 'perPage', 'pager', 'go']
|
988
|
+
};
|
989
|
+
} else {
|
990
|
+
remove_1 = 'Pagination';
|
991
|
+
content = {
|
992
|
+
type: 'button',
|
993
|
+
behavior: value,
|
994
|
+
label: i18n("77281549955309c49f5eef77838a85e5"),
|
995
|
+
onEvent: {
|
996
|
+
click: {
|
997
|
+
actions: [{
|
998
|
+
actionType: 'loadMore',
|
999
|
+
componentId: schema.id
|
1000
|
+
}]
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
};
|
1004
|
+
}
|
1005
|
+
deepRemove(region, function (item) {
|
1006
|
+
return item && item.behavior === remove_1;
|
1007
|
+
});
|
1008
|
+
_this.addFeatToToolbar(schema, content, 'footer', 'right');
|
1009
|
+
}
|
1010
|
+
form.setValues(schema);
|
1011
|
+
return undefined;
|
1012
|
+
}
|
1013
|
+
}, getSchemaTpl('switch', {
|
1014
|
+
label: tipedLabel(i18n("16b8ff2b147382be4cf8654f829df904"), i18n("d2e20bb1e977f9571a9e2d1b39a7ff10")),
|
1015
|
+
name: ''
|
1016
|
+
})]
|
1017
|
+
}]);
|
1018
|
+
(_a = tab.body[0].body).splice.apply(_a, __spreadArray([1, 0], __read(moreCollapse.body), false));
|
1019
|
+
// 让折叠器默认都展开
|
1020
|
+
(_b = tab.body[0].activeKey).push.apply(_b, __spreadArray([], __read(moreCollapse.activeKey), false));
|
1021
|
+
}
|
1022
|
+
});
|
1023
|
+
};
|
1024
|
+
CRUDPlugin.prototype.getScaffoldFeatureTab = function () {
|
1025
|
+
var _this = this;
|
1026
|
+
var generator = function (feat, featGroup) {
|
1027
|
+
return _this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
|
1028
|
+
if (!builder.features.includes(feat.value)) {
|
1029
|
+
return null;
|
1030
|
+
}
|
1031
|
+
var content = _this.makeFeatSetting(feat, builder, true);
|
1032
|
+
if (!content || content.length === 0) {
|
1033
|
+
return null;
|
1034
|
+
}
|
1035
|
+
var isFeatOpened = featGroup ? "data['".concat(featGroup, "'] && ~data['").concat(featGroup, "'].indexOf('").concat(feat.value, "')") : true;
|
1036
|
+
return {
|
1037
|
+
title: feat.label,
|
1038
|
+
visibleOn: "(!data.dsType || data.dsType === '".concat(builderName, "') && ").concat(isFeatOpened),
|
1039
|
+
body: content.filter(function (i) {
|
1040
|
+
return i;
|
1041
|
+
}).map(function (formItem) {
|
1042
|
+
return __assign(__assign({}, formItem), {
|
1043
|
+
mode: 'normal'
|
1044
|
+
});
|
1045
|
+
})
|
1046
|
+
};
|
1183
1047
|
});
|
1184
|
-
}
|
1185
|
-
|
1048
|
+
};
|
1049
|
+
return flattenDeep([generator({
|
1050
|
+
label: i18n("46a0f3086dce242abe54e48bd86e0394"),
|
1051
|
+
value: 'List',
|
1052
|
+
resolveSchema: function () {}
|
1053
|
+
}), Tools.map(function (item) {
|
1054
|
+
return generator(item, 'tools');
|
1055
|
+
}), FilterTypes.map(function (item) {
|
1056
|
+
return generator(item, 'filters');
|
1057
|
+
}), DataOperators.map(function (item) {
|
1058
|
+
return generator(item, 'operators');
|
1059
|
+
})]).filter(function (i) {
|
1060
|
+
return i;
|
1061
|
+
});
|
1062
|
+
};
|
1186
1063
|
/** 将数据资源和数据操作进行填充 */
|
1187
|
-
|
1188
|
-
enumerable: false,
|
1189
|
-
configurable: true,
|
1190
|
-
writable: true,
|
1191
|
-
value: function (setting, schema, builder) {}
|
1192
|
-
});
|
1064
|
+
CRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {};
|
1193
1065
|
Object.defineProperty(CRUDPlugin.prototype, "scaffoldForm", {
|
1194
1066
|
get: function () {
|
1195
1067
|
var _this = this;
|
@@ -1218,7 +1090,7 @@ var CRUDPlugin = /** @class */function (_super) {
|
|
1218
1090
|
}
|
1219
1091
|
return value;
|
1220
1092
|
}
|
1221
|
-
})], this.dsBuilderMgr.collectFromBuilders(function (builder, builderFlag) {
|
1093
|
+
})], __read(this.dsBuilderMgr.collectFromBuilders(function (builder, builderFlag) {
|
1222
1094
|
return {
|
1223
1095
|
type: 'container',
|
1224
1096
|
visibleOn: "dsType == null || dsType === '".concat(builderFlag, "'"),
|
@@ -1228,10 +1100,10 @@ var CRUDPlugin = /** @class */function (_super) {
|
|
1228
1100
|
inCrud: true
|
1229
1101
|
})])
|
1230
1102
|
};
|
1231
|
-
}),
|
1103
|
+
})), false)
|
1232
1104
|
}, {
|
1233
1105
|
title: i18n("c2f1f9254c245976e346377515c2e578"),
|
1234
|
-
body: __spreadArray(__spreadArray([], this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
|
1106
|
+
body: __spreadArray(__spreadArray([], __read(this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
|
1235
1107
|
var check = function (item) {
|
1236
1108
|
return DSFeature[item.value] == null || builder.features.includes(item.value);
|
1237
1109
|
};
|
@@ -1268,7 +1140,7 @@ var CRUDPlugin = /** @class */function (_super) {
|
|
1268
1140
|
type: 'container'
|
1269
1141
|
}]
|
1270
1142
|
};
|
1271
|
-
}),
|
1143
|
+
})), false), [{
|
1272
1144
|
type: 'tabs',
|
1273
1145
|
tabsMode: 'vertical',
|
1274
1146
|
className: 'ae-Scaffold-Modal-Tabs',
|
@@ -1339,111 +1211,96 @@ var CRUDPlugin = /** @class */function (_super) {
|
|
1339
1211
|
enumerable: false,
|
1340
1212
|
configurable: true
|
1341
1213
|
});
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
var renderer = context.renderer,
|
1348
|
-
schema = context.schema;
|
1349
|
-
if (this.scaffold && renderer.name === 'crud2' && schema.mode === this.scaffold.mode) {
|
1350
|
-
return _super.prototype.getRendererInfo.call(this, context);
|
1351
|
-
}
|
1214
|
+
CRUDPlugin.prototype.getRendererInfo = function (context) {
|
1215
|
+
var renderer = context.renderer,
|
1216
|
+
schema = context.schema;
|
1217
|
+
if (this.scaffold && renderer.name === 'crud2' && schema.mode === this.scaffold.mode) {
|
1218
|
+
return _super.prototype.getRendererInfo.call(this, context);
|
1352
1219
|
}
|
1353
|
-
}
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
case 1:
|
1376
|
-
fields = _d.sent();
|
1377
|
-
if (fields) {
|
1378
|
-
items = {
|
1379
|
-
type: 'object',
|
1380
|
-
properties: fromPairs(fields.map(function (field) {
|
1381
|
-
return [field.value, {
|
1382
|
-
type: field.valueType || 'string',
|
1383
|
-
title: field.label
|
1384
|
-
}];
|
1385
|
-
}))
|
1386
|
-
};
|
1387
|
-
}
|
1388
|
-
_d.label = 2;
|
1389
|
-
case 2:
|
1390
|
-
if (!(items == null)) return [3 /*break*/, 4];
|
1391
|
-
return [4 /*yield*/, (_b = child === null || child === void 0 ? void 0 : (_a = child.info.plugin).buildDataSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, child, region)];
|
1392
|
-
case 3:
|
1393
|
-
childDataSchema = _d.sent();
|
1394
|
-
items = (_c = childDataSchema === null || childDataSchema === void 0 ? void 0 : childDataSchema.properties) === null || _c === void 0 ? void 0 : _c.items;
|
1395
|
-
_d.label = 4;
|
1396
|
-
case 4:
|
1397
|
-
schema = {
|
1398
|
-
$id: 'crud2',
|
1220
|
+
};
|
1221
|
+
CRUDPlugin.prototype.buildDataSchemas = function (node, region) {
|
1222
|
+
var _a, _b, _c;
|
1223
|
+
return __awaiter(this, void 0, void 0, function () {
|
1224
|
+
var child, items, builder, fields, childDataSchema, schema;
|
1225
|
+
return __generator(this, function (_d) {
|
1226
|
+
switch (_d.label) {
|
1227
|
+
case 0:
|
1228
|
+
child = node.children.find(function (item) {
|
1229
|
+
return !!~['table2', 'cards', 'list'].indexOf(item.type);
|
1230
|
+
});
|
1231
|
+
builder = this.dsBuilderMgr.resolveBuilderBySchema(node.schema, 'api');
|
1232
|
+
if (!(builder && node.schema.api)) return [3 /*break*/, 2];
|
1233
|
+
return [4 /*yield*/, builder.getContextFileds({
|
1234
|
+
schema: node.schema,
|
1235
|
+
sourceKey: 'api',
|
1236
|
+
feat: 'List'
|
1237
|
+
})];
|
1238
|
+
case 1:
|
1239
|
+
fields = _d.sent();
|
1240
|
+
if (fields) {
|
1241
|
+
items = {
|
1399
1242
|
type: 'object',
|
1400
|
-
properties:
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
}),
|
1407
|
-
unSelectedItems: __assign(__assign({}, items), {
|
1408
|
-
title: i18n("9c9153c49491c381dc2adb2c36fccb04")
|
1409
|
-
}),
|
1410
|
-
page: {
|
1411
|
-
type: 'number',
|
1412
|
-
title: i18n("9a4fe969f1066e197fd2369a44d879ac")
|
1413
|
-
},
|
1414
|
-
total: {
|
1415
|
-
type: 'number',
|
1416
|
-
title: i18n("a7f33a2d99056edcdaced5c8841a9bcb")
|
1417
|
-
}
|
1418
|
-
})
|
1243
|
+
properties: fromPairs(fields.map(function (field) {
|
1244
|
+
return [field.value, {
|
1245
|
+
type: field.valueType || 'string',
|
1246
|
+
title: field.label
|
1247
|
+
}];
|
1248
|
+
}))
|
1419
1249
|
};
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1250
|
+
}
|
1251
|
+
_d.label = 2;
|
1252
|
+
case 2:
|
1253
|
+
if (!(items == null)) return [3 /*break*/, 4];
|
1254
|
+
return [4 /*yield*/, (_b = child === null || child === void 0 ? void 0 : (_a = child.info.plugin).buildDataSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, child, region)];
|
1255
|
+
case 3:
|
1256
|
+
childDataSchema = _d.sent();
|
1257
|
+
items = (_c = childDataSchema === null || childDataSchema === void 0 ? void 0 : childDataSchema.properties) === null || _c === void 0 ? void 0 : _c.items;
|
1258
|
+
_d.label = 4;
|
1259
|
+
case 4:
|
1260
|
+
schema = {
|
1261
|
+
$id: 'crud2',
|
1262
|
+
type: 'object',
|
1263
|
+
properties: __assign(__assign({}, items.properties), {
|
1264
|
+
items: __assign(__assign({}, items), {
|
1265
|
+
title: i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e")
|
1266
|
+
}),
|
1267
|
+
selectedItems: __assign(__assign({}, items), {
|
1268
|
+
title: i18n("2c77cfaef73ce2e81131861e9c6d670e")
|
1269
|
+
}),
|
1270
|
+
unSelectedItems: __assign(__assign({}, items), {
|
1271
|
+
title: i18n("9c9153c49491c381dc2adb2c36fccb04")
|
1272
|
+
}),
|
1273
|
+
page: {
|
1274
|
+
type: 'number',
|
1275
|
+
title: i18n("9a4fe969f1066e197fd2369a44d879ac")
|
1276
|
+
},
|
1277
|
+
total: {
|
1278
|
+
type: 'number',
|
1279
|
+
title: i18n("a7f33a2d99056edcdaced5c8841a9bcb")
|
1280
|
+
}
|
1281
|
+
})
|
1282
|
+
};
|
1283
|
+
return [2 /*return*/, schema];
|
1284
|
+
}
|
1423
1285
|
});
|
1424
|
-
}
|
1425
|
-
}
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
feat: 'List'
|
1440
|
-
}, node)];
|
1441
|
-
}
|
1442
|
-
return [2 /*return*/];
|
1443
|
-
});
|
1286
|
+
});
|
1287
|
+
};
|
1288
|
+
CRUDPlugin.prototype.getAvailableContextFields = function (scopeNode, node, region) {
|
1289
|
+
return __awaiter(this, void 0, void 0, function () {
|
1290
|
+
var builder;
|
1291
|
+
return __generator(this, function (_a) {
|
1292
|
+
builder = this.dsBuilderMgr.resolveBuilderBySchema(scopeNode.schema, 'api');
|
1293
|
+
if (builder && scopeNode.schema.api) {
|
1294
|
+
return [2 /*return*/, builder.getAvailableContextFileds({
|
1295
|
+
schema: scopeNode.schema,
|
1296
|
+
sourceKey: 'api',
|
1297
|
+
feat: 'List'
|
1298
|
+
}, node)];
|
1299
|
+
}
|
1300
|
+
return [2 /*return*/];
|
1444
1301
|
});
|
1445
|
-
}
|
1446
|
-
}
|
1302
|
+
});
|
1303
|
+
};
|
1447
1304
|
|
1448
1305
|
return CRUDPlugin;
|
1449
1306
|
}(BasePlugin);
|
@@ -1452,95 +1309,54 @@ var TableCRUDPlugin = /** @class */function (_super) {
|
|
1452
1309
|
function TableCRUDPlugin() {
|
1453
1310
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
1454
1311
|
// 组件名称
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
configurable: true,
|
1470
|
-
writable: true,
|
1471
|
-
value: i18n("7a9f1ec32752de8b69ef21138970f64d")
|
1472
|
-
});
|
1473
|
-
Object.defineProperty(_this, "order", {
|
1474
|
-
enumerable: true,
|
1475
|
-
configurable: true,
|
1476
|
-
writable: true,
|
1477
|
-
value: -1000
|
1478
|
-
});
|
1479
|
-
Object.defineProperty(_this, "icon", {
|
1480
|
-
enumerable: true,
|
1481
|
-
configurable: true,
|
1482
|
-
writable: true,
|
1483
|
-
value: 'fa fa-table'
|
1484
|
-
});
|
1485
|
-
Object.defineProperty(_this, "scaffold", {
|
1486
|
-
enumerable: true,
|
1487
|
-
configurable: true,
|
1488
|
-
writable: true,
|
1489
|
-
value: {
|
1490
|
-
type: 'crud2',
|
1491
|
-
mode: 'table2',
|
1492
|
-
columns: [{
|
1493
|
-
name: 'id',
|
1494
|
-
title: 'ID',
|
1495
|
-
type: 'container',
|
1496
|
-
body: [{
|
1497
|
-
type: 'text'
|
1498
|
-
}]
|
1499
|
-
}, {
|
1500
|
-
name: 'engine',
|
1501
|
-
title: i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),
|
1502
|
-
type: 'container',
|
1503
|
-
body: [{
|
1504
|
-
type: 'text'
|
1505
|
-
}]
|
1312
|
+
_this.name = i18n("b339aa87104709397ba68e7ebbc6e5ba");
|
1313
|
+
_this.isBaseComponent = true;
|
1314
|
+
_this.description = i18n("7a9f1ec32752de8b69ef21138970f64d");
|
1315
|
+
_this.order = -1000;
|
1316
|
+
_this.icon = 'fa fa-table';
|
1317
|
+
_this.scaffold = {
|
1318
|
+
type: 'crud2',
|
1319
|
+
mode: 'table2',
|
1320
|
+
columns: [{
|
1321
|
+
name: 'id',
|
1322
|
+
title: 'ID',
|
1323
|
+
type: 'container',
|
1324
|
+
body: [{
|
1325
|
+
type: 'text'
|
1506
1326
|
}]
|
1507
|
-
}
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1327
|
+
}, {
|
1328
|
+
name: 'engine',
|
1329
|
+
title: i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),
|
1330
|
+
type: 'container',
|
1331
|
+
body: [{
|
1332
|
+
type: 'text'
|
1333
|
+
}]
|
1334
|
+
}]
|
1335
|
+
};
|
1515
1336
|
return _this;
|
1516
1337
|
}
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1338
|
+
TableCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
|
1339
|
+
var _a;
|
1340
|
+
builder.resolveTableSchema({
|
1341
|
+
schema: schema,
|
1342
|
+
setting: setting,
|
1343
|
+
inCrud: true
|
1344
|
+
});
|
1345
|
+
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
|
1346
|
+
var operators_1 = [];
|
1347
|
+
DataOperators.forEach(function (feat) {
|
1348
|
+
var _a;
|
1349
|
+
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
|
1350
|
+
operators_1.push(feat.resolveSchema(setting, builder));
|
1351
|
+
}
|
1352
|
+
});
|
1353
|
+
schema.columns.push({
|
1354
|
+
type: 'operation',
|
1355
|
+
title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
|
1356
|
+
buttons: operators_1
|
1527
1357
|
});
|
1528
|
-
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
|
1529
|
-
var operators_1 = [];
|
1530
|
-
DataOperators.forEach(function (feat) {
|
1531
|
-
var _a;
|
1532
|
-
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
|
1533
|
-
operators_1.push(feat.resolveSchema(setting, builder));
|
1534
|
-
}
|
1535
|
-
});
|
1536
|
-
schema.columns.push({
|
1537
|
-
type: 'operation',
|
1538
|
-
title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
|
1539
|
-
buttons: operators_1
|
1540
|
-
});
|
1541
|
-
}
|
1542
1358
|
}
|
1543
|
-
}
|
1359
|
+
};
|
1544
1360
|
return TableCRUDPlugin;
|
1545
1361
|
}(CRUDPlugin);
|
1546
1362
|
var CardsCRUDPlugin = /** @class */function (_super) {
|
@@ -1548,159 +1364,114 @@ var CardsCRUDPlugin = /** @class */function (_super) {
|
|
1548
1364
|
function CardsCRUDPlugin() {
|
1549
1365
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
1550
1366
|
// 组件名称
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
Object.defineProperty(_this, "description", {
|
1564
|
-
enumerable: true,
|
1565
|
-
configurable: true,
|
1566
|
-
writable: true,
|
1567
|
-
value: i18n("a0c35361a003527d123cb581f5c68f4b")
|
1568
|
-
});
|
1569
|
-
Object.defineProperty(_this, "order", {
|
1570
|
-
enumerable: true,
|
1571
|
-
configurable: true,
|
1572
|
-
writable: true,
|
1573
|
-
value: -1000
|
1574
|
-
});
|
1575
|
-
Object.defineProperty(_this, "icon", {
|
1576
|
-
enumerable: true,
|
1577
|
-
configurable: true,
|
1578
|
-
writable: true,
|
1579
|
-
value: 'fa fa-table'
|
1580
|
-
});
|
1581
|
-
Object.defineProperty(_this, "scaffold", {
|
1582
|
-
enumerable: true,
|
1583
|
-
configurable: true,
|
1584
|
-
writable: true,
|
1585
|
-
value: {
|
1586
|
-
type: 'crud2',
|
1587
|
-
mode: 'cards',
|
1588
|
-
card: {
|
1589
|
-
type: 'card2',
|
1367
|
+
_this.name = i18n("093c340f7e1fbde1928ca56b5c7f9cc4");
|
1368
|
+
_this.isBaseComponent = true;
|
1369
|
+
_this.description = i18n("a0c35361a003527d123cb581f5c68f4b");
|
1370
|
+
_this.order = -1000;
|
1371
|
+
_this.icon = 'fa fa-table';
|
1372
|
+
_this.scaffold = {
|
1373
|
+
type: 'crud2',
|
1374
|
+
mode: 'cards',
|
1375
|
+
card: {
|
1376
|
+
type: 'card2',
|
1377
|
+
body: [{
|
1378
|
+
type: 'container',
|
1590
1379
|
body: [{
|
1591
|
-
type: '
|
1380
|
+
type: 'tpl',
|
1381
|
+
tpl: i18n("32c65d8d7431e76029678ec7bb73a5ab"),
|
1382
|
+
inline: false,
|
1383
|
+
style: {
|
1384
|
+
marginTop: '0',
|
1385
|
+
marginBottom: '0',
|
1386
|
+
paddingTop: '',
|
1387
|
+
paddingBottom: ''
|
1388
|
+
},
|
1389
|
+
wrapperComponent: 'h2'
|
1390
|
+
}, {
|
1391
|
+
type: 'form',
|
1592
1392
|
body: [{
|
1593
|
-
type: 'tpl',
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
|
1606
|
-
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
// }
|
1626
|
-
]
|
1627
|
-
// style: {
|
1628
|
-
// borderStyle: 'solid',
|
1629
|
-
// borderColor: '#ebebeb',
|
1630
|
-
// borderWidth: '1px',
|
1631
|
-
// 'borderRadius': '5px',
|
1632
|
-
// 'paddingTop': '10px',
|
1633
|
-
// 'paddingRight': '10px',
|
1634
|
-
// 'paddingBottom': '0',
|
1635
|
-
// 'paddingLeft': '10px'
|
1636
|
-
// }
|
1637
|
-
}]
|
1638
|
-
}
|
1393
|
+
type: 'static-tpl',
|
1394
|
+
label: i18n("9caecd931b956381e0763d05aa42835c"),
|
1395
|
+
tpl: i18n("2d711b09bd0db0ad240cc83b30dd8014")
|
1396
|
+
}]
|
1397
|
+
}, {
|
1398
|
+
type: 'divider'
|
1399
|
+
}, {
|
1400
|
+
type: 'button-group'
|
1401
|
+
}
|
1402
|
+
// {
|
1403
|
+
// type: 'tpl',
|
1404
|
+
// tpl: '副标题内容',
|
1405
|
+
// inline: false,
|
1406
|
+
// wrapperComponent: '',
|
1407
|
+
// style: {
|
1408
|
+
// color: '#9b9b9b',
|
1409
|
+
// marginTop: '0',
|
1410
|
+
// marginBottom: '0'
|
1411
|
+
// }
|
1412
|
+
// }
|
1413
|
+
]
|
1414
|
+
// style: {
|
1415
|
+
// borderStyle: 'solid',
|
1416
|
+
// borderColor: '#ebebeb',
|
1417
|
+
// borderWidth: '1px',
|
1418
|
+
// 'borderRadius': '5px',
|
1419
|
+
// 'paddingTop': '10px',
|
1420
|
+
// 'paddingRight': '10px',
|
1421
|
+
// 'paddingBottom': '0',
|
1422
|
+
// 'paddingLeft': '10px'
|
1423
|
+
// }
|
1424
|
+
}]
|
1639
1425
|
}
|
1640
|
-
}
|
1426
|
+
};
|
1641
1427
|
|
1642
1428
|
return _this;
|
1643
1429
|
}
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1430
|
+
CardsCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
|
1431
|
+
var _a;
|
1432
|
+
var fields = setting.listFields;
|
1433
|
+
if (!fields || !fields.length) {
|
1434
|
+
return;
|
1435
|
+
}
|
1436
|
+
schema.card.body[0].body = builder.resolveViewSchema({
|
1437
|
+
setting: setting,
|
1438
|
+
feat: 'List'
|
1439
|
+
});
|
1440
|
+
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
|
1441
|
+
var operators_2 = [];
|
1442
|
+
DataOperators.forEach(function (feat) {
|
1443
|
+
var _a;
|
1444
|
+
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
|
1445
|
+
operators_2.push(feat.resolveSchema(setting, builder));
|
1446
|
+
}
|
1447
|
+
});
|
1448
|
+
schema.card.body.push({
|
1449
|
+
type: 'button-group',
|
1450
|
+
buttons: operators_2
|
1657
1451
|
});
|
1658
|
-
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
|
1659
|
-
var operators_2 = [];
|
1660
|
-
DataOperators.forEach(function (feat) {
|
1661
|
-
var _a;
|
1662
|
-
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
|
1663
|
-
operators_2.push(feat.resolveSchema(setting, builder));
|
1664
|
-
}
|
1665
|
-
});
|
1666
|
-
schema.card.body.push({
|
1667
|
-
type: 'button-group',
|
1668
|
-
buttons: operators_2
|
1669
|
-
});
|
1670
|
-
}
|
1671
1452
|
}
|
1672
|
-
}
|
1453
|
+
};
|
1673
1454
|
/**填充一个数据操作 */
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1455
|
+
CardsCRUDPlugin.prototype.fillOperatorSchema = function (schema, content) {
|
1456
|
+
var col = schema.columns.find(function (item) {
|
1457
|
+
return item.type === 'operators';
|
1458
|
+
});
|
1459
|
+
if (!col) {
|
1460
|
+
schema.columns.push({
|
1461
|
+
type: 'operation',
|
1462
|
+
title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
|
1463
|
+
buttons: [content]
|
1681
1464
|
});
|
1682
|
-
|
1683
|
-
schema.columns.push({
|
1684
|
-
type: 'operation',
|
1685
|
-
title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
|
1686
|
-
buttons: [content]
|
1687
|
-
});
|
1688
|
-
return;
|
1689
|
-
}
|
1690
|
-
col.buttons.push(content);
|
1465
|
+
return;
|
1691
1466
|
}
|
1692
|
-
|
1467
|
+
col.buttons.push(content);
|
1468
|
+
};
|
1693
1469
|
/** 判断内容区是否有填充数据操作 */
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
return findObj(schema.card.body, function (item) {
|
1700
|
-
return item.behavior === feat;
|
1701
|
-
});
|
1702
|
-
}
|
1703
|
-
});
|
1470
|
+
CardsCRUDPlugin.prototype.existOperator = function (feat, schema) {
|
1471
|
+
return findObj(schema.card.body, function (item) {
|
1472
|
+
return item.behavior === feat;
|
1473
|
+
});
|
1474
|
+
};
|
1704
1475
|
return CardsCRUDPlugin;
|
1705
1476
|
}(CRUDPlugin);
|
1706
1477
|
var ListCRUDPlugin = /** @class */function (_super) {
|
@@ -1708,114 +1479,74 @@ var ListCRUDPlugin = /** @class */function (_super) {
|
|
1708
1479
|
function ListCRUDPlugin() {
|
1709
1480
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
1710
1481
|
// 组件名称
|
1711
|
-
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
});
|
1723
|
-
Object.defineProperty(_this, "description", {
|
1724
|
-
enumerable: true,
|
1725
|
-
configurable: true,
|
1726
|
-
writable: true,
|
1727
|
-
value: i18n("860827796ce2fa94e9ee39e53f011ec0")
|
1728
|
-
});
|
1729
|
-
Object.defineProperty(_this, "order", {
|
1730
|
-
enumerable: true,
|
1731
|
-
configurable: true,
|
1732
|
-
writable: true,
|
1733
|
-
value: -1000
|
1734
|
-
});
|
1735
|
-
Object.defineProperty(_this, "icon", {
|
1736
|
-
enumerable: true,
|
1737
|
-
configurable: true,
|
1738
|
-
writable: true,
|
1739
|
-
value: 'fa fa-align-justify'
|
1740
|
-
});
|
1741
|
-
Object.defineProperty(_this, "scaffold", {
|
1742
|
-
enumerable: true,
|
1743
|
-
configurable: true,
|
1744
|
-
writable: true,
|
1745
|
-
value: {
|
1746
|
-
type: 'crud2',
|
1747
|
-
mode: 'list',
|
1748
|
-
listItem: {
|
1482
|
+
_this.name = i18n("3712972d84adf48acbd6ad24b4d75ad0");
|
1483
|
+
_this.isBaseComponent = true;
|
1484
|
+
_this.description = i18n("860827796ce2fa94e9ee39e53f011ec0");
|
1485
|
+
_this.order = -1000;
|
1486
|
+
_this.icon = 'fa fa-align-justify';
|
1487
|
+
_this.scaffold = {
|
1488
|
+
type: 'crud2',
|
1489
|
+
mode: 'list',
|
1490
|
+
listItem: {
|
1491
|
+
body: [{
|
1492
|
+
type: 'container',
|
1749
1493
|
body: [{
|
1750
|
-
type: '
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
marginBottom: '0'
|
1771
|
-
}
|
1772
|
-
}]
|
1494
|
+
type: 'tpl',
|
1495
|
+
tpl: i18n("32c65d8d7431e76029678ec7bb73a5ab"),
|
1496
|
+
inline: false,
|
1497
|
+
style: {
|
1498
|
+
marginTop: '0',
|
1499
|
+
marginBottom: '0',
|
1500
|
+
paddingTop: '',
|
1501
|
+
paddingBottom: ''
|
1502
|
+
},
|
1503
|
+
wrapperComponent: 'h2'
|
1504
|
+
}, {
|
1505
|
+
type: 'tpl',
|
1506
|
+
tpl: i18n("629645f147f378869fe9d7ee2bbc2857"),
|
1507
|
+
inline: false,
|
1508
|
+
wrapperComponent: '',
|
1509
|
+
style: {
|
1510
|
+
color: '#9b9b9b',
|
1511
|
+
marginTop: '0',
|
1512
|
+
marginBottom: '0'
|
1513
|
+
}
|
1773
1514
|
}]
|
1774
|
-
}
|
1515
|
+
}]
|
1775
1516
|
}
|
1776
|
-
}
|
1517
|
+
};
|
1777
1518
|
return _this;
|
1778
1519
|
}
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
var _a;
|
1785
|
-
var fields = setting.listFields;
|
1786
|
-
if (!fields || !fields.length) {
|
1787
|
-
return;
|
1788
|
-
}
|
1789
|
-
schema.listItem.body = builder.resolveViewSchema({
|
1790
|
-
setting: setting,
|
1791
|
-
feat: 'List'
|
1792
|
-
});
|
1793
|
-
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
|
1794
|
-
var operators_3 = [];
|
1795
|
-
DataOperators.forEach(function (feat) {
|
1796
|
-
var _a;
|
1797
|
-
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
|
1798
|
-
operators_3.push(feat.resolveSchema(setting, builder));
|
1799
|
-
}
|
1800
|
-
});
|
1801
|
-
schema.listItem.body.push({
|
1802
|
-
type: 'button-group',
|
1803
|
-
buttons: operators_3
|
1804
|
-
});
|
1805
|
-
}
|
1520
|
+
ListCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
|
1521
|
+
var _a;
|
1522
|
+
var fields = setting.listFields;
|
1523
|
+
if (!fields || !fields.length) {
|
1524
|
+
return;
|
1806
1525
|
}
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1526
|
+
schema.listItem.body = builder.resolveViewSchema({
|
1527
|
+
setting: setting,
|
1528
|
+
feat: 'List'
|
1529
|
+
});
|
1530
|
+
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
|
1531
|
+
var operators_3 = [];
|
1532
|
+
DataOperators.forEach(function (feat) {
|
1533
|
+
var _a;
|
1534
|
+
if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
|
1535
|
+
operators_3.push(feat.resolveSchema(setting, builder));
|
1536
|
+
}
|
1537
|
+
});
|
1538
|
+
schema.listItem.body.push({
|
1539
|
+
type: 'button-group',
|
1540
|
+
buttons: operators_3
|
1816
1541
|
});
|
1817
1542
|
}
|
1818
|
-
}
|
1543
|
+
};
|
1544
|
+
/** 判断内容区是否有填充数据操作 */
|
1545
|
+
ListCRUDPlugin.prototype.existOperator = function (feat, schema) {
|
1546
|
+
return findObj(schema.listItem.body, function (item) {
|
1547
|
+
return item.behavior === feat;
|
1548
|
+
});
|
1549
|
+
};
|
1819
1550
|
return ListCRUDPlugin;
|
1820
1551
|
}(CRUDPlugin);
|
1821
1552
|
registerEditorPlugin(TableCRUDPlugin);
|