devextreme-angular 17.2.17 → 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 +3 -3
- 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/events-strategy.js
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* devextreme-angular
|
|
4
|
-
* Version: 17.2.
|
|
5
|
-
* Build date:
|
|
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
|
-
var core_1 = require("@angular/core");
|
|
16
|
-
var dxToNgEventNames = {};
|
|
17
|
-
var NgEventsStrategy = (function () {
|
|
18
|
-
function NgEventsStrategy(component, ngZone) {
|
|
19
|
-
this.component = component;
|
|
20
|
-
this.ngZone = ngZone;
|
|
21
|
-
this.subscriptions = {};
|
|
22
|
-
}
|
|
23
|
-
NgEventsStrategy.prototype.hasEvent = function (name) {
|
|
24
|
-
return this.getEmitter(name).observers.length;
|
|
25
|
-
};
|
|
26
|
-
NgEventsStrategy.prototype.fireEvent = function (name, args) {
|
|
27
|
-
var _this = this;
|
|
28
|
-
this.ngZone.run(function () {
|
|
29
|
-
_this.getEmitter(name).next(args && args[0]);
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
NgEventsStrategy.prototype.on = function (name, handler) {
|
|
33
|
-
var eventSubscriptions = this.subscriptions[name] || [], subcription = this.getEmitter(name).subscribe(handler.bind(this.component.instance)), unsubscribe = subcription.unsubscribe.bind(subcription);
|
|
34
|
-
eventSubscriptions.push({ handler: handler, unsubscribe: unsubscribe });
|
|
35
|
-
this.subscriptions[name] = eventSubscriptions;
|
|
36
|
-
};
|
|
37
|
-
NgEventsStrategy.prototype.off = function (name, handler) {
|
|
38
|
-
var eventSubscriptions = this.subscriptions[name] || [];
|
|
39
|
-
if (handler) {
|
|
40
|
-
eventSubscriptions.some(function (subscription, i) {
|
|
41
|
-
if (subscription.handler === handler) {
|
|
42
|
-
subscription.unsubscribe();
|
|
43
|
-
eventSubscriptions.splice(i, 1);
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
eventSubscriptions.forEach(function (subscription) {
|
|
50
|
-
subscription.unsubscribe();
|
|
51
|
-
});
|
|
52
|
-
eventSubscriptions.splice(0, eventSubscriptions.length);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
NgEventsStrategy.prototype.dispose = function () { };
|
|
56
|
-
NgEventsStrategy.prototype.getEmitter = function (eventName) {
|
|
57
|
-
var ngEventName = dxToNgEventNames[eventName];
|
|
58
|
-
if (!this.component[ngEventName]) {
|
|
59
|
-
this.component[ngEventName] = new core_1.EventEmitter();
|
|
60
|
-
}
|
|
61
|
-
return this.component[ngEventName];
|
|
62
|
-
};
|
|
63
|
-
return NgEventsStrategy;
|
|
64
|
-
}());
|
|
65
|
-
exports.NgEventsStrategy = NgEventsStrategy;
|
|
66
|
-
var events = [];
|
|
67
|
-
var onStableSubscription = null;
|
|
68
|
-
var createOnStableSubscription = function (ngZone, fireNgEvent) {
|
|
69
|
-
if (onStableSubscription) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
onStableSubscription = ngZone.onStable.subscribe(function () {
|
|
73
|
-
onStableSubscription.unsubscribe();
|
|
74
|
-
onStableSubscription = null;
|
|
75
|
-
ngZone.run(function () {
|
|
76
|
-
events.forEach(function (event) {
|
|
77
|
-
var value = event.context.component[event.name];
|
|
78
|
-
fireNgEvent.call(event.context, event.name + 'Change', [value]);
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
events = [];
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
var EmitterHelper = (function () {
|
|
85
|
-
function EmitterHelper(ngZone, component) {
|
|
86
|
-
this.component = component;
|
|
87
|
-
this.lockedValueChangeEvent = false;
|
|
88
|
-
this.strategy = new NgEventsStrategy(component, ngZone);
|
|
89
|
-
createOnStableSubscription(ngZone, this.fireNgEvent);
|
|
90
|
-
}
|
|
91
|
-
EmitterHelper.prototype.fireNgEvent = function (eventName, eventArgs) {
|
|
92
|
-
if (this.lockedValueChangeEvent && eventName === 'valueChange') {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
var emitter = this.component[eventName];
|
|
96
|
-
if (emitter) {
|
|
97
|
-
emitter.next(eventArgs && eventArgs[0]);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
EmitterHelper.prototype.createEmitter = function (ngEventName, dxEventName) {
|
|
101
|
-
this.component[ngEventName] = new core_1.EventEmitter();
|
|
102
|
-
if (dxEventName) {
|
|
103
|
-
dxToNgEventNames[dxEventName] = ngEventName;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
EmitterHelper.prototype.rememberEvent = function (name) {
|
|
107
|
-
events.push({ name: name, context: this });
|
|
108
|
-
};
|
|
109
|
-
return EmitterHelper;
|
|
110
|
-
}());
|
|
111
|
-
exports.EmitterHelper = EmitterHelper;
|
|
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
|
+
var core_1 = require("@angular/core");
|
|
16
|
+
var dxToNgEventNames = {};
|
|
17
|
+
var NgEventsStrategy = (function () {
|
|
18
|
+
function NgEventsStrategy(component, ngZone) {
|
|
19
|
+
this.component = component;
|
|
20
|
+
this.ngZone = ngZone;
|
|
21
|
+
this.subscriptions = {};
|
|
22
|
+
}
|
|
23
|
+
NgEventsStrategy.prototype.hasEvent = function (name) {
|
|
24
|
+
return this.getEmitter(name).observers.length;
|
|
25
|
+
};
|
|
26
|
+
NgEventsStrategy.prototype.fireEvent = function (name, args) {
|
|
27
|
+
var _this = this;
|
|
28
|
+
this.ngZone.run(function () {
|
|
29
|
+
_this.getEmitter(name).next(args && args[0]);
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
NgEventsStrategy.prototype.on = function (name, handler) {
|
|
33
|
+
var eventSubscriptions = this.subscriptions[name] || [], subcription = this.getEmitter(name).subscribe(handler.bind(this.component.instance)), unsubscribe = subcription.unsubscribe.bind(subcription);
|
|
34
|
+
eventSubscriptions.push({ handler: handler, unsubscribe: unsubscribe });
|
|
35
|
+
this.subscriptions[name] = eventSubscriptions;
|
|
36
|
+
};
|
|
37
|
+
NgEventsStrategy.prototype.off = function (name, handler) {
|
|
38
|
+
var eventSubscriptions = this.subscriptions[name] || [];
|
|
39
|
+
if (handler) {
|
|
40
|
+
eventSubscriptions.some(function (subscription, i) {
|
|
41
|
+
if (subscription.handler === handler) {
|
|
42
|
+
subscription.unsubscribe();
|
|
43
|
+
eventSubscriptions.splice(i, 1);
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
eventSubscriptions.forEach(function (subscription) {
|
|
50
|
+
subscription.unsubscribe();
|
|
51
|
+
});
|
|
52
|
+
eventSubscriptions.splice(0, eventSubscriptions.length);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
NgEventsStrategy.prototype.dispose = function () { };
|
|
56
|
+
NgEventsStrategy.prototype.getEmitter = function (eventName) {
|
|
57
|
+
var ngEventName = dxToNgEventNames[eventName];
|
|
58
|
+
if (!this.component[ngEventName]) {
|
|
59
|
+
this.component[ngEventName] = new core_1.EventEmitter();
|
|
60
|
+
}
|
|
61
|
+
return this.component[ngEventName];
|
|
62
|
+
};
|
|
63
|
+
return NgEventsStrategy;
|
|
64
|
+
}());
|
|
65
|
+
exports.NgEventsStrategy = NgEventsStrategy;
|
|
66
|
+
var events = [];
|
|
67
|
+
var onStableSubscription = null;
|
|
68
|
+
var createOnStableSubscription = function (ngZone, fireNgEvent) {
|
|
69
|
+
if (onStableSubscription) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
onStableSubscription = ngZone.onStable.subscribe(function () {
|
|
73
|
+
onStableSubscription.unsubscribe();
|
|
74
|
+
onStableSubscription = null;
|
|
75
|
+
ngZone.run(function () {
|
|
76
|
+
events.forEach(function (event) {
|
|
77
|
+
var value = event.context.component[event.name];
|
|
78
|
+
fireNgEvent.call(event.context, event.name + 'Change', [value]);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
events = [];
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
var EmitterHelper = (function () {
|
|
85
|
+
function EmitterHelper(ngZone, component) {
|
|
86
|
+
this.component = component;
|
|
87
|
+
this.lockedValueChangeEvent = false;
|
|
88
|
+
this.strategy = new NgEventsStrategy(component, ngZone);
|
|
89
|
+
createOnStableSubscription(ngZone, this.fireNgEvent);
|
|
90
|
+
}
|
|
91
|
+
EmitterHelper.prototype.fireNgEvent = function (eventName, eventArgs) {
|
|
92
|
+
if (this.lockedValueChangeEvent && eventName === 'valueChange') {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
var emitter = this.component[eventName];
|
|
96
|
+
if (emitter) {
|
|
97
|
+
emitter.next(eventArgs && eventArgs[0]);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
EmitterHelper.prototype.createEmitter = function (ngEventName, dxEventName) {
|
|
101
|
+
this.component[ngEventName] = new core_1.EventEmitter();
|
|
102
|
+
if (dxEventName) {
|
|
103
|
+
dxToNgEventNames[dxEventName] = ngEventName;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
EmitterHelper.prototype.rememberEvent = function (name) {
|
|
107
|
+
events.push({ name: name, context: this });
|
|
108
|
+
};
|
|
109
|
+
return EmitterHelper;
|
|
110
|
+
}());
|
|
111
|
+
exports.EmitterHelper = EmitterHelper;
|
|
112
112
|
//# sourceMappingURL=events-strategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["events-strategy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,sCAAqD;AAGrD,IAAM,gBAAgB,GAAG,EAAE,CAAC;AAO5B;IAGI,0BAAoB,SAAsB,EAAU,MAAc;QAA9C,cAAS,GAAT,SAAS,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAF1D,kBAAa,GAA4C,EAAE,CAAC;IAEE,CAAC;IAEvE,mCAAQ,GAAR,UAAS,IAAY;QACjB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IAClD,CAAC;IAED,oCAAS,GAAT,UAAU,IAAI,EAAE,IAAI;QAApB,iBAIC;QAHG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACZ,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC;IAED,6BAAE,GAAF,UAAG,IAAI,EAAE,OAAO;QACZ,IAAI,kBAAkB,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,EACnD,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EACpF,WAAW,GAAG,WAAW,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AAC,CAAC;YAC7D,MAAM,CAAC;QACX,CAAC;QACD,IAAI,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACxC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACV,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC;IACL,CAAC;IACD,qCAAa,GAAb,UAAc,WAAmB,EAAE,WAAmB;QAClD,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,mBAAY,EAAE,CAAC;QACjD,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YACd,gBAAgB,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;QAChD,CAAC;IACL,CAAC;IACD,qCAAa,GAAb,UAAc,IAAY;QACtB,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,CAAC;IACL,oBAAC;AAAD,CA1BA,AA0BC,IAAA;AA1BY,sCAAa","file":"events-strategy.js","sourceRoot":"","sourcesContent":["/*!\n * devextreme-angular\n * Version: 17.2.
|
|
1
|
+
{"version":3,"sources":["events-strategy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,sCAAqD;AAGrD,IAAM,gBAAgB,GAAG,EAAE,CAAC;AAO5B;IAGI,0BAAoB,SAAsB,EAAU,MAAc;QAA9C,cAAS,GAAT,SAAS,CAAa;QAAU,WAAM,GAAN,MAAM,CAAQ;QAF1D,kBAAa,GAA4C,EAAE,CAAC;IAEE,CAAC;IAEvE,mCAAQ,GAAR,UAAS,IAAY;QACjB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IAClD,CAAC;IAED,oCAAS,GAAT,UAAU,IAAI,EAAE,IAAI;QAApB,iBAIC;QAHG,IAAI,CAAC,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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 { EventEmitter, NgZone } from '@angular/core';\nimport { DxComponent } from './component';\n\nconst dxToNgEventNames = {};\n\ninterface IEventSubscription {\n handler: any;\n unsubscribe: () => void;\n}\n\nexport class NgEventsStrategy {\n private subscriptions: { [key: string]: IEventSubscription[] } = {};\n\n constructor(private component: DxComponent, private ngZone: NgZone) { }\n\n hasEvent(name: string) {\n return this.getEmitter(name).observers.length;\n }\n\n fireEvent(name, args) {\n this.ngZone.run(() => {\n this.getEmitter(name).next(args && args[0]);\n });\n }\n\n on(name, handler) {\n let eventSubscriptions = this.subscriptions[name] || [],\n subcription = this.getEmitter(name).subscribe(handler.bind(this.component.instance)),\n unsubscribe = subcription.unsubscribe.bind(subcription);\n\n eventSubscriptions.push({ handler, unsubscribe });\n this.subscriptions[name] = eventSubscriptions;\n }\n\n off(name, handler) {\n let eventSubscriptions = this.subscriptions[name] || [];\n\n if (handler) {\n eventSubscriptions.some((subscription, i) => {\n if (subscription.handler === handler) {\n subscription.unsubscribe();\n eventSubscriptions.splice(i, 1);\n return true;\n }\n });\n } else {\n eventSubscriptions.forEach(subscription => {\n subscription.unsubscribe();\n });\n eventSubscriptions.splice(0, eventSubscriptions.length);\n }\n }\n\n dispose() {}\n\n private getEmitter(eventName: string): EventEmitter<any> {\n let ngEventName = dxToNgEventNames[eventName];\n if (!this.component[ngEventName]) {\n this.component[ngEventName] = new EventEmitter();\n }\n return this.component[ngEventName];\n }\n}\n\ninterface IRememberedEvent {\n name: string;\n context: EmitterHelper;\n}\n\nlet events: IRememberedEvent[] = [];\nlet onStableSubscription: IEventSubscription = null;\n\nlet createOnStableSubscription = function(ngZone: NgZone, fireNgEvent: Function) {\n if (onStableSubscription) {\n return;\n }\n\n onStableSubscription = ngZone.onStable.subscribe(function() {\n onStableSubscription.unsubscribe();\n onStableSubscription = null;\n\n ngZone.run(() => {\n events.forEach(event => {\n let value = event.context.component[event.name];\n\n fireNgEvent.call(event.context, event.name + 'Change', [value]);\n });\n });\n\n events = [];\n });\n};\n\nexport class EmitterHelper {\n strategy: NgEventsStrategy;\n lockedValueChangeEvent = false;\n\n constructor(ngZone: NgZone, public component: DxComponent) {\n this.strategy = new NgEventsStrategy(component, ngZone);\n createOnStableSubscription(ngZone, this.fireNgEvent);\n }\n fireNgEvent(eventName: string, eventArgs: any) {\n if (this.lockedValueChangeEvent && eventName === 'valueChange') {\n return;\n }\n let emitter = this.component[eventName];\n if (emitter) {\n emitter.next(eventArgs && eventArgs[0]);\n }\n }\n createEmitter(ngEventName: string, dxEventName: string) {\n this.component[ngEventName] = new EventEmitter();\n if (dxEventName) {\n dxToNgEventNames[dxEventName] = ngEventName;\n }\n }\n rememberEvent(name: string) {\n events.push({ name: name, context: this });\n }\n}\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* devextreme-angular
|
|
3
|
-
* Version: 17.2.
|
|
4
|
-
* Build date:
|
|
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 { SimpleChanges, IterableDiffers } from '@angular/core';
|
|
14
|
-
import { DxComponent } from './component';
|
|
15
|
-
export declare class IterableDifferHelper {
|
|
16
|
-
private _differs;
|
|
17
|
-
private _host;
|
|
18
|
-
private _propertyDiffers;
|
|
19
|
-
constructor(_differs: IterableDiffers);
|
|
20
|
-
setHost(host: DxComponent): void;
|
|
21
|
-
setup(prop: string, changes: SimpleChanges): void;
|
|
22
|
-
setupSingle(prop: string, value: any): boolean;
|
|
23
|
-
getChanges(prop: string, value: any): any;
|
|
24
|
-
checkChangedOptions(propName: string, hostValue: any): boolean;
|
|
25
|
-
doCheck(prop: string): void;
|
|
26
|
-
}
|
|
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 { SimpleChanges, IterableDiffers } from '@angular/core';
|
|
14
|
+
import { DxComponent } from './component';
|
|
15
|
+
export declare class IterableDifferHelper {
|
|
16
|
+
private _differs;
|
|
17
|
+
private _host;
|
|
18
|
+
private _propertyDiffers;
|
|
19
|
+
constructor(_differs: IterableDiffers);
|
|
20
|
+
setHost(host: DxComponent): void;
|
|
21
|
+
setup(prop: string, changes: SimpleChanges): void;
|
|
22
|
+
setupSingle(prop: string, value: any): boolean;
|
|
23
|
+
getChanges(prop: string, value: any): any;
|
|
24
|
+
checkChangedOptions(propName: string, hostValue: any): boolean;
|
|
25
|
+
doCheck(prop: string): void;
|
|
26
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*!
|
|
3
|
-
* devextreme-angular
|
|
4
|
-
* Version: 17.2.
|
|
5
|
-
* Build date:
|
|
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
|
-
var core_1 = require("@angular/core");
|
|
16
|
-
var IterableDifferHelper = (function () {
|
|
17
|
-
function IterableDifferHelper(_differs) {
|
|
18
|
-
this._differs = _differs;
|
|
19
|
-
this._propertyDiffers = {};
|
|
20
|
-
}
|
|
21
|
-
IterableDifferHelper.prototype.setHost = function (host) {
|
|
22
|
-
this._host = host;
|
|
23
|
-
};
|
|
24
|
-
IterableDifferHelper.prototype.setup = function (prop, changes) {
|
|
25
|
-
if (prop in changes) {
|
|
26
|
-
var value = changes[prop].currentValue;
|
|
27
|
-
this.setupSingle(prop, value);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
IterableDifferHelper.prototype.setupSingle = function (prop, value) {
|
|
31
|
-
if (value && Array.isArray(value)) {
|
|
32
|
-
if (!this._propertyDiffers[prop]) {
|
|
33
|
-
try {
|
|
34
|
-
this._propertyDiffers[prop] = this._differs.find(value).create(null);
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
catch (e) { }
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
delete this._propertyDiffers[prop];
|
|
42
|
-
}
|
|
43
|
-
return false;
|
|
44
|
-
};
|
|
45
|
-
IterableDifferHelper.prototype.getChanges = function (prop, value) {
|
|
46
|
-
if (this._propertyDiffers[prop]) {
|
|
47
|
-
return this._propertyDiffers[prop].diff(value);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
IterableDifferHelper.prototype.checkChangedOptions = function (propName, hostValue) {
|
|
51
|
-
return this._host.changedOptions[propName] === hostValue;
|
|
52
|
-
};
|
|
53
|
-
;
|
|
54
|
-
IterableDifferHelper.prototype.doCheck = function (prop) {
|
|
55
|
-
if (this._propertyDiffers[prop]) {
|
|
56
|
-
var hostValue = this._host[prop], isChangedOption = this.checkChangedOptions(prop, hostValue);
|
|
57
|
-
var changes = this.getChanges(prop, hostValue);
|
|
58
|
-
if (changes && this._host.instance && !isChangedOption) {
|
|
59
|
-
this._host.lockWidgetUpdate();
|
|
60
|
-
this._host.instance.option(prop, hostValue);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
IterableDifferHelper.decorators = [
|
|
65
|
-
{ type: core_1.Injectable },
|
|
66
|
-
];
|
|
67
|
-
/** @nocollapse */
|
|
68
|
-
IterableDifferHelper.ctorParameters = function () { return [
|
|
69
|
-
{ type: core_1.IterableDiffers, },
|
|
70
|
-
]; };
|
|
71
|
-
return IterableDifferHelper;
|
|
72
|
-
}());
|
|
73
|
-
exports.IterableDifferHelper = IterableDifferHelper;
|
|
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
|
+
var core_1 = require("@angular/core");
|
|
16
|
+
var IterableDifferHelper = (function () {
|
|
17
|
+
function IterableDifferHelper(_differs) {
|
|
18
|
+
this._differs = _differs;
|
|
19
|
+
this._propertyDiffers = {};
|
|
20
|
+
}
|
|
21
|
+
IterableDifferHelper.prototype.setHost = function (host) {
|
|
22
|
+
this._host = host;
|
|
23
|
+
};
|
|
24
|
+
IterableDifferHelper.prototype.setup = function (prop, changes) {
|
|
25
|
+
if (prop in changes) {
|
|
26
|
+
var value = changes[prop].currentValue;
|
|
27
|
+
this.setupSingle(prop, value);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
IterableDifferHelper.prototype.setupSingle = function (prop, value) {
|
|
31
|
+
if (value && Array.isArray(value)) {
|
|
32
|
+
if (!this._propertyDiffers[prop]) {
|
|
33
|
+
try {
|
|
34
|
+
this._propertyDiffers[prop] = this._differs.find(value).create(null);
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
delete this._propertyDiffers[prop];
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
};
|
|
45
|
+
IterableDifferHelper.prototype.getChanges = function (prop, value) {
|
|
46
|
+
if (this._propertyDiffers[prop]) {
|
|
47
|
+
return this._propertyDiffers[prop].diff(value);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
IterableDifferHelper.prototype.checkChangedOptions = function (propName, hostValue) {
|
|
51
|
+
return this._host.changedOptions[propName] === hostValue;
|
|
52
|
+
};
|
|
53
|
+
;
|
|
54
|
+
IterableDifferHelper.prototype.doCheck = function (prop) {
|
|
55
|
+
if (this._propertyDiffers[prop]) {
|
|
56
|
+
var hostValue = this._host[prop], isChangedOption = this.checkChangedOptions(prop, hostValue);
|
|
57
|
+
var changes = this.getChanges(prop, hostValue);
|
|
58
|
+
if (changes && this._host.instance && !isChangedOption) {
|
|
59
|
+
this._host.lockWidgetUpdate();
|
|
60
|
+
this._host.instance.option(prop, hostValue);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
IterableDifferHelper.decorators = [
|
|
65
|
+
{ type: core_1.Injectable },
|
|
66
|
+
];
|
|
67
|
+
/** @nocollapse */
|
|
68
|
+
IterableDifferHelper.ctorParameters = function () { return [
|
|
69
|
+
{ type: core_1.IterableDiffers, },
|
|
70
|
+
]; };
|
|
71
|
+
return IterableDifferHelper;
|
|
72
|
+
}());
|
|
73
|
+
exports.IterableDifferHelper = IterableDifferHelper;
|
|
74
74
|
//# sourceMappingURL=iterable-differ-helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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*!\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 {\n Injectable,\n SimpleChanges,\n IterableDiffers\n} from '@angular/core';\n\nimport {\n DxComponent\n} from './component';\n\n\nexport class IterableDifferHelper {\n\n private _host: DxComponent;\n private _propertyDiffers: { [id: string]: any; } = {};\n\n constructor(private _differs: IterableDiffers) { }\n\n setHost(host: DxComponent) {\n this._host = host;\n }\n\n setup(prop: string, changes: SimpleChanges) {\n if (prop in changes) {\n const value = changes[prop].currentValue;\n this.setupSingle(prop, value);\n }\n }\n\n setupSingle(prop: string, value: any) {\n if (value && Array.isArray(value)) {\n if (!this._propertyDiffers[prop]) {\n try {\n this._propertyDiffers[prop] = this._differs.find(value).create(null);\n return true;\n } catch (e) { }\n }\n } else {\n delete this._propertyDiffers[prop];\n }\n\n return false;\n }\n\n getChanges(prop: string, value: any) {\n if (this._propertyDiffers[prop]) {\n return this._propertyDiffers[prop].diff(value);\n }\n }\n\n checkChangedOptions(propName: string, hostValue: any) {\n return this._host.changedOptions[propName] === hostValue;\n };\n\n doCheck(prop: string) {\n if (this._propertyDiffers[prop]) {\n let hostValue = this._host[prop],\n isChangedOption = this.checkChangedOptions(prop, hostValue);\n\n const changes = this.getChanges(prop, hostValue);\n if (changes && this._host.instance && !isChangedOption) {\n this._host.lockWidgetUpdate();\n this._host.instance.option(prop, hostValue);\n }\n }\n }\n\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: IterableDiffers, },\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
package/core/nested-option.d.ts
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* devextreme-angular
|
|
3
|
-
* Version: 17.2.
|
|
4
|
-
* Build date:
|
|
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 { QueryList, ElementRef } from '@angular/core';
|
|
14
|
-
export interface INestedOptionContainer {
|
|
15
|
-
instance: any;
|
|
16
|
-
isLinked: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface IOptionPathGetter {
|
|
19
|
-
(): string;
|
|
20
|
-
}
|
|
21
|
-
export declare abstract class BaseNestedOption implements INestedOptionContainer, ICollectionNestedOptionContainer {
|
|
22
|
-
protected _host: INestedOptionContainer;
|
|
23
|
-
protected _hostOptionPath: IOptionPathGetter;
|
|
24
|
-
private _collectionContainerImpl;
|
|
25
|
-
protected _initialOptions: {};
|
|
26
|
-
protected readonly abstract _optionPath: string;
|
|
27
|
-
protected abstract _fullOptionPath(): string;
|
|
28
|
-
constructor();
|
|
29
|
-
protected _getOption(name: string): any;
|
|
30
|
-
protected _setOption(name: string, value: any): void;
|
|
31
|
-
setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter): void;
|
|
32
|
-
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>): any;
|
|
33
|
-
_filterItems(items: QueryList<BaseNestedOption>): BaseNestedOption[];
|
|
34
|
-
readonly instance: any;
|
|
35
|
-
readonly isLinked: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface ICollectionNestedOptionContainer {
|
|
38
|
-
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>): any;
|
|
39
|
-
}
|
|
40
|
-
export declare class CollectionNestedOptionContainerImpl implements ICollectionNestedOptionContainer {
|
|
41
|
-
private _setOption;
|
|
42
|
-
private _filterItems;
|
|
43
|
-
private _activatedQueries;
|
|
44
|
-
constructor(_setOption: Function, _filterItems?: Function);
|
|
45
|
-
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>): void;
|
|
46
|
-
}
|
|
47
|
-
export declare abstract class NestedOption extends BaseNestedOption {
|
|
48
|
-
setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter): void;
|
|
49
|
-
protected _fullOptionPath(): string;
|
|
50
|
-
}
|
|
51
|
-
export interface ICollectionNestedOption {
|
|
52
|
-
_index: number;
|
|
53
|
-
_value: Object;
|
|
54
|
-
}
|
|
55
|
-
export declare abstract class CollectionNestedOption extends BaseNestedOption implements ICollectionNestedOption {
|
|
56
|
-
_index: number;
|
|
57
|
-
protected _fullOptionPath(): string;
|
|
58
|
-
readonly _value: {};
|
|
59
|
-
readonly isLinked: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface IOptionWithTemplate extends BaseNestedOption {
|
|
62
|
-
template: any;
|
|
63
|
-
}
|
|
64
|
-
export declare function extractTemplate(option: IOptionWithTemplate, element: ElementRef): void;
|
|
65
|
-
export declare class NestedOptionHost {
|
|
66
|
-
private _host;
|
|
67
|
-
private _optionPath;
|
|
68
|
-
setHost(host: INestedOptionContainer, optionPath?: IOptionPathGetter): void;
|
|
69
|
-
setNestedOption(nestedOption: BaseNestedOption): void;
|
|
70
|
-
}
|
|
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 { QueryList, ElementRef } from '@angular/core';
|
|
14
|
+
export interface INestedOptionContainer {
|
|
15
|
+
instance: any;
|
|
16
|
+
isLinked: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IOptionPathGetter {
|
|
19
|
+
(): string;
|
|
20
|
+
}
|
|
21
|
+
export declare abstract class BaseNestedOption implements INestedOptionContainer, ICollectionNestedOptionContainer {
|
|
22
|
+
protected _host: INestedOptionContainer;
|
|
23
|
+
protected _hostOptionPath: IOptionPathGetter;
|
|
24
|
+
private _collectionContainerImpl;
|
|
25
|
+
protected _initialOptions: {};
|
|
26
|
+
protected readonly abstract _optionPath: string;
|
|
27
|
+
protected abstract _fullOptionPath(): string;
|
|
28
|
+
constructor();
|
|
29
|
+
protected _getOption(name: string): any;
|
|
30
|
+
protected _setOption(name: string, value: any): void;
|
|
31
|
+
setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter): void;
|
|
32
|
+
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>): any;
|
|
33
|
+
_filterItems(items: QueryList<BaseNestedOption>): BaseNestedOption[];
|
|
34
|
+
readonly instance: any;
|
|
35
|
+
readonly isLinked: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface ICollectionNestedOptionContainer {
|
|
38
|
+
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>): any;
|
|
39
|
+
}
|
|
40
|
+
export declare class CollectionNestedOptionContainerImpl implements ICollectionNestedOptionContainer {
|
|
41
|
+
private _setOption;
|
|
42
|
+
private _filterItems;
|
|
43
|
+
private _activatedQueries;
|
|
44
|
+
constructor(_setOption: Function, _filterItems?: Function);
|
|
45
|
+
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>): void;
|
|
46
|
+
}
|
|
47
|
+
export declare abstract class NestedOption extends BaseNestedOption {
|
|
48
|
+
setHost(host: INestedOptionContainer, optionPath: IOptionPathGetter): void;
|
|
49
|
+
protected _fullOptionPath(): string;
|
|
50
|
+
}
|
|
51
|
+
export interface ICollectionNestedOption {
|
|
52
|
+
_index: number;
|
|
53
|
+
_value: Object;
|
|
54
|
+
}
|
|
55
|
+
export declare abstract class CollectionNestedOption extends BaseNestedOption implements ICollectionNestedOption {
|
|
56
|
+
_index: number;
|
|
57
|
+
protected _fullOptionPath(): string;
|
|
58
|
+
readonly _value: {};
|
|
59
|
+
readonly isLinked: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface IOptionWithTemplate extends BaseNestedOption {
|
|
62
|
+
template: any;
|
|
63
|
+
}
|
|
64
|
+
export declare function extractTemplate(option: IOptionWithTemplate, element: ElementRef): void;
|
|
65
|
+
export declare class NestedOptionHost {
|
|
66
|
+
private _host;
|
|
67
|
+
private _optionPath;
|
|
68
|
+
setHost(host: INestedOptionContainer, optionPath?: IOptionPathGetter): void;
|
|
69
|
+
setNestedOption(nestedOption: BaseNestedOption): void;
|
|
70
|
+
}
|