amis-editor 5.2.0-beta.2 → 5.2.1-beta.15
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/component/BaseControl.d.ts +5 -810
- package/esm/component/BaseControl.js +33 -43
- package/esm/component/InputComponentName.js +1 -1
- package/esm/component/TableViewEditor.js +547 -454
- package/esm/icons/btn/btn-group.svg.js +1 -3
- package/esm/icons/btn/btn-select.svg.js +1 -3
- package/esm/icons/btn/btn-toolbar.svg.js +1 -3
- package/esm/icons/btn/button.svg.js +1 -3
- package/esm/icons/btn/dropdown-btn.svg.js +1 -3
- package/esm/icons/container/anchor-nav.svg.js +1 -3
- package/esm/icons/container/collapse.svg.js +1 -3
- package/esm/icons/container/container.svg.js +1 -3
- package/esm/icons/container/flex-container.svg.js +1 -3
- package/esm/icons/container/form-group.svg.js +1 -3
- package/esm/icons/container/grid.svg.js +1 -3
- package/esm/icons/container/iframe.svg.js +1 -3
- package/esm/icons/container/panel.svg.js +1 -3
- package/esm/icons/container/table-view.svg.js +1 -3
- package/esm/icons/container/tabs.svg.js +1 -3
- package/esm/icons/container/tooltip-wrapper.svg.js +1 -3
- package/esm/icons/container/web-component.svg.js +1 -3
- package/esm/icons/feat/audio.svg.js +1 -3
- package/esm/icons/feat/custom.svg.js +1 -3
- package/esm/icons/feat/each.svg.js +1 -3
- package/esm/icons/feat/form.svg.js +1 -3
- package/esm/icons/feat/nav.svg.js +1 -3
- package/esm/icons/feat/qrcode.svg.js +1 -3
- package/esm/icons/feat/service.svg.js +1 -3
- package/esm/icons/feat/table.svg.js +1 -3
- package/esm/icons/feat/tasks.svg.js +1 -3
- package/esm/icons/feat/video.svg.js +1 -3
- package/esm/icons/feat/wizard.svg.js +1 -3
- package/esm/icons/form/chained-select.svg.js +1 -3
- package/esm/icons/form/checkbox.svg.js +1 -3
- package/esm/icons/form/checkboxes.svg.js +1 -3
- package/esm/icons/form/combo.svg.js +1 -3
- package/esm/icons/form/condition-builder.svg.js +1 -3
- package/esm/icons/form/diff-editor.svg.js +1 -3
- package/esm/icons/form/editor.svg.js +1 -3
- package/esm/icons/form/formula.svg.js +1 -3
- package/esm/icons/form/hidden.svg.js +1 -3
- package/esm/icons/form/input-city.svg.js +1 -3
- package/esm/icons/form/input-color.svg.js +1 -3
- package/esm/icons/form/input-date-range.svg.js +1 -3
- package/esm/icons/form/input-date.svg.js +1 -3
- package/esm/icons/form/input-datetime.svg.js +1 -3
- package/esm/icons/form/input-email.svg.js +1 -3
- package/esm/icons/form/input-excel.svg.js +1 -3
- package/esm/icons/form/input-file.svg.js +1 -3
- package/esm/icons/form/input-group.svg.js +1 -3
- package/esm/icons/form/input-image.svg.js +1 -3
- package/esm/icons/form/input-kv.svg.js +1 -3
- package/esm/icons/form/input-month-range.svg.js +1 -3
- package/esm/icons/form/input-number.svg.js +1 -3
- package/esm/icons/form/input-password.svg.js +1 -3
- package/esm/icons/form/input-quarter-range.svg.js +1 -3
- package/esm/icons/form/input-range.svg.js +1 -3
- package/esm/icons/form/input-rating.svg.js +1 -3
- package/esm/icons/form/input-repeat.svg.js +1 -3
- package/esm/icons/form/input-rich-text.svg.js +1 -3
- package/esm/icons/form/input-tag.svg.js +1 -3
- package/esm/icons/form/input-text.svg.js +1 -3
- package/esm/icons/form/input-time-range.svg.js +1 -3
- package/esm/icons/form/input-time.svg.js +1 -3
- package/esm/icons/form/input-tree.svg.js +1 -3
- package/esm/icons/form/input-url.svg.js +1 -3
- package/esm/icons/form/input-year.svg.js +1 -3
- package/esm/icons/form/inputArray.svg.js +1 -3
- package/esm/icons/form/list-select.svg.js +1 -3
- package/esm/icons/form/location-picker.svg.js +1 -3
- package/esm/icons/form/matrix-checkboxes.svg.js +1 -3
- package/esm/icons/form/month.svg.js +1 -3
- package/esm/icons/form/nested-select.svg.js +1 -3
- package/esm/icons/form/picker.svg.js +1 -3
- package/esm/icons/form/quarter.svg.js +1 -3
- package/esm/icons/form/radios.svg.js +1 -3
- package/esm/icons/form/select.svg.js +1 -3
- package/esm/icons/form/static.svg.js +1 -3
- package/esm/icons/form/sub-form.svg.js +1 -3
- package/esm/icons/form/switch.svg.js +1 -3
- package/esm/icons/form/tabs-transfer.svg.js +1 -3
- package/esm/icons/form/textarea.svg.js +1 -3
- package/esm/icons/form/transfer.svg.js +1 -3
- package/esm/icons/form/tree-select.svg.js +1 -3
- package/esm/icons/form/uuid.svg.js +1 -3
- package/esm/icons/index.js +28 -1
- package/esm/icons/layout/layout-1with2.svg.js +32 -0
- package/esm/icons/layout/layout-2cols.svg.js +32 -0
- package/esm/icons/layout/layout-2row.svg.js +32 -0
- package/esm/icons/layout/layout-2with1.svg.js +33 -0
- package/esm/icons/layout/layout-3cols.svg.js +32 -0
- package/esm/icons/layout/layout-3row.svg.js +33 -0
- package/esm/icons/layout/layout-absolute.svg.js +27 -0
- package/esm/icons/layout/layout-fixed.svg.js +27 -0
- package/esm/icons/layout/layout-full.svg.js +49 -0
- package/esm/icons/layout/layout1-2.svg.js +33 -0
- package/esm/icons/layout/layout2-1.svg.js +33 -0
- package/esm/icons/layout/layout3-1.svg.js +33 -0
- package/esm/icons/layout/layout3-2.svg.js +33 -0
- package/esm/icons/other/divider.svg.js +1 -3
- package/esm/icons/other/property-sheet.svg.js +1 -3
- package/esm/icons/other/tooltip.svg.js +1 -3
- package/esm/icons/show/URL.svg.js +1 -3
- package/esm/icons/show/avatar.svg.js +1 -3
- package/esm/icons/show/breadcrumb.svg.js +1 -3
- package/esm/icons/show/card.svg.js +1 -3
- package/esm/icons/show/cards.svg.js +1 -3
- package/esm/icons/show/carousel.svg.js +1 -3
- package/esm/icons/show/chart.svg.js +1 -3
- package/esm/icons/show/code.svg.js +1 -3
- package/esm/icons/show/date.svg.js +1 -3
- package/esm/icons/show/datetime.svg.js +1 -3
- package/esm/icons/show/image.svg.js +1 -3
- package/esm/icons/show/images.svg.js +1 -3
- package/esm/icons/show/json-view.svg.js +1 -3
- package/esm/icons/show/list.svg.js +1 -3
- package/esm/icons/show/log.svg.js +1 -3
- package/esm/icons/show/mapping.svg.js +1 -3
- package/esm/icons/show/markdown.svg.js +1 -3
- package/esm/icons/show/plain.svg.js +1 -3
- package/esm/icons/show/progress.svg.js +1 -3
- package/esm/icons/show/sparkline.svg.js +1 -3
- package/esm/icons/show/status.svg.js +1 -3
- package/esm/icons/show/steps.svg.js +1 -3
- package/esm/icons/show/time.svg.js +1 -3
- package/esm/index.d.ts +11 -2
- package/esm/index.js +13 -3
- package/esm/locale/en-US.js +315 -102
- package/esm/locale/zh-CN.js +218 -3
- package/esm/plugin/Alert.d.ts +1 -1
- package/esm/plugin/Alert.js +157 -89
- package/esm/plugin/AnchorNav.js +337 -263
- package/esm/plugin/Audio.d.ts +1 -1
- package/esm/plugin/Audio.js +165 -112
- package/esm/plugin/Avatar.d.ts +1 -1
- package/esm/plugin/Avatar.js +301 -238
- package/esm/plugin/Breadcrumb.js +138 -75
- package/esm/plugin/Button.d.ts +1 -1
- package/esm/plugin/Button.js +310 -228
- package/esm/plugin/ButtonGroup.d.ts +1 -1
- package/esm/plugin/ButtonGroup.js +174 -106
- package/esm/plugin/CRUD.d.ts +1 -1
- package/esm/plugin/CRUD.js +1426 -1351
- package/esm/plugin/CRUD2.d.ts +2 -3
- package/esm/plugin/CRUD2.js +1146 -1075
- package/esm/plugin/Card.d.ts +1 -1
- package/esm/plugin/Card.js +284 -208
- package/esm/plugin/Card2.d.ts +2 -1
- package/esm/plugin/Card2.js +139 -74
- package/esm/plugin/Cards.js +302 -234
- package/esm/plugin/Carousel.d.ts +2 -2
- package/esm/plugin/Carousel.js +344 -281
- package/esm/plugin/Chart.d.ts +2 -1
- package/esm/plugin/Chart.js +326 -158
- package/esm/plugin/CodeView.js +104 -44
- package/esm/plugin/Collapse.d.ts +1 -1
- package/esm/plugin/Collapse.js +168 -101
- package/esm/plugin/CollapseGroup.d.ts +1 -1
- package/esm/plugin/CollapseGroup.js +249 -187
- package/esm/plugin/ColumnToggler.d.ts +1 -1
- package/esm/plugin/ColumnToggler.js +140 -87
- package/esm/plugin/Container.d.ts +11 -9
- package/esm/plugin/Container.js +190 -68
- package/esm/plugin/Custom.js +144 -82
- package/esm/plugin/CustomRegion.js +173 -110
- package/esm/plugin/Date.d.ts +1 -1
- package/esm/plugin/Date.js +112 -59
- package/esm/plugin/Datetime.d.ts +0 -1
- package/esm/plugin/Datetime.js +81 -53
- package/esm/plugin/Dialog.d.ts +2 -2
- package/esm/plugin/Dialog.js +230 -179
- package/esm/plugin/Divider.js +82 -32
- package/esm/plugin/Drawer.d.ts +11 -2
- package/esm/plugin/Drawer.js +260 -194
- package/esm/plugin/DropDownButton.js +261 -182
- package/esm/plugin/Each.js +180 -115
- package/esm/plugin/Flex.d.ts +2 -27
- package/esm/plugin/Flex.js +25 -159
- package/esm/plugin/Form/ButtonGroupSelect.d.ts +2 -1
- package/esm/plugin/Form/ButtonGroupSelect.js +205 -126
- package/esm/plugin/Form/ButtonToolbar.d.ts +1 -1
- package/esm/plugin/Form/ButtonToolbar.js +168 -94
- package/esm/plugin/Form/ChainedSelect.d.ts +1 -1
- package/esm/plugin/Form/ChainedSelect.js +209 -130
- package/esm/plugin/Form/Checkbox.d.ts +1 -1
- package/esm/plugin/Form/Checkbox.js +208 -131
- package/esm/plugin/Form/Checkboxes.d.ts +1 -1
- package/esm/plugin/Form/Checkboxes.js +236 -153
- package/esm/plugin/Form/CodeEditor.d.ts +0 -1
- package/esm/plugin/Form/CodeEditor.js +245 -146
- package/esm/plugin/Form/Combo.js +532 -423
- package/esm/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/esm/plugin/Form/ConditionBuilder.js +287 -221
- package/esm/plugin/Form/Control.d.ts +1 -1
- package/esm/plugin/Form/Control.js +130 -63
- package/esm/plugin/Form/DiffEditor.d.ts +0 -1
- package/esm/plugin/Form/DiffEditor.js +253 -151
- package/esm/plugin/Form/FieldSet.d.ts +1 -1
- package/esm/plugin/Form/FieldSet.js +174 -112
- package/esm/plugin/Form/Form.d.ts +1 -1
- package/esm/plugin/Form/Form.js +750 -705
- package/esm/plugin/Form/Formula.d.ts +1 -9
- package/esm/plugin/Form/Formula.js +126 -62
- package/esm/plugin/Form/Group.js +250 -183
- package/esm/plugin/Form/Hidden.js +106 -42
- package/esm/plugin/Form/InputArray.js +233 -157
- package/esm/plugin/Form/InputCity.d.ts +1 -1
- package/esm/plugin/Form/InputCity.js +181 -104
- package/esm/plugin/Form/InputColor.d.ts +1 -1
- package/esm/plugin/Form/InputColor.js +296 -224
- package/esm/plugin/Form/InputDate.d.ts +1 -1
- package/esm/plugin/Form/InputDate.js +299 -189
- package/esm/plugin/Form/InputDateRange.d.ts +1 -1
- package/esm/plugin/Form/InputDateRange.js +386 -265
- package/esm/plugin/Form/InputDateTime.js +93 -33
- package/esm/plugin/Form/InputDateTimeRange.js +99 -34
- package/esm/plugin/Form/InputEmail.js +80 -30
- package/esm/plugin/Form/InputExcel.d.ts +1 -1
- package/esm/plugin/Form/InputExcel.js +164 -91
- package/esm/plugin/Form/InputFile.d.ts +4 -1
- package/esm/plugin/Form/InputFile.js +352 -271
- package/esm/plugin/Form/InputGroup.js +132 -73
- package/esm/plugin/Form/InputImage.d.ts +4 -1
- package/esm/plugin/Form/InputImage.js +385 -303
- package/esm/plugin/Form/InputKV.d.ts +1 -1
- package/esm/plugin/Form/InputKV.js +168 -94
- package/esm/plugin/Form/InputMonth.js +91 -31
- package/esm/plugin/Form/InputMonthRange.js +99 -34
- package/esm/plugin/Form/InputNumber.d.ts +2 -1
- package/esm/plugin/Form/InputNumber.js +288 -201
- package/esm/plugin/Form/InputPassword.js +80 -30
- package/esm/plugin/Form/InputQuarter.js +91 -31
- package/esm/plugin/Form/InputQuarterRange.js +99 -34
- package/esm/plugin/Form/InputRange.d.ts +1 -1
- package/esm/plugin/Form/InputRange.js +316 -237
- package/esm/plugin/Form/InputRating.d.ts +1 -1
- package/esm/plugin/Form/InputRating.js +361 -293
- package/esm/plugin/Form/InputRepeat.js +105 -45
- package/esm/plugin/Form/InputRichText.d.ts +2 -1
- package/esm/plugin/Form/InputRichText.js +211 -152
- package/esm/plugin/Form/InputSubForm.js +225 -157
- package/esm/plugin/Form/InputTable.d.ts +1 -1
- package/esm/plugin/Form/InputTable.js +385 -320
- package/esm/plugin/Form/InputTag.d.ts +1 -1
- package/esm/plugin/Form/InputTag.js +208 -119
- package/esm/plugin/Form/InputText.d.ts +1 -1
- package/esm/plugin/Form/InputText.js +348 -263
- package/esm/plugin/Form/InputTime.js +93 -33
- package/esm/plugin/Form/InputTimeRange.js +99 -34
- package/esm/plugin/Form/InputTree.d.ts +1 -1
- package/esm/plugin/Form/InputTree.js +460 -367
- package/esm/plugin/Form/InputURL.js +86 -31
- package/esm/plugin/Form/InputYear.js +91 -31
- package/esm/plugin/Form/InputYearRange.js +99 -34
- package/esm/plugin/Form/Item.d.ts +1 -1
- package/esm/plugin/Form/Item.js +214 -190
- package/esm/plugin/Form/ListSelect.d.ts +1 -1
- package/esm/plugin/Form/ListSelect.js +174 -96
- package/esm/plugin/Form/LocationPicker.d.ts +1 -1
- package/esm/plugin/Form/LocationPicker.js +115 -57
- package/esm/plugin/Form/MatrixCheckboxes.d.ts +1 -1
- package/esm/plugin/Form/MatrixCheckboxes.js +247 -170
- package/esm/plugin/Form/NestedSelect.d.ts +1 -1
- package/esm/plugin/Form/NestedSelect.js +329 -246
- package/esm/plugin/Form/Picker.js +260 -178
- package/esm/plugin/Form/Radios.d.ts +1 -1
- package/esm/plugin/Form/Radios.js +228 -136
- package/esm/plugin/Form/Select.d.ts +1 -1
- package/esm/plugin/Form/Select.js +333 -228
- package/esm/plugin/Form/Static.d.ts +1 -1
- package/esm/plugin/Form/Static.js +358 -280
- package/esm/plugin/Form/Switch.d.ts +2 -1
- package/esm/plugin/Form/Switch.js +257 -172
- package/esm/plugin/Form/TabsTransfer.d.ts +1 -1
- package/esm/plugin/Form/TabsTransfer.js +316 -238
- package/esm/plugin/Form/Textarea.d.ts +0 -1
- package/esm/plugin/Form/Textarea.js +219 -130
- package/esm/plugin/Form/Transfer.d.ts +1 -1
- package/esm/plugin/Form/Transfer.js +349 -259
- package/esm/plugin/Form/TreeSelect.d.ts +2 -1
- package/esm/plugin/Form/TreeSelect.js +451 -363
- package/esm/plugin/Form/UUID.js +106 -42
- package/esm/plugin/Grid.d.ts +1 -1
- package/esm/plugin/Grid.js +629 -556
- package/esm/plugin/HBox.d.ts +1 -1
- package/esm/plugin/HBox.js +578 -508
- package/esm/plugin/IFrame.d.ts +2 -10
- package/esm/plugin/IFrame.js +127 -64
- package/esm/plugin/Image.d.ts +2 -2
- package/esm/plugin/Image.js +277 -218
- package/esm/plugin/Images.d.ts +3 -3
- package/esm/plugin/Images.js +214 -160
- package/esm/plugin/Json.d.ts +1 -1
- package/esm/plugin/Json.js +111 -53
- package/esm/plugin/Layout/FlexPluginBase.d.ts +40 -0
- package/esm/plugin/Layout/FlexPluginBase.js +327 -0
- package/esm/plugin/Layout/Layout1_2_v4.d.ts +10 -0
- package/esm/plugin/Layout/Layout1_2_v4.js +144 -0
- package/esm/plugin/Layout/Layout_fixed.d.ts +10 -0
- package/esm/plugin/Layout/Layout_fixed.js +76 -0
- package/esm/plugin/Layout/Layout_fixed_bottom.d.ts +10 -0
- package/esm/plugin/Layout/Layout_fixed_bottom.js +83 -0
- package/esm/plugin/Layout/Layout_fixed_top.d.ts +10 -0
- package/esm/plugin/Layout/Layout_fixed_top.js +82 -0
- package/esm/plugin/Layout/Layout_scroll_x.d.ts +10 -0
- package/esm/plugin/Layout/Layout_scroll_x.js +166 -0
- package/esm/plugin/Layout/Layout_scroll_y.d.ts +10 -0
- package/esm/plugin/Layout/Layout_scroll_y.js +154 -0
- package/esm/plugin/Link.js +132 -86
- package/esm/plugin/List.js +279 -208
- package/esm/plugin/ListItem.js +217 -176
- package/esm/plugin/Log.d.ts +1 -1
- package/esm/plugin/Log.js +102 -44
- package/esm/plugin/Mapping.d.ts +1 -1
- package/esm/plugin/Mapping.js +168 -115
- package/esm/plugin/Markdown.d.ts +1 -1
- package/esm/plugin/Markdown.js +98 -40
- package/esm/plugin/Nav.js +202 -139
- package/esm/plugin/Operation.d.ts +1 -1
- package/esm/plugin/Operation.js +116 -59
- package/esm/plugin/Others/Action.js +329 -317
- package/esm/plugin/Others/TableCell.d.ts +1 -1
- package/esm/plugin/Others/TableCell.js +341 -329
- package/esm/plugin/Page.d.ts +2 -3
- package/esm/plugin/Page.js +374 -283
- package/esm/plugin/Pagination.d.ts +2 -1
- package/esm/plugin/Pagination.js +299 -219
- package/esm/plugin/Panel.d.ts +1 -1
- package/esm/plugin/Panel.js +256 -190
- package/esm/plugin/Plain.d.ts +1 -1
- package/esm/plugin/Plain.js +126 -64
- package/esm/plugin/Progress.d.ts +3 -1
- package/esm/plugin/Progress.js +280 -202
- package/esm/plugin/Property.js +163 -103
- package/esm/plugin/QRCode.js +130 -70
- package/esm/plugin/Reset.js +61 -22
- package/esm/plugin/Service.d.ts +1 -1
- package/esm/plugin/Service.js +254 -167
- package/esm/plugin/Sparkline.js +91 -32
- package/esm/plugin/Status.d.ts +1 -1
- package/esm/plugin/Status.js +116 -58
- package/esm/plugin/Steps.js +153 -93
- package/esm/plugin/Submit.js +56 -22
- package/esm/plugin/Table.d.ts +1 -1
- package/esm/plugin/Table.js +595 -522
- package/esm/plugin/{Table-v2.d.ts → Table2.d.ts} +2 -2
- package/esm/plugin/Table2.js +887 -0
- package/{lib/plugin/TableCell-v2.d.ts → esm/plugin/TableCell2.d.ts} +1 -1
- package/esm/plugin/TableCell2.js +485 -0
- package/esm/plugin/TableView.js +648 -599
- package/esm/plugin/Tabs.d.ts +1 -1
- package/esm/plugin/Tabs.js +470 -360
- package/esm/plugin/Tasks.js +246 -186
- package/esm/plugin/Time.d.ts +0 -1
- package/esm/plugin/Time.js +81 -53
- package/esm/plugin/Timeline.d.ts +1 -1
- package/esm/plugin/Timeline.js +165 -92
- package/esm/plugin/TooltipWrapper.d.ts +1 -1
- package/esm/plugin/TooltipWrapper.js +265 -195
- package/esm/plugin/Tpl.d.ts +1 -1
- package/esm/plugin/Tpl.js +127 -62
- package/esm/plugin/Video.d.ts +2 -2
- package/esm/plugin/Video.js +173 -103
- package/esm/plugin/WebComponent.d.ts +1 -1
- package/esm/plugin/WebComponent.js +128 -62
- package/esm/plugin/Wizard.js +751 -659
- package/esm/plugin/Wrapper.d.ts +2 -1
- package/esm/plugin/Wrapper.js +198 -91
- package/esm/renderer/APIControl.d.ts +278 -5068
- package/esm/renderer/APIControl.js +662 -687
- package/esm/renderer/ActionApiControl.d.ts +8 -6384
- package/esm/renderer/BadgeControl.d.ts +2 -2
- package/esm/renderer/BadgeControl.js +263 -250
- package/esm/renderer/DataBindingControl.js +196 -211
- package/esm/renderer/DataMappingControl.js +39 -29
- package/esm/renderer/DataPickerControl.js +50 -35
- package/esm/renderer/DateShortCutControl.d.ts +26 -25
- package/esm/renderer/DateShortCutControl.js +420 -286
- package/esm/renderer/ExpressionFormulaControl.d.ts +45 -0
- package/esm/renderer/ExpressionFormulaControl.js +245 -0
- package/esm/renderer/FeatureControl.d.ts +1 -1
- package/esm/renderer/FeatureControl.js +228 -212
- package/esm/renderer/FormulaControl.d.ts +33 -16
- package/esm/renderer/FormulaControl.js +431 -355
- package/esm/renderer/GoConfigControl.js +30 -34
- package/esm/renderer/OptionControl.d.ts +2 -2
- package/esm/renderer/OptionControl.js +750 -688
- package/esm/renderer/RangePartsControl.d.ts +2 -2
- package/esm/renderer/RangePartsControl.js +320 -326
- package/esm/renderer/StatusControl.d.ts +1 -1
- package/esm/renderer/StatusControl.js +145 -136
- package/esm/renderer/SwitchMoreControl.d.ts +47 -31
- package/esm/renderer/SwitchMoreControl.js +366 -318
- package/esm/renderer/TimelineItemControl.d.ts +3 -83
- package/esm/renderer/TimelineItemControl.js +531 -464
- package/esm/renderer/TransferTableControl.d.ts +2 -4
- package/esm/renderer/TransferTableControl.js +394 -369
- package/esm/renderer/TreeOptionControl.d.ts +1 -1
- package/esm/renderer/TreeOptionControl.js +588 -563
- package/esm/renderer/ValidationControl.d.ts +1 -1
- package/esm/renderer/ValidationControl.js +277 -269
- package/esm/renderer/ValidationItem.d.ts +1 -1
- package/esm/renderer/ValidationItem.js +145 -134
- package/esm/renderer/event-control/action-config-dialog.js +214 -207
- package/esm/renderer/event-control/action-config-panel.js +37 -44
- package/esm/renderer/event-control/actions.js +466 -145
- package/esm/renderer/event-control/comp-action-select.js +37 -27
- package/esm/renderer/event-control/helper.d.ts +19 -19
- package/esm/renderer/event-control/helper.js +231 -221
- package/esm/renderer/event-control/index.d.ts +1 -1
- package/esm/renderer/event-control/index.js +641 -631
- package/esm/renderer/event-control/types.d.ts +1 -0
- package/esm/renderer/style-control/Background.js +64 -116
- package/esm/renderer/style-control/Border.js +27 -38
- package/esm/renderer/style-control/BoxModel.d.ts +1 -1
- package/esm/renderer/style-control/BoxModel.js +11 -4
- package/esm/renderer/style-control/BoxShadow.js +17 -19
- package/esm/renderer/style-control/Display.js +13 -17
- package/esm/renderer/style-control/Font.js +14 -17
- package/esm/renderer/style-control/InsetBoxModel.d.ts +17 -0
- package/esm/renderer/style-control/InsetBoxModel.js +69 -0
- package/esm/renderer/style-control/font-family.js +2 -3
- package/esm/renderer/style-control/transformation.js +1 -1
- package/esm/renderer/style-control/types.d.ts +4 -4
- package/esm/renderer/textarea-formula/FormulaPicker.d.ts +12 -0
- package/esm/renderer/textarea-formula/FormulaPicker.js +37 -0
- package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +67 -0
- package/esm/renderer/textarea-formula/TextareaFormulaControl.js +334 -0
- package/esm/renderer/textarea-formula/plugin.d.ts +32 -0
- package/esm/renderer/textarea-formula/plugin.js +273 -0
- package/esm/renderer/textarea-formula/utils.d.ts +12 -0
- package/esm/renderer/textarea-formula/utils.js +76 -0
- package/esm/tpl/api.js +26 -37
- package/esm/tpl/common.js +192 -114
- package/esm/tpl/horizontal.js +4 -6
- package/esm/tpl/index.d.ts +1 -0
- package/esm/tpl/layout.d.ts +1 -0
- package/esm/tpl/layout.js +708 -0
- package/esm/tpl/options.js +5 -22
- package/esm/tpl/style.js +18 -18
- package/esm/tpl/validations.js +9 -24
- package/esm/util.d.ts +47 -0
- package/esm/util.js +22 -0
- package/esm/validator.d.ts +1 -2
- package/esm/validator.js +11 -24
- package/lib/component/BaseControl.d.ts +5 -810
- package/lib/component/BaseControl.js +32 -42
- package/lib/component/InputComponentName.js +1 -1
- package/lib/component/TableViewEditor.js +547 -454
- package/lib/icons/btn/btn-group.svg.js +1 -3
- package/lib/icons/btn/btn-select.svg.js +1 -3
- package/lib/icons/btn/btn-toolbar.svg.js +1 -3
- package/lib/icons/btn/button.svg.js +1 -3
- package/lib/icons/btn/dropdown-btn.svg.js +1 -3
- package/lib/icons/container/anchor-nav.svg.js +1 -3
- package/lib/icons/container/collapse.svg.js +1 -3
- package/lib/icons/container/container.svg.js +1 -3
- package/lib/icons/container/flex-container.svg.js +1 -3
- package/lib/icons/container/form-group.svg.js +1 -3
- package/lib/icons/container/grid.svg.js +1 -3
- package/lib/icons/container/iframe.svg.js +1 -3
- package/lib/icons/container/panel.svg.js +1 -3
- package/lib/icons/container/table-view.svg.js +1 -3
- package/lib/icons/container/tabs.svg.js +1 -3
- package/lib/icons/container/tooltip-wrapper.svg.js +1 -3
- package/lib/icons/container/web-component.svg.js +1 -3
- package/lib/icons/feat/audio.svg.js +1 -3
- package/lib/icons/feat/custom.svg.js +1 -3
- package/lib/icons/feat/each.svg.js +1 -3
- package/lib/icons/feat/form.svg.js +1 -3
- package/lib/icons/feat/nav.svg.js +1 -3
- package/lib/icons/feat/qrcode.svg.js +1 -3
- package/lib/icons/feat/service.svg.js +1 -3
- package/lib/icons/feat/table.svg.js +1 -3
- package/lib/icons/feat/tasks.svg.js +1 -3
- package/lib/icons/feat/video.svg.js +1 -3
- package/lib/icons/feat/wizard.svg.js +1 -3
- package/lib/icons/form/chained-select.svg.js +1 -3
- package/lib/icons/form/checkbox.svg.js +1 -3
- package/lib/icons/form/checkboxes.svg.js +1 -3
- package/lib/icons/form/combo.svg.js +1 -3
- package/lib/icons/form/condition-builder.svg.js +1 -3
- package/lib/icons/form/diff-editor.svg.js +1 -3
- package/lib/icons/form/editor.svg.js +1 -3
- package/lib/icons/form/formula.svg.js +1 -3
- package/lib/icons/form/hidden.svg.js +1 -3
- package/lib/icons/form/input-city.svg.js +1 -3
- package/lib/icons/form/input-color.svg.js +1 -3
- package/lib/icons/form/input-date-range.svg.js +1 -3
- package/lib/icons/form/input-date.svg.js +1 -3
- package/lib/icons/form/input-datetime.svg.js +1 -3
- package/lib/icons/form/input-email.svg.js +1 -3
- package/lib/icons/form/input-excel.svg.js +1 -3
- package/lib/icons/form/input-file.svg.js +1 -3
- package/lib/icons/form/input-group.svg.js +1 -3
- package/lib/icons/form/input-image.svg.js +1 -3
- package/lib/icons/form/input-kv.svg.js +1 -3
- package/lib/icons/form/input-month-range.svg.js +1 -3
- package/lib/icons/form/input-number.svg.js +1 -3
- package/lib/icons/form/input-password.svg.js +1 -3
- package/lib/icons/form/input-quarter-range.svg.js +1 -3
- package/lib/icons/form/input-range.svg.js +1 -3
- package/lib/icons/form/input-rating.svg.js +1 -3
- package/lib/icons/form/input-repeat.svg.js +1 -3
- package/lib/icons/form/input-rich-text.svg.js +1 -3
- package/lib/icons/form/input-tag.svg.js +1 -3
- package/lib/icons/form/input-text.svg.js +1 -3
- package/lib/icons/form/input-time-range.svg.js +1 -3
- package/lib/icons/form/input-time.svg.js +1 -3
- package/lib/icons/form/input-tree.svg.js +1 -3
- package/lib/icons/form/input-url.svg.js +1 -3
- package/lib/icons/form/input-year.svg.js +1 -3
- package/lib/icons/form/inputArray.svg.js +1 -3
- package/lib/icons/form/list-select.svg.js +1 -3
- package/lib/icons/form/location-picker.svg.js +1 -3
- package/lib/icons/form/matrix-checkboxes.svg.js +1 -3
- package/lib/icons/form/month.svg.js +1 -3
- package/lib/icons/form/nested-select.svg.js +1 -3
- package/lib/icons/form/picker.svg.js +1 -3
- package/lib/icons/form/quarter.svg.js +1 -3
- package/lib/icons/form/radios.svg.js +1 -3
- package/lib/icons/form/select.svg.js +1 -3
- package/lib/icons/form/static.svg.js +1 -3
- package/lib/icons/form/sub-form.svg.js +1 -3
- package/lib/icons/form/switch.svg.js +1 -3
- package/lib/icons/form/tabs-transfer.svg.js +1 -3
- package/lib/icons/form/textarea.svg.js +1 -3
- package/lib/icons/form/transfer.svg.js +1 -3
- package/lib/icons/form/tree-select.svg.js +1 -3
- package/lib/icons/form/uuid.svg.js +1 -3
- package/lib/icons/index.js +28 -1
- package/lib/icons/layout/layout-1with2.svg.js +56 -0
- package/lib/icons/layout/layout-2cols.svg.js +56 -0
- package/lib/icons/layout/layout-2row.svg.js +56 -0
- package/lib/icons/layout/layout-2with1.svg.js +57 -0
- package/lib/icons/layout/layout-3cols.svg.js +56 -0
- package/lib/icons/layout/layout-3row.svg.js +57 -0
- package/lib/icons/layout/layout-absolute.svg.js +51 -0
- package/lib/icons/layout/layout-fixed.svg.js +51 -0
- package/lib/icons/layout/layout-full.svg.js +73 -0
- package/lib/icons/layout/layout1-2.svg.js +57 -0
- package/lib/icons/layout/layout2-1.svg.js +57 -0
- package/lib/icons/layout/layout3-1.svg.js +57 -0
- package/lib/icons/layout/layout3-2.svg.js +57 -0
- package/lib/icons/other/divider.svg.js +1 -3
- package/lib/icons/other/property-sheet.svg.js +1 -3
- package/lib/icons/other/tooltip.svg.js +1 -3
- package/lib/icons/show/URL.svg.js +1 -3
- package/lib/icons/show/avatar.svg.js +1 -3
- package/lib/icons/show/breadcrumb.svg.js +1 -3
- package/lib/icons/show/card.svg.js +1 -3
- package/lib/icons/show/cards.svg.js +1 -3
- package/lib/icons/show/carousel.svg.js +1 -3
- package/lib/icons/show/chart.svg.js +1 -3
- package/lib/icons/show/code.svg.js +1 -3
- package/lib/icons/show/date.svg.js +1 -3
- package/lib/icons/show/datetime.svg.js +1 -3
- package/lib/icons/show/image.svg.js +1 -3
- package/lib/icons/show/images.svg.js +1 -3
- package/lib/icons/show/json-view.svg.js +1 -3
- package/lib/icons/show/list.svg.js +1 -3
- package/lib/icons/show/log.svg.js +1 -3
- package/lib/icons/show/mapping.svg.js +1 -3
- package/lib/icons/show/markdown.svg.js +1 -3
- package/lib/icons/show/plain.svg.js +1 -3
- package/lib/icons/show/progress.svg.js +1 -3
- package/lib/icons/show/sparkline.svg.js +1 -3
- package/lib/icons/show/status.svg.js +1 -3
- package/lib/icons/show/steps.svg.js +1 -3
- package/lib/icons/show/time.svg.js +1 -3
- package/lib/index.d.ts +11 -2
- package/lib/index.js +13 -3
- package/lib/locale/en-US.js +315 -102
- package/lib/locale/zh-CN.js +218 -3
- package/lib/plugin/Alert.d.ts +1 -1
- package/lib/plugin/Alert.js +157 -89
- package/lib/plugin/AnchorNav.js +337 -263
- package/lib/plugin/Audio.d.ts +1 -1
- package/lib/plugin/Audio.js +165 -112
- package/lib/plugin/Avatar.d.ts +1 -1
- package/lib/plugin/Avatar.js +301 -238
- package/lib/plugin/Breadcrumb.js +138 -75
- package/lib/plugin/Button.d.ts +1 -1
- package/lib/plugin/Button.js +310 -228
- package/lib/plugin/ButtonGroup.d.ts +1 -1
- package/lib/plugin/ButtonGroup.js +174 -106
- package/lib/plugin/CRUD.d.ts +1 -1
- package/lib/plugin/CRUD.js +1426 -1351
- package/lib/plugin/CRUD2.d.ts +2 -3
- package/lib/plugin/CRUD2.js +1152 -1081
- package/lib/plugin/Card.d.ts +1 -1
- package/lib/plugin/Card.js +284 -208
- package/lib/plugin/Card2.d.ts +2 -1
- package/lib/plugin/Card2.js +139 -74
- package/lib/plugin/Cards.js +302 -234
- package/lib/plugin/Carousel.d.ts +2 -2
- package/lib/plugin/Carousel.js +344 -281
- package/lib/plugin/Chart.d.ts +2 -1
- package/lib/plugin/Chart.js +326 -158
- package/lib/plugin/CodeView.js +104 -44
- package/lib/plugin/Collapse.d.ts +1 -1
- package/lib/plugin/Collapse.js +168 -101
- package/lib/plugin/CollapseGroup.d.ts +1 -1
- package/lib/plugin/CollapseGroup.js +249 -187
- package/lib/plugin/ColumnToggler.d.ts +1 -1
- package/lib/plugin/ColumnToggler.js +140 -87
- package/lib/plugin/Container.d.ts +11 -9
- package/lib/plugin/Container.js +190 -68
- package/lib/plugin/Custom.js +144 -82
- package/lib/plugin/CustomRegion.js +173 -110
- package/lib/plugin/Date.d.ts +1 -1
- package/lib/plugin/Date.js +112 -59
- package/lib/plugin/Datetime.d.ts +0 -1
- package/lib/plugin/Datetime.js +81 -53
- package/lib/plugin/Dialog.d.ts +2 -2
- package/lib/plugin/Dialog.js +230 -179
- package/lib/plugin/Divider.js +82 -32
- package/lib/plugin/Drawer.d.ts +11 -2
- package/lib/plugin/Drawer.js +260 -194
- package/lib/plugin/DropDownButton.js +261 -182
- package/lib/plugin/Each.js +180 -115
- package/lib/plugin/Flex.d.ts +2 -27
- package/lib/plugin/Flex.js +23 -157
- package/lib/plugin/Form/ButtonGroupSelect.d.ts +2 -1
- package/lib/plugin/Form/ButtonGroupSelect.js +205 -126
- package/lib/plugin/Form/ButtonToolbar.d.ts +1 -1
- package/lib/plugin/Form/ButtonToolbar.js +168 -94
- package/lib/plugin/Form/ChainedSelect.d.ts +1 -1
- package/lib/plugin/Form/ChainedSelect.js +209 -130
- package/lib/plugin/Form/Checkbox.d.ts +1 -1
- package/lib/plugin/Form/Checkbox.js +208 -131
- package/lib/plugin/Form/Checkboxes.d.ts +1 -1
- package/lib/plugin/Form/Checkboxes.js +236 -153
- package/lib/plugin/Form/CodeEditor.d.ts +0 -1
- package/lib/plugin/Form/CodeEditor.js +245 -146
- package/lib/plugin/Form/Combo.js +532 -423
- package/lib/plugin/Form/ConditionBuilder.d.ts +1 -1
- package/lib/plugin/Form/ConditionBuilder.js +288 -222
- package/lib/plugin/Form/Control.d.ts +1 -1
- package/lib/plugin/Form/Control.js +130 -63
- package/lib/plugin/Form/DiffEditor.d.ts +0 -1
- package/lib/plugin/Form/DiffEditor.js +252 -150
- package/lib/plugin/Form/FieldSet.d.ts +1 -1
- package/lib/plugin/Form/FieldSet.js +174 -112
- package/lib/plugin/Form/Form.d.ts +1 -1
- package/lib/plugin/Form/Form.js +750 -705
- package/lib/plugin/Form/Formula.d.ts +1 -9
- package/lib/plugin/Form/Formula.js +126 -62
- package/lib/plugin/Form/Group.js +250 -183
- package/lib/plugin/Form/Hidden.js +106 -42
- package/lib/plugin/Form/InputArray.js +233 -157
- package/lib/plugin/Form/InputCity.d.ts +1 -1
- package/lib/plugin/Form/InputCity.js +181 -104
- package/lib/plugin/Form/InputColor.d.ts +1 -1
- package/lib/plugin/Form/InputColor.js +296 -224
- package/lib/plugin/Form/InputDate.d.ts +1 -1
- package/lib/plugin/Form/InputDate.js +299 -189
- package/lib/plugin/Form/InputDateRange.d.ts +1 -1
- package/lib/plugin/Form/InputDateRange.js +385 -264
- package/lib/plugin/Form/InputDateTime.js +93 -33
- package/lib/plugin/Form/InputDateTimeRange.js +99 -34
- package/lib/plugin/Form/InputEmail.js +80 -30
- package/lib/plugin/Form/InputExcel.d.ts +1 -1
- package/lib/plugin/Form/InputExcel.js +164 -91
- package/lib/plugin/Form/InputFile.d.ts +4 -1
- package/lib/plugin/Form/InputFile.js +352 -271
- package/lib/plugin/Form/InputGroup.js +132 -73
- package/lib/plugin/Form/InputImage.d.ts +4 -1
- package/lib/plugin/Form/InputImage.js +385 -303
- package/lib/plugin/Form/InputKV.d.ts +1 -1
- package/lib/plugin/Form/InputKV.js +168 -94
- package/lib/plugin/Form/InputMonth.js +91 -31
- package/lib/plugin/Form/InputMonthRange.js +99 -34
- package/lib/plugin/Form/InputNumber.d.ts +2 -1
- package/lib/plugin/Form/InputNumber.js +287 -200
- package/lib/plugin/Form/InputPassword.js +80 -30
- package/lib/plugin/Form/InputQuarter.js +91 -31
- package/lib/plugin/Form/InputQuarterRange.js +99 -34
- package/lib/plugin/Form/InputRange.d.ts +1 -1
- package/lib/plugin/Form/InputRange.js +315 -236
- package/lib/plugin/Form/InputRating.d.ts +1 -1
- package/lib/plugin/Form/InputRating.js +361 -293
- package/lib/plugin/Form/InputRepeat.js +105 -45
- package/lib/plugin/Form/InputRichText.d.ts +2 -1
- package/lib/plugin/Form/InputRichText.js +211 -152
- package/lib/plugin/Form/InputSubForm.js +225 -157
- package/lib/plugin/Form/InputTable.d.ts +1 -1
- package/lib/plugin/Form/InputTable.js +385 -320
- package/lib/plugin/Form/InputTag.d.ts +1 -1
- package/lib/plugin/Form/InputTag.js +208 -119
- package/lib/plugin/Form/InputText.d.ts +1 -1
- package/lib/plugin/Form/InputText.js +348 -263
- package/lib/plugin/Form/InputTime.js +93 -33
- package/lib/plugin/Form/InputTimeRange.js +99 -34
- package/lib/plugin/Form/InputTree.d.ts +1 -1
- package/lib/plugin/Form/InputTree.js +460 -367
- package/lib/plugin/Form/InputURL.js +86 -31
- package/lib/plugin/Form/InputYear.js +91 -31
- package/lib/plugin/Form/InputYearRange.js +99 -34
- package/lib/plugin/Form/Item.d.ts +1 -1
- package/lib/plugin/Form/Item.js +213 -189
- package/lib/plugin/Form/ListSelect.d.ts +1 -1
- package/lib/plugin/Form/ListSelect.js +174 -96
- package/lib/plugin/Form/LocationPicker.d.ts +1 -1
- package/lib/plugin/Form/LocationPicker.js +115 -57
- package/lib/plugin/Form/MatrixCheckboxes.d.ts +1 -1
- package/lib/plugin/Form/MatrixCheckboxes.js +247 -170
- package/lib/plugin/Form/NestedSelect.d.ts +1 -1
- package/lib/plugin/Form/NestedSelect.js +329 -246
- package/lib/plugin/Form/Picker.js +260 -178
- package/lib/plugin/Form/Radios.d.ts +1 -1
- package/lib/plugin/Form/Radios.js +228 -136
- package/lib/plugin/Form/Select.d.ts +1 -1
- package/lib/plugin/Form/Select.js +333 -228
- package/lib/plugin/Form/Static.d.ts +1 -1
- package/lib/plugin/Form/Static.js +358 -280
- package/lib/plugin/Form/Switch.d.ts +2 -1
- package/lib/plugin/Form/Switch.js +257 -172
- package/lib/plugin/Form/TabsTransfer.d.ts +1 -1
- package/lib/plugin/Form/TabsTransfer.js +316 -238
- package/lib/plugin/Form/Textarea.d.ts +0 -1
- package/lib/plugin/Form/Textarea.js +219 -130
- package/lib/plugin/Form/Transfer.d.ts +1 -1
- package/lib/plugin/Form/Transfer.js +349 -259
- package/lib/plugin/Form/TreeSelect.d.ts +2 -1
- package/lib/plugin/Form/TreeSelect.js +451 -363
- package/lib/plugin/Form/UUID.js +106 -42
- package/lib/plugin/Grid.d.ts +1 -1
- package/lib/plugin/Grid.js +629 -556
- package/lib/plugin/HBox.d.ts +1 -1
- package/lib/plugin/HBox.js +578 -508
- package/lib/plugin/IFrame.d.ts +2 -10
- package/lib/plugin/IFrame.js +127 -64
- package/lib/plugin/Image.d.ts +2 -2
- package/lib/plugin/Image.js +277 -218
- package/lib/plugin/Images.d.ts +3 -3
- package/lib/plugin/Images.js +214 -160
- package/lib/plugin/Json.d.ts +1 -1
- package/lib/plugin/Json.js +111 -53
- package/lib/plugin/Layout/FlexPluginBase.d.ts +40 -0
- package/lib/plugin/Layout/FlexPluginBase.js +332 -0
- package/lib/plugin/Layout/Layout1_2_v4.d.ts +10 -0
- package/lib/plugin/Layout/Layout1_2_v4.js +148 -0
- package/lib/plugin/Layout/Layout_fixed.d.ts +10 -0
- package/lib/plugin/Layout/Layout_fixed.js +80 -0
- package/lib/plugin/Layout/Layout_fixed_bottom.d.ts +10 -0
- package/lib/plugin/Layout/Layout_fixed_bottom.js +87 -0
- package/lib/plugin/Layout/Layout_fixed_top.d.ts +10 -0
- package/lib/plugin/Layout/Layout_fixed_top.js +86 -0
- package/lib/plugin/Layout/Layout_scroll_x.d.ts +10 -0
- package/lib/plugin/Layout/Layout_scroll_x.js +170 -0
- package/lib/plugin/Layout/Layout_scroll_y.d.ts +10 -0
- package/lib/plugin/Layout/Layout_scroll_y.js +158 -0
- package/lib/plugin/Link.js +131 -85
- package/lib/plugin/List.js +279 -208
- package/lib/plugin/ListItem.js +217 -176
- package/lib/plugin/Log.d.ts +1 -1
- package/lib/plugin/Log.js +102 -44
- package/lib/plugin/Mapping.d.ts +1 -1
- package/lib/plugin/Mapping.js +168 -115
- package/lib/plugin/Markdown.d.ts +1 -1
- package/lib/plugin/Markdown.js +98 -40
- package/lib/plugin/Nav.js +202 -139
- package/lib/plugin/Operation.d.ts +1 -1
- package/lib/plugin/Operation.js +116 -59
- package/lib/plugin/Others/Action.js +329 -317
- package/lib/plugin/Others/TableCell.d.ts +1 -1
- package/lib/plugin/Others/TableCell.js +341 -329
- package/lib/plugin/Page.d.ts +2 -3
- package/lib/plugin/Page.js +374 -283
- package/lib/plugin/Pagination.d.ts +2 -1
- package/lib/plugin/Pagination.js +299 -219
- package/lib/plugin/Panel.d.ts +1 -1
- package/lib/plugin/Panel.js +256 -190
- package/lib/plugin/Plain.d.ts +1 -1
- package/lib/plugin/Plain.js +126 -64
- package/lib/plugin/Progress.d.ts +3 -1
- package/lib/plugin/Progress.js +280 -202
- package/lib/plugin/Property.js +163 -103
- package/lib/plugin/QRCode.js +130 -70
- package/lib/plugin/Reset.js +61 -22
- package/lib/plugin/Service.d.ts +1 -1
- package/lib/plugin/Service.js +254 -167
- package/lib/plugin/Sparkline.js +91 -32
- package/lib/plugin/Status.d.ts +1 -1
- package/lib/plugin/Status.js +116 -58
- package/lib/plugin/Steps.js +153 -93
- package/lib/plugin/Submit.js +56 -22
- package/lib/plugin/Table.d.ts +1 -1
- package/lib/plugin/Table.js +595 -522
- package/lib/plugin/{Table-v2.d.ts → Table2.d.ts} +2 -2
- package/lib/plugin/Table2.js +891 -0
- package/{esm/plugin/TableCell-v2.d.ts → lib/plugin/TableCell2.d.ts} +1 -1
- package/lib/plugin/TableCell2.js +493 -0
- package/lib/plugin/TableView.js +648 -599
- package/lib/plugin/Tabs.d.ts +1 -1
- package/lib/plugin/Tabs.js +470 -360
- package/lib/plugin/Tasks.js +246 -186
- package/lib/plugin/Time.d.ts +0 -1
- package/lib/plugin/Time.js +81 -53
- package/lib/plugin/Timeline.d.ts +1 -1
- package/lib/plugin/Timeline.js +165 -92
- package/lib/plugin/TooltipWrapper.d.ts +1 -1
- package/lib/plugin/TooltipWrapper.js +265 -195
- package/lib/plugin/Tpl.d.ts +1 -1
- package/lib/plugin/Tpl.js +126 -61
- package/lib/plugin/Video.d.ts +2 -2
- package/lib/plugin/Video.js +173 -103
- package/lib/plugin/WebComponent.d.ts +1 -1
- package/lib/plugin/WebComponent.js +128 -62
- package/lib/plugin/Wizard.js +751 -659
- package/lib/plugin/Wrapper.d.ts +2 -1
- package/lib/plugin/Wrapper.js +198 -91
- package/lib/renderer/APIControl.d.ts +278 -5068
- package/lib/renderer/APIControl.js +663 -688
- package/lib/renderer/ActionApiControl.d.ts +8 -6384
- package/lib/renderer/BadgeControl.d.ts +6 -6
- package/lib/renderer/BadgeControl.js +263 -250
- package/lib/renderer/DataBindingControl.js +197 -212
- package/lib/renderer/DataMappingControl.js +39 -29
- package/lib/renderer/DataPickerControl.js +50 -35
- package/lib/renderer/DateShortCutControl.d.ts +26 -25
- package/lib/renderer/DateShortCutControl.js +418 -284
- package/lib/renderer/ExpressionFormulaControl.d.ts +45 -0
- package/lib/renderer/ExpressionFormulaControl.js +254 -0
- package/lib/renderer/FeatureControl.d.ts +1 -1
- package/lib/renderer/FeatureControl.js +229 -213
- package/lib/renderer/FormulaControl.d.ts +33 -16
- package/lib/renderer/FormulaControl.js +429 -356
- package/lib/renderer/GoConfigControl.js +30 -34
- package/lib/renderer/OptionControl.d.ts +2 -2
- package/lib/renderer/OptionControl.js +750 -688
- package/lib/renderer/RangePartsControl.d.ts +2 -2
- package/lib/renderer/RangePartsControl.js +320 -326
- package/lib/renderer/StatusControl.d.ts +1 -1
- package/lib/renderer/StatusControl.js +145 -136
- package/lib/renderer/SwitchMoreControl.d.ts +67 -51
- package/lib/renderer/SwitchMoreControl.js +367 -319
- package/lib/renderer/TimelineItemControl.d.ts +3 -83
- package/lib/renderer/TimelineItemControl.js +531 -464
- package/lib/renderer/TransferTableControl.d.ts +2 -4
- package/lib/renderer/TransferTableControl.js +394 -369
- package/lib/renderer/TreeOptionControl.d.ts +1 -1
- package/lib/renderer/TreeOptionControl.js +588 -563
- package/lib/renderer/ValidationControl.d.ts +1 -1
- package/lib/renderer/ValidationControl.js +277 -269
- package/lib/renderer/ValidationItem.d.ts +1 -1
- package/lib/renderer/ValidationItem.js +145 -134
- package/lib/renderer/event-control/action-config-dialog.js +214 -207
- package/lib/renderer/event-control/action-config-panel.js +37 -44
- package/lib/renderer/event-control/actions.js +465 -144
- package/lib/renderer/event-control/comp-action-select.js +37 -27
- package/lib/renderer/event-control/helper.d.ts +19 -19
- package/lib/renderer/event-control/helper.js +232 -220
- package/lib/renderer/event-control/index.d.ts +1 -1
- package/lib/renderer/event-control/index.js +641 -630
- package/lib/renderer/event-control/types.d.ts +1 -0
- package/lib/renderer/style-control/Background.js +64 -116
- package/lib/renderer/style-control/Border.js +27 -38
- package/lib/renderer/style-control/BoxModel.d.ts +1 -1
- package/lib/renderer/style-control/BoxModel.js +11 -4
- package/lib/renderer/style-control/BoxShadow.js +17 -19
- package/lib/renderer/style-control/Display.js +13 -17
- package/lib/renderer/style-control/Font.js +14 -17
- package/lib/renderer/style-control/InsetBoxModel.d.ts +17 -0
- package/lib/renderer/style-control/InsetBoxModel.js +77 -0
- package/lib/renderer/style-control/font-family.js +2 -3
- package/lib/renderer/style-control/transformation.js +1 -1
- package/lib/renderer/style-control/types.d.ts +4 -4
- package/lib/renderer/textarea-formula/FormulaPicker.d.ts +12 -0
- package/lib/renderer/textarea-formula/FormulaPicker.js +47 -0
- package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +67 -0
- package/lib/renderer/textarea-formula/TextareaFormulaControl.js +345 -0
- package/lib/renderer/textarea-formula/plugin.d.ts +32 -0
- package/lib/renderer/textarea-formula/plugin.js +278 -0
- package/lib/renderer/textarea-formula/utils.d.ts +12 -0
- package/lib/renderer/textarea-formula/utils.js +81 -0
- package/lib/tpl/api.js +30 -41
- package/lib/tpl/common.js +192 -113
- package/lib/tpl/horizontal.js +6 -8
- package/lib/tpl/index.d.ts +1 -0
- package/lib/tpl/layout.d.ts +1 -0
- package/lib/tpl/layout.js +715 -0
- package/lib/tpl/options.js +5 -22
- package/lib/tpl/style.js +18 -18
- package/lib/tpl/validations.js +9 -24
- package/lib/util.d.ts +47 -0
- package/lib/util.js +30 -0
- package/lib/validator.d.ts +1 -2
- package/lib/validator.js +11 -24
- package/package.json +10 -28
- package/esm/plugin/Table-v2.js +0 -819
- package/esm/plugin/TableCell-v2.js +0 -499
- package/lib/plugin/Table-v2.js +0 -823
- package/lib/plugin/TableCell-v2.js +0 -507
package/esm/plugin/Grid.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* amis-editor v5.2.
|
2
|
+
* amis-editor v5.2.1-beta.15
|
3
3
|
* Copyright 2018-2022 @fex
|
4
4
|
*/
|
5
5
|
|
@@ -9,25 +9,66 @@ import React__default from 'react';
|
|
9
9
|
import { getSchemaTpl, Icon, VRenderer, RegionWrapper, repeatArray, defaultValue, JSONChangeInArray, JSONPipeIn, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
|
10
10
|
import { i18n } from 'i18n-runtime';
|
11
11
|
|
12
|
-
var GridPlugin =
|
13
|
-
/** @class */
|
14
|
-
function (_super) {
|
12
|
+
var GridPlugin = /** @class */function (_super) {
|
15
13
|
__extends(GridPlugin, _super);
|
16
|
-
|
17
14
|
function GridPlugin() {
|
18
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
_this
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
15
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
16
|
+
// 关联渲染器名字
|
17
|
+
Object.defineProperty(_this, "rendererName", {
|
18
|
+
enumerable: true,
|
19
|
+
configurable: true,
|
20
|
+
writable: true,
|
21
|
+
value: 'grid'
|
22
|
+
});
|
23
|
+
Object.defineProperty(_this, "$schema", {
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true,
|
27
|
+
value: '/schemas/GridSchema.json'
|
28
|
+
});
|
29
|
+
// 组件名称
|
30
|
+
Object.defineProperty(_this, "name", {
|
31
|
+
enumerable: true,
|
32
|
+
configurable: true,
|
33
|
+
writable: true,
|
34
|
+
value: i18n("2820712cac089483cf2b4a0c939fc780")
|
35
|
+
});
|
36
|
+
Object.defineProperty(_this, "isBaseComponent", {
|
37
|
+
enumerable: true,
|
38
|
+
configurable: true,
|
39
|
+
writable: true,
|
40
|
+
value: true
|
41
|
+
});
|
42
|
+
Object.defineProperty(_this, "description", {
|
43
|
+
enumerable: true,
|
44
|
+
configurable: true,
|
45
|
+
writable: true,
|
46
|
+
value: i18n("9e17d57a0ba39254a75c0265aa3063ca")
|
47
|
+
});
|
48
|
+
Object.defineProperty(_this, "docLink", {
|
49
|
+
enumerable: true,
|
50
|
+
configurable: true,
|
51
|
+
writable: true,
|
52
|
+
value: '/amis/zh-CN/components/grid'
|
53
|
+
});
|
54
|
+
Object.defineProperty(_this, "tags", {
|
55
|
+
enumerable: true,
|
56
|
+
configurable: true,
|
57
|
+
writable: true,
|
58
|
+
value: [i18n("22c799040acdb2601b437ed5449de076")]
|
59
|
+
});
|
60
|
+
Object.defineProperty(_this, "icon", {
|
61
|
+
enumerable: true,
|
62
|
+
configurable: true,
|
63
|
+
writable: true,
|
64
|
+
value: 'fa fa-th'
|
65
|
+
});
|
66
|
+
Object.defineProperty(_this, "pluginIcon", {
|
67
|
+
enumerable: true,
|
68
|
+
configurable: true,
|
69
|
+
writable: true,
|
70
|
+
value: 'grid-plugin'
|
71
|
+
});
|
31
72
|
/*
|
32
73
|
scaffolds = [
|
33
74
|
{
|
@@ -126,579 +167,611 @@ function (_super) {
|
|
126
167
|
];
|
127
168
|
*/
|
128
169
|
// 仅保留一个分栏布局
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
type: 'grid',
|
140
|
-
columns: [{
|
141
|
-
body: [{
|
142
|
-
type: 'tpl',
|
143
|
-
tpl: i18n("e63907bf0db529e84866d1ae737bfc0d"),
|
144
|
-
inline: false,
|
145
|
-
className: 'bg-light wrapper'
|
170
|
+
Object.defineProperty(_this, "scaffold", {
|
171
|
+
enumerable: true,
|
172
|
+
configurable: true,
|
173
|
+
writable: true,
|
174
|
+
value: {
|
175
|
+
type: 'grid',
|
176
|
+
columns: [{
|
177
|
+
body: []
|
178
|
+
}, {
|
179
|
+
body: []
|
146
180
|
}]
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
181
|
+
}
|
182
|
+
});
|
183
|
+
Object.defineProperty(_this, "previewSchema", {
|
184
|
+
enumerable: true,
|
185
|
+
configurable: true,
|
186
|
+
writable: true,
|
187
|
+
value: {
|
188
|
+
type: 'grid',
|
189
|
+
columns: [{
|
190
|
+
body: [{
|
191
|
+
type: 'tpl',
|
192
|
+
tpl: i18n("e63907bf0db529e84866d1ae737bfc0d"),
|
193
|
+
inline: false,
|
194
|
+
className: 'bg-light wrapper'
|
195
|
+
}]
|
196
|
+
}, {
|
197
|
+
body: [{
|
198
|
+
type: 'tpl',
|
199
|
+
tpl: i18n("e63907bf0db529e84866d1ae737bfc0d"),
|
200
|
+
className: 'bg-light wrapper',
|
201
|
+
inline: false
|
202
|
+
}]
|
153
203
|
}]
|
154
|
-
}
|
155
|
-
};
|
156
|
-
_this
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
204
|
+
}
|
205
|
+
});
|
206
|
+
Object.defineProperty(_this, "panelTitle", {
|
207
|
+
enumerable: true,
|
208
|
+
configurable: true,
|
209
|
+
writable: true,
|
210
|
+
value: i18n("9e17d57a0ba39254a75c0265aa3063ca")
|
211
|
+
});
|
212
|
+
Object.defineProperty(_this, "panelWithOutOthers", {
|
213
|
+
enumerable: true,
|
214
|
+
configurable: true,
|
215
|
+
writable: true,
|
216
|
+
value: false
|
217
|
+
});
|
218
|
+
Object.defineProperty(_this, "vRendererConfig", {
|
219
|
+
enumerable: true,
|
220
|
+
configurable: true,
|
221
|
+
writable: true,
|
222
|
+
value: {
|
223
|
+
regions: {
|
224
|
+
body: {
|
225
|
+
key: 'body',
|
226
|
+
label: i18n("132a78bdf68d6d17bde00aa807bbf032"),
|
227
|
+
placeholder: i18n("e63907bf0db529e84866d1ae737bfc0d"),
|
228
|
+
wrapperResolve: function (dom) {
|
229
|
+
return dom;
|
230
|
+
}
|
166
231
|
}
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
}
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
}
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
}
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
}
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
}
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
}
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
}
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
}
|
221
|
-
|
222
|
-
|
223
|
-
})
|
224
|
-
}]
|
225
|
-
}, {
|
226
|
-
title: i18n("c28479019e24e0e4745f4948e9e97ee7"),
|
227
|
-
body: [{
|
228
|
-
type: 'button-group-select',
|
229
|
-
name: 'md',
|
230
|
-
size: 'sm',
|
231
|
-
label: false,
|
232
|
-
pipeIn: function (value) {
|
233
|
-
return typeof value === 'number' ? 'manual' : value || '';
|
234
|
-
},
|
235
|
-
pipeOut: function (value) {
|
236
|
-
return value === 'manual' ? 1 : value;
|
237
|
-
},
|
238
|
-
tiled: true,
|
239
|
-
options: [{
|
240
|
-
value: '',
|
241
|
-
label: i18n("daa0f354e189c0da577ea25be13f874d")
|
242
|
-
}, {
|
243
|
-
value: 'auto',
|
244
|
-
label: i18n("4db804afe5c99f7ca4fe988ada35c77f")
|
245
|
-
}, {
|
246
|
-
value: 'manual',
|
247
|
-
label: i18n("2a3e7f5c382c56faf261a87573658325")
|
232
|
+
},
|
233
|
+
panelTitle: i18n("e63907bf0db529e84866d1ae737bfc0d"),
|
234
|
+
panelBodyCreator: function (context) {
|
235
|
+
var host = context.node.host;
|
236
|
+
return [getSchemaTpl('tabs', [{
|
237
|
+
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
238
|
+
className: 'p-none',
|
239
|
+
body: [getSchemaTpl('collapseGroup', [{
|
240
|
+
title: i18n("9bdb07e72d3a9a6084201a7398523f5a"),
|
241
|
+
body: [{
|
242
|
+
type: 'wrapper',
|
243
|
+
size: 'none',
|
244
|
+
className: 'grid grid-cols-2 gap-4',
|
245
|
+
body: [host.isSecondFactor ? null : {
|
246
|
+
children: React__default.createElement(Button, {
|
247
|
+
size: "sm",
|
248
|
+
onClick: function () {
|
249
|
+
return _this.insertRowAfter(context.node.host);
|
250
|
+
}
|
251
|
+
}, React__default.createElement(Icon, {
|
252
|
+
className: "icon",
|
253
|
+
icon: "arrow-to-bottom"
|
254
|
+
}), React__default.createElement("span", null, "\u4E0B\u65B9\u63D2\u5165\u65B0\u884C"))
|
255
|
+
}, host.isSecondFactor ? null : {
|
256
|
+
children: React__default.createElement(Button, {
|
257
|
+
size: "sm",
|
258
|
+
onClick: function () {
|
259
|
+
return _this.insertRowBefore(context.node.host);
|
260
|
+
}
|
261
|
+
}, React__default.createElement(Icon, {
|
262
|
+
className: "icon",
|
263
|
+
icon: "top-arrow-to-top"
|
264
|
+
}), React__default.createElement("span", null, "\u4E0A\u65B9\u63D2\u5165\u65B0\u884C"))
|
265
|
+
}, {
|
266
|
+
children: React__default.createElement(Button, {
|
267
|
+
size: "sm",
|
268
|
+
onClick: function () {
|
269
|
+
return _this.insertColumnBefore(context);
|
270
|
+
}
|
271
|
+
}, React__default.createElement(Icon, {
|
272
|
+
className: "icon",
|
273
|
+
icon: "left-arrow-to-left"
|
274
|
+
}), React__default.createElement("span", null, "\u5DE6\u4FA7\u63D2\u5165\u65B0\u5217"))
|
275
|
+
}, {
|
276
|
+
children: React__default.createElement(Button, {
|
277
|
+
size: "sm",
|
278
|
+
onClick: function () {
|
279
|
+
return _this.insertColumnAfter(context);
|
280
|
+
}
|
281
|
+
}, React__default.createElement(Icon, {
|
282
|
+
className: "icon",
|
283
|
+
icon: "arrow-to-right"
|
284
|
+
}), React__default.createElement("span", null, "\u53F3\u4FA7\u63D2\u5165\u65B0\u5217"))
|
285
|
+
}].filter(function (item) {
|
286
|
+
return item;
|
287
|
+
})
|
248
288
|
}]
|
249
289
|
}, {
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
290
|
+
title: i18n("c28479019e24e0e4745f4948e9e97ee7"),
|
291
|
+
body: [{
|
292
|
+
type: 'button-group-select',
|
293
|
+
name: 'md',
|
294
|
+
size: 'sm',
|
295
|
+
label: false,
|
296
|
+
pipeIn: function (value) {
|
297
|
+
return typeof value === 'number' ? 'manual' : value || '';
|
298
|
+
},
|
299
|
+
pipeOut: function (value) {
|
300
|
+
return value === 'manual' ? 1 : value;
|
301
|
+
},
|
302
|
+
tiled: true,
|
303
|
+
options: [{
|
304
|
+
value: '',
|
305
|
+
label: i18n("daa0f354e189c0da577ea25be13f874d")
|
306
|
+
}, {
|
307
|
+
value: 'auto',
|
308
|
+
label: i18n("4db804afe5c99f7ca4fe988ada35c77f")
|
309
|
+
}, {
|
310
|
+
value: 'manual',
|
311
|
+
label: i18n("2a3e7f5c382c56faf261a87573658325")
|
312
|
+
}]
|
273
313
|
}, {
|
274
|
-
|
275
|
-
label: i18n("
|
276
|
-
|
277
|
-
|
278
|
-
|
314
|
+
visibleOn: 'typeof this.md === "number"',
|
315
|
+
label: i18n("d5d885add2551454955bd70411769c88"),
|
316
|
+
type: 'input-range',
|
317
|
+
name: 'md',
|
318
|
+
min: 1,
|
319
|
+
max: 12,
|
320
|
+
step: 1
|
279
321
|
}]
|
280
|
-
}
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
322
|
+
}, {
|
323
|
+
title: i18n("5aefca559c5a41d10078e21e6d616825"),
|
324
|
+
body: [{
|
325
|
+
type: 'button-group-select',
|
326
|
+
name: 'valign',
|
327
|
+
size: 'sm',
|
328
|
+
label: false,
|
329
|
+
tiled: true,
|
330
|
+
clearable: true,
|
331
|
+
options: [{
|
332
|
+
value: 'top',
|
333
|
+
label: i18n("2a6ad292447e6354ca39ee7f40d2fcc8")
|
334
|
+
}, {
|
335
|
+
value: 'middle',
|
336
|
+
label: i18n("1cc9a6949b47913462ff832cb684bdde")
|
337
|
+
}, {
|
338
|
+
value: 'bottom',
|
339
|
+
label: i18n("d68c21b6b65e7a2e361762b65b8a5032")
|
340
|
+
}, {
|
341
|
+
value: 'between',
|
342
|
+
label: i18n("da1b972efb29f850b50e219ad4d98ba5")
|
343
|
+
}]
|
344
|
+
}]
|
345
|
+
}])]
|
346
|
+
}, {
|
347
|
+
title: i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
|
348
|
+
body: [_this.panelWithOutOthers ? null : getSchemaTpl('className', {
|
349
|
+
label: i18n("19432e481cefd1bf88fc707f20ea62c5"),
|
350
|
+
name: 'columnClassName'
|
351
|
+
})]
|
352
|
+
}])];
|
353
|
+
}
|
289
354
|
}
|
290
|
-
};
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
var
|
306
|
-
|
307
|
-
|
308
|
-
|
355
|
+
});
|
356
|
+
Object.defineProperty(_this, "vWrapperResolve", {
|
357
|
+
enumerable: true,
|
358
|
+
configurable: true,
|
359
|
+
writable: true,
|
360
|
+
value: function (dom) {
|
361
|
+
return dom;
|
362
|
+
}
|
363
|
+
});
|
364
|
+
Object.defineProperty(_this, "overrides", {
|
365
|
+
enumerable: true,
|
366
|
+
configurable: true,
|
367
|
+
writable: true,
|
368
|
+
value: {
|
369
|
+
renderColumn: function (node, index, length) {
|
370
|
+
var _a, _b;
|
371
|
+
var dom = this.super(node, index, length);
|
372
|
+
var info = this.props.$$editor;
|
373
|
+
if (info && node.$$id) {
|
374
|
+
var plugin = info.plugin;
|
375
|
+
var region = (_b = (_a = plugin.vRendererConfig) === null || _a === void 0 ? void 0 : _a.regions) === null || _b === void 0 ? void 0 : _b.body;
|
376
|
+
if (!region) {
|
377
|
+
return dom;
|
378
|
+
}
|
379
|
+
return React__default.createElement(VRenderer, {
|
380
|
+
key: "".concat(node.$$id, "-").concat(index),
|
381
|
+
type: info.type,
|
382
|
+
plugin: info.plugin,
|
383
|
+
renderer: info.renderer,
|
384
|
+
"$schema": "/schemas/GridColumn.json",
|
385
|
+
hostId: info.id,
|
386
|
+
memberIndex: index,
|
387
|
+
name: "\u7B2C".concat(index + 1, "\u680F"),
|
388
|
+
id: node.$$id,
|
389
|
+
draggable: false,
|
390
|
+
schemaPath: "".concat(info.schemaPath, "/grid/").concat(index),
|
391
|
+
wrapperResolve: plugin.vWrapperResolve,
|
392
|
+
path: "".concat(this.props.$path, "/").concat(index),
|
393
|
+
data: this.props.data,
|
394
|
+
widthMutable: true
|
395
|
+
}, region ? React__default.createElement(RegionWrapper, {
|
396
|
+
key: region.key,
|
397
|
+
preferTag: region.preferTag,
|
398
|
+
name: region.key,
|
399
|
+
label: region.label,
|
400
|
+
regionConfig: region,
|
401
|
+
placeholder: region.placeholder,
|
402
|
+
editorStore: plugin.manager.store,
|
403
|
+
manager: plugin.manager,
|
404
|
+
children: dom,
|
405
|
+
wrapperResolve: region.wrapperResolve,
|
406
|
+
rendererName: info.renderer.name
|
407
|
+
}) : dom);
|
309
408
|
}
|
310
|
-
|
311
|
-
return React__default.createElement(VRenderer, {
|
312
|
-
key: "".concat(node.$$id, "-").concat(index),
|
313
|
-
type: info.type,
|
314
|
-
plugin: info.plugin,
|
315
|
-
renderer: info.renderer,
|
316
|
-
"$schema": "/schemas/GridColumn.json",
|
317
|
-
hostId: info.id,
|
318
|
-
memberIndex: index,
|
319
|
-
name: "\u7B2C".concat(index + 1, "\u680F"),
|
320
|
-
id: node.$$id,
|
321
|
-
draggable: false,
|
322
|
-
schemaPath: "".concat(info.schemaPath, "/grid/").concat(index),
|
323
|
-
wrapperResolve: plugin.vWrapperResolve,
|
324
|
-
path: "".concat(this.props.$path, "/").concat(index),
|
325
|
-
data: this.props.data,
|
326
|
-
widthMutable: true
|
327
|
-
}, region ? React__default.createElement(RegionWrapper, {
|
328
|
-
key: region.key,
|
329
|
-
preferTag: region.preferTag,
|
330
|
-
name: region.key,
|
331
|
-
label: region.label,
|
332
|
-
regionConfig: region,
|
333
|
-
placeholder: region.placeholder,
|
334
|
-
editorStore: plugin.manager.store,
|
335
|
-
manager: plugin.manager,
|
336
|
-
children: dom,
|
337
|
-
wrapperResolve: region.wrapperResolve,
|
338
|
-
rendererName: info.renderer.name
|
339
|
-
}) : dom);
|
409
|
+
return dom;
|
340
410
|
}
|
341
|
-
|
342
|
-
return dom;
|
343
411
|
}
|
344
|
-
};
|
412
|
+
});
|
345
413
|
return _this;
|
346
414
|
}
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
body: [
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
title: i18n("5aefca559c5a41d10078e21e6d616825"),
|
387
|
-
body: [{
|
388
|
-
label: i18n("eb22d47f16f92e6f621c2b9d87119303"),
|
389
|
-
name: 'columns',
|
390
|
-
type: 'select',
|
391
|
-
pipeIn: function (value) {
|
392
|
-
return Array.isArray(value) ? value.length : undefined;
|
393
|
-
},
|
394
|
-
pipeOut: function (value, origin) {
|
395
|
-
if (Array.isArray(origin)) {
|
396
|
-
if (origin.length > value) {
|
397
|
-
origin = origin.concat();
|
398
|
-
origin.splice(value - 1, origin.length - value);
|
399
|
-
} else {
|
400
|
-
origin = origin.concat(repeatArray({
|
401
|
-
body: []
|
402
|
-
}, value - origin.length));
|
403
|
-
}
|
404
|
-
}
|
405
|
-
|
406
|
-
return origin;
|
407
|
-
},
|
408
|
-
options: repeatArray(null, 12).map(function (_, index) {
|
409
|
-
return {
|
410
|
-
label: "".concat(index + 1),
|
411
|
-
value: index + 1
|
412
|
-
};
|
415
|
+
Object.defineProperty(GridPlugin.prototype, "panelBodyCreator", {
|
416
|
+
enumerable: false,
|
417
|
+
configurable: true,
|
418
|
+
writable: true,
|
419
|
+
value: function (context) {
|
420
|
+
var _this = this;
|
421
|
+
var asSecondFactor = context.secondFactor;
|
422
|
+
return [getSchemaTpl('tabs', [{
|
423
|
+
title: i18n("24d67862f87f439db7ca957aecb77cce"),
|
424
|
+
className: 'p-none',
|
425
|
+
body: [getSchemaTpl('collapseGroup', [{
|
426
|
+
title: i18n("9bdb07e72d3a9a6084201a7398523f5a"),
|
427
|
+
body: [asSecondFactor ? null : {
|
428
|
+
type: 'wrapper',
|
429
|
+
size: 'none',
|
430
|
+
className: 'grid grid-cols-2 gap-4 mb-4',
|
431
|
+
body: [{
|
432
|
+
children: React__default.createElement(Button, {
|
433
|
+
size: "sm",
|
434
|
+
onClick: function () {
|
435
|
+
return _this.insertRowAfter(context.node);
|
436
|
+
}
|
437
|
+
}, React__default.createElement(Icon, {
|
438
|
+
className: "icon",
|
439
|
+
icon: "arrow-to-bottom"
|
440
|
+
}), React__default.createElement("span", null, "\u4E0B\u65B9\u63D2\u5165\u65B0\u884C"))
|
441
|
+
}, {
|
442
|
+
children: React__default.createElement(Button, {
|
443
|
+
size: "sm",
|
444
|
+
onClick: function () {
|
445
|
+
return _this.insertRowBefore(context.node);
|
446
|
+
}
|
447
|
+
}, React__default.createElement(Icon, {
|
448
|
+
className: "icon",
|
449
|
+
icon: "top-arrow-to-top"
|
450
|
+
}), React__default.createElement("span", null, "\u4E0A\u65B9\u63D2\u5165\u65B0\u884C"))
|
451
|
+
}]
|
452
|
+
}].filter(function (item) {
|
453
|
+
return item;
|
413
454
|
})
|
414
455
|
}, {
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
name: 'align',
|
443
|
-
size: 'sm',
|
444
|
-
label: i18n("98d695d6a6a48cfb4bc2f6396ee64787"),
|
445
|
-
tiled: true,
|
446
|
-
pipeIn: defaultValue('left'),
|
447
|
-
options: [{
|
448
|
-
value: 'left',
|
449
|
-
label: i18n("413f48cc71f71083ce532a86e3efdc21")
|
450
|
-
}, {
|
451
|
-
value: 'center',
|
452
|
-
label: i18n("1cc9a6949b47913462ff832cb684bdde")
|
453
|
-
}, {
|
454
|
-
value: 'right',
|
455
|
-
label: i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9")
|
456
|
-
}, {
|
457
|
-
value: 'between',
|
458
|
-
label: i18n("da1b972efb29f850b50e219ad4d98ba5")
|
459
|
-
}]
|
460
|
-
}, {
|
461
|
-
type: 'button-group-select',
|
462
|
-
name: 'valign',
|
463
|
-
size: 'sm',
|
464
|
-
label: i18n("11b7fc50778c89572391ec4c6c4b55e1"),
|
465
|
-
tiled: true,
|
466
|
-
pipeIn: defaultValue('top'),
|
467
|
-
options: [{
|
468
|
-
value: 'top',
|
469
|
-
label: i18n("2a6ad292447e6354ca39ee7f40d2fcc8")
|
456
|
+
title: i18n("5aefca559c5a41d10078e21e6d616825"),
|
457
|
+
body: [{
|
458
|
+
label: i18n("eb22d47f16f92e6f621c2b9d87119303"),
|
459
|
+
name: 'columns',
|
460
|
+
type: 'select',
|
461
|
+
pipeIn: function (value) {
|
462
|
+
return Array.isArray(value) ? value.length : undefined;
|
463
|
+
},
|
464
|
+
pipeOut: function (value, origin) {
|
465
|
+
if (Array.isArray(origin)) {
|
466
|
+
if (origin.length > value) {
|
467
|
+
origin = origin.concat();
|
468
|
+
origin.splice(value - 1, origin.length - value);
|
469
|
+
} else {
|
470
|
+
origin = origin.concat(repeatArray({
|
471
|
+
body: []
|
472
|
+
}, value - origin.length));
|
473
|
+
}
|
474
|
+
}
|
475
|
+
return origin;
|
476
|
+
},
|
477
|
+
options: repeatArray(null, 12).map(function (_, index) {
|
478
|
+
return {
|
479
|
+
label: "".concat(index + 1),
|
480
|
+
value: index + 1
|
481
|
+
};
|
482
|
+
})
|
470
483
|
}, {
|
471
|
-
|
472
|
-
|
484
|
+
type: 'button-group-select',
|
485
|
+
name: 'gap',
|
486
|
+
label: i18n("c288b519484207bea1d51884a5e9acaf"),
|
487
|
+
size: 'sm',
|
488
|
+
clearable: true,
|
489
|
+
tiled: true,
|
490
|
+
options: [{
|
491
|
+
label: i18n("d81bb206a889656035b929cd8bb1ef10"),
|
492
|
+
value: 'none'
|
493
|
+
}, {
|
494
|
+
label: i18n("23ecf42cada8bf2715792d718544d107"),
|
495
|
+
value: 'xs'
|
496
|
+
}, {
|
497
|
+
label: i18n("391b8fa9c747a1799353ab856e666ad5"),
|
498
|
+
value: 'sm'
|
499
|
+
}, {
|
500
|
+
label: i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),
|
501
|
+
value: 'base'
|
502
|
+
}, {
|
503
|
+
label: i18n("aed1dfbc31703955e64806b799b67645"),
|
504
|
+
value: 'md'
|
505
|
+
}, {
|
506
|
+
label: i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),
|
507
|
+
value: 'lg'
|
508
|
+
}]
|
473
509
|
}, {
|
474
|
-
|
475
|
-
|
510
|
+
type: 'button-group-select',
|
511
|
+
name: 'align',
|
512
|
+
size: 'sm',
|
513
|
+
label: i18n("98d695d6a6a48cfb4bc2f6396ee64787"),
|
514
|
+
tiled: true,
|
515
|
+
pipeIn: defaultValue('left'),
|
516
|
+
options: [{
|
517
|
+
value: 'left',
|
518
|
+
label: i18n("413f48cc71f71083ce532a86e3efdc21")
|
519
|
+
}, {
|
520
|
+
value: 'center',
|
521
|
+
label: i18n("1cc9a6949b47913462ff832cb684bdde")
|
522
|
+
}, {
|
523
|
+
value: 'right',
|
524
|
+
label: i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9")
|
525
|
+
}, {
|
526
|
+
value: 'between',
|
527
|
+
label: i18n("da1b972efb29f850b50e219ad4d98ba5")
|
528
|
+
}]
|
476
529
|
}, {
|
477
|
-
|
478
|
-
|
530
|
+
type: 'button-group-select',
|
531
|
+
name: 'valign',
|
532
|
+
size: 'sm',
|
533
|
+
label: i18n("11b7fc50778c89572391ec4c6c4b55e1"),
|
534
|
+
tiled: true,
|
535
|
+
pipeIn: defaultValue('top'),
|
536
|
+
options: [{
|
537
|
+
value: 'top',
|
538
|
+
label: i18n("2a6ad292447e6354ca39ee7f40d2fcc8")
|
539
|
+
}, {
|
540
|
+
value: 'middle',
|
541
|
+
label: i18n("1cc9a6949b47913462ff832cb684bdde")
|
542
|
+
}, {
|
543
|
+
value: 'bottom',
|
544
|
+
label: i18n("d68c21b6b65e7a2e361762b65b8a5032")
|
545
|
+
}, {
|
546
|
+
value: 'between',
|
547
|
+
label: i18n("da1b972efb29f850b50e219ad4d98ba5")
|
548
|
+
}]
|
479
549
|
}]
|
480
|
-
}]
|
481
|
-
}
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
}])];
|
486
|
-
};
|
487
|
-
|
488
|
-
GridPlugin.prototype.afterResolveJsonSchema = function (event) {
|
489
|
-
var _a, _b;
|
490
|
-
|
491
|
-
var context = event.context;
|
492
|
-
var parent = (_a = context.node.parent) === null || _a === void 0 ? void 0 : _a.host;
|
493
|
-
|
494
|
-
if (((_b = parent === null || parent === void 0 ? void 0 : parent.info) === null || _b === void 0 ? void 0 : _b.plugin) === this) {
|
495
|
-
event.setData('/schemas/GridColumn.json');
|
496
|
-
}
|
497
|
-
};
|
498
|
-
|
499
|
-
GridPlugin.prototype.buildEditorContextMenu = function (context, menus) {
|
500
|
-
var _this = this;
|
501
|
-
|
502
|
-
var _a;
|
503
|
-
|
504
|
-
if (context.selections.length || ((_a = context.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
505
|
-
return;
|
550
|
+
}])]
|
551
|
+
}, this.panelWithOutOthers ? null : {
|
552
|
+
title: i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
|
553
|
+
body: [getSchemaTpl('className'), getSchemaTpl('subFormItemMode'), getSchemaTpl('subFormHorizontalMode'), getSchemaTpl('subFormHorizontal')]
|
554
|
+
}])];
|
506
555
|
}
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
return _this.insertColumnAfter(context);
|
520
|
-
}
|
521
|
-
});
|
522
|
-
menus.push('|');
|
523
|
-
menus.push({
|
524
|
-
label: i18n("57ff158884582ed498a87d03aed46146"),
|
525
|
-
onSelect: function () {
|
526
|
-
return _this.insertRowBefore(context.node.host);
|
527
|
-
}
|
528
|
-
});
|
529
|
-
menus.push({
|
530
|
-
label: i18n("bd63eab86ac0e0b35a06d0f24a098096"),
|
531
|
-
onSelect: function () {
|
532
|
-
return _this.insertRowAfter(context.node.host);
|
533
|
-
}
|
534
|
-
});
|
535
|
-
} else {
|
536
|
-
menus.push('|');
|
537
|
-
menus.push({
|
538
|
-
label: i18n("57ff158884582ed498a87d03aed46146"),
|
539
|
-
onSelect: function () {
|
540
|
-
return _this.insertRowBefore(context.node);
|
541
|
-
}
|
542
|
-
});
|
543
|
-
menus.push({
|
544
|
-
label: i18n("bd63eab86ac0e0b35a06d0f24a098096"),
|
545
|
-
onSelect: function () {
|
546
|
-
return _this.insertRowAfter(context.node);
|
547
|
-
}
|
548
|
-
});
|
549
|
-
}
|
550
|
-
};
|
551
|
-
|
552
|
-
GridPlugin.prototype.onWidthChangeStart = function (event) {
|
553
|
-
var _a, _b;
|
554
|
-
|
555
|
-
var context = event.context;
|
556
|
-
var node = context.node;
|
557
|
-
|
558
|
-
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
559
|
-
return;
|
560
|
-
}
|
561
|
-
|
562
|
-
var host = node.host;
|
563
|
-
|
564
|
-
if (!host || ((_b = host.info) === null || _b === void 0 ? void 0 : _b.plugin) !== this) {
|
565
|
-
return;
|
566
|
-
}
|
567
|
-
|
568
|
-
var dom = context.dom;
|
569
|
-
var parent = dom.parentElement;
|
570
|
-
|
571
|
-
if (!parent) {
|
572
|
-
return;
|
556
|
+
});
|
557
|
+
Object.defineProperty(GridPlugin.prototype, "afterResolveJsonSchema", {
|
558
|
+
enumerable: false,
|
559
|
+
configurable: true,
|
560
|
+
writable: true,
|
561
|
+
value: function (event) {
|
562
|
+
var _a, _b;
|
563
|
+
var context = event.context;
|
564
|
+
var parent = (_a = context.node.parent) === null || _a === void 0 ? void 0 : _a.host;
|
565
|
+
if (((_b = parent === null || parent === void 0 ? void 0 : parent.info) === null || _b === void 0 ? void 0 : _b.plugin) === this) {
|
566
|
+
event.setData('/schemas/GridColumn.json');
|
567
|
+
}
|
573
568
|
}
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
569
|
+
});
|
570
|
+
Object.defineProperty(GridPlugin.prototype, "buildEditorContextMenu", {
|
571
|
+
enumerable: false,
|
572
|
+
configurable: true,
|
573
|
+
writable: true,
|
574
|
+
value: function (context, menus) {
|
575
|
+
var _this = this;
|
576
|
+
var _a;
|
577
|
+
if (context.selections.length || ((_a = context.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
578
|
+
return;
|
579
|
+
}
|
580
|
+
if (context.node.isVitualRenderer) {
|
581
|
+
menus.push('|');
|
582
|
+
menus.push({
|
583
|
+
label: i18n("9cc03fc4b3e87e8410e10357a219b44e"),
|
584
|
+
onSelect: function () {
|
585
|
+
return _this.insertColumnBefore(context);
|
586
|
+
}
|
587
|
+
});
|
588
|
+
menus.push({
|
589
|
+
label: i18n("6b12fc99e2a46aed982d46b93ac191a0"),
|
590
|
+
onSelect: function () {
|
591
|
+
return _this.insertColumnAfter(context);
|
592
|
+
}
|
588
593
|
});
|
589
|
-
|
590
|
-
|
591
|
-
|
594
|
+
menus.push('|');
|
595
|
+
menus.push({
|
596
|
+
label: i18n("57ff158884582ed498a87d03aed46146"),
|
597
|
+
onSelect: function () {
|
598
|
+
return _this.insertRowBefore(context.node.host);
|
599
|
+
}
|
592
600
|
});
|
593
|
-
|
594
|
-
|
601
|
+
menus.push({
|
602
|
+
label: i18n("bd63eab86ac0e0b35a06d0f24a098096"),
|
603
|
+
onSelect: function () {
|
604
|
+
return _this.insertRowAfter(context.node.host);
|
605
|
+
}
|
595
606
|
});
|
596
|
-
}
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
607
|
+
} else {
|
608
|
+
menus.push('|');
|
609
|
+
menus.push({
|
610
|
+
label: i18n("57ff158884582ed498a87d03aed46146"),
|
611
|
+
onSelect: function () {
|
612
|
+
return _this.insertRowBefore(context.node);
|
613
|
+
}
|
602
614
|
});
|
603
|
-
|
604
|
-
|
615
|
+
menus.push({
|
616
|
+
label: i18n("bd63eab86ac0e0b35a06d0f24a098096"),
|
617
|
+
onSelect: function () {
|
618
|
+
return _this.insertRowAfter(context.node);
|
619
|
+
}
|
605
620
|
});
|
606
621
|
}
|
607
|
-
});
|
608
|
-
};
|
609
|
-
|
610
|
-
GridPlugin.prototype.insertRowAfter = function (node) {
|
611
|
-
var _this = this;
|
612
|
-
|
613
|
-
var _a;
|
614
|
-
|
615
|
-
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
616
|
-
return;
|
617
622
|
}
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
623
|
+
});
|
624
|
+
Object.defineProperty(GridPlugin.prototype, "onWidthChangeStart", {
|
625
|
+
enumerable: false,
|
626
|
+
configurable: true,
|
627
|
+
writable: true,
|
628
|
+
value: function (event) {
|
629
|
+
var _a, _b;
|
630
|
+
var context = event.context;
|
631
|
+
var node = context.node;
|
632
|
+
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
633
|
+
return;
|
634
|
+
}
|
635
|
+
var host = node.host;
|
636
|
+
if (!host || ((_b = host.info) === null || _b === void 0 ? void 0 : _b.plugin) !== this) {
|
637
|
+
return;
|
638
|
+
}
|
639
|
+
var dom = context.dom;
|
640
|
+
var parent = dom.parentElement;
|
641
|
+
if (!parent) {
|
642
|
+
return;
|
643
|
+
}
|
644
|
+
var resizer = context.resizer;
|
645
|
+
var frameRect = parent.getBoundingClientRect();
|
646
|
+
var columns = host.schema.columns;
|
647
|
+
var index = node.index;
|
648
|
+
var finalMd = columns[index].md;
|
649
|
+
var rect = dom.getBoundingClientRect();
|
650
|
+
event.setData({
|
651
|
+
onMove: function (e) {
|
652
|
+
var width = e.pageX - rect.left;
|
653
|
+
var md = finalMd = Math.max(1, Math.min(12, Math.round(12 * width / frameRect.width)));
|
654
|
+
columns = columns.concat();
|
655
|
+
columns[index] = __assign(__assign({}, columns[index]), {
|
656
|
+
md: md
|
657
|
+
});
|
658
|
+
resizer.setAttribute('data-value', "".concat(md));
|
659
|
+
host.updateState({
|
660
|
+
columns: columns
|
661
|
+
});
|
662
|
+
requestAnimationFrame(function () {
|
663
|
+
node.calculateHighlightBox();
|
664
|
+
});
|
665
|
+
},
|
666
|
+
onEnd: function () {
|
667
|
+
host.updateState({}, true);
|
668
|
+
resizer.removeAttribute('data-value');
|
669
|
+
node.updateSchema({
|
670
|
+
md: finalMd
|
671
|
+
});
|
672
|
+
requestAnimationFrame(function () {
|
673
|
+
node.calculateHighlightBox();
|
674
|
+
});
|
675
|
+
}
|
676
|
+
});
|
677
|
+
}
|
678
|
+
});
|
679
|
+
Object.defineProperty(GridPlugin.prototype, "insertRowAfter", {
|
680
|
+
enumerable: false,
|
681
|
+
configurable: true,
|
682
|
+
writable: true,
|
683
|
+
value: function (node) {
|
684
|
+
var _this = this;
|
685
|
+
var _a;
|
686
|
+
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
687
|
+
return;
|
688
|
+
}
|
689
|
+
var store = this.manager.store;
|
690
|
+
var schema = store.schema;
|
691
|
+
var id = node.id;
|
692
|
+
store.traceableSetSchema(JSONChangeInArray(schema, id, function (arr, node, index) {
|
693
|
+
arr.splice(index + 1, 0, JSONPipeIn({
|
694
|
+
type: _this.rendererName || 'grid',
|
695
|
+
align: node.align,
|
696
|
+
valign: node.valign,
|
697
|
+
columns: node.columns.map(function (column) {
|
698
|
+
return {
|
699
|
+
body: [],
|
700
|
+
md: column === null || column === void 0 ? void 0 : column.md
|
701
|
+
};
|
702
|
+
})
|
703
|
+
}));
|
633
704
|
}));
|
634
|
-
}));
|
635
|
-
};
|
636
|
-
|
637
|
-
GridPlugin.prototype.insertRowBefore = function (node) {
|
638
|
-
var _this = this;
|
639
|
-
|
640
|
-
var _a;
|
641
|
-
|
642
|
-
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
643
|
-
return;
|
644
705
|
}
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
706
|
+
});
|
707
|
+
Object.defineProperty(GridPlugin.prototype, "insertRowBefore", {
|
708
|
+
enumerable: false,
|
709
|
+
configurable: true,
|
710
|
+
writable: true,
|
711
|
+
value: function (node) {
|
712
|
+
var _this = this;
|
713
|
+
var _a;
|
714
|
+
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
715
|
+
return;
|
716
|
+
}
|
717
|
+
var store = this.manager.store;
|
718
|
+
var schema = store.schema;
|
719
|
+
var id = node.id;
|
720
|
+
store.traceableSetSchema(JSONChangeInArray(schema, id, function (arr, node, index) {
|
721
|
+
arr.splice(index, 0, JSONPipeIn({
|
722
|
+
type: _this.rendererName || 'grid',
|
723
|
+
align: node.align,
|
724
|
+
valign: node.valign,
|
725
|
+
columns: node.columns.map(function (column) {
|
726
|
+
return {
|
727
|
+
body: [],
|
728
|
+
md: column === null || column === void 0 ? void 0 : column.md
|
729
|
+
};
|
730
|
+
})
|
731
|
+
}));
|
660
732
|
}));
|
661
|
-
}));
|
662
|
-
};
|
663
|
-
|
664
|
-
GridPlugin.prototype.insertColumnBefore = function (context) {
|
665
|
-
var _a;
|
666
|
-
|
667
|
-
var node = context.node;
|
668
|
-
|
669
|
-
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
670
|
-
return;
|
671
733
|
}
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
734
|
+
});
|
735
|
+
Object.defineProperty(GridPlugin.prototype, "insertColumnBefore", {
|
736
|
+
enumerable: false,
|
737
|
+
configurable: true,
|
738
|
+
writable: true,
|
739
|
+
value: function (context) {
|
740
|
+
var _a;
|
741
|
+
var node = context.node;
|
742
|
+
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
743
|
+
return;
|
744
|
+
}
|
745
|
+
var store = this.manager.store;
|
746
|
+
var id = context.id;
|
747
|
+
var schema = store.schema;
|
748
|
+
store.traceableSetSchema(JSONChangeInArray(schema, id, function (arr, node, index) {
|
749
|
+
arr.splice(index, 0, JSONPipeIn({
|
750
|
+
body: []
|
751
|
+
}));
|
679
752
|
}));
|
680
|
-
}));
|
681
|
-
};
|
682
|
-
|
683
|
-
GridPlugin.prototype.insertColumnAfter = function (context) {
|
684
|
-
var _a;
|
685
|
-
|
686
|
-
var node = context.node;
|
687
|
-
|
688
|
-
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
689
|
-
return;
|
690
753
|
}
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
754
|
+
});
|
755
|
+
Object.defineProperty(GridPlugin.prototype, "insertColumnAfter", {
|
756
|
+
enumerable: false,
|
757
|
+
configurable: true,
|
758
|
+
writable: true,
|
759
|
+
value: function (context) {
|
760
|
+
var _a;
|
761
|
+
var node = context.node;
|
762
|
+
if (((_a = node.info) === null || _a === void 0 ? void 0 : _a.plugin) !== this) {
|
763
|
+
return;
|
764
|
+
}
|
765
|
+
var store = this.manager.store;
|
766
|
+
var schema = store.schema;
|
767
|
+
var id = context.id;
|
768
|
+
store.traceableSetSchema(JSONChangeInArray(schema, id, function (arr, node, index) {
|
769
|
+
arr.splice(index + 1, 0, JSONPipeIn({
|
770
|
+
body: []
|
771
|
+
}));
|
698
772
|
}));
|
699
|
-
}
|
700
|
-
};
|
701
|
-
|
773
|
+
}
|
774
|
+
});
|
702
775
|
return GridPlugin;
|
703
776
|
}(BasePlugin);
|
704
777
|
registerEditorPlugin(GridPlugin);
|