devextreme-angular 17.2.14 → 17.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +603 -603
- package/core/component.d.ts +59 -59
- package/core/component.js +175 -175
- package/core/component.js.map +1 -1
- package/core/events-strategy.d.ts +35 -35
- package/core/events-strategy.js +111 -111
- package/core/events-strategy.js.map +1 -1
- package/core/iterable-differ-helper.d.ts +26 -26
- package/core/iterable-differ-helper.js +73 -73
- package/core/iterable-differ-helper.js.map +1 -1
- package/core/nested-option.d.ts +70 -70
- package/core/nested-option.js +201 -201
- package/core/nested-option.js.map +1 -1
- package/core/template-host.d.ts +21 -21
- package/core/template-host.js +27 -27
- package/core/template-host.js.map +1 -1
- package/core/template.d.ts +31 -31
- package/core/template.js +100 -100
- package/core/template.js.map +1 -1
- package/core/utils.d.ts +16 -16
- package/core/utils.js +51 -51
- package/core/utils.js.map +1 -1
- package/core/watcher-helper.d.ts +20 -20
- package/core/watcher-helper.js +82 -82
- package/core/watcher-helper.js.map +1 -1
- package/index.d.ts +91 -91
- package/index.js +96 -96
- package/index.js.map +1 -1
- package/package.json +7 -7
- package/ui/accordion.d.ts +313 -313
- package/ui/accordion.js +596 -596
- package/ui/accordion.js.map +1 -1
- package/ui/action-sheet.d.ts +233 -233
- package/ui/action-sheet.js +446 -446
- package/ui/action-sheet.js.map +1 -1
- package/ui/all.d.ts +14 -14
- package/ui/all.js +244 -244
- package/ui/all.js.map +1 -1
- package/ui/autocomplete.d.ts +487 -487
- package/ui/autocomplete.js +911 -911
- package/ui/autocomplete.js.map +1 -1
- package/ui/bar-gauge.d.ts +301 -301
- package/ui/bar-gauge.js +556 -556
- package/ui/bar-gauge.js.map +1 -1
- package/ui/box.d.ts +203 -203
- package/ui/box.js +383 -383
- package/ui/box.js.map +1 -1
- package/ui/bullet.d.ts +197 -197
- package/ui/bullet.js +393 -393
- package/ui/bullet.js.map +1 -1
- package/ui/button.d.ts +201 -201
- package/ui/button.js +409 -409
- package/ui/button.js.map +1 -1
- package/ui/calendar.d.ts +288 -288
- package/ui/calendar.js +620 -620
- package/ui/calendar.js.map +1 -1
- package/ui/chart.d.ts +881 -881
- package/ui/chart.js +1158 -1158
- package/ui/chart.js.map +1 -1
- package/ui/check-box.d.ts +213 -213
- package/ui/check-box.js +450 -450
- package/ui/check-box.js.map +1 -1
- package/ui/circular-gauge.d.ts +285 -285
- package/ui/circular-gauge.js +552 -552
- package/ui/circular-gauge.js.map +1 -1
- package/ui/color-box.d.ts +365 -365
- package/ui/color-box.js +682 -682
- package/ui/color-box.js.map +1 -1
- package/ui/context-menu.d.ts +357 -357
- package/ui/context-menu.js +698 -698
- package/ui/context-menu.js.map +1 -1
- package/ui/data-grid.d.ts +659 -659
- package/ui/data-grid.js +1290 -1290
- package/ui/data-grid.js.map +1 -1
- package/ui/date-box.d.ts +529 -529
- package/ui/date-box.js +1019 -1019
- package/ui/date-box.js.map +1 -1
- package/ui/defer-rendering.d.ts +182 -182
- package/ui/defer-rendering.js +366 -366
- package/ui/defer-rendering.js.map +1 -1
- package/ui/drop-down-box.d.ts +403 -403
- package/ui/drop-down-box.js +792 -792
- package/ui/drop-down-box.js.map +1 -1
- package/ui/file-uploader.d.ts +360 -360
- package/ui/file-uploader.js +728 -728
- package/ui/file-uploader.js.map +1 -1
- package/ui/filter-builder.d.ts +211 -211
- package/ui/filter-builder.js +475 -475
- package/ui/filter-builder.js.map +1 -1
- package/ui/form.d.ts +319 -319
- package/ui/form.js +677 -677
- package/ui/form.js.map +1 -1
- package/ui/funnel.d.ts +333 -333
- package/ui/funnel.js +639 -639
- package/ui/funnel.js.map +1 -1
- package/ui/gallery.d.ts +313 -313
- package/ui/gallery.js +606 -606
- package/ui/gallery.js.map +1 -1
- package/ui/linear-gauge.d.ts +285 -285
- package/ui/linear-gauge.js +555 -555
- package/ui/linear-gauge.js.map +1 -1
- package/ui/list.d.ts +561 -561
- package/ui/list.js +1050 -1050
- package/ui/list.js.map +1 -1
- package/ui/load-indicator.d.ts +101 -101
- package/ui/load-indicator.js +215 -215
- package/ui/load-indicator.js.map +1 -1
- package/ui/load-panel.d.ts +246 -246
- package/ui/load-panel.js +506 -506
- package/ui/load-panel.js.map +1 -1
- package/ui/lookup.d.ts +691 -691
- package/ui/lookup.js +1388 -1388
- package/ui/lookup.js.map +1 -1
- package/ui/map.d.ts +308 -308
- package/ui/map.js +551 -551
- package/ui/map.js.map +1 -1
- package/ui/menu.d.ts +359 -359
- package/ui/menu.js +678 -678
- package/ui/menu.js.map +1 -1
- package/ui/multi-view.d.ts +269 -269
- package/ui/multi-view.js +526 -526
- package/ui/multi-view.js.map +1 -1
- package/ui/nav-bar.d.ts +269 -269
- package/ui/nav-bar.js +514 -514
- package/ui/nav-bar.js.map +1 -1
- package/ui/nested/adapter.d.ts +26 -26
- package/ui/nested/adapter.js +144 -144
- package/ui/nested/adapter.js.map +1 -1
- package/ui/nested/adaptive-layout.d.ts +23 -23
- package/ui/nested/adaptive-layout.js +111 -111
- package/ui/nested/adaptive-layout.js.map +1 -1
- package/ui/nested/animation.d.ts +20 -20
- package/ui/nested/animation.js +93 -93
- package/ui/nested/animation.js.map +1 -1
- package/ui/nested/area-settings.d.ts +37 -37
- package/ui/nested/area-settings.js +265 -265
- package/ui/nested/area-settings.js.map +1 -1
- package/ui/nested/area.d.ts +20 -20
- package/ui/nested/area.js +137 -137
- package/ui/nested/area.js.map +1 -1
- package/ui/nested/argument-axis.d.ts +145 -145
- package/ui/nested/argument-axis.js +609 -609
- package/ui/nested/argument-axis.js.map +1 -1
- package/ui/nested/argument-format.d.ts +20 -20
- package/ui/nested/argument-format.js +84 -84
- package/ui/nested/argument-format.js.map +1 -1
- package/ui/nested/at.d.ts +22 -22
- package/ui/nested/at.js +100 -100
- package/ui/nested/at.js.map +1 -1
- package/ui/nested/background-image.d.ts +23 -23
- package/ui/nested/background-image.js +111 -111
- package/ui/nested/background-image.js.map +1 -1
- package/ui/nested/background.d.ts +24 -24
- package/ui/nested/background.js +122 -122
- package/ui/nested/background.js.map +1 -1
- package/ui/nested/bar.d.ts +20 -20
- package/ui/nested/bar.js +137 -137
- package/ui/nested/bar.js.map +1 -1
- package/ui/nested/base/animation-config.d.ts +30 -30
- package/ui/nested/base/animation-config.js +173 -173
- package/ui/nested/base/animation-config.js.map +1 -1
- package/ui/nested/base/box-options.d.ts +48 -48
- package/ui/nested/base/box-options.js +253 -253
- package/ui/nested/base/box-options.js.map +1 -1
- package/ui/nested/base/chart-common-series-settings.d.ts +79 -79
- package/ui/nested/base/chart-common-series-settings.js +673 -673
- package/ui/nested/base/chart-common-series-settings.js.map +1 -1
- package/ui/nested/base/chart-series-dxi.d.ts +58 -58
- package/ui/nested/base/chart-series-dxi.js +463 -463
- package/ui/nested/base/chart-series-dxi.js.map +1 -1
- package/ui/nested/base/context-menu-item-dxi.d.ts +94 -94
- package/ui/nested/base/context-menu-item-dxi.js +593 -593
- package/ui/nested/base/context-menu-item-dxi.js.map +1 -1
- package/ui/nested/base/data-grid-column-dxi.d.ts +77 -77
- package/ui/nested/base/data-grid-column-dxi.js +643 -643
- package/ui/nested/base/data-grid-column-dxi.js.map +1 -1
- package/ui/nested/base/filter-builder-field-dxi.d.ts +61 -61
- package/ui/nested/base/filter-builder-field-dxi.js +483 -483
- package/ui/nested/base/filter-builder-field-dxi.js.map +1 -1
- package/ui/nested/base/form-options.d.ts +54 -54
- package/ui/nested/base/form-options.js +413 -413
- package/ui/nested/base/form-options.js.map +1 -1
- package/ui/nested/base/form-simple-item.d.ts +30 -30
- package/ui/nested/base/form-simple-item.js +173 -173
- package/ui/nested/base/form-simple-item.js.map +1 -1
- package/ui/nested/base/format.d.ts +20 -20
- package/ui/nested/base/format.js +83 -83
- package/ui/nested/base/format.js.map +1 -1
- package/ui/nested/base/gauge-indicator.d.ts +34 -34
- package/ui/nested/base/gauge-indicator.js +223 -223
- package/ui/nested/base/gauge-indicator.js.map +1 -1
- package/ui/nested/base/pivot-grid-data-source.d.ts +71 -71
- package/ui/nested/base/pivot-grid-data-source.js +123 -123
- package/ui/nested/base/pivot-grid-data-source.js.map +1 -1
- package/ui/nested/base/popup-options.d.ts +70 -70
- package/ui/nested/base/popup-options.js +473 -473
- package/ui/nested/base/popup-options.js.map +1 -1
- package/ui/nested/base/position-config.d.ts +37 -37
- package/ui/nested/base/position-config.js +103 -103
- package/ui/nested/base/position-config.js.map +1 -1
- package/ui/nested/base/tab-panel-options.d.ts +65 -65
- package/ui/nested/base/tab-panel-options.js +423 -423
- package/ui/nested/base/tab-panel-options.js.map +1 -1
- package/ui/nested/base/text-box-options.d.ts +64 -64
- package/ui/nested/base/text-box-options.js +523 -523
- package/ui/nested/base/text-box-options.js.map +1 -1
- package/ui/nested/base/viz-font.d.ts +20 -20
- package/ui/nested/base/viz-font.js +83 -83
- package/ui/nested/base/viz-font.js.map +1 -1
- package/ui/nested/behavior.d.ts +27 -27
- package/ui/nested/behavior.js +155 -155
- package/ui/nested/behavior.js.map +1 -1
- package/ui/nested/border.d.ts +30 -30
- package/ui/nested/border.js +188 -188
- package/ui/nested/border.js.map +1 -1
- package/ui/nested/boundary-offset.d.ts +22 -22
- package/ui/nested/boundary-offset.js +100 -100
- package/ui/nested/boundary-offset.js.map +1 -1
- package/ui/nested/box.d.ts +23 -23
- package/ui/nested/box.js +115 -115
- package/ui/nested/box.js.map +1 -1
- package/ui/nested/break-dxi.d.ts +22 -22
- package/ui/nested/break-dxi.js +100 -100
- package/ui/nested/break-dxi.js.map +1 -1
- package/ui/nested/break-style.d.ts +23 -23
- package/ui/nested/break-style.js +111 -111
- package/ui/nested/break-style.js.map +1 -1
- package/ui/nested/bubble.d.ts +20 -20
- package/ui/nested/bubble.js +136 -136
- package/ui/nested/bubble.js.map +1 -1
- package/ui/nested/candlestick.d.ts +20 -20
- package/ui/nested/candlestick.js +136 -136
- package/ui/nested/candlestick.js.map +1 -1
- package/ui/nested/center-dxi.d.ts +22 -22
- package/ui/nested/center-dxi.js +100 -100
- package/ui/nested/center-dxi.js.map +1 -1
- package/ui/nested/chart.d.ts +35 -35
- package/ui/nested/chart.js +222 -222
- package/ui/nested/chart.js.map +1 -1
- package/ui/nested/col-count-by-screen.d.ts +24 -24
- package/ui/nested/col-count-by-screen.js +122 -122
- package/ui/nested/col-count-by-screen.js.map +1 -1
- package/ui/nested/col-dxi.d.ts +24 -24
- package/ui/nested/col-dxi.js +122 -122
- package/ui/nested/col-dxi.js.map +1 -1
- package/ui/nested/collision.d.ts +22 -22
- package/ui/nested/collision.js +100 -100
- package/ui/nested/collision.js.map +1 -1
- package/ui/nested/colorizer.d.ts +25 -25
- package/ui/nested/colorizer.js +133 -133
- package/ui/nested/colorizer.js.map +1 -1
- package/ui/nested/column-chooser.d.ts +28 -28
- package/ui/nested/column-chooser.js +166 -166
- package/ui/nested/column-chooser.js.map +1 -1
- package/ui/nested/column-dxi.d.ts +24 -24
- package/ui/nested/column-dxi.js +165 -165
- package/ui/nested/column-dxi.js.map +1 -1
- package/ui/nested/column-fixing.d.ts +22 -22
- package/ui/nested/column-fixing.js +100 -100
- package/ui/nested/column-fixing.js.map +1 -1
- package/ui/nested/common-axis-settings.d.ts +42 -42
- package/ui/nested/common-axis-settings.js +320 -320
- package/ui/nested/common-axis-settings.js.map +1 -1
- package/ui/nested/common-pane-settings.d.ts +22 -22
- package/ui/nested/common-pane-settings.js +100 -100
- package/ui/nested/common-pane-settings.js.map +1 -1
- package/ui/nested/common-series-settings.d.ts +20 -20
- package/ui/nested/common-series-settings.js +143 -143
- package/ui/nested/common-series-settings.js.map +1 -1
- package/ui/nested/connector.d.ts +24 -24
- package/ui/nested/connector.js +122 -122
- package/ui/nested/connector.js.map +1 -1
- package/ui/nested/constant-line-dxi.d.ts +27 -27
- package/ui/nested/constant-line-dxi.js +155 -155
- package/ui/nested/constant-line-dxi.js.map +1 -1
- package/ui/nested/constant-line-style.d.ts +26 -26
- package/ui/nested/constant-line-style.js +144 -144
- package/ui/nested/constant-line-style.js.map +1 -1
- package/ui/nested/control-bar.d.ts +27 -27
- package/ui/nested/control-bar.js +155 -155
- package/ui/nested/control-bar.js.map +1 -1
- package/ui/nested/crosshair.d.ts +57 -57
- package/ui/nested/crosshair.js +166 -166
- package/ui/nested/crosshair.js.map +1 -1
- package/ui/nested/data-prepare-settings.d.ts +23 -23
- package/ui/nested/data-prepare-settings.js +111 -111
- package/ui/nested/data-prepare-settings.js.map +1 -1
- package/ui/nested/data-source.d.ts +23 -23
- package/ui/nested/data-source.js +107 -107
- package/ui/nested/data-source.js.map +1 -1
- package/ui/nested/delay.d.ts +22 -22
- package/ui/nested/delay.js +100 -100
- package/ui/nested/delay.js.map +1 -1
- package/ui/nested/display-format.d.ts +20 -20
- package/ui/nested/display-format.js +84 -84
- package/ui/nested/display-format.js.map +1 -1
- package/ui/nested/drop-down-options.d.ts +23 -23
- package/ui/nested/drop-down-options.js +137 -137
- package/ui/nested/drop-down-options.js.map +1 -1
- package/ui/nested/editing.d.ts +34 -34
- package/ui/nested/editing.js +221 -221
- package/ui/nested/editing.js.map +1 -1
- package/ui/nested/export.d.ts +31 -31
- package/ui/nested/export.js +199 -199
- package/ui/nested/export.js.map +1 -1
- package/ui/nested/field-chooser.d.ts +28 -28
- package/ui/nested/field-chooser.js +166 -166
- package/ui/nested/field-chooser.js.map +1 -1
- package/ui/nested/field-dxi.d.ts +20 -20
- package/ui/nested/field-dxi.js +124 -124
- package/ui/nested/field-dxi.js.map +1 -1
- package/ui/nested/field-panel.d.ts +27 -27
- package/ui/nested/field-panel.js +155 -155
- package/ui/nested/field-panel.js.map +1 -1
- package/ui/nested/filter-operation-descriptions.d.ts +32 -32
- package/ui/nested/filter-operation-descriptions.js +210 -210
- package/ui/nested/filter-operation-descriptions.js.map +1 -1
- package/ui/nested/filter-row.d.ts +29 -29
- package/ui/nested/filter-row.js +177 -177
- package/ui/nested/filter-row.js.map +1 -1
- package/ui/nested/font.d.ts +20 -20
- package/ui/nested/font.js +84 -84
- package/ui/nested/font.js.map +1 -1
- package/ui/nested/form-item.d.ts +23 -23
- package/ui/nested/form-item.js +107 -107
- package/ui/nested/form-item.js.map +1 -1
- package/ui/nested/form.d.ts +23 -23
- package/ui/nested/form.js +131 -131
- package/ui/nested/form.js.map +1 -1
- package/ui/nested/format.d.ts +20 -20
- package/ui/nested/format.js +84 -84
- package/ui/nested/format.js.map +1 -1
- package/ui/nested/fullstackedarea.d.ts +20 -20
- package/ui/nested/fullstackedarea.js +136 -136
- package/ui/nested/fullstackedarea.js.map +1 -1
- package/ui/nested/fullstackedbar.d.ts +20 -20
- package/ui/nested/fullstackedbar.js +136 -136
- package/ui/nested/fullstackedbar.js.map +1 -1
- package/ui/nested/fullstackedline.d.ts +20 -20
- package/ui/nested/fullstackedline.js +136 -136
- package/ui/nested/fullstackedline.js.map +1 -1
- package/ui/nested/fullstackedspline.d.ts +20 -20
- package/ui/nested/fullstackedspline.js +136 -136
- package/ui/nested/fullstackedspline.js.map +1 -1
- package/ui/nested/fullstackedsplinearea.d.ts +20 -20
- package/ui/nested/fullstackedsplinearea.js +136 -136
- package/ui/nested/fullstackedsplinearea.js.map +1 -1
- package/ui/nested/geometry.d.ts +23 -23
- package/ui/nested/geometry.js +111 -111
- package/ui/nested/geometry.js.map +1 -1
- package/ui/nested/grid.d.ts +24 -24
- package/ui/nested/grid.js +122 -122
- package/ui/nested/grid.js.map +1 -1
- package/ui/nested/group-item-dxi.d.ts +32 -32
- package/ui/nested/group-item-dxi.js +199 -199
- package/ui/nested/group-item-dxi.js.map +1 -1
- package/ui/nested/group-operation-descriptions.d.ts +24 -24
- package/ui/nested/group-operation-descriptions.js +122 -122
- package/ui/nested/group-operation-descriptions.js.map +1 -1
- package/ui/nested/group-panel.d.ts +23 -23
- package/ui/nested/group-panel.js +111 -111
- package/ui/nested/group-panel.js.map +1 -1
- package/ui/nested/group.d.ts +27 -27
- package/ui/nested/group.js +155 -155
- package/ui/nested/group.js.map +1 -1
- package/ui/nested/grouping.d.ts +27 -27
- package/ui/nested/grouping.js +155 -155
- package/ui/nested/grouping.js.map +1 -1
- package/ui/nested/hatching.d.ts +24 -24
- package/ui/nested/hatching.js +122 -122
- package/ui/nested/hatching.js.map +1 -1
- package/ui/nested/header-filter.d.ts +29 -29
- package/ui/nested/header-filter.js +166 -166
- package/ui/nested/header-filter.js.map +1 -1
- package/ui/nested/height.d.ts +22 -22
- package/ui/nested/height.js +100 -100
- package/ui/nested/height.js.map +1 -1
- package/ui/nested/hide-event.d.ts +22 -22
- package/ui/nested/hide-event.js +100 -100
- package/ui/nested/hide-event.js.map +1 -1
- package/ui/nested/hide.d.ts +20 -20
- package/ui/nested/hide.js +89 -89
- package/ui/nested/hide.js.map +1 -1
- package/ui/nested/horizontal-line.d.ts +26 -26
- package/ui/nested/horizontal-line.js +144 -144
- package/ui/nested/horizontal-line.js.map +1 -1
- package/ui/nested/hover-style.d.ts +26 -26
- package/ui/nested/hover-style.js +144 -144
- package/ui/nested/hover-style.js.map +1 -1
- package/ui/nested/image.d.ts +33 -33
- package/ui/nested/image.js +122 -122
- package/ui/nested/image.js.map +1 -1
- package/ui/nested/indent.d.ts +22 -22
- package/ui/nested/indent.js +100 -100
- package/ui/nested/indent.js.map +1 -1
- package/ui/nested/item-dxi.d.ts +33 -33
- package/ui/nested/item-dxi.js +195 -195
- package/ui/nested/item-dxi.js.map +1 -1
- package/ui/nested/item.d.ts +23 -23
- package/ui/nested/item.js +111 -111
- package/ui/nested/item.js.map +1 -1
- package/ui/nested/key.d.ts +23 -23
- package/ui/nested/key.js +111 -111
- package/ui/nested/key.js.map +1 -1
- package/ui/nested/label.d.ts +65 -65
- package/ui/nested/label.js +485 -485
- package/ui/nested/label.js.map +1 -1
- package/ui/nested/layer-dxi.d.ts +50 -50
- package/ui/nested/layer-dxi.js +397 -397
- package/ui/nested/layer-dxi.js.map +1 -1
- package/ui/nested/legend-dxi.d.ts +48 -48
- package/ui/nested/legend-dxi.js +320 -320
- package/ui/nested/legend-dxi.js.map +1 -1
- package/ui/nested/legend.d.ts +47 -47
- package/ui/nested/legend.js +309 -309
- package/ui/nested/legend.js.map +1 -1
- package/ui/nested/line.d.ts +20 -20
- package/ui/nested/line.js +137 -137
- package/ui/nested/line.js.map +1 -1
- package/ui/nested/load-panel.d.ts +27 -27
- package/ui/nested/load-panel.js +155 -155
- package/ui/nested/load-panel.js.map +1 -1
- package/ui/nested/loading-indicator.d.ts +25 -25
- package/ui/nested/loading-indicator.js +122 -122
- package/ui/nested/loading-indicator.js.map +1 -1
- package/ui/nested/location-dxi.d.ts +27 -27
- package/ui/nested/location-dxi.js +155 -155
- package/ui/nested/location-dxi.js.map +1 -1
- package/ui/nested/lookup.d.ts +25 -25
- package/ui/nested/lookup.js +122 -122
- package/ui/nested/lookup.js.map +1 -1
- package/ui/nested/major-tick-interval.d.ts +27 -27
- package/ui/nested/major-tick-interval.js +155 -155
- package/ui/nested/major-tick-interval.js.map +1 -1
- package/ui/nested/major-tick.d.ts +28 -28
- package/ui/nested/major-tick.js +166 -166
- package/ui/nested/major-tick.js.map +1 -1
- package/ui/nested/margin.d.ts +24 -24
- package/ui/nested/margin.js +122 -122
- package/ui/nested/margin.js.map +1 -1
- package/ui/nested/marker-dxi.d.ts +39 -39
- package/ui/nested/marker-dxi.js +200 -200
- package/ui/nested/marker-dxi.js.map +1 -1
- package/ui/nested/marker-settings.d.ts +43 -43
- package/ui/nested/marker-settings.js +331 -331
- package/ui/nested/marker-settings.js.map +1 -1
- package/ui/nested/marker.d.ts +26 -26
- package/ui/nested/marker.js +144 -144
- package/ui/nested/marker.js.map +1 -1
- package/ui/nested/master-detail.d.ts +29 -29
- package/ui/nested/master-detail.js +122 -122
- package/ui/nested/master-detail.js.map +1 -1
- package/ui/nested/max-range.d.ts +29 -29
- package/ui/nested/max-range.js +177 -177
- package/ui/nested/max-range.js.map +1 -1
- package/ui/nested/menu-item-dxi.d.ts +22 -22
- package/ui/nested/menu-item-dxi.js +100 -100
- package/ui/nested/menu-item-dxi.js.map +1 -1
- package/ui/nested/min-range.d.ts +29 -29
- package/ui/nested/min-range.js +177 -177
- package/ui/nested/min-range.js.map +1 -1
- package/ui/nested/minor-grid.d.ts +24 -24
- package/ui/nested/minor-grid.js +122 -122
- package/ui/nested/minor-grid.js.map +1 -1
- package/ui/nested/minor-tick-interval.d.ts +29 -29
- package/ui/nested/minor-tick-interval.js +177 -177
- package/ui/nested/minor-tick-interval.js.map +1 -1
- package/ui/nested/minor-tick.d.ts +28 -28
- package/ui/nested/minor-tick.js +166 -166
- package/ui/nested/minor-tick.js.map +1 -1
- package/ui/nested/my.d.ts +22 -22
- package/ui/nested/my.js +100 -100
- package/ui/nested/my.js.map +1 -1
- package/ui/nested/offset.d.ts +22 -22
- package/ui/nested/offset.js +100 -100
- package/ui/nested/offset.js.map +1 -1
- package/ui/nested/operation-descriptions.d.ts +31 -31
- package/ui/nested/operation-descriptions.js +199 -199
- package/ui/nested/operation-descriptions.js.map +1 -1
- package/ui/nested/overlapping-behavior.d.ts +25 -25
- package/ui/nested/overlapping-behavior.js +133 -133
- package/ui/nested/overlapping-behavior.js.map +1 -1
- package/ui/nested/pager.d.ts +26 -26
- package/ui/nested/pager.js +144 -144
- package/ui/nested/pager.js.map +1 -1
- package/ui/nested/paging.d.ts +23 -23
- package/ui/nested/paging.js +111 -111
- package/ui/nested/paging.js.map +1 -1
- package/ui/nested/pane-dxi.d.ts +23 -23
- package/ui/nested/pane-dxi.js +111 -111
- package/ui/nested/pane-dxi.js.map +1 -1
- package/ui/nested/placeholder-size.d.ts +25 -25
- package/ui/nested/placeholder-size.js +100 -100
- package/ui/nested/placeholder-size.js.map +1 -1
- package/ui/nested/point.d.ts +47 -47
- package/ui/nested/point.js +188 -188
- package/ui/nested/point.js.map +1 -1
- package/ui/nested/popup.d.ts +23 -23
- package/ui/nested/popup.js +137 -137
- package/ui/nested/popup.js.map +1 -1
- package/ui/nested/position.d.ts +20 -20
- package/ui/nested/position.js +86 -86
- package/ui/nested/position.js.map +1 -1
- package/ui/nested/range-container.d.ts +38 -38
- package/ui/nested/range-container.js +178 -178
- package/ui/nested/range-container.js.map +1 -1
- package/ui/nested/range-dxi.d.ts +23 -23
- package/ui/nested/range-dxi.js +111 -111
- package/ui/nested/range-dxi.js.map +1 -1
- package/ui/nested/rangearea.d.ts +20 -20
- package/ui/nested/rangearea.js +136 -136
- package/ui/nested/rangearea.js.map +1 -1
- package/ui/nested/rangebar.d.ts +20 -20
- package/ui/nested/rangebar.js +136 -136
- package/ui/nested/rangebar.js.map +1 -1
- package/ui/nested/reduction.d.ts +22 -22
- package/ui/nested/reduction.js +100 -100
- package/ui/nested/reduction.js.map +1 -1
- package/ui/nested/remote-operations.d.ts +26 -26
- package/ui/nested/remote-operations.js +144 -144
- package/ui/nested/remote-operations.js.map +1 -1
- package/ui/nested/resource-dxi.d.ts +31 -31
- package/ui/nested/resource-dxi.js +188 -188
- package/ui/nested/resource-dxi.js.map +1 -1
- package/ui/nested/route-dxi.d.ts +31 -31
- package/ui/nested/route-dxi.js +145 -145
- package/ui/nested/route-dxi.js.map +1 -1
- package/ui/nested/row-dxi.d.ts +24 -24
- package/ui/nested/row-dxi.js +122 -122
- package/ui/nested/row-dxi.js.map +1 -1
- package/ui/nested/scale.d.ts +114 -114
- package/ui/nested/scale.js +519 -519
- package/ui/nested/scale.js.map +1 -1
- package/ui/nested/scatter.d.ts +20 -20
- package/ui/nested/scatter.js +137 -137
- package/ui/nested/scatter.js.map +1 -1
- package/ui/nested/scroll-bar.d.ts +26 -26
- package/ui/nested/scroll-bar.js +144 -144
- package/ui/nested/scroll-bar.js.map +1 -1
- package/ui/nested/scrolling.d.ts +26 -26
- package/ui/nested/scrolling.js +144 -144
- package/ui/nested/scrolling.js.map +1 -1
- package/ui/nested/search-editor-options.d.ts +20 -20
- package/ui/nested/search-editor-options.js +128 -128
- package/ui/nested/search-editor-options.js.map +1 -1
- package/ui/nested/search-panel.d.ts +27 -27
- package/ui/nested/search-panel.js +155 -155
- package/ui/nested/search-panel.js.map +1 -1
- package/ui/nested/selected-range.d.ts +22 -22
- package/ui/nested/selected-range.js +100 -100
- package/ui/nested/selected-range.js.map +1 -1
- package/ui/nested/selection-style.d.ts +26 -26
- package/ui/nested/selection-style.js +144 -144
- package/ui/nested/selection-style.js.map +1 -1
- package/ui/nested/selection.d.ts +26 -26
- package/ui/nested/selection.js +144 -144
- package/ui/nested/selection.js.map +1 -1
- package/ui/nested/series-dxi.d.ts +20 -20
- package/ui/nested/series-dxi.js +122 -122
- package/ui/nested/series-dxi.js.map +1 -1
- package/ui/nested/series-template.d.ts +22 -22
- package/ui/nested/series-template.js +100 -100
- package/ui/nested/series-template.js.map +1 -1
- package/ui/nested/shadow.d.ts +25 -25
- package/ui/nested/shadow.js +133 -133
- package/ui/nested/shadow.js.map +1 -1
- package/ui/nested/show-event.d.ts +22 -22
- package/ui/nested/show-event.js +100 -100
- package/ui/nested/show-event.js.map +1 -1
- package/ui/nested/show-first-submenu-mode.d.ts +25 -25
- package/ui/nested/show-first-submenu-mode.js +100 -100
- package/ui/nested/show-first-submenu-mode.js.map +1 -1
- package/ui/nested/show-submenu-mode.d.ts +25 -25
- package/ui/nested/show-submenu-mode.js +100 -100
- package/ui/nested/show-submenu-mode.js.map +1 -1
- package/ui/nested/show.d.ts +20 -20
- package/ui/nested/show.js +89 -89
- package/ui/nested/show.js.map +1 -1
- package/ui/nested/shutter.d.ts +22 -22
- package/ui/nested/shutter.js +100 -100
- package/ui/nested/shutter.js.map +1 -1
- package/ui/nested/size.d.ts +22 -22
- package/ui/nested/size.js +100 -100
- package/ui/nested/size.js.map +1 -1
- package/ui/nested/slider-handle.d.ts +23 -23
- package/ui/nested/slider-handle.js +111 -111
- package/ui/nested/slider-handle.js.map +1 -1
- package/ui/nested/slider-marker.d.ts +39 -39
- package/ui/nested/slider-marker.js +210 -210
- package/ui/nested/slider-marker.js.map +1 -1
- package/ui/nested/small-values-grouping.d.ts +24 -24
- package/ui/nested/small-values-grouping.js +122 -122
- package/ui/nested/small-values-grouping.js.map +1 -1
- package/ui/nested/sort-by-group-summary-info-dxi.d.ts +23 -23
- package/ui/nested/sort-by-group-summary-info-dxi.js +111 -111
- package/ui/nested/sort-by-group-summary-info-dxi.js.map +1 -1
- package/ui/nested/sorting.d.ts +24 -24
- package/ui/nested/sorting.js +122 -122
- package/ui/nested/sorting.js.map +1 -1
- package/ui/nested/source.d.ts +22 -22
- package/ui/nested/source.js +100 -100
- package/ui/nested/source.js.map +1 -1
- package/ui/nested/spline.d.ts +20 -20
- package/ui/nested/spline.js +136 -136
- package/ui/nested/spline.js.map +1 -1
- package/ui/nested/splinearea.d.ts +20 -20
- package/ui/nested/splinearea.js +136 -136
- package/ui/nested/splinearea.js.map +1 -1
- package/ui/nested/stackedarea.d.ts +20 -20
- package/ui/nested/stackedarea.js +136 -136
- package/ui/nested/stackedarea.js.map +1 -1
- package/ui/nested/stackedbar.d.ts +20 -20
- package/ui/nested/stackedbar.js +137 -137
- package/ui/nested/stackedbar.js.map +1 -1
- package/ui/nested/stackedline.d.ts +20 -20
- package/ui/nested/stackedline.js +136 -136
- package/ui/nested/stackedline.js.map +1 -1
- package/ui/nested/stackedspline.d.ts +20 -20
- package/ui/nested/stackedspline.js +136 -136
- package/ui/nested/stackedspline.js.map +1 -1
- package/ui/nested/stackedsplinearea.d.ts +20 -20
- package/ui/nested/stackedsplinearea.js +136 -136
- package/ui/nested/stackedsplinearea.js.map +1 -1
- package/ui/nested/state-storing.d.ts +26 -26
- package/ui/nested/state-storing.js +144 -144
- package/ui/nested/state-storing.js.map +1 -1
- package/ui/nested/steparea.d.ts +20 -20
- package/ui/nested/steparea.js +136 -136
- package/ui/nested/steparea.js.map +1 -1
- package/ui/nested/stepline.d.ts +20 -20
- package/ui/nested/stepline.js +136 -136
- package/ui/nested/stepline.js.map +1 -1
- package/ui/nested/stock.d.ts +20 -20
- package/ui/nested/stock.js +136 -136
- package/ui/nested/stock.js.map +1 -1
- package/ui/nested/store.d.ts +21 -21
- package/ui/nested/store.js +89 -89
- package/ui/nested/store.js.map +1 -1
- package/ui/nested/strip-dxi.d.ts +26 -26
- package/ui/nested/strip-dxi.js +144 -144
- package/ui/nested/strip-dxi.js.map +1 -1
- package/ui/nested/strip-style.d.ts +23 -23
- package/ui/nested/strip-style.js +111 -111
- package/ui/nested/strip-style.js.map +1 -1
- package/ui/nested/subtitle.d.ts +23 -23
- package/ui/nested/subtitle.js +100 -100
- package/ui/nested/subtitle.js.map +1 -1
- package/ui/nested/subvalue-indicator.d.ts +20 -20
- package/ui/nested/subvalue-indicator.js +98 -98
- package/ui/nested/subvalue-indicator.js.map +1 -1
- package/ui/nested/summary.d.ts +55 -55
- package/ui/nested/summary.js +157 -157
- package/ui/nested/summary.js.map +1 -1
- package/ui/nested/tab-dxi.d.ts +39 -39
- package/ui/nested/tab-dxi.js +211 -211
- package/ui/nested/tab-dxi.js.map +1 -1
- package/ui/nested/tab-panel-options.d.ts +23 -23
- package/ui/nested/tab-panel-options.js +132 -132
- package/ui/nested/tab-panel-options.js.map +1 -1
- package/ui/nested/text.d.ts +26 -26
- package/ui/nested/text.js +133 -133
- package/ui/nested/text.js.map +1 -1
- package/ui/nested/texts.d.ts +78 -78
- package/ui/nested/texts.js +716 -716
- package/ui/nested/texts.js.map +1 -1
- package/ui/nested/tick-interval.d.ts +29 -29
- package/ui/nested/tick-interval.js +177 -177
- package/ui/nested/tick-interval.js.map +1 -1
- package/ui/nested/tick.d.ts +25 -25
- package/ui/nested/tick.js +133 -133
- package/ui/nested/tick.js.map +1 -1
- package/ui/nested/tile.d.ts +25 -25
- package/ui/nested/tile.js +133 -133
- package/ui/nested/tile.js.map +1 -1
- package/ui/nested/title.d.ts +37 -37
- package/ui/nested/title.js +166 -166
- package/ui/nested/title.js.map +1 -1
- package/ui/nested/toolbar-item-dxi.d.ts +35 -35
- package/ui/nested/toolbar-item-dxi.js +188 -188
- package/ui/nested/toolbar-item-dxi.js.map +1 -1
- package/ui/nested/tooltip.d.ts +46 -46
- package/ui/nested/tooltip.js +353 -353
- package/ui/nested/tooltip.js.map +1 -1
- package/ui/nested/total-item-dxi.d.ts +32 -32
- package/ui/nested/total-item-dxi.js +199 -199
- package/ui/nested/total-item-dxi.js.map +1 -1
- package/ui/nested/url.d.ts +22 -22
- package/ui/nested/url.js +100 -100
- package/ui/nested/url.js.map +1 -1
- package/ui/nested/validation-rule-dxi.d.ts +30 -30
- package/ui/nested/validation-rule-dxi.js +188 -188
- package/ui/nested/validation-rule-dxi.js.map +1 -1
- package/ui/nested/value-axis-dxi.d.ts +125 -125
- package/ui/nested/value-axis-dxi.js +587 -587
- package/ui/nested/value-axis-dxi.js.map +1 -1
- package/ui/nested/value-axis.d.ts +96 -96
- package/ui/nested/value-axis.js +454 -454
- package/ui/nested/value-axis.js.map +1 -1
- package/ui/nested/value-error-bar.d.ts +29 -29
- package/ui/nested/value-error-bar.js +177 -177
- package/ui/nested/value-error-bar.js.map +1 -1
- package/ui/nested/value-format.d.ts +20 -20
- package/ui/nested/value-format.js +84 -84
- package/ui/nested/value-format.js.map +1 -1
- package/ui/nested/value-indicator.d.ts +20 -20
- package/ui/nested/value-indicator.js +98 -98
- package/ui/nested/value-indicator.js.map +1 -1
- package/ui/nested/vertical-line.d.ts +26 -26
- package/ui/nested/vertical-line.js +144 -144
- package/ui/nested/vertical-line.js.map +1 -1
- package/ui/nested/view-dxi.d.ts +38 -38
- package/ui/nested/view-dxi.js +276 -276
- package/ui/nested/view-dxi.js.map +1 -1
- package/ui/nested/width.d.ts +26 -26
- package/ui/nested/width.js +144 -144
- package/ui/nested/width.js.map +1 -1
- package/ui/number-box.d.ts +362 -362
- package/ui/number-box.js +683 -683
- package/ui/number-box.js.map +1 -1
- package/ui/panorama.d.ts +231 -231
- package/ui/panorama.js +449 -449
- package/ui/panorama.js.map +1 -1
- package/ui/pie-chart.d.ts +381 -381
- package/ui/pie-chart.js +722 -722
- package/ui/pie-chart.js.map +1 -1
- package/ui/pivot-grid-field-chooser.d.ts +201 -201
- package/ui/pivot-grid-field-chooser.js +427 -427
- package/ui/pivot-grid-field-chooser.js.map +1 -1
- package/ui/pivot-grid.d.ts +333 -333
- package/ui/pivot-grid.js +691 -691
- package/ui/pivot-grid.js.map +1 -1
- package/ui/pivot.d.ts +233 -233
- package/ui/pivot.js +446 -446
- package/ui/pivot.js.map +1 -1
- package/ui/polar-chart.d.ts +421 -421
- package/ui/polar-chart.js +841 -841
- package/ui/polar-chart.js.map +1 -1
- package/ui/popover.d.ts +339 -339
- package/ui/popover.js +655 -655
- package/ui/popover.js.map +1 -1
- package/ui/popup.d.ts +363 -363
- package/ui/popup.js +703 -703
- package/ui/popup.js.map +1 -1
- package/ui/progress-bar.d.ts +201 -201
- package/ui/progress-bar.js +420 -420
- package/ui/progress-bar.js.map +1 -1
- package/ui/radio-group.d.ts +275 -275
- package/ui/radio-group.js +575 -575
- package/ui/radio-group.js.map +1 -1
- package/ui/range-selector.d.ts +312 -312
- package/ui/range-selector.js +778 -778
- package/ui/range-selector.js.map +1 -1
- package/ui/range-slider.d.ts +292 -292
- package/ui/range-slider.js +631 -631
- package/ui/range-slider.js.map +1 -1
- package/ui/resizable.d.ts +125 -125
- package/ui/resizable.js +251 -251
- package/ui/resizable.js.map +1 -1
- package/ui/responsive-box.d.ts +241 -241
- package/ui/responsive-box.js +433 -433
- package/ui/responsive-box.js.map +1 -1
- package/ui/scheduler.d.ts +589 -589
- package/ui/scheduler.js +1024 -1024
- package/ui/scheduler.js.map +1 -1
- package/ui/scroll-view.d.ts +177 -177
- package/ui/scroll-view.js +349 -349
- package/ui/scroll-view.js.map +1 -1
- package/ui/select-box.d.ts +547 -547
- package/ui/select-box.js +1025 -1025
- package/ui/select-box.js.map +1 -1
- package/ui/slide-out-view.d.ts +153 -153
- package/ui/slide-out-view.js +325 -325
- package/ui/slide-out-view.js.map +1 -1
- package/ui/slide-out.d.ts +281 -281
- package/ui/slide-out.js +530 -530
- package/ui/slide-out.js.map +1 -1
- package/ui/slider.d.ts +261 -261
- package/ui/slider.js +555 -555
- package/ui/slider.js.map +1 -1
- package/ui/sparkline.d.ts +309 -309
- package/ui/sparkline.js +629 -629
- package/ui/sparkline.js.map +1 -1
- package/ui/switch.d.ts +221 -221
- package/ui/switch.js +466 -466
- package/ui/switch.js.map +1 -1
- package/ui/tab-panel.d.ts +323 -323
- package/ui/tab-panel.js +596 -596
- package/ui/tab-panel.js.map +1 -1
- package/ui/tabs.d.ts +285 -285
- package/ui/tabs.js +546 -546
- package/ui/tabs.js.map +1 -1
- package/ui/tag-box.d.ts +575 -575
- package/ui/tag-box.js +1091 -1091
- package/ui/tag-box.js.map +1 -1
- package/ui/text-area.d.ts +329 -329
- package/ui/text-area.js +616 -616
- package/ui/text-area.js.map +1 -1
- package/ui/text-box.d.ts +369 -369
- package/ui/text-box.js +696 -696
- package/ui/text-box.js.map +1 -1
- package/ui/tile-view.d.ts +263 -263
- package/ui/tile-view.js +508 -508
- package/ui/tile-view.js.map +1 -1
- package/ui/toast.d.ts +278 -278
- package/ui/toast.js +570 -570
- package/ui/toast.js.map +1 -1
- package/ui/toolbar.d.ts +215 -215
- package/ui/toolbar.js +396 -396
- package/ui/toolbar.js.map +1 -1
- package/ui/tooltip.d.ts +273 -273
- package/ui/tooltip.js +556 -556
- package/ui/tooltip.js.map +1 -1
- package/ui/tree-list.d.ts +603 -603
- package/ui/tree-list.js +1172 -1172
- package/ui/tree-list.js.map +1 -1
- package/ui/tree-map.d.ts +341 -341
- package/ui/tree-map.js +635 -635
- package/ui/tree-map.js.map +1 -1
- package/ui/tree-view.d.ts +463 -463
- package/ui/tree-view.js +909 -909
- package/ui/tree-view.js.map +1 -1
- package/ui/validation-group.d.ts +65 -65
- package/ui/validation-group.js +149 -149
- package/ui/validation-group.js.map +1 -1
- package/ui/validation-summary.d.ts +110 -110
- package/ui/validation-summary.js +228 -228
- package/ui/validation-summary.js.map +1 -1
- package/ui/validator.d.ts +111 -111
- package/ui/validator.js +261 -261
- package/ui/validator.js.map +1 -1
- package/ui/vector-map.d.ts +521 -521
- package/ui/vector-map.js +695 -695
- package/ui/vector-map.js.map +1 -1
package/core/nested-option.js
CHANGED
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* devextreme-angular
|
|
4
|
-
* Version: 17.2.
|
|
5
|
-
* Build date:
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) 2012 -
|
|
8
|
-
*
|
|
9
|
-
* This software may be modified and distributed under the terms
|
|
10
|
-
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
11
|
-
*
|
|
12
|
-
* https://github.com/DevExpress/devextreme-angular
|
|
13
|
-
*/
|
|
14
|
-
var __extends = (this && this.__extends) || (function () {
|
|
15
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
16
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18
|
-
return function (d, b) {
|
|
19
|
-
extendStatics(d, b);
|
|
20
|
-
function __() { this.constructor = d; }
|
|
21
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
var template_1 = require("./template");
|
|
26
|
-
var utils_1 = require("./utils");
|
|
27
|
-
var events = require("devextreme/events");
|
|
28
|
-
var VISIBILITY_CHANGE_SELECTOR = 'dx-visibility-change-handler';
|
|
29
|
-
var BaseNestedOption = (function () {
|
|
30
|
-
function BaseNestedOption() {
|
|
31
|
-
this._initialOptions = {};
|
|
32
|
-
this._collectionContainerImpl = new CollectionNestedOptionContainerImpl(this._setOption.bind(this), this._filterItems.bind(this));
|
|
33
|
-
}
|
|
34
|
-
BaseNestedOption.prototype._getOption = function (name) {
|
|
35
|
-
if (this.isLinked) {
|
|
36
|
-
return this.instance.option(this._fullOptionPath() + name);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this._initialOptions[name];
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
BaseNestedOption.prototype._setOption = function (name, value) {
|
|
43
|
-
if (this.isLinked) {
|
|
44
|
-
this.instance.option(this._fullOptionPath() + name, value);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
this._initialOptions[name] = value;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
BaseNestedOption.prototype.setHost = function (host, optionPath) {
|
|
51
|
-
this._host = host;
|
|
52
|
-
this._hostOptionPath = optionPath;
|
|
53
|
-
};
|
|
54
|
-
BaseNestedOption.prototype.setChildren = function (propertyName, items) {
|
|
55
|
-
return this._collectionContainerImpl.setChildren(propertyName, items);
|
|
56
|
-
};
|
|
57
|
-
BaseNestedOption.prototype._filterItems = function (items) {
|
|
58
|
-
var _this = this;
|
|
59
|
-
return items.filter(function (item) { return item !== _this; });
|
|
60
|
-
};
|
|
61
|
-
Object.defineProperty(BaseNestedOption.prototype, "instance", {
|
|
62
|
-
get: function () {
|
|
63
|
-
return this._host && this._host.instance;
|
|
64
|
-
},
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(BaseNestedOption.prototype, "isLinked", {
|
|
69
|
-
get: function () {
|
|
70
|
-
return !!this.instance && this._host.isLinked;
|
|
71
|
-
},
|
|
72
|
-
enumerable: true,
|
|
73
|
-
configurable: true
|
|
74
|
-
});
|
|
75
|
-
return BaseNestedOption;
|
|
76
|
-
}());
|
|
77
|
-
exports.BaseNestedOption = BaseNestedOption;
|
|
78
|
-
var CollectionNestedOptionContainerImpl = (function () {
|
|
79
|
-
function CollectionNestedOptionContainerImpl(_setOption, _filterItems) {
|
|
80
|
-
this._setOption = _setOption;
|
|
81
|
-
this._filterItems = _filterItems;
|
|
82
|
-
this._activatedQueries = {};
|
|
83
|
-
}
|
|
84
|
-
CollectionNestedOptionContainerImpl.prototype.setChildren = function (propertyName, items) {
|
|
85
|
-
if (this._filterItems) {
|
|
86
|
-
items = this._filterItems(items);
|
|
87
|
-
}
|
|
88
|
-
if (items.length) {
|
|
89
|
-
this._activatedQueries[propertyName] = true;
|
|
90
|
-
}
|
|
91
|
-
if (this._activatedQueries[propertyName]) {
|
|
92
|
-
var widgetItems = items.map(function (item, index) {
|
|
93
|
-
item._index = index;
|
|
94
|
-
return item._value;
|
|
95
|
-
});
|
|
96
|
-
this._setOption(propertyName, widgetItems);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
return CollectionNestedOptionContainerImpl;
|
|
100
|
-
}());
|
|
101
|
-
exports.CollectionNestedOptionContainerImpl = CollectionNestedOptionContainerImpl;
|
|
102
|
-
var NestedOption = (function (_super) {
|
|
103
|
-
__extends(NestedOption, _super);
|
|
104
|
-
function NestedOption() {
|
|
105
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
106
|
-
}
|
|
107
|
-
NestedOption.prototype.setHost = function (host, optionPath) {
|
|
108
|
-
_super.prototype.setHost.call(this, host, optionPath);
|
|
109
|
-
this._host[this._optionPath] = this._initialOptions;
|
|
110
|
-
};
|
|
111
|
-
NestedOption.prototype._fullOptionPath = function () {
|
|
112
|
-
return this._hostOptionPath() + this._optionPath + '.';
|
|
113
|
-
};
|
|
114
|
-
return NestedOption;
|
|
115
|
-
}(BaseNestedOption));
|
|
116
|
-
exports.NestedOption = NestedOption;
|
|
117
|
-
var CollectionNestedOption = (function (_super) {
|
|
118
|
-
__extends(CollectionNestedOption, _super);
|
|
119
|
-
function CollectionNestedOption() {
|
|
120
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
121
|
-
}
|
|
122
|
-
CollectionNestedOption.prototype._fullOptionPath = function () {
|
|
123
|
-
return this._hostOptionPath() + this._optionPath + '[' + this._index + ']' + '.';
|
|
124
|
-
};
|
|
125
|
-
Object.defineProperty(CollectionNestedOption.prototype, "_value", {
|
|
126
|
-
get: function () {
|
|
127
|
-
return this._initialOptions;
|
|
128
|
-
},
|
|
129
|
-
enumerable: true,
|
|
130
|
-
configurable: true
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(CollectionNestedOption.prototype, "isLinked", {
|
|
133
|
-
get: function () {
|
|
134
|
-
return this._index !== undefined && !!this.instance && this._host.isLinked;
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
});
|
|
139
|
-
return CollectionNestedOption;
|
|
140
|
-
}(BaseNestedOption));
|
|
141
|
-
exports.CollectionNestedOption = CollectionNestedOption;
|
|
142
|
-
var triggerShownEvent = function (element) {
|
|
143
|
-
var changeHandlers = [];
|
|
144
|
-
if (utils_1.hasClass(element, VISIBILITY_CHANGE_SELECTOR)) {
|
|
145
|
-
changeHandlers.push(element);
|
|
146
|
-
}
|
|
147
|
-
changeHandlers.push.apply(changeHandlers, element.querySelectorAll('.' + VISIBILITY_CHANGE_SELECTOR));
|
|
148
|
-
for (var i = 0; i < changeHandlers.length; i++) {
|
|
149
|
-
events.triggerHandler(changeHandlers[i], 'dxshown');
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
function extractTemplate(option, element) {
|
|
153
|
-
if (!option.template === undefined || !element.nativeElement.hasChildNodes()) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
var childNodes = [].slice.call(element.nativeElement.childNodes);
|
|
157
|
-
var userContent = childNodes.filter(function (n) {
|
|
158
|
-
if (n.tagName) {
|
|
159
|
-
var tagNamePrefix = n.tagName.toLowerCase().substr(0, 3);
|
|
160
|
-
return !(tagNamePrefix === 'dxi' || tagNamePrefix === 'dxo');
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
return n.nodeName !== '#comment' && n.textContent.replace(/\s/g, '').length;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
if (!userContent.length) {
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
option.template = {
|
|
170
|
-
render: function (renderData) {
|
|
171
|
-
var result = element.nativeElement;
|
|
172
|
-
utils_1.addClass(result, template_1.DX_TEMPLATE_WRAPPER_CLASS);
|
|
173
|
-
if (renderData.container) {
|
|
174
|
-
var container = utils_1.getElement(renderData.container);
|
|
175
|
-
var resultInContainer = container.contains(element.nativeElement);
|
|
176
|
-
container.appendChild(element.nativeElement);
|
|
177
|
-
if (!resultInContainer) {
|
|
178
|
-
var resultInBody = document.body.contains(container);
|
|
179
|
-
if (resultInBody) {
|
|
180
|
-
triggerShownEvent(result);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return result;
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
exports.extractTemplate = extractTemplate;
|
|
189
|
-
var NestedOptionHost = (function () {
|
|
190
|
-
function NestedOptionHost() {
|
|
191
|
-
}
|
|
192
|
-
NestedOptionHost.prototype.setHost = function (host, optionPath) {
|
|
193
|
-
this._host = host;
|
|
194
|
-
this._optionPath = optionPath || (function () { return ''; });
|
|
195
|
-
};
|
|
196
|
-
NestedOptionHost.prototype.setNestedOption = function (nestedOption) {
|
|
197
|
-
nestedOption.setHost(this._host, this._optionPath);
|
|
198
|
-
};
|
|
199
|
-
return NestedOptionHost;
|
|
200
|
-
}());
|
|
201
|
-
exports.NestedOptionHost = NestedOptionHost;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* devextreme-angular
|
|
4
|
+
* Version: 17.2.18
|
|
5
|
+
* Build date: Tue Dec 07 2021
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
8
|
+
*
|
|
9
|
+
* This software may be modified and distributed under the terms
|
|
10
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
11
|
+
*
|
|
12
|
+
* https://github.com/DevExpress/devextreme-angular
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
16
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18
|
+
return function (d, b) {
|
|
19
|
+
extendStatics(d, b);
|
|
20
|
+
function __() { this.constructor = d; }
|
|
21
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
var template_1 = require("./template");
|
|
26
|
+
var utils_1 = require("./utils");
|
|
27
|
+
var events = require("devextreme/events");
|
|
28
|
+
var VISIBILITY_CHANGE_SELECTOR = 'dx-visibility-change-handler';
|
|
29
|
+
var BaseNestedOption = (function () {
|
|
30
|
+
function BaseNestedOption() {
|
|
31
|
+
this._initialOptions = {};
|
|
32
|
+
this._collectionContainerImpl = new CollectionNestedOptionContainerImpl(this._setOption.bind(this), this._filterItems.bind(this));
|
|
33
|
+
}
|
|
34
|
+
BaseNestedOption.prototype._getOption = function (name) {
|
|
35
|
+
if (this.isLinked) {
|
|
36
|
+
return this.instance.option(this._fullOptionPath() + name);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return this._initialOptions[name];
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
BaseNestedOption.prototype._setOption = function (name, value) {
|
|
43
|
+
if (this.isLinked) {
|
|
44
|
+
this.instance.option(this._fullOptionPath() + name, value);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this._initialOptions[name] = value;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
BaseNestedOption.prototype.setHost = function (host, optionPath) {
|
|
51
|
+
this._host = host;
|
|
52
|
+
this._hostOptionPath = optionPath;
|
|
53
|
+
};
|
|
54
|
+
BaseNestedOption.prototype.setChildren = function (propertyName, items) {
|
|
55
|
+
return this._collectionContainerImpl.setChildren(propertyName, items);
|
|
56
|
+
};
|
|
57
|
+
BaseNestedOption.prototype._filterItems = function (items) {
|
|
58
|
+
var _this = this;
|
|
59
|
+
return items.filter(function (item) { return item !== _this; });
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(BaseNestedOption.prototype, "instance", {
|
|
62
|
+
get: function () {
|
|
63
|
+
return this._host && this._host.instance;
|
|
64
|
+
},
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(BaseNestedOption.prototype, "isLinked", {
|
|
69
|
+
get: function () {
|
|
70
|
+
return !!this.instance && this._host.isLinked;
|
|
71
|
+
},
|
|
72
|
+
enumerable: true,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
return BaseNestedOption;
|
|
76
|
+
}());
|
|
77
|
+
exports.BaseNestedOption = BaseNestedOption;
|
|
78
|
+
var CollectionNestedOptionContainerImpl = (function () {
|
|
79
|
+
function CollectionNestedOptionContainerImpl(_setOption, _filterItems) {
|
|
80
|
+
this._setOption = _setOption;
|
|
81
|
+
this._filterItems = _filterItems;
|
|
82
|
+
this._activatedQueries = {};
|
|
83
|
+
}
|
|
84
|
+
CollectionNestedOptionContainerImpl.prototype.setChildren = function (propertyName, items) {
|
|
85
|
+
if (this._filterItems) {
|
|
86
|
+
items = this._filterItems(items);
|
|
87
|
+
}
|
|
88
|
+
if (items.length) {
|
|
89
|
+
this._activatedQueries[propertyName] = true;
|
|
90
|
+
}
|
|
91
|
+
if (this._activatedQueries[propertyName]) {
|
|
92
|
+
var widgetItems = items.map(function (item, index) {
|
|
93
|
+
item._index = index;
|
|
94
|
+
return item._value;
|
|
95
|
+
});
|
|
96
|
+
this._setOption(propertyName, widgetItems);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return CollectionNestedOptionContainerImpl;
|
|
100
|
+
}());
|
|
101
|
+
exports.CollectionNestedOptionContainerImpl = CollectionNestedOptionContainerImpl;
|
|
102
|
+
var NestedOption = (function (_super) {
|
|
103
|
+
__extends(NestedOption, _super);
|
|
104
|
+
function NestedOption() {
|
|
105
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
106
|
+
}
|
|
107
|
+
NestedOption.prototype.setHost = function (host, optionPath) {
|
|
108
|
+
_super.prototype.setHost.call(this, host, optionPath);
|
|
109
|
+
this._host[this._optionPath] = this._initialOptions;
|
|
110
|
+
};
|
|
111
|
+
NestedOption.prototype._fullOptionPath = function () {
|
|
112
|
+
return this._hostOptionPath() + this._optionPath + '.';
|
|
113
|
+
};
|
|
114
|
+
return NestedOption;
|
|
115
|
+
}(BaseNestedOption));
|
|
116
|
+
exports.NestedOption = NestedOption;
|
|
117
|
+
var CollectionNestedOption = (function (_super) {
|
|
118
|
+
__extends(CollectionNestedOption, _super);
|
|
119
|
+
function CollectionNestedOption() {
|
|
120
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
121
|
+
}
|
|
122
|
+
CollectionNestedOption.prototype._fullOptionPath = function () {
|
|
123
|
+
return this._hostOptionPath() + this._optionPath + '[' + this._index + ']' + '.';
|
|
124
|
+
};
|
|
125
|
+
Object.defineProperty(CollectionNestedOption.prototype, "_value", {
|
|
126
|
+
get: function () {
|
|
127
|
+
return this._initialOptions;
|
|
128
|
+
},
|
|
129
|
+
enumerable: true,
|
|
130
|
+
configurable: true
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(CollectionNestedOption.prototype, "isLinked", {
|
|
133
|
+
get: function () {
|
|
134
|
+
return this._index !== undefined && !!this.instance && this._host.isLinked;
|
|
135
|
+
},
|
|
136
|
+
enumerable: true,
|
|
137
|
+
configurable: true
|
|
138
|
+
});
|
|
139
|
+
return CollectionNestedOption;
|
|
140
|
+
}(BaseNestedOption));
|
|
141
|
+
exports.CollectionNestedOption = CollectionNestedOption;
|
|
142
|
+
var triggerShownEvent = function (element) {
|
|
143
|
+
var changeHandlers = [];
|
|
144
|
+
if (utils_1.hasClass(element, VISIBILITY_CHANGE_SELECTOR)) {
|
|
145
|
+
changeHandlers.push(element);
|
|
146
|
+
}
|
|
147
|
+
changeHandlers.push.apply(changeHandlers, element.querySelectorAll('.' + VISIBILITY_CHANGE_SELECTOR));
|
|
148
|
+
for (var i = 0; i < changeHandlers.length; i++) {
|
|
149
|
+
events.triggerHandler(changeHandlers[i], 'dxshown');
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
function extractTemplate(option, element) {
|
|
153
|
+
if (!option.template === undefined || !element.nativeElement.hasChildNodes()) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
var childNodes = [].slice.call(element.nativeElement.childNodes);
|
|
157
|
+
var userContent = childNodes.filter(function (n) {
|
|
158
|
+
if (n.tagName) {
|
|
159
|
+
var tagNamePrefix = n.tagName.toLowerCase().substr(0, 3);
|
|
160
|
+
return !(tagNamePrefix === 'dxi' || tagNamePrefix === 'dxo');
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
return n.nodeName !== '#comment' && n.textContent.replace(/\s/g, '').length;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
if (!userContent.length) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
option.template = {
|
|
170
|
+
render: function (renderData) {
|
|
171
|
+
var result = element.nativeElement;
|
|
172
|
+
utils_1.addClass(result, template_1.DX_TEMPLATE_WRAPPER_CLASS);
|
|
173
|
+
if (renderData.container) {
|
|
174
|
+
var container = utils_1.getElement(renderData.container);
|
|
175
|
+
var resultInContainer = container.contains(element.nativeElement);
|
|
176
|
+
container.appendChild(element.nativeElement);
|
|
177
|
+
if (!resultInContainer) {
|
|
178
|
+
var resultInBody = document.body.contains(container);
|
|
179
|
+
if (resultInBody) {
|
|
180
|
+
triggerShownEvent(result);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return result;
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
exports.extractTemplate = extractTemplate;
|
|
189
|
+
var NestedOptionHost = (function () {
|
|
190
|
+
function NestedOptionHost() {
|
|
191
|
+
}
|
|
192
|
+
NestedOptionHost.prototype.setHost = function (host, optionPath) {
|
|
193
|
+
this._host = host;
|
|
194
|
+
this._optionPath = optionPath || (function () { return ''; });
|
|
195
|
+
};
|
|
196
|
+
NestedOptionHost.prototype.setNestedOption = function (nestedOption) {
|
|
197
|
+
nestedOption.setHost(this._host, this._optionPath);
|
|
198
|
+
};
|
|
199
|
+
return NestedOptionHost;
|
|
200
|
+
}());
|
|
201
|
+
exports.NestedOptionHost = NestedOptionHost;
|
|
202
202
|
//# sourceMappingURL=nested-option.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["nested-option.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;AAIH,uCAAuD;AACvD,iCAAyD;AAEzD,0CAA4C;AAE5C,IAAM,0BAA0B,GAAG,8BAA8B,CAAC;AASlE;IASI;QALU,oBAAe,GAAG,EAAE,CAAC;QAM3B,IAAI,CAAC,wBAAwB,GAAG,IAAI,mCAAmC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACtI,CAAC;IAES,qCAAU,GAApB,UAAqB,IAAY;QAC7B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAChB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC,CAAC;QAC/D,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;IACL,CAAC;IAES,qCAAU,GAApB,UAAqB,IAAY,EAAE,KAAU;QACzC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CA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AAC,CAAC;wBACf,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC9B,CAAC;gBACL,CAAC;YACL,CAAC;YAED,MAAM,CAAC,MAAM,CAAC;QAClB,CAAC;KACJ,CAAC;AACN,CAAC;AA1CD,0CA0CC;AAED;IAAA;IAYA,CAAC;IARG,kCAAO,GAAP,UAAQ,IAA4B,EAAE,UAA8B;QAChE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,IAAI,CAAC,cAAM,OAAA,EAAE,EAAF,CAAE,CAAC,CAAC;IAChD,CAAC;IAED,0CAAe,GAAf,UAAgB,YAA8B;QAC1C,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;IACL,uBAAC;AAAD,CAZA,AAYC,IAAA;AAZY,4CAAgB","file":"nested-option.js","sourceRoot":"","sourcesContent":["/*!\n * devextreme-angular\n * Version: 17.2.14\n * Build date: Wed Apr 01 2020\n *\n * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file in the root of the project for details.\n *\n * https://github.com/DevExpress/devextreme-angular\n */\n\nimport { QueryList, ElementRef } from '@angular/core';\r\n\r\nimport { DX_TEMPLATE_WRAPPER_CLASS } from './template';\r\nimport { addClass, hasClass, getElement } from './utils';\r\n\r\nimport * as events from 'devextreme/events';\r\n\r\nconst VISIBILITY_CHANGE_SELECTOR = 'dx-visibility-change-handler';\r\n\r\nexport interface INestedOptionContainer {\r\n instance: any;\r\n isLinked: boolean;\r\n}\r\n\r\nexport interface IOptionPathGetter { (): string; }\r\n\r\nexport abstract class BaseNestedOption implements INestedOptionContainer, ICollectionNestedOptionContainer {\r\n protected _host: INestedOptionContainer;\r\n protected _hostOptionPath: IOptionPathGetter;\r\n private _collectionContainerImpl: ICollectionNestedOptionContainer;\r\n protected _initialOptions = {};\r\n\r\n protected abstract get _optionPath(): string;\r\n protected abstract _fullOptionPath(): string;\r\n\r\n constructor() {\r\n this._collectionContainerImpl = new CollectionNestedOptionContainerImpl(this._setOption.bind(this), this._filterItems.bind(this));\r\n }\r\n\r\n protected _getOption(name: string): any {\r\n if (this.isLinked) {\r\n return this.instance.option(this._fullOptionPath() + name);\r\n } else {\r\n return this._initialOptions[name];\r\n }\r\n }\r\n\r\n protected _setOption(name: string, value: any) {\r\n if (this.isLinked) {\r\n this.instance.option(this._fullOptionPath() + name, value);\r\n } else {\r\n this._initialOptions[name] = value;\r\n }\r\n }\r\n\r\n setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter) {\r\n this._host = host;\r\n this._hostOptionPath = optionPath;\r\n }\r\n\r\n setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>) {\r\n return this._collectionContainerImpl.setChildren(propertyName, items);\r\n }\r\n\r\n _filterItems(items: QueryList<BaseNestedOption>) {\r\n return items.filter((item) => { return item !== this; });\r\n }\r\n\r\n get instance() {\r\n return this._host && this._host.instance;\r\n }\r\n\r\n get isLinked() {\r\n return !!this.instance && this._host.isLinked;\r\n }\r\n}\r\n\r\nexport interface ICollectionNestedOptionContainer {\r\n setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>);\r\n}\r\n\r\nexport class CollectionNestedOptionContainerImpl implements ICollectionNestedOptionContainer {\r\n private _activatedQueries = {};\r\n\r\n constructor(private _setOption: Function, private _filterItems?: Function) {}\r\n\r\n setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>) {\r\n if (this._filterItems) {\r\n items = this._filterItems(items);\r\n }\r\n if (items.length) {\r\n this._activatedQueries[propertyName] = true;\r\n }\r\n if (this._activatedQueries[propertyName]) {\r\n let widgetItems = items.map((item, index) => {\r\n item._index = index;\r\n return item._value;\r\n });\r\n this._setOption(propertyName, widgetItems);\r\n }\r\n }\r\n}\r\n\r\nexport abstract class NestedOption extends BaseNestedOption {\r\n setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter) {\r\n super.setHost(host, optionPath);\r\n\r\n this._host[this._optionPath] = this._initialOptions;\r\n }\r\n\r\n protected _fullOptionPath() {\r\n return this._hostOptionPath() + this._optionPath + '.';\r\n }\r\n}\r\n\r\nexport interface ICollectionNestedOption {\r\n _index: number;\r\n _value: Object;\r\n}\r\n\r\nexport abstract class CollectionNestedOption extends BaseNestedOption implements ICollectionNestedOption {\r\n _index: number;\r\n\r\n protected _fullOptionPath() {\r\n return this._hostOptionPath() + this._optionPath + '[' + this._index + ']' + '.';\r\n }\r\n\r\n get _value() {\r\n return this._initialOptions;\r\n }\r\n\r\n get isLinked() {\r\n return this._index !== undefined && !!this.instance && this._host.isLinked;\r\n }\r\n}\r\n\r\nexport interface IOptionWithTemplate extends BaseNestedOption {\r\n template: any;\r\n}\r\n\r\nlet triggerShownEvent = function(element) {\r\n let changeHandlers = [];\r\n\r\n if (hasClass(element, VISIBILITY_CHANGE_SELECTOR)) {\r\n changeHandlers.push(element);\r\n }\r\n\r\n changeHandlers.push.apply(changeHandlers, element.querySelectorAll('.' + VISIBILITY_CHANGE_SELECTOR));\r\n\r\n for (let i = 0; i < changeHandlers.length; i++) {\r\n events.triggerHandler(changeHandlers[i], 'dxshown');\r\n }\r\n};\r\n\r\nexport function extractTemplate(option: IOptionWithTemplate, element: ElementRef) {\r\n if (!option.template === undefined || !element.nativeElement.hasChildNodes()) {\r\n return;\r\n }\r\n\r\n let childNodes = [].slice.call(element.nativeElement.childNodes);\r\n let userContent = childNodes.filter((n) => {\r\n if (n.tagName) {\r\n let tagNamePrefix = n.tagName.toLowerCase().substr(0, 3);\r\n return !(tagNamePrefix === 'dxi' || tagNamePrefix === 'dxo');\r\n } else {\r\n return n.nodeName !== '#comment' && n.textContent.replace(/\\s/g, '').length;\r\n }\r\n });\r\n if (!userContent.length) {\r\n return;\r\n }\r\n\r\n option.template = {\r\n render: (renderData) => {\r\n let result = element.nativeElement;\r\n\r\n addClass(result, DX_TEMPLATE_WRAPPER_CLASS);\r\n\r\n if (renderData.container) {\r\n let container = getElement(renderData.container);\r\n let resultInContainer = container.contains(element.nativeElement);\r\n\r\n container.appendChild(element.nativeElement);\r\n\r\n if (!resultInContainer) {\r\n let resultInBody = document.body.contains(container);\r\n\r\n if (resultInBody) {\r\n triggerShownEvent(result);\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n }\r\n };\r\n}\r\n\r\nexport class NestedOptionHost {\r\n private _host: INestedOptionContainer;\r\n private _optionPath: IOptionPathGetter;\r\n\r\n setHost(host: INestedOptionContainer, optionPath?: IOptionPathGetter) {\r\n this._host = host;\r\n this._optionPath = optionPath || (() => '');\r\n }\r\n\r\n setNestedOption(nestedOption: BaseNestedOption) {\r\n nestedOption.setHost(this._host, this._optionPath);\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"sources":["nested-option.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;AAIH,uCAAuD;AACvD,iCAAyD;AAEzD,0CAA4C;AAE5C,IAAM,0BAA0B,GAAG,8BAA8B,CAAC;AASlE;IASI;QALU,oBAAe,GAAG,EAAE,CAAC;QAM3B,IAAI,CAAC,wBAAwB,GAAG,IAAI,mCAAmC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACtI,CAAC;IAES,qCAAU,GAApB,UAAqB,IAAY;QAC7B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAChB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC,CAAC;QAC/D,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;IACL,CAAC;IAES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G,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;oBAErD,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;wBACf,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC9B,CAAC;gBACL,CAAC;YACL,CAAC;YAED,MAAM,CAAC,MAAM,CAAC;QAClB,CAAC;KACJ,CAAC;AACN,CAAC;AA1CD,0CA0CC;AAED;IAAA;IAYA,CAAC;IARG,kCAAO,GAAP,UAAQ,IAA4B,EAAE,UAA8B;QAChE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,WAAW,GAAG,UAAU,IAAI,CAAC,cAAM,OAAA,EAAE,EAAF,CAAE,CAAC,CAAC;IAChD,CAAC;IAED,0CAAe,GAAf,UAAgB,YAA8B;QAC1C,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;IACL,uBAAC;AAAD,CAZA,AAYC,IAAA;AAZY,4CAAgB","file":"nested-option.js","sourceRoot":"","sourcesContent":["/*!\n * devextreme-angular\n * Version: 17.2.18\n * Build date: Tue Dec 07 2021\n *\n * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file in the root of the project for details.\n *\n * https://github.com/DevExpress/devextreme-angular\n */\n\nimport { QueryList, ElementRef } from '@angular/core';\n\nimport { DX_TEMPLATE_WRAPPER_CLASS } from './template';\nimport { addClass, hasClass, getElement } from './utils';\n\nimport * as events from 'devextreme/events';\n\nconst VISIBILITY_CHANGE_SELECTOR = 'dx-visibility-change-handler';\n\nexport interface INestedOptionContainer {\n instance: any;\n isLinked: boolean;\n}\n\nexport interface IOptionPathGetter { (): string; }\n\nexport abstract class BaseNestedOption implements INestedOptionContainer, ICollectionNestedOptionContainer {\n protected _host: INestedOptionContainer;\n protected _hostOptionPath: IOptionPathGetter;\n private _collectionContainerImpl: ICollectionNestedOptionContainer;\n protected _initialOptions = {};\n\n protected abstract get _optionPath(): string;\n protected abstract _fullOptionPath(): string;\n\n constructor() {\n this._collectionContainerImpl = new CollectionNestedOptionContainerImpl(this._setOption.bind(this), this._filterItems.bind(this));\n }\n\n protected _getOption(name: string): any {\n if (this.isLinked) {\n return this.instance.option(this._fullOptionPath() + name);\n } else {\n return this._initialOptions[name];\n }\n }\n\n protected _setOption(name: string, value: any) {\n if (this.isLinked) {\n this.instance.option(this._fullOptionPath() + name, value);\n } else {\n this._initialOptions[name] = value;\n }\n }\n\n setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter) {\n this._host = host;\n this._hostOptionPath = optionPath;\n }\n\n setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>) {\n return this._collectionContainerImpl.setChildren(propertyName, items);\n }\n\n _filterItems(items: QueryList<BaseNestedOption>) {\n return items.filter((item) => { return item !== this; });\n }\n\n get instance() {\n return this._host && this._host.instance;\n }\n\n get isLinked() {\n return !!this.instance && this._host.isLinked;\n }\n}\n\nexport interface ICollectionNestedOptionContainer {\n setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>);\n}\n\nexport class CollectionNestedOptionContainerImpl implements ICollectionNestedOptionContainer {\n private _activatedQueries = {};\n\n constructor(private _setOption: Function, private _filterItems?: Function) {}\n\n setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>) {\n if (this._filterItems) {\n items = this._filterItems(items);\n }\n if (items.length) {\n this._activatedQueries[propertyName] = true;\n }\n if (this._activatedQueries[propertyName]) {\n let widgetItems = items.map((item, index) => {\n item._index = index;\n return item._value;\n });\n this._setOption(propertyName, widgetItems);\n }\n }\n}\n\nexport abstract class NestedOption extends BaseNestedOption {\n setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter) {\n super.setHost(host, optionPath);\n\n this._host[this._optionPath] = this._initialOptions;\n }\n\n protected _fullOptionPath() {\n return this._hostOptionPath() + this._optionPath + '.';\n }\n}\n\nexport interface ICollectionNestedOption {\n _index: number;\n _value: Object;\n}\n\nexport abstract class CollectionNestedOption extends BaseNestedOption implements ICollectionNestedOption {\n _index: number;\n\n protected _fullOptionPath() {\n return this._hostOptionPath() + this._optionPath + '[' + this._index + ']' + '.';\n }\n\n get _value() {\n return this._initialOptions;\n }\n\n get isLinked() {\n return this._index !== undefined && !!this.instance && this._host.isLinked;\n }\n}\n\nexport interface IOptionWithTemplate extends BaseNestedOption {\n template: any;\n}\n\nlet triggerShownEvent = function(element) {\n let changeHandlers = [];\n\n if (hasClass(element, VISIBILITY_CHANGE_SELECTOR)) {\n changeHandlers.push(element);\n }\n\n changeHandlers.push.apply(changeHandlers, element.querySelectorAll('.' + VISIBILITY_CHANGE_SELECTOR));\n\n for (let i = 0; i < changeHandlers.length; i++) {\n events.triggerHandler(changeHandlers[i], 'dxshown');\n }\n};\n\nexport function extractTemplate(option: IOptionWithTemplate, element: ElementRef) {\n if (!option.template === undefined || !element.nativeElement.hasChildNodes()) {\n return;\n }\n\n let childNodes = [].slice.call(element.nativeElement.childNodes);\n let userContent = childNodes.filter((n) => {\n if (n.tagName) {\n let tagNamePrefix = n.tagName.toLowerCase().substr(0, 3);\n return !(tagNamePrefix === 'dxi' || tagNamePrefix === 'dxo');\n } else {\n return n.nodeName !== '#comment' && n.textContent.replace(/\\s/g, '').length;\n }\n });\n if (!userContent.length) {\n return;\n }\n\n option.template = {\n render: (renderData) => {\n let result = element.nativeElement;\n\n addClass(result, DX_TEMPLATE_WRAPPER_CLASS);\n\n if (renderData.container) {\n let container = getElement(renderData.container);\n let resultInContainer = container.contains(element.nativeElement);\n\n container.appendChild(element.nativeElement);\n\n if (!resultInContainer) {\n let resultInBody = document.body.contains(container);\n\n if (resultInBody) {\n triggerShownEvent(result);\n }\n }\n }\n\n return result;\n }\n };\n}\n\nexport class NestedOptionHost {\n private _host: INestedOptionContainer;\n private _optionPath: IOptionPathGetter;\n\n setHost(host: INestedOptionContainer, optionPath?: IOptionPathGetter) {\n this._host = host;\n this._optionPath = optionPath || (() => '');\n }\n\n setNestedOption(nestedOption: BaseNestedOption) {\n nestedOption.setHost(this._host, this._optionPath);\n }\n}\n"]}
|
package/core/template-host.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* devextreme-angular
|
|
3
|
-
* Version: 17.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2012 -
|
|
7
|
-
*
|
|
8
|
-
* This software may be modified and distributed under the terms
|
|
9
|
-
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
-
*
|
|
11
|
-
* https://github.com/DevExpress/devextreme-angular
|
|
12
|
-
*/
|
|
13
|
-
import { DxTemplateDirective } from './template';
|
|
14
|
-
export interface IDxTemplateHost {
|
|
15
|
-
setTemplate(template: DxTemplateDirective): any;
|
|
16
|
-
}
|
|
17
|
-
export declare class DxTemplateHost {
|
|
18
|
-
host: IDxTemplateHost;
|
|
19
|
-
setHost(host: IDxTemplateHost): void;
|
|
20
|
-
setTemplate(template: DxTemplateDirective): void;
|
|
21
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-angular
|
|
3
|
+
* Version: 17.2.18
|
|
4
|
+
* Build date: Tue Dec 07 2021
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
|
+
*
|
|
8
|
+
* This software may be modified and distributed under the terms
|
|
9
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
+
*
|
|
11
|
+
* https://github.com/DevExpress/devextreme-angular
|
|
12
|
+
*/
|
|
13
|
+
import { DxTemplateDirective } from './template';
|
|
14
|
+
export interface IDxTemplateHost {
|
|
15
|
+
setTemplate(template: DxTemplateDirective): any;
|
|
16
|
+
}
|
|
17
|
+
export declare class DxTemplateHost {
|
|
18
|
+
host: IDxTemplateHost;
|
|
19
|
+
setHost(host: IDxTemplateHost): void;
|
|
20
|
+
setTemplate(template: DxTemplateDirective): void;
|
|
21
|
+
}
|
package/core/template-host.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* devextreme-angular
|
|
4
|
-
* Version: 17.2.
|
|
5
|
-
* Build date:
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) 2012 -
|
|
8
|
-
*
|
|
9
|
-
* This software may be modified and distributed under the terms
|
|
10
|
-
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
11
|
-
*
|
|
12
|
-
* https://github.com/DevExpress/devextreme-angular
|
|
13
|
-
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
;
|
|
16
|
-
var DxTemplateHost = (function () {
|
|
17
|
-
function DxTemplateHost() {
|
|
18
|
-
}
|
|
19
|
-
DxTemplateHost.prototype.setHost = function (host) {
|
|
20
|
-
this.host = host;
|
|
21
|
-
};
|
|
22
|
-
DxTemplateHost.prototype.setTemplate = function (template) {
|
|
23
|
-
this.host.setTemplate(template);
|
|
24
|
-
};
|
|
25
|
-
return DxTemplateHost;
|
|
26
|
-
}());
|
|
27
|
-
exports.DxTemplateHost = DxTemplateHost;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* devextreme-angular
|
|
4
|
+
* Version: 17.2.18
|
|
5
|
+
* Build date: Tue Dec 07 2021
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
8
|
+
*
|
|
9
|
+
* This software may be modified and distributed under the terms
|
|
10
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
11
|
+
*
|
|
12
|
+
* https://github.com/DevExpress/devextreme-angular
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
;
|
|
16
|
+
var DxTemplateHost = (function () {
|
|
17
|
+
function DxTemplateHost() {
|
|
18
|
+
}
|
|
19
|
+
DxTemplateHost.prototype.setHost = function (host) {
|
|
20
|
+
this.host = host;
|
|
21
|
+
};
|
|
22
|
+
DxTemplateHost.prototype.setTemplate = function (template) {
|
|
23
|
+
this.host.setTemplate(template);
|
|
24
|
+
};
|
|
25
|
+
return DxTemplateHost;
|
|
26
|
+
}());
|
|
27
|
+
exports.DxTemplateHost = DxTemplateHost;
|
|
28
28
|
//# sourceMappingURL=template-host.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["template-host.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAMF,CAAC;AAEF;IAAA;IAQA,CAAC;IANG,gCAAO,GAAP,UAAQ,IAAqB;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,oCAAW,GAAX,UAAY,QAA6B;QACrC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACL,qBAAC;AAAD,CARA,AAQC,IAAA;AARY,wCAAc","file":"template-host.js","sourceRoot":"","sourcesContent":["/*!\n * devextreme-angular\n * Version: 17.2.
|
|
1
|
+
{"version":3,"sources":["template-host.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAMF,CAAC;AAEF;IAAA;IAQA,CAAC;IANG,gCAAO,GAAP,UAAQ,IAAqB;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,oCAAW,GAAX,UAAY,QAA6B;QACrC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACL,qBAAC;AAAD,CARA,AAQC,IAAA;AARY,wCAAc","file":"template-host.js","sourceRoot":"","sourcesContent":["/*!\n * devextreme-angular\n * Version: 17.2.18\n * Build date: Tue Dec 07 2021\n *\n * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file in the root of the project for details.\n *\n * https://github.com/DevExpress/devextreme-angular\n */\n\nimport { DxTemplateDirective } from './template';\n\nexport interface IDxTemplateHost {\n setTemplate(template: DxTemplateDirective);\n};\n\nexport class DxTemplateHost {\n host: IDxTemplateHost;\n setHost(host: IDxTemplateHost) {\n this.host = host;\n }\n setTemplate(template: DxTemplateDirective) {\n this.host.setTemplate(template);\n }\n}\n"]}
|
package/core/template.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* devextreme-angular
|
|
3
|
-
* Version: 17.2.
|
|
4
|
-
* Build date:
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2012 -
|
|
7
|
-
*
|
|
8
|
-
* This software may be modified and distributed under the terms
|
|
9
|
-
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
-
*
|
|
11
|
-
* https://github.com/DevExpress/devextreme-angular
|
|
12
|
-
*/
|
|
13
|
-
import { TemplateRef, ViewContainerRef, NgZone } from '@angular/core';
|
|
14
|
-
import { DxTemplateHost } from './template-host';
|
|
15
|
-
export declare const DX_TEMPLATE_WRAPPER_CLASS = "dx-template-wrapper";
|
|
16
|
-
export declare class RenderData {
|
|
17
|
-
model: any;
|
|
18
|
-
index: number;
|
|
19
|
-
container: any;
|
|
20
|
-
}
|
|
21
|
-
export declare class DxTemplateDirective {
|
|
22
|
-
private templateRef;
|
|
23
|
-
private viewContainerRef;
|
|
24
|
-
private ngZone;
|
|
25
|
-
dxTemplateOf: any;
|
|
26
|
-
name: string;
|
|
27
|
-
constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, templateHost: DxTemplateHost, ngZone: NgZone);
|
|
28
|
-
render(renderData: RenderData): any[];
|
|
29
|
-
}
|
|
30
|
-
export declare class DxTemplateModule {
|
|
31
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-angular
|
|
3
|
+
* Version: 17.2.18
|
|
4
|
+
* Build date: Tue Dec 07 2021
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
|
+
*
|
|
8
|
+
* This software may be modified and distributed under the terms
|
|
9
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
+
*
|
|
11
|
+
* https://github.com/DevExpress/devextreme-angular
|
|
12
|
+
*/
|
|
13
|
+
import { TemplateRef, ViewContainerRef, NgZone } from '@angular/core';
|
|
14
|
+
import { DxTemplateHost } from './template-host';
|
|
15
|
+
export declare const DX_TEMPLATE_WRAPPER_CLASS = "dx-template-wrapper";
|
|
16
|
+
export declare class RenderData {
|
|
17
|
+
model: any;
|
|
18
|
+
index: number;
|
|
19
|
+
container: any;
|
|
20
|
+
}
|
|
21
|
+
export declare class DxTemplateDirective {
|
|
22
|
+
private templateRef;
|
|
23
|
+
private viewContainerRef;
|
|
24
|
+
private ngZone;
|
|
25
|
+
dxTemplateOf: any;
|
|
26
|
+
name: string;
|
|
27
|
+
constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, templateHost: DxTemplateHost, ngZone: NgZone);
|
|
28
|
+
render(renderData: RenderData): any[];
|
|
29
|
+
}
|
|
30
|
+
export declare class DxTemplateModule {
|
|
31
|
+
}
|