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/template.js
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
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
|
-
/* tslint:disable:use-input-property-decorator */
|
|
16
|
-
var core_1 = require("@angular/core");
|
|
17
|
-
var template_host_1 = require("./template-host");
|
|
18
|
-
var utils_1 = require("./utils");
|
|
19
|
-
var events = require("devextreme/events");
|
|
20
|
-
exports.DX_TEMPLATE_WRAPPER_CLASS = 'dx-template-wrapper';
|
|
21
|
-
var RenderData = (function () {
|
|
22
|
-
function RenderData() {
|
|
23
|
-
}
|
|
24
|
-
return RenderData;
|
|
25
|
-
}());
|
|
26
|
-
exports.RenderData = RenderData;
|
|
27
|
-
var DxTemplateDirective = (function () {
|
|
28
|
-
function DxTemplateDirective(templateRef, viewContainerRef, templateHost, ngZone) {
|
|
29
|
-
this.templateRef = templateRef;
|
|
30
|
-
this.viewContainerRef = viewContainerRef;
|
|
31
|
-
this.ngZone = ngZone;
|
|
32
|
-
templateHost.setTemplate(this);
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(DxTemplateDirective.prototype, "dxTemplateOf", {
|
|
35
|
-
set: function (value) {
|
|
36
|
-
this.name = value;
|
|
37
|
-
},
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
;
|
|
42
|
-
DxTemplateDirective.prototype.render = function (renderData) {
|
|
43
|
-
var childView = this.viewContainerRef.createEmbeddedView(this.templateRef, {
|
|
44
|
-
'$implicit': renderData.model,
|
|
45
|
-
index: renderData.index
|
|
46
|
-
});
|
|
47
|
-
var container = utils_1.getElement(renderData.container);
|
|
48
|
-
if (renderData.container) {
|
|
49
|
-
childView.rootNodes.forEach(function (element) {
|
|
50
|
-
container.appendChild(element);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
// =========== WORKAROUND =============
|
|
54
|
-
// https://github.com/angular/angular/issues/12243
|
|
55
|
-
this.ngZone.run(function () {
|
|
56
|
-
childView['detectChanges']();
|
|
57
|
-
});
|
|
58
|
-
// =========== /WORKAROUND =============
|
|
59
|
-
childView.rootNodes.forEach(function (element) {
|
|
60
|
-
utils_1.addClass(element, exports.DX_TEMPLATE_WRAPPER_CLASS);
|
|
61
|
-
events.one(element, 'dxremove', function (e) {
|
|
62
|
-
if (!e._angularIntegration) {
|
|
63
|
-
childView.destroy();
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
return childView.rootNodes;
|
|
68
|
-
};
|
|
69
|
-
DxTemplateDirective.decorators = [
|
|
70
|
-
{ type: core_1.Directive, args: [{
|
|
71
|
-
selector: '[dxTemplate]'
|
|
72
|
-
},] },
|
|
73
|
-
];
|
|
74
|
-
/** @nocollapse */
|
|
75
|
-
DxTemplateDirective.ctorParameters = function () { return [
|
|
76
|
-
{ type: core_1.TemplateRef, },
|
|
77
|
-
{ type: core_1.ViewContainerRef, },
|
|
78
|
-
{ type: template_host_1.DxTemplateHost, },
|
|
79
|
-
{ type: core_1.NgZone, },
|
|
80
|
-
]; };
|
|
81
|
-
DxTemplateDirective.propDecorators = {
|
|
82
|
-
'dxTemplateOf': [{ type: core_1.Input },],
|
|
83
|
-
};
|
|
84
|
-
return DxTemplateDirective;
|
|
85
|
-
}());
|
|
86
|
-
exports.DxTemplateDirective = DxTemplateDirective;
|
|
87
|
-
var DxTemplateModule = (function () {
|
|
88
|
-
function DxTemplateModule() {
|
|
89
|
-
}
|
|
90
|
-
DxTemplateModule.decorators = [
|
|
91
|
-
{ type: core_1.NgModule, args: [{
|
|
92
|
-
declarations: [DxTemplateDirective],
|
|
93
|
-
exports: [DxTemplateDirective]
|
|
94
|
-
},] },
|
|
95
|
-
];
|
|
96
|
-
/** @nocollapse */
|
|
97
|
-
DxTemplateModule.ctorParameters = function () { return []; };
|
|
98
|
-
return DxTemplateModule;
|
|
99
|
-
}());
|
|
100
|
-
exports.DxTemplateModule = DxTemplateModule;
|
|
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
|
+
/* tslint:disable:use-input-property-decorator */
|
|
16
|
+
var core_1 = require("@angular/core");
|
|
17
|
+
var template_host_1 = require("./template-host");
|
|
18
|
+
var utils_1 = require("./utils");
|
|
19
|
+
var events = require("devextreme/events");
|
|
20
|
+
exports.DX_TEMPLATE_WRAPPER_CLASS = 'dx-template-wrapper';
|
|
21
|
+
var RenderData = (function () {
|
|
22
|
+
function RenderData() {
|
|
23
|
+
}
|
|
24
|
+
return RenderData;
|
|
25
|
+
}());
|
|
26
|
+
exports.RenderData = RenderData;
|
|
27
|
+
var DxTemplateDirective = (function () {
|
|
28
|
+
function DxTemplateDirective(templateRef, viewContainerRef, templateHost, ngZone) {
|
|
29
|
+
this.templateRef = templateRef;
|
|
30
|
+
this.viewContainerRef = viewContainerRef;
|
|
31
|
+
this.ngZone = ngZone;
|
|
32
|
+
templateHost.setTemplate(this);
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(DxTemplateDirective.prototype, "dxTemplateOf", {
|
|
35
|
+
set: function (value) {
|
|
36
|
+
this.name = value;
|
|
37
|
+
},
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
41
|
+
;
|
|
42
|
+
DxTemplateDirective.prototype.render = function (renderData) {
|
|
43
|
+
var childView = this.viewContainerRef.createEmbeddedView(this.templateRef, {
|
|
44
|
+
'$implicit': renderData.model,
|
|
45
|
+
index: renderData.index
|
|
46
|
+
});
|
|
47
|
+
var container = utils_1.getElement(renderData.container);
|
|
48
|
+
if (renderData.container) {
|
|
49
|
+
childView.rootNodes.forEach(function (element) {
|
|
50
|
+
container.appendChild(element);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// =========== WORKAROUND =============
|
|
54
|
+
// https://github.com/angular/angular/issues/12243
|
|
55
|
+
this.ngZone.run(function () {
|
|
56
|
+
childView['detectChanges']();
|
|
57
|
+
});
|
|
58
|
+
// =========== /WORKAROUND =============
|
|
59
|
+
childView.rootNodes.forEach(function (element) {
|
|
60
|
+
utils_1.addClass(element, exports.DX_TEMPLATE_WRAPPER_CLASS);
|
|
61
|
+
events.one(element, 'dxremove', function (e) {
|
|
62
|
+
if (!e._angularIntegration) {
|
|
63
|
+
childView.destroy();
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
return childView.rootNodes;
|
|
68
|
+
};
|
|
69
|
+
DxTemplateDirective.decorators = [
|
|
70
|
+
{ type: core_1.Directive, args: [{
|
|
71
|
+
selector: '[dxTemplate]'
|
|
72
|
+
},] },
|
|
73
|
+
];
|
|
74
|
+
/** @nocollapse */
|
|
75
|
+
DxTemplateDirective.ctorParameters = function () { return [
|
|
76
|
+
{ type: core_1.TemplateRef, },
|
|
77
|
+
{ type: core_1.ViewContainerRef, },
|
|
78
|
+
{ type: template_host_1.DxTemplateHost, },
|
|
79
|
+
{ type: core_1.NgZone, },
|
|
80
|
+
]; };
|
|
81
|
+
DxTemplateDirective.propDecorators = {
|
|
82
|
+
'dxTemplateOf': [{ type: core_1.Input },],
|
|
83
|
+
};
|
|
84
|
+
return DxTemplateDirective;
|
|
85
|
+
}());
|
|
86
|
+
exports.DxTemplateDirective = DxTemplateDirective;
|
|
87
|
+
var DxTemplateModule = (function () {
|
|
88
|
+
function DxTemplateModule() {
|
|
89
|
+
}
|
|
90
|
+
DxTemplateModule.decorators = [
|
|
91
|
+
{ type: core_1.NgModule, args: [{
|
|
92
|
+
declarations: [DxTemplateDirective],
|
|
93
|
+
exports: [DxTemplateDirective]
|
|
94
|
+
},] },
|
|
95
|
+
];
|
|
96
|
+
/** @nocollapse */
|
|
97
|
+
DxTemplateModule.ctorParameters = function () { return []; };
|
|
98
|
+
return DxTemplateModule;
|
|
99
|
+
}());
|
|
100
|
+
exports.DxTemplateModule = DxTemplateModule;
|
|
101
101
|
//# sourceMappingURL=template.js.map
|
package/core/template.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,iDAAiD;AAEjD,sCAOuB;AAEvB,iDAAiD;AACjD,iCAA+C;AAC/C,0CAA4C;AAE/B,QAAA,yBAAA,GAA4B,qBAAA,CAAsB;AAE/D;IAAA;IAIA,CAAC;IAAD,iBAAC;AAAD,CAJA,AAIC,IAAA;AAJY,gCAAU;AAOvB;IAOI,6BAAoB,WAA6B,EACrC,gBAAkC,EAC1C,YAA4B,EACpB,MAAc;QAHN,gBAAW,GAAX,WAAW,CAAkB;QACrC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,WAAM,GAAN,MAAM,CAAQ;QACtB,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAVD,sBAAI,6CAAY;aAAhB,UAAiB,KAAK;YAClB,IAAI,CAAC,IAAI,GAAG,KAAK,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AM,OAAA;QAC9F,EAAC,IAAI,EAAE,kBAAW,GAAG;QACrB,EAAC,IAAI,EAAE,uBAAgB,GAAG;QAC1B,EAAC,IAAI,EAAE,8BAAc,GAAG;QACxB,EAAC,IAAI,EAAE,aAAM,GAAG;KACf,EAL6F,CAK7F,CAAC;IACK,kCAAc,GAA2C;QAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;KACjC,CAAC;IACF,0BAAC;CA1DD,AA0DC,IAAA;AA1DY,kDAAmB;AA6DhC;IAAA;IASA,CAAC;IATsC,2BAAU,GAA0B;QAC3E,EAAE,IAAI,EAAE,eAAQ,EAAE,IAAI,EAAE,CAAC;oBACrB,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBACjC,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,+BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,uBAAC;CATD,AASC,IAAA;AATY,4CAAgB","file":"template.js","sourceRoot":"","sourcesContent":["/*!\n * devextreme-angular\n * Version: 17.2.
|
|
1
|
+
{"version":3,"sources":["template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,iDAAiD;AAEjD,sCAOuB;AAEvB,iDAAiD;AACjD,iCAA+C;AAC/C,0CAA4C;AAE/B,QAAA,yBAAA,GAA4B,qBAAA,CAAsB;AAE/D;IAAA;IAIA,CAAC;IAAD,iBAAC;AAAD,CAJA,AAIC,IAAA;AAJY,gCAAU;AAOvB;IAOI,6BAAoB,WAA6B,EACrC,gBAAkC,EAC1C,YAA4B,EACpB,MAAc;QAHN,gBAAW,GAAX,WAAW,CAAkB;QACrC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,WAAM,GAAN,MAAM,CAAQ;QACtB,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAVD,sBAAI,6CAAY;aAAhB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AAE;KACL,CAAC;IACF,kBAAkB;IACX,kCAAc,GAAmE,cAAM,OAAA;QAC9F,EAAC,IAAI,EAAE,kBAAW,GAAG;QACrB,EAAC,IAAI,EAAE,uBAAgB,GAAG;QAC1B,EAAC,IAAI,EAAE,8BAAc,GAAG;QACxB,EAAC,IAAI,EAAE,aAAM,GAAG;KACf,EAL6F,CAK7F,CAAC;IACK,kCAAc,GAA2C;QAChE,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,YAAK,EAAE,EAAE;KACjC,CAAC;IACF,0BAAC;CA1DD,AA0DC,IAAA;AA1DY,kDAAmB;AA6DhC;IAAA;IASA,CAAC;IATsC,2BAAU,GAA0B;QAC3E,EAAE,IAAI,EAAE,eAAQ,EAAE,IAAI,EAAE,CAAC;oBACrB,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;iBACjC,EAAG,EAAE;KACL,CAAC;IACF,kBAAkB;IACX,+BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,uBAAC;CATD,AASC,IAAA;AATY,4CAAgB","file":"template.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\n/* tslint:disable:use-input-property-decorator */\n\nimport {\n Directive,\n NgModule,\n TemplateRef,\n ViewContainerRef,\n Input,\n NgZone\n} from '@angular/core';\n\nimport { DxTemplateHost } from './template-host';\nimport { addClass, getElement } from './utils';\nimport * as events from 'devextreme/events';\n\nexport const DX_TEMPLATE_WRAPPER_CLASS = 'dx-template-wrapper';\n\nexport class RenderData {\n model: any;\n index: number;\n container: any;\n}\n\n\nexport class DxTemplateDirective {\n \n set dxTemplateOf(value) {\n this.name = value;\n };\n name: string;\n\n constructor(private templateRef: TemplateRef<any>,\n private viewContainerRef: ViewContainerRef,\n templateHost: DxTemplateHost,\n private ngZone: NgZone) {\n templateHost.setTemplate(this);\n }\n\n render(renderData: RenderData) {\n let childView = this.viewContainerRef.createEmbeddedView(this.templateRef, {\n '$implicit': renderData.model,\n index: renderData.index\n });\n let container = getElement(renderData.container);\n if (renderData.container) {\n childView.rootNodes.forEach((element) => {\n container.appendChild(element);\n });\n }\n // =========== WORKAROUND =============\n // https://github.com/angular/angular/issues/12243\n this.ngZone.run(() => {\n childView['detectChanges']();\n });\n // =========== /WORKAROUND =============\n childView.rootNodes.forEach((element) => {\n addClass(element, DX_TEMPLATE_WRAPPER_CLASS);\n\n events.one(element, 'dxremove', (e) => {\n if (!e._angularIntegration) {\n childView.destroy();\n }\n });\n });\n\n return childView.rootNodes;\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Directive, args: [{\n selector: '[dxTemplate]'\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n{type: TemplateRef, },\n{type: ViewContainerRef, },\n{type: DxTemplateHost, },\n{type: NgZone, },\n];\nstatic propDecorators: {[key: string]: DecoratorInvocation[]} = {\n'dxTemplateOf': [{ type: Input },],\n};\n}\n\n\nexport class DxTemplateModule { static decorators: DecoratorInvocation[] = [\n{ type: NgModule, args: [{\n declarations: [DxTemplateDirective],\n exports: [DxTemplateDirective]\n}, ] },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|
package/core/utils.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
export declare function addClass(element: any, name: string): void;
|
|
14
|
-
export declare function hasClass(element: any, name: string): any;
|
|
15
|
-
export declare function getElement(element: any): any;
|
|
16
|
-
export declare function removeElement(element: any): void;
|
|
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
|
+
export declare function addClass(element: any, name: string): void;
|
|
14
|
+
export declare function hasClass(element: any, name: string): any;
|
|
15
|
+
export declare function getElement(element: any): any;
|
|
16
|
+
export declare function removeElement(element: any): void;
|
package/core/utils.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
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
|
-
function addClass(element, name) {
|
|
16
|
-
if (element.nodeType === 1) {
|
|
17
|
-
if (element.classList) {
|
|
18
|
-
element.classList.add(name);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
element.className = element.className ? element.className + ' ' + name : name;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.addClass = addClass;
|
|
26
|
-
;
|
|
27
|
-
function hasClass(element, name) {
|
|
28
|
-
var result;
|
|
29
|
-
if (element.classList) {
|
|
30
|
-
result = element.classList.contains(name);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
result = element.className.split(' ').indexOf(name) >= 0;
|
|
34
|
-
}
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
exports.hasClass = hasClass;
|
|
38
|
-
;
|
|
39
|
-
function getElement(element) {
|
|
40
|
-
return element.get ? element.get(0) : element;
|
|
41
|
-
}
|
|
42
|
-
exports.getElement = getElement;
|
|
43
|
-
;
|
|
44
|
-
function removeElement(element) {
|
|
45
|
-
var node = getElement(element), parentNode = node && node.parentNode;
|
|
46
|
-
if (parentNode) {
|
|
47
|
-
parentNode.removeChild(node);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.removeElement = removeElement;
|
|
51
|
-
;
|
|
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
|
+
function addClass(element, name) {
|
|
16
|
+
if (element.nodeType === 1) {
|
|
17
|
+
if (element.classList) {
|
|
18
|
+
element.classList.add(name);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
element.className = element.className ? element.className + ' ' + name : name;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.addClass = addClass;
|
|
26
|
+
;
|
|
27
|
+
function hasClass(element, name) {
|
|
28
|
+
var result;
|
|
29
|
+
if (element.classList) {
|
|
30
|
+
result = element.classList.contains(name);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
result = element.className.split(' ').indexOf(name) >= 0;
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
}
|
|
37
|
+
exports.hasClass = hasClass;
|
|
38
|
+
;
|
|
39
|
+
function getElement(element) {
|
|
40
|
+
return element.get ? element.get(0) : element;
|
|
41
|
+
}
|
|
42
|
+
exports.getElement = getElement;
|
|
43
|
+
;
|
|
44
|
+
function removeElement(element) {
|
|
45
|
+
var node = getElement(element), parentNode = node && node.parentNode;
|
|
46
|
+
if (parentNode) {
|
|
47
|
+
parentNode.removeChild(node);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.removeElement = removeElement;
|
|
51
|
+
;
|
|
52
52
|
//# sourceMappingURL=utils.js.map
|
package/core/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,kBAAyB,OAAY,EAAE,IAAY;IAC/C,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC;QACzB,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;YACpB,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;QAClF,CAAC;IAEL,CAAC;AACL,C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ChC,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;QAClF,CAAC;IAEL,CAAC;AACL,CAAC;AATD,4BASC;AAAA,CAAC;AAEF,kBAAyB,OAAY,EAAE,IAAY;IAC/C,IAAI,MAAM,CAAC;IAEX,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;QACpB,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAAC,IAAI,CAAC,CAAC;QACJ,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,CAAC,MAAM,CAAC;AAClB,CAAC;AAVD,4BAUC;AAAA,CAAC;AAEF,oBAA2B,OAAY;IACnC,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;AAClD,CAAC;AAFD,gCAEC;AAAA,CAAC;AAEF,uBAA8B,OAAY;IACtC,IAAI,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,EAC1B,UAAU,GAAG,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC;IACrC,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACb,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;AACT,CAAC;AAND,sCAMC;AAAA,CAAC","file":"utils.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\nexport function addClass(element: any, name: string) {\n if (element.nodeType === 1) {\n if (element.classList) {\n element.classList.add(name);\n } else {\n element.className = element.className ? element.className + ' ' + name : name;\n }\n\n }\n};\n\nexport function hasClass(element: any, name: string) {\n let result;\n\n if (element.classList) {\n result = element.classList.contains(name);\n } else {\n result = element.className.split(' ').indexOf(name) >= 0;\n }\n\n return result;\n};\n\nexport function getElement(element: any) {\n return element.get ? element.get(0) : element;\n};\n\nexport function removeElement(element: any) {\n let node = getElement(element),\n parentNode = node && node.parentNode;\n if (parentNode) {\n parentNode.removeChild(node);\n }\n};\n"]}
|
package/core/watcher-helper.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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
|
-
export declare class WatcherHelper {
|
|
14
|
-
private _watchers;
|
|
15
|
-
getWatchMethod(): (valueGetter: any, valueChangeCallback: any, options: any) => () => void;
|
|
16
|
-
private _isDifferentValues(oldValue, newValue, deepCheck);
|
|
17
|
-
private _toComparable(value);
|
|
18
|
-
private _checkObjectsFields(checkingFromObject, checkingToObject);
|
|
19
|
-
checkWatchers(): void;
|
|
20
|
-
}
|
|
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
|
+
export declare class WatcherHelper {
|
|
14
|
+
private _watchers;
|
|
15
|
+
getWatchMethod(): (valueGetter: any, valueChangeCallback: any, options: any) => () => void;
|
|
16
|
+
private _isDifferentValues(oldValue, newValue, deepCheck);
|
|
17
|
+
private _toComparable(value);
|
|
18
|
+
private _checkObjectsFields(checkingFromObject, checkingToObject);
|
|
19
|
+
checkWatchers(): void;
|
|
20
|
+
}
|
package/core/watcher-helper.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
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
|
-
var core_1 = require("@angular/core");
|
|
16
|
-
var WatcherHelper = (function () {
|
|
17
|
-
function WatcherHelper() {
|
|
18
|
-
this._watchers = [];
|
|
19
|
-
}
|
|
20
|
-
WatcherHelper.prototype.getWatchMethod = function () {
|
|
21
|
-
var _this = this;
|
|
22
|
-
var watchMethod = function (valueGetter, valueChangeCallback, options) {
|
|
23
|
-
var oldValue = valueGetter();
|
|
24
|
-
options = options || {};
|
|
25
|
-
if (!options.skipImmediate) {
|
|
26
|
-
valueChangeCallback(oldValue);
|
|
27
|
-
}
|
|
28
|
-
var watcher = function () {
|
|
29
|
-
var newValue = valueGetter();
|
|
30
|
-
if (_this._isDifferentValues(oldValue, newValue, options.deep)) {
|
|
31
|
-
valueChangeCallback(newValue);
|
|
32
|
-
oldValue = newValue;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
_this._watchers.push(watcher);
|
|
36
|
-
return function () {
|
|
37
|
-
var index = _this._watchers.indexOf(watcher);
|
|
38
|
-
if (index !== -1) {
|
|
39
|
-
_this._watchers.splice(index, 1);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
return watchMethod;
|
|
44
|
-
};
|
|
45
|
-
WatcherHelper.prototype._isDifferentValues = function (oldValue, newValue, deepCheck) {
|
|
46
|
-
var comparableNewValue = this._toComparable(newValue);
|
|
47
|
-
var comparableOldValue = this._toComparable(oldValue);
|
|
48
|
-
var isObjectValues = comparableNewValue instanceof Object && comparableOldValue instanceof Object;
|
|
49
|
-
if (deepCheck && isObjectValues) {
|
|
50
|
-
return this._checkObjectsFields(newValue, oldValue);
|
|
51
|
-
}
|
|
52
|
-
return comparableNewValue !== comparableOldValue;
|
|
53
|
-
};
|
|
54
|
-
WatcherHelper.prototype._toComparable = function (value) {
|
|
55
|
-
if (value instanceof Date) {
|
|
56
|
-
return value.getTime();
|
|
57
|
-
}
|
|
58
|
-
return value;
|
|
59
|
-
};
|
|
60
|
-
WatcherHelper.prototype._checkObjectsFields = function (checkingFromObject, checkingToObject) {
|
|
61
|
-
for (var field in checkingFromObject) {
|
|
62
|
-
var oldValue = this._toComparable(checkingFromObject[field]);
|
|
63
|
-
var newValue = this._toComparable(checkingToObject[field]);
|
|
64
|
-
if (newValue !== oldValue) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
WatcherHelper.prototype.checkWatchers = function () {
|
|
70
|
-
for (var _i = 0, _a = this._watchers; _i < _a.length; _i++) {
|
|
71
|
-
var watcher = _a[_i];
|
|
72
|
-
watcher();
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
WatcherHelper.decorators = [
|
|
76
|
-
{ type: core_1.Injectable },
|
|
77
|
-
];
|
|
78
|
-
/** @nocollapse */
|
|
79
|
-
WatcherHelper.ctorParameters = function () { return []; };
|
|
80
|
-
return WatcherHelper;
|
|
81
|
-
}());
|
|
82
|
-
exports.WatcherHelper = WatcherHelper;
|
|
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 WatcherHelper = (function () {
|
|
17
|
+
function WatcherHelper() {
|
|
18
|
+
this._watchers = [];
|
|
19
|
+
}
|
|
20
|
+
WatcherHelper.prototype.getWatchMethod = function () {
|
|
21
|
+
var _this = this;
|
|
22
|
+
var watchMethod = function (valueGetter, valueChangeCallback, options) {
|
|
23
|
+
var oldValue = valueGetter();
|
|
24
|
+
options = options || {};
|
|
25
|
+
if (!options.skipImmediate) {
|
|
26
|
+
valueChangeCallback(oldValue);
|
|
27
|
+
}
|
|
28
|
+
var watcher = function () {
|
|
29
|
+
var newValue = valueGetter();
|
|
30
|
+
if (_this._isDifferentValues(oldValue, newValue, options.deep)) {
|
|
31
|
+
valueChangeCallback(newValue);
|
|
32
|
+
oldValue = newValue;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
_this._watchers.push(watcher);
|
|
36
|
+
return function () {
|
|
37
|
+
var index = _this._watchers.indexOf(watcher);
|
|
38
|
+
if (index !== -1) {
|
|
39
|
+
_this._watchers.splice(index, 1);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
return watchMethod;
|
|
44
|
+
};
|
|
45
|
+
WatcherHelper.prototype._isDifferentValues = function (oldValue, newValue, deepCheck) {
|
|
46
|
+
var comparableNewValue = this._toComparable(newValue);
|
|
47
|
+
var comparableOldValue = this._toComparable(oldValue);
|
|
48
|
+
var isObjectValues = comparableNewValue instanceof Object && comparableOldValue instanceof Object;
|
|
49
|
+
if (deepCheck && isObjectValues) {
|
|
50
|
+
return this._checkObjectsFields(newValue, oldValue);
|
|
51
|
+
}
|
|
52
|
+
return comparableNewValue !== comparableOldValue;
|
|
53
|
+
};
|
|
54
|
+
WatcherHelper.prototype._toComparable = function (value) {
|
|
55
|
+
if (value instanceof Date) {
|
|
56
|
+
return value.getTime();
|
|
57
|
+
}
|
|
58
|
+
return value;
|
|
59
|
+
};
|
|
60
|
+
WatcherHelper.prototype._checkObjectsFields = function (checkingFromObject, checkingToObject) {
|
|
61
|
+
for (var field in checkingFromObject) {
|
|
62
|
+
var oldValue = this._toComparable(checkingFromObject[field]);
|
|
63
|
+
var newValue = this._toComparable(checkingToObject[field]);
|
|
64
|
+
if (newValue !== oldValue) {
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
WatcherHelper.prototype.checkWatchers = function () {
|
|
70
|
+
for (var _i = 0, _a = this._watchers; _i < _a.length; _i++) {
|
|
71
|
+
var watcher = _a[_i];
|
|
72
|
+
watcher();
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
WatcherHelper.decorators = [
|
|
76
|
+
{ type: core_1.Injectable },
|
|
77
|
+
];
|
|
78
|
+
/** @nocollapse */
|
|
79
|
+
WatcherHelper.ctorParameters = function () { return []; };
|
|
80
|
+
return WatcherHelper;
|
|
81
|
+
}());
|
|
82
|
+
exports.WatcherHelper = WatcherHelper;
|
|
83
83
|
//# sourceMappingURL=watcher-helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["watcher-helper.ts"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AI,CAAC,SAAS,EAAd,cAAc,EAAd,IAAc;YAA7B,IAAI,OAAO,SAAA;YACX,OAAO,EAAE,CAAC;SACb;IACL,CAAC;IACE,wBAAU,GAA0B;QAC3C,EAAE,IAAI,EAAE,iBAAU,EAAE;KACnB,CAAC;IACF,kBAAkB;IACX,4BAAc,GAAmE,cAAM,OAAA,EAC7F,EAD6F,CAC7F,CAAC;IACF,oBAAC;CA5ED,AA4EC,IAAA;AA5EY,sCAAa","file":"watcher-helper.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 {\n Injectable\n} from '@angular/core';\n\n\nexport class WatcherHelper {\n private _watchers: any[] = [];\n\n getWatchMethod() {\n let watchMethod = (valueGetter, valueChangeCallback, options) => {\n let oldValue = valueGetter();\n options = options || {};\n\n if (!options.skipImmediate) {\n valueChangeCallback(oldValue);\n }\n\n let watcher = () => {\n let newValue = valueGetter();\n\n if (this._isDifferentValues(oldValue, newValue, options.deep)) {\n valueChangeCallback(newValue);\n oldValue = newValue;\n }\n };\n\n this._watchers.push(watcher);\n\n return () => {\n let index = this._watchers.indexOf(watcher);\n\n if (index !== -1) {\n this._watchers.splice(index, 1);\n }\n };\n };\n\n return watchMethod;\n }\n\n private _isDifferentValues(oldValue: any, newValue: any, deepCheck: boolean) {\n let comparableNewValue = this._toComparable(newValue);\n let comparableOldValue = this._toComparable(oldValue);\n let isObjectValues = comparableNewValue instanceof Object && comparableOldValue instanceof Object;\n\n if (deepCheck && isObjectValues) {\n return this._checkObjectsFields(newValue, oldValue);\n }\n return comparableNewValue !== comparableOldValue;\n }\n\n private _toComparable(value) {\n if (value instanceof Date) {\n return value.getTime();\n }\n\n return value;\n }\n\n private _checkObjectsFields(checkingFromObject: Object, checkingToObject: Object) {\n for (let field in checkingFromObject) {\n let oldValue = this._toComparable(checkingFromObject[field]);\n let newValue = this._toComparable(checkingToObject[field]);\n\n if (newValue !== oldValue) {\n return true;\n }\n }\n }\n\n checkWatchers() {\n for (let watcher of this._watchers) {\n watcher();\n }\n }\nstatic decorators: DecoratorInvocation[] = [\n{ type: Injectable },\n];\n/** @nocollapse */\nstatic ctorParameters: () => ({type: any, decorators?: DecoratorInvocation[]}|null)[] = () => [\n];\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
|