devextreme 19.1.6 → 19.1.7
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/animation/easing.js +2 -2
- package/animation/frame.d.ts +2 -2
- package/animation/frame.js +2 -2
- package/animation/fx.d.ts +2 -2
- package/animation/fx.js +2 -2
- package/animation/position.js +2 -2
- package/animation/presets/presets.js +2 -2
- package/animation/presets.d.ts +2 -2
- package/animation/presets.js +2 -2
- package/animation/transition_executor/transition_executor.js +2 -2
- package/animation/transition_executor.d.ts +2 -2
- package/animation/transition_executor.js +2 -2
- package/animation/translator.js +2 -2
- package/aspnet.js +2 -2
- package/bundles/dx.all.d.ts +5886 -5886
- package/bundles/modules/core.js +2 -2
- package/bundles/modules/data.js +2 -2
- package/bundles/modules/data.odata.js +2 -2
- package/bundles/modules/file_providers.js +2 -2
- package/bundles/modules/ui.js +2 -2
- package/bundles/modules/viz.js +2 -2
- package/color.js +2 -2
- package/core/action.js +2 -2
- package/core/class.js +2 -2
- package/core/component.js +2 -2
- package/core/component_registrator.js +2 -2
- package/core/component_registrator_callbacks.js +2 -2
- package/core/config.d.ts +2 -2
- package/core/config.js +2 -2
- package/core/devices.d.ts +2 -2
- package/core/devices.js +2 -2
- package/core/dom_adapter.js +23 -12
- package/core/dom_component.d.ts +2 -2
- package/core/dom_component.js +78 -58
- package/core/element.d.ts +2 -2
- package/core/element_data.js +2 -2
- package/core/errors.js +2 -2
- package/core/events_mixin.js +2 -2
- package/core/events_strategy.js +2 -2
- package/core/guid.d.ts +2 -2
- package/core/guid.js +2 -2
- package/core/http_request.js +2 -2
- package/core/memorized_callbacks.js +2 -2
- package/core/polyfills/promise.js +2 -2
- package/core/polyfills/weak_map.js +2 -2
- package/core/remove_event.js +2 -2
- package/core/renderer.js +2 -2
- package/core/renderer_base.js +2 -2
- package/core/utils/ajax.js +2 -2
- package/core/utils/array.js +2 -2
- package/core/utils/array_compare.js +2 -2
- package/core/utils/browser.js +2 -2
- package/core/utils/call_once.js +2 -2
- package/core/utils/callbacks.js +2 -2
- package/core/utils/common.js +2 -2
- package/core/utils/console.js +2 -2
- package/core/utils/data.js +2 -2
- package/core/utils/date.js +2 -2
- package/core/utils/date_serialization.js +2 -2
- package/core/utils/deferred.js +3 -3
- package/core/utils/dependency_injector.js +2 -2
- package/core/utils/dom.js +2 -2
- package/core/utils/error.js +2 -2
- package/core/utils/extend.js +2 -2
- package/core/utils/html_parser.js +2 -2
- package/core/utils/icon.js +2 -2
- package/core/utils/inflector.js +2 -2
- package/core/utils/iterator.js +2 -2
- package/core/utils/locker.js +2 -2
- package/core/utils/math.js +2 -2
- package/core/utils/object.js +2 -2
- package/core/utils/position.js +2 -2
- package/core/utils/public_component.js +2 -2
- package/core/utils/queue.js +2 -2
- package/core/utils/ready_callbacks.js +2 -2
- package/core/utils/resize_callbacks.js +2 -2
- package/core/utils/selection_filter.js +2 -2
- package/core/utils/size.js +2 -2
- package/core/utils/storage.js +2 -2
- package/core/utils/string.js +2 -2
- package/core/utils/style.js +2 -2
- package/core/utils/support.js +2 -2
- package/core/utils/svg.js +2 -2
- package/core/utils/type.js +2 -2
- package/core/utils/variable_wrapper.js +2 -2
- package/core/utils/version.js +2 -2
- package/core/utils/view_port.js +2 -2
- package/core/utils/window.js +2 -2
- package/core/version.js +3 -3
- package/data/abstract_store.js +2 -2
- package/data/array_query.js +2 -2
- package/data/array_store.d.ts +2 -2
- package/data/array_store.js +2 -2
- package/data/array_utils.js +2 -2
- package/data/custom_store.d.ts +2 -2
- package/data/custom_store.js +2 -2
- package/data/data_source/data_source.js +2 -2
- package/data/data_source.d.ts +2 -2
- package/data/data_source.js +2 -2
- package/data/endpoint_selector.d.ts +2 -2
- package/data/endpoint_selector.js +2 -2
- package/data/errors.d.ts +2 -2
- package/data/errors.js +2 -2
- package/data/load_options.d.ts +2 -2
- package/data/local_store.d.ts +2 -2
- package/data/local_store.js +2 -2
- package/data/odata/context.d.ts +2 -2
- package/data/odata/context.js +2 -2
- package/data/odata/mixins.js +2 -2
- package/data/odata/query_adapter.js +2 -2
- package/data/odata/store.d.ts +2 -2
- package/data/odata/store.js +2 -2
- package/data/odata/utils.d.ts +2 -2
- package/data/odata/utils.js +2 -2
- package/data/proxy_url_formatter.js +2 -2
- package/data/query.d.ts +2 -2
- package/data/query.js +2 -2
- package/data/query_adapters.js +2 -2
- package/data/remote_query.js +2 -2
- package/data/store_helper.js +2 -2
- package/data/utils.d.ts +2 -2
- package/data/utils.js +2 -2
- package/data_helper.js +2 -2
- package/dist/css/dx.carmine.compact.css +136 -73
- package/dist/css/dx.carmine.css +136 -73
- package/dist/css/dx.common.css +4 -9
- package/dist/css/dx.contrast.compact.css +134 -71
- package/dist/css/dx.contrast.css +134 -71
- package/dist/css/dx.dark.compact.css +138 -75
- package/dist/css/dx.dark.css +138 -75
- package/dist/css/dx.darkmoon.compact.css +134 -71
- package/dist/css/dx.darkmoon.css +134 -71
- package/dist/css/dx.darkviolet.compact.css +138 -75
- package/dist/css/dx.darkviolet.css +138 -75
- package/dist/css/dx.greenmist.compact.css +136 -73
- package/dist/css/dx.greenmist.css +136 -73
- package/dist/css/dx.ios7.default.css +20 -7
- package/dist/css/dx.light.compact.css +134 -71
- package/dist/css/dx.light.css +134 -71
- package/dist/css/dx.material.blue.dark.compact.css +146 -52
- package/dist/css/dx.material.blue.dark.css +146 -52
- package/dist/css/dx.material.blue.light.compact.css +146 -52
- package/dist/css/dx.material.blue.light.css +146 -52
- package/dist/css/dx.material.lime.dark.compact.css +146 -52
- package/dist/css/dx.material.lime.dark.css +146 -52
- package/dist/css/dx.material.lime.light.compact.css +146 -52
- package/dist/css/dx.material.lime.light.css +146 -52
- package/dist/css/dx.material.orange.dark.compact.css +146 -52
- package/dist/css/dx.material.orange.dark.css +146 -52
- package/dist/css/dx.material.orange.light.compact.css +146 -52
- package/dist/css/dx.material.orange.light.css +146 -52
- package/dist/css/dx.material.purple.dark.compact.css +146 -52
- package/dist/css/dx.material.purple.dark.css +146 -52
- package/dist/css/dx.material.purple.light.compact.css +146 -52
- package/dist/css/dx.material.purple.light.css +146 -52
- package/dist/css/dx.material.teal.dark.compact.css +146 -52
- package/dist/css/dx.material.teal.dark.css +146 -52
- package/dist/css/dx.material.teal.light.compact.css +146 -52
- package/dist/css/dx.material.teal.light.css +146 -52
- package/dist/css/dx.softblue.compact.css +136 -73
- package/dist/css/dx.softblue.css +136 -73
- package/dist/js/dx.all.debug.js +3943 -3218
- package/dist/js/dx.all.js +115 -114
- package/dist/js/dx.aspnet.mvc.js +2 -2
- package/dist/js/dx.viz-web.debug.js +3930 -3205
- package/dist/js/dx.viz-web.js +114 -114
- package/dist/js/dx.viz.debug.js +1403 -1287
- package/dist/js/dx.viz.js +41 -41
- package/dist/js/dx.web.debug.js +3245 -2552
- package/dist/js/dx.web.js +91 -90
- package/dist/js/localization/dx.messages.cs.js +2 -2
- package/dist/js/localization/dx.messages.de.js +2 -2
- package/dist/js/localization/dx.messages.el.js +2 -2
- package/dist/js/localization/dx.messages.en.js +2 -2
- package/dist/js/localization/dx.messages.es.js +2 -2
- package/dist/js/localization/dx.messages.fi.js +2 -2
- package/dist/js/localization/dx.messages.fr.js +2 -2
- package/dist/js/localization/dx.messages.it.js +2 -2
- package/dist/js/localization/dx.messages.ja.js +2 -2
- package/dist/js/localization/dx.messages.nl.js +2 -2
- package/dist/js/localization/dx.messages.pt.js +2 -2
- package/dist/js/localization/dx.messages.ru.js +2 -2
- package/dist/js/localization/dx.messages.sl.js +2 -2
- package/dist/js/localization/dx.messages.sv.js +2 -2
- package/dist/js/localization/dx.messages.tr.js +2 -2
- package/dist/js/localization/dx.messages.zh.js +2 -2
- package/dist/js/vectormap-utils/dx.vectormaputils.debug.js +2 -2
- package/dist/js/vectormap-utils/dx.vectormaputils.js +2 -2
- package/dist/js/vectormap-utils/dx.vectormaputils.node.js +2 -2
- package/dist/ts/dx.all.d.ts +5886 -5886
- package/docEnums.js +2 -2
- package/events/click.d.ts +2 -2
- package/events/click.js +2 -2
- package/events/contextmenu.d.ts +2 -2
- package/events/contextmenu.js +2 -2
- package/events/core/emitter.feedback.js +2 -2
- package/events/core/emitter.js +2 -2
- package/events/core/emitter_registrator.js +2 -2
- package/events/core/event_registrator.js +2 -2
- package/events/core/event_registrator_callbacks.js +2 -2
- package/events/core/events_engine.js +2 -2
- package/events/core/hook_touch_props.js +2 -2
- package/events/core/wheel.js +2 -2
- package/events/core.js +2 -2
- package/events/dblclick.d.ts +2 -2
- package/events/dblclick.js +2 -2
- package/events/double_click.js +2 -2
- package/events/drag.d.ts +2 -2
- package/events/drag.js +2 -2
- package/events/gesture/emitter.gesture.js +2 -2
- package/events/gesture/swipeable.js +2 -2
- package/events/hold.d.ts +2 -2
- package/events/hold.js +2 -2
- package/events/hover.d.ts +2 -2
- package/events/hover.js +2 -2
- package/events/pointer/base.js +2 -2
- package/events/pointer/mouse.js +2 -2
- package/events/pointer/mouse_and_touch.js +2 -2
- package/events/pointer/mspointer.js +2 -2
- package/events/pointer/observer.js +2 -2
- package/events/pointer/touch.js +2 -2
- package/events/pointer.d.ts +2 -2
- package/events/pointer.js +2 -2
- package/events/swipe.d.ts +2 -2
- package/events/swipe.js +2 -2
- package/events/transform.d.ts +2 -2
- package/events/transform.js +2 -2
- package/events/utils.js +10 -6
- package/events.d.ts +2 -2
- package/events.js +2 -2
- package/exporter/excel/excel.cell_alignment_helper.js +2 -2
- package/exporter/excel/excel.cell_format_helper.js +2 -2
- package/exporter/excel/excel.color_helper.js +2 -2
- package/exporter/excel/excel.doc_comments.js +2 -2
- package/exporter/excel/excel.file.js +2 -2
- package/exporter/excel/excel.fill_helper.js +2 -2
- package/exporter/excel/excel.font_helper.js +2 -2
- package/exporter/excel/excel.number_format_helper.js +2 -2
- package/exporter/excel/excel.pattern_fill_helper.js +2 -2
- package/exporter/excel/excel.tag_helper.js +2 -2
- package/exporter/excel_creator.js +2 -2
- package/exporter/excel_format_converter.js +2 -2
- package/exporter/exceljs/excelExporter.js +2 -2
- package/exporter/exceljs/exportDataGrid.js +39 -12
- package/exporter/file_saver.js +4 -3
- package/exporter/image_creator.js +2 -2
- package/exporter/pdf_creator.js +2 -2
- package/exporter/svg_creator.js +2 -2
- package/exporter.js +2 -2
- package/format_helper.js +2 -2
- package/integration/angular/action_executors.js +2 -2
- package/integration/angular/component_registrator.js +2 -2
- package/integration/angular/components.js +2 -2
- package/integration/angular/event_registrator.js +2 -2
- package/integration/angular/module.js +2 -2
- package/integration/angular/template.js +2 -2
- package/integration/angular.js +2 -2
- package/integration/jquery/ajax.js +2 -2
- package/integration/jquery/component_registrator.js +2 -2
- package/integration/jquery/deferred.js +2 -2
- package/integration/jquery/easing.js +2 -2
- package/integration/jquery/element.js +2 -2
- package/integration/jquery/element_data.js +2 -2
- package/integration/jquery/events.js +2 -2
- package/integration/jquery/hold_ready.js +2 -2
- package/integration/jquery/hooks.js +2 -2
- package/integration/jquery/renderer.js +2 -2
- package/integration/jquery/use_jquery.js +2 -2
- package/integration/jquery.d.ts +2 -2
- package/integration/jquery.js +2 -2
- package/integration/knockout/clean_node.js +2 -2
- package/integration/knockout/clean_node_old.js +2 -2
- package/integration/knockout/component_registrator.js +2 -2
- package/integration/knockout/components.js +2 -2
- package/integration/knockout/event_registrator.js +2 -2
- package/integration/knockout/template.js +2 -2
- package/integration/knockout/utils.js +2 -2
- package/integration/knockout/validation.js +2 -2
- package/integration/knockout/variable_wrapper_utils.js +2 -2
- package/integration/knockout.js +2 -2
- package/localization/cldr-data/parentLocales.js +2 -2
- package/localization/core.js +2 -2
- package/localization/currency.js +2 -2
- package/localization/date.js +2 -2
- package/localization/default_date_names.js +2 -2
- package/localization/default_messages.js +2 -2
- package/localization/globalize/core.js +2 -2
- package/localization/globalize/currency.js +2 -2
- package/localization/globalize/date.js +3 -3
- package/localization/globalize/message.js +2 -2
- package/localization/globalize/number.js +2 -2
- package/localization/language_codes.js +2 -2
- package/localization/ldml/date.format.js +2 -2
- package/localization/ldml/date.formatter.js +2 -2
- package/localization/ldml/date.parser.js +2 -2
- package/localization/ldml/number.js +2 -2
- package/localization/message.js +2 -2
- package/localization/number.js +2 -2
- package/localization/utils.js +2 -2
- package/localization.d.ts +2 -2
- package/localization.js +2 -2
- package/mobile/hide_top_overlay.d.ts +2 -2
- package/mobile/hide_top_overlay.js +2 -2
- package/mobile/init_mobile_viewport/init_mobile_viewport.js +2 -2
- package/mobile/init_mobile_viewport.d.ts +2 -2
- package/mobile/init_mobile_viewport.js +2 -2
- package/package.json +2 -2
- package/ui/accordion.d.ts +2 -2
- package/ui/accordion.js +2 -2
- package/ui/action_sheet.d.ts +2 -2
- package/ui/action_sheet.js +2 -2
- package/ui/autocomplete.d.ts +2 -2
- package/ui/autocomplete.js +2 -2
- package/ui/box.d.ts +2 -2
- package/ui/box.js +2 -2
- package/ui/button.d.ts +2 -2
- package/ui/button.js +2 -2
- package/ui/button_group.d.ts +2 -2
- package/ui/button_group.js +2 -2
- package/ui/calendar/ui.calendar.base_view.js +2 -2
- package/ui/calendar/ui.calendar.js +2 -2
- package/ui/calendar/ui.calendar.navigator.js +2 -2
- package/ui/calendar/ui.calendar.views.js +2 -2
- package/ui/calendar.d.ts +2 -2
- package/ui/calendar.js +2 -2
- package/ui/check_box.d.ts +2 -2
- package/ui/check_box.js +2 -2
- package/ui/collection/item.js +2 -2
- package/ui/collection/ui.collection_widget.async.js +2 -2
- package/ui/collection/ui.collection_widget.base.js +6 -2
- package/ui/collection/ui.collection_widget.edit.js +2 -2
- package/ui/collection/ui.collection_widget.edit.strategy.js +2 -2
- package/ui/collection/ui.collection_widget.edit.strategy.plain.js +2 -2
- package/ui/collection/ui.collection_widget.live_update.js +2 -2
- package/ui/color_box/color_box.js +2 -2
- package/ui/color_box/color_view.js +2 -2
- package/ui/color_box.d.ts +2 -2
- package/ui/color_box.js +2 -2
- package/ui/context_menu/ui.context_menu.js +2 -2
- package/ui/context_menu/ui.menu_base.edit.strategy.js +2 -2
- package/ui/context_menu/ui.menu_base.js +2 -2
- package/ui/context_menu.d.ts +2 -2
- package/ui/context_menu.js +2 -2
- package/ui/data_grid/aggregate_calculator.js +2 -2
- package/ui/data_grid/ui.data_grid.adaptivity.js +2 -2
- package/ui/data_grid/ui.data_grid.base.d.ts +2 -2
- package/ui/data_grid/ui.data_grid.base.js +2 -2
- package/ui/data_grid/ui.data_grid.column_chooser.js +2 -2
- package/ui/data_grid/ui.data_grid.column_fixing.js +2 -2
- package/ui/data_grid/ui.data_grid.column_headers.js +2 -2
- package/ui/data_grid/ui.data_grid.columns_controller.js +2 -2
- package/ui/data_grid/ui.data_grid.columns_resizing_reordering.js +2 -2
- package/ui/data_grid/ui.data_grid.context_menu.js +2 -2
- package/ui/data_grid/ui.data_grid.core.js +2 -2
- package/ui/data_grid/ui.data_grid.data_controller.js +2 -2
- package/ui/data_grid/ui.data_grid.data_source_adapter.js +2 -2
- package/ui/data_grid/ui.data_grid.editing.js +2 -2
- package/ui/data_grid/ui.data_grid.editor_factory.js +2 -2
- package/ui/data_grid/ui.data_grid.error_handling.js +2 -2
- package/ui/data_grid/ui.data_grid.export.js +28 -6
- package/ui/data_grid/ui.data_grid.filter_builder.js +2 -2
- package/ui/data_grid/ui.data_grid.filter_panel.js +2 -2
- package/ui/data_grid/ui.data_grid.filter_row.js +2 -2
- package/ui/data_grid/ui.data_grid.filter_sync.js +2 -2
- package/ui/data_grid/ui.data_grid.focus.js +2 -2
- package/ui/data_grid/ui.data_grid.grid_view.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.collapsed.js +10 -6
- package/ui/data_grid/ui.data_grid.grouping.core.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.expanded.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.js +2 -2
- package/ui/data_grid/ui.data_grid.header_filter.js +2 -2
- package/ui/data_grid/ui.data_grid.header_panel.js +2 -2
- package/ui/data_grid/ui.data_grid.js +2 -2
- package/ui/data_grid/ui.data_grid.keyboard_navigation.js +2 -2
- package/ui/data_grid/ui.data_grid.master_detail.js +2 -2
- package/ui/data_grid/ui.data_grid.pager.js +2 -2
- package/ui/data_grid/ui.data_grid.rows.js +2 -2
- package/ui/data_grid/ui.data_grid.search.js +2 -2
- package/ui/data_grid/ui.data_grid.selection.js +2 -2
- package/ui/data_grid/ui.data_grid.sorting.js +2 -2
- package/ui/data_grid/ui.data_grid.state_storing.js +2 -2
- package/ui/data_grid/ui.data_grid.summary.js +2 -2
- package/ui/data_grid/ui.data_grid.utils.js +2 -2
- package/ui/data_grid/ui.data_grid.validating.js +2 -2
- package/ui/data_grid/ui.data_grid.virtual_columns.js +2 -2
- package/ui/data_grid/ui.data_grid.virtual_scrolling.js +2 -2
- package/ui/data_grid.d.ts +2 -2
- package/ui/data_grid.js +2 -2
- package/ui/date_box/ui.date_box.base.js +3 -3
- package/ui/date_box/ui.date_box.js +2 -2
- package/ui/date_box/ui.date_box.mask.js +18 -11
- package/ui/date_box/ui.date_box.mask.parts.js +4 -4
- package/ui/date_box/ui.date_box.strategy.calendar.js +2 -2
- package/ui/date_box/ui.date_box.strategy.calendar_with_time.js +2 -2
- package/ui/date_box/ui.date_box.strategy.date_view.js +2 -2
- package/ui/date_box/ui.date_box.strategy.js +5 -2
- package/ui/date_box/ui.date_box.strategy.list.js +13 -2
- package/ui/date_box/ui.date_box.strategy.native.js +2 -2
- package/ui/date_box/ui.date_utils.js +2 -2
- package/ui/date_box/ui.date_view.js +2 -2
- package/ui/date_box/ui.date_view_roller.js +2 -2
- package/ui/date_box/ui.time_view.js +2 -2
- package/ui/date_box.d.ts +2 -2
- package/ui/date_box.js +2 -2
- package/ui/defer_rendering.d.ts +2 -2
- package/ui/defer_rendering.js +2 -2
- package/ui/diagram/diagram.panel.js +2 -2
- package/ui/diagram/diagram_bar.js +2 -2
- package/ui/diagram/diagram_importer.js +2 -2
- package/ui/diagram/ui.diagram.commands.js +2 -2
- package/ui/diagram/ui.diagram.contextmenu.js +2 -2
- package/ui/diagram/ui.diagram.edges.js +2 -2
- package/ui/diagram/ui.diagram.items.js +2 -2
- package/ui/diagram/ui.diagram.js +2 -2
- package/ui/diagram/ui.diagram.leftpanel.js +2 -2
- package/ui/diagram/ui.diagram.nodes.js +2 -2
- package/ui/diagram/ui.diagram.rightpanel.js +2 -2
- package/ui/diagram/ui.diagram.shape.categories.js +2 -2
- package/ui/diagram/ui.diagram.toolbar.js +2 -2
- package/ui/diagram.d.ts +2 -2
- package/ui/diagram.js +2 -2
- package/ui/dialog.d.ts +2 -2
- package/ui/dialog.js +2 -2
- package/ui/draggable.js +2 -2
- package/ui/drawer/ui.drawer.js +2 -2
- package/ui/drawer/ui.drawer.rendering.strategy.js +2 -2
- package/ui/drawer/ui.drawer.rendering.strategy.overlap.js +2 -2
- package/ui/drawer/ui.drawer.rendering.strategy.push.js +2 -2
- package/ui/drawer/ui.drawer.rendering.strategy.shrink.js +2 -2
- package/ui/drawer.d.ts +2 -2
- package/ui/drawer.js +2 -2
- package/ui/drop_down_box.d.ts +2 -2
- package/ui/drop_down_box.js +2 -2
- package/ui/drop_down_button.d.ts +2 -2
- package/ui/drop_down_button.js +25 -10
- package/ui/drop_down_editor/ui.drop_down_button.js +2 -2
- package/ui/drop_down_editor/ui.drop_down_editor.d.ts +2 -2
- package/ui/drop_down_editor/ui.drop_down_editor.js +3 -3
- package/ui/drop_down_editor/ui.drop_down_list.js +8 -4
- package/ui/drop_down_menu.js +2 -2
- package/ui/editor/editor.js +10 -3
- package/ui/editor/ui.data_expression.js +2 -2
- package/ui/file_manager/file_provider/ajax.js +2 -2
- package/ui/file_manager/file_provider/array.js +2 -2
- package/ui/file_manager/file_provider/file_provider.js +2 -2
- package/ui/file_manager/file_provider/onedrive.js +2 -2
- package/ui/file_manager/file_provider/webapi.js +2 -2
- package/ui/file_manager/ui.file_manager.adaptivity.js +2 -2
- package/ui/file_manager/ui.file_manager.breadcrumbs.js +2 -2
- package/ui/file_manager/ui.file_manager.command_manager.js +2 -2
- package/ui/file_manager/ui.file_manager.common.js +2 -2
- package/ui/file_manager/ui.file_manager.context_menu.js +2 -2
- package/ui/file_manager/ui.file_manager.dialog.folder_chooser.js +2 -2
- package/ui/file_manager/ui.file_manager.dialog.js +2 -2
- package/ui/file_manager/ui.file_manager.dialog.name_editor.js +2 -2
- package/ui/file_manager/ui.file_manager.editing.js +3 -3
- package/ui/file_manager/ui.file_manager.file_actions_button.js +2 -2
- package/ui/file_manager/ui.file_manager.file_uploader.js +2 -2
- package/ui/file_manager/ui.file_manager.files_tree_view.js +2 -2
- package/ui/file_manager/ui.file_manager.item_list.details.js +2 -2
- package/ui/file_manager/ui.file_manager.item_list.js +2 -2
- package/ui/file_manager/ui.file_manager.item_list.thumbnails.js +2 -2
- package/ui/file_manager/ui.file_manager.js +2 -2
- package/ui/file_manager/ui.file_manager.messages.js +2 -2
- package/ui/file_manager/ui.file_manager.toolbar.js +2 -2
- package/ui/file_manager/ui.file_manager.utils.js +2 -2
- package/ui/file_manager.d.ts +2 -2
- package/ui/file_manager.js +2 -2
- package/ui/file_uploader.d.ts +2 -2
- package/ui/file_uploader.js +2 -2
- package/ui/filter_builder/between.js +2 -2
- package/ui/filter_builder/filter_builder.js +4 -2
- package/ui/filter_builder/ui.filter_operations_dictionary.js +2 -2
- package/ui/filter_builder/utils.js +6 -3
- package/ui/filter_builder.d.ts +2 -2
- package/ui/filter_builder.js +2 -2
- package/ui/form/ui.form.item_option_action.js +69 -0
- package/ui/form/ui.form.item_options_actions.js +175 -0
- package/ui/form/ui.form.items_runtime_info.js +2 -2
- package/ui/form/ui.form.js +185 -180
- package/ui/form/ui.form.layout_manager.js +63 -74
- package/ui/form.d.ts +2 -2
- package/ui/form.js +2 -2
- package/ui/gallery.d.ts +2 -2
- package/ui/gallery.js +2 -2
- package/ui/grid_core/ui.grid_core.accessibility.js +2 -2
- package/ui/grid_core/ui.grid_core.adaptivity.js +7 -7
- package/ui/grid_core/ui.grid_core.column_chooser.js +21 -4
- package/ui/grid_core/ui.grid_core.column_fixing.js +2 -2
- package/ui/grid_core/ui.grid_core.column_headers.js +2 -2
- package/ui/grid_core/ui.grid_core.column_state_mixin.js +2 -2
- package/ui/grid_core/ui.grid_core.columns_controller.js +22 -18
- package/ui/grid_core/ui.grid_core.columns_resizing_reordering.js +10 -5
- package/ui/grid_core/ui.grid_core.columns_view.js +2 -2
- package/ui/grid_core/ui.grid_core.context_menu.js +4 -4
- package/ui/grid_core/ui.grid_core.data_controller.js +3 -3
- package/ui/grid_core/ui.grid_core.data_source_adapter.js +2 -2
- package/ui/grid_core/ui.grid_core.editing.js +35 -28
- package/ui/grid_core/ui.grid_core.editor_factory.js +9 -4
- package/ui/grid_core/ui.grid_core.error_handling.js +2 -2
- package/ui/grid_core/ui.grid_core.export_mixin.js +2 -2
- package/ui/grid_core/ui.grid_core.filter_builder.js +2 -2
- package/ui/grid_core/ui.grid_core.filter_custom_operations.js +2 -2
- package/ui/grid_core/ui.grid_core.filter_panel.js +2 -2
- package/ui/grid_core/ui.grid_core.filter_row.js +2 -2
- package/ui/grid_core/ui.grid_core.filter_sync.js +2 -2
- package/ui/grid_core/ui.grid_core.focus.js +79 -69
- package/ui/grid_core/ui.grid_core.grid_view.js +2 -2
- package/ui/grid_core/ui.grid_core.header_filter.js +3 -6
- package/ui/grid_core/ui.grid_core.header_filter_core.js +2 -2
- package/ui/grid_core/ui.grid_core.header_panel.js +2 -2
- package/ui/grid_core/ui.grid_core.keyboard_navigation.js +40 -24
- package/ui/grid_core/ui.grid_core.master_detail.js +3 -3
- package/ui/grid_core/ui.grid_core.modules.js +2 -2
- package/ui/grid_core/ui.grid_core.pager.js +2 -2
- package/ui/grid_core/ui.grid_core.rows.js +3 -3
- package/ui/grid_core/ui.grid_core.search.js +6 -4
- package/ui/grid_core/ui.grid_core.selection.js +4 -4
- package/ui/grid_core/ui.grid_core.sorting.js +2 -2
- package/ui/grid_core/ui.grid_core.sorting_mixin.js +2 -2
- package/ui/grid_core/ui.grid_core.state_storing.js +18 -13
- package/ui/grid_core/ui.grid_core.state_storing_core.js +2 -2
- package/ui/grid_core/ui.grid_core.utils.js +10 -3
- package/ui/grid_core/ui.grid_core.validating.js +2 -2
- package/ui/grid_core/ui.grid_core.virtual_columns.js +2 -2
- package/ui/grid_core/ui.grid_core.virtual_columns_core.js +2 -2
- package/ui/grid_core/ui.grid_core.virtual_scrolling.js +2 -2
- package/ui/grid_core/ui.grid_core.virtual_scrolling_core.js +2 -2
- package/ui/hierarchical_collection/ui.data_adapter.js +2 -2
- package/ui/hierarchical_collection/ui.data_converter.js +2 -2
- package/ui/hierarchical_collection/ui.hierarchical_collection_widget.js +2 -2
- package/ui/html_editor/converterController.js +2 -2
- package/ui/html_editor/converters/delta.js +2 -2
- package/ui/html_editor/converters/markdown.js +2 -2
- package/ui/html_editor/formats/align.js +2 -2
- package/ui/html_editor/formats/font.js +2 -2
- package/ui/html_editor/formats/image.js +2 -2
- package/ui/html_editor/formats/link.js +2 -2
- package/ui/html_editor/formats/mention.js +2 -2
- package/ui/html_editor/formats/size.js +2 -2
- package/ui/html_editor/formats/variable.js +2 -2
- package/ui/html_editor/matchers/textDecoration.js +2 -2
- package/ui/html_editor/matchers/wordLists.js +2 -2
- package/ui/html_editor/modules/dropImage.js +2 -2
- package/ui/html_editor/modules/mentions.js +2 -2
- package/ui/html_editor/modules/popup.js +2 -2
- package/ui/html_editor/modules/resizing.js +2 -2
- package/ui/html_editor/modules/toolbar.js +7 -2
- package/ui/html_editor/modules/variables.js +2 -2
- package/ui/html_editor/modules/widget_collector.js +2 -2
- package/ui/html_editor/quill_importer.js +2 -2
- package/ui/html_editor/quill_registrator.js +2 -2
- package/ui/html_editor/themes/base.js +2 -2
- package/ui/html_editor/ui/formDialog.js +2 -2
- package/ui/html_editor/ui.html_editor.js +38 -3
- package/ui/html_editor.d.ts +2 -2
- package/ui/html_editor.js +2 -2
- package/ui/list/item.js +2 -2
- package/ui/list/ui.list.base.js +2 -2
- package/ui/list/ui.list.edit.decorator.context.js +2 -2
- package/ui/list/ui.list.edit.decorator.js +2 -2
- package/ui/list/ui.list.edit.decorator.reorder.js +35 -4
- package/ui/list/ui.list.edit.decorator.selection.js +2 -2
- package/ui/list/ui.list.edit.decorator.static.js +2 -2
- package/ui/list/ui.list.edit.decorator.swipe.js +2 -2
- package/ui/list/ui.list.edit.decorator.switchable.button.js +2 -2
- package/ui/list/ui.list.edit.decorator.switchable.js +2 -2
- package/ui/list/ui.list.edit.decorator.switchable.slide.js +2 -2
- package/ui/list/ui.list.edit.decorator_menu_helper.js +2 -2
- package/ui/list/ui.list.edit.decorator_registry.js +2 -2
- package/ui/list/ui.list.edit.js +2 -2
- package/ui/list/ui.list.edit.provider.js +2 -2
- package/ui/list/ui.list.edit.search.js +2 -2
- package/ui/list/ui.list.edit.strategy.grouped.js +2 -2
- package/ui/list.d.ts +2 -2
- package/ui/list.js +2 -2
- package/ui/load_indicator.d.ts +2 -2
- package/ui/load_indicator.js +2 -2
- package/ui/load_panel.d.ts +2 -2
- package/ui/load_panel.js +2 -2
- package/ui/lookup.d.ts +2 -2
- package/ui/lookup.js +2 -2
- package/ui/map/provider.dynamic.bing.js +2 -2
- package/ui/map/provider.dynamic.google.js +2 -2
- package/ui/map/provider.dynamic.js +2 -2
- package/ui/map/provider.google_static.js +2 -2
- package/ui/map/provider.js +2 -2
- package/ui/map.d.ts +2 -2
- package/ui/map.js +2 -2
- package/ui/menu/ui.menu.js +2 -2
- package/ui/menu/ui.submenu.js +2 -2
- package/ui/menu.d.ts +2 -2
- package/ui/menu.js +2 -2
- package/ui/multi_view.d.ts +2 -2
- package/ui/multi_view.js +2 -2
- package/ui/nav_bar/item.js +2 -2
- package/ui/nav_bar.d.ts +2 -2
- package/ui/nav_bar.js +2 -2
- package/ui/notify.d.ts +2 -2
- package/ui/notify.js +2 -2
- package/ui/number_box/number_box.base.js +6 -3
- package/ui/number_box/number_box.caret.js +12 -8
- package/ui/number_box/number_box.js +2 -2
- package/ui/number_box/number_box.mask.js +31 -24
- package/ui/number_box/number_box.spin.js +2 -2
- package/ui/number_box/number_box.spins.js +2 -2
- package/ui/number_box.d.ts +2 -2
- package/ui/number_box.js +2 -2
- package/ui/overlay/ui.overlay.js +4 -3
- package/ui/overlay/utils.js +2 -2
- package/ui/overlay/z_index.js +2 -2
- package/ui/overlay.d.ts +2 -2
- package/ui/overlay.js +2 -2
- package/ui/pager.js +2 -2
- package/ui/pivot_grid/data_source.d.ts +2 -2
- package/ui/pivot_grid/data_source.js +2 -2
- package/ui/pivot_grid/local_store.js +2 -2
- package/ui/pivot_grid/remote_store.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.area_item.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.chart_integration.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.data_area.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.data_controller.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.export.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.field_chooser.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.field_chooser_base.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.fields_area.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.headers_area.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.summary_display_modes.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.utils.js +2 -2
- package/ui/pivot_grid/ui.sortable.js +2 -2
- package/ui/pivot_grid/xmla_store/xmla_store.js +2 -2
- package/ui/pivot_grid/xmla_store.d.ts +2 -2
- package/ui/pivot_grid/xmla_store.js +2 -2
- package/ui/pivot_grid.d.ts +2 -2
- package/ui/pivot_grid.js +2 -2
- package/ui/pivot_grid_field_chooser.d.ts +2 -2
- package/ui/pivot_grid_field_chooser.js +2 -2
- package/ui/popover.d.ts +2 -2
- package/ui/popover.js +15 -10
- package/ui/popup.d.ts +2 -2
- package/ui/popup.js +4 -4
- package/ui/progress_bar.d.ts +2 -2
- package/ui/progress_bar.js +2 -2
- package/ui/radio_group/radio_button.js +2 -2
- package/ui/radio_group/radio_group.js +4 -5
- package/ui/radio_group.d.ts +2 -2
- package/ui/radio_group.js +2 -2
- package/ui/range_slider.d.ts +2 -2
- package/ui/range_slider.js +2 -2
- package/ui/recurrence_editor.d.ts +2 -2
- package/ui/recurrence_editor.js +2 -2
- package/ui/resizable.d.ts +2 -2
- package/ui/resizable.js +2 -2
- package/ui/responsive_box.d.ts +2 -2
- package/ui/responsive_box.js +2 -2
- package/ui/scheduler/compactAppointmentsHelper.js +2 -2
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.agenda.js +2 -5
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.base.js +8 -10
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.horizontal.js +2 -10
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.horizontal_month.js +2 -5
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.horizontal_month_line.js +2 -2
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.vertical.js +2 -2
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointmentsPositioning.strategy.adaptive.js +2 -2
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointmentsPositioning.strategy.base.js +2 -2
- package/ui/scheduler/shaders/ui.scheduler.current_time_shader.horizontal.js +2 -2
- package/ui/scheduler/shaders/ui.scheduler.current_time_shader.js +2 -2
- package/ui/scheduler/shaders/ui.scheduler.current_time_shader.vertical.js +2 -2
- package/ui/scheduler/timezones/ui.scheduler.timezone_editor.js +2 -2
- package/ui/scheduler/timezones/ui.scheduler.timezones.js +2 -2
- package/ui/scheduler/timezones/ui.scheduler.timezones_data.js +2 -2
- package/ui/scheduler/tooltip_strategies/desktopTooltipStrategy.js +2 -2
- package/ui/scheduler/tooltip_strategies/mobileTooltipStrategy.js +2 -2
- package/ui/scheduler/tooltip_strategies/tooltipStrategyBase.js +12 -8
- package/ui/scheduler/ui.loading.js +2 -2
- package/ui/scheduler/ui.scheduler.appointment.js +2 -2
- package/ui/scheduler/ui.scheduler.appointment_form.js +8 -5
- package/ui/scheduler/ui.scheduler.appointment_model.js +8 -7
- package/ui/scheduler/ui.scheduler.appointments.js +13 -9
- package/ui/scheduler/ui.scheduler.appointments.layout_manager.js +2 -2
- package/ui/scheduler/ui.scheduler.header.js +2 -2
- package/ui/scheduler/ui.scheduler.js +7 -4
- package/ui/scheduler/ui.scheduler.navigator.js +2 -2
- package/ui/scheduler/ui.scheduler.publisher_mixin.js +2 -2
- package/ui/scheduler/ui.scheduler.recurrence_editor.js +4 -3
- package/ui/scheduler/ui.scheduler.resource_manager.js +2 -2
- package/ui/scheduler/ui.scheduler.subscribes.js +5 -5
- package/ui/scheduler/ui.scheduler.table_creator.js +2 -2
- package/ui/scheduler/utils.recurrence.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.agenda.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.timeline.js +4 -3
- package/ui/scheduler/workspaces/ui.scheduler.timeline_day.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.timeline_month.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.timeline_week.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.timeline_work_week.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.horizontal.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.vertical.js +5 -4
- package/ui/scheduler/workspaces/ui.scheduler.work_space.indicator.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space_day.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space_month.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space_week.js +2 -2
- package/ui/scheduler/workspaces/ui.scheduler.work_space_work_week.js +2 -2
- package/ui/scheduler.d.ts +2 -2
- package/ui/scheduler.js +2 -2
- package/ui/scroll_view/animator.js +2 -2
- package/ui/scroll_view/scrollable.d.ts +2 -2
- package/ui/scroll_view/ui.events.emitter.gesture.scroll.js +2 -2
- package/ui/scroll_view/ui.scroll_view.js +2 -2
- package/ui/scroll_view/ui.scroll_view.native.pull_down.js +2 -2
- package/ui/scroll_view/ui.scroll_view.native.slide_down.js +2 -2
- package/ui/scroll_view/ui.scroll_view.native.swipe_down.js +2 -2
- package/ui/scroll_view/ui.scroll_view.simulated.js +4 -4
- package/ui/scroll_view/ui.scrollable.js +2 -2
- package/ui/scroll_view/ui.scrollable.native.js +4 -4
- package/ui/scroll_view/ui.scrollable.simulated.js +3 -2
- package/ui/scroll_view/ui.scrollbar.js +51 -34
- package/ui/scroll_view.d.ts +2 -2
- package/ui/scroll_view.js +2 -2
- package/ui/select_box.d.ts +2 -2
- package/ui/select_box.js +7 -4
- package/ui/selection/selection.js +2 -2
- package/ui/selection/selection.strategy.deferred.js +2 -2
- package/ui/selection/selection.strategy.js +2 -2
- package/ui/selection/selection.strategy.standard.js +2 -2
- package/ui/set_template_engine.d.ts +2 -2
- package/ui/set_template_engine.js +2 -2
- package/ui/shared/accessibility.js +2 -2
- package/ui/shared/async_template_mixin.js +2 -2
- package/ui/shared/filtering.js +2 -2
- package/ui/shared/grouped_data_converter_mixin.js +2 -2
- package/ui/shared/ui.editor_factory_mixin.js +5 -2
- package/ui/slide_out.d.ts +2 -2
- package/ui/slide_out.js +2 -2
- package/ui/slide_out_view.d.ts +2 -2
- package/ui/slide_out_view.js +2 -2
- package/ui/slider/ui.slider.js +2 -2
- package/ui/slider/ui.slider_handle.js +2 -2
- package/ui/slider.d.ts +2 -2
- package/ui/slider.js +2 -2
- package/ui/speed_dial_action/repaint_floating_action_button.d.ts +2 -2
- package/ui/speed_dial_action/repaint_floating_action_button.js +2 -2
- package/ui/speed_dial_action/speed_dial_action.js +2 -2
- package/ui/speed_dial_action/speed_dial_item.js +2 -2
- package/ui/speed_dial_action/speed_dial_main_item.js +6 -3
- package/ui/speed_dial_action.d.ts +2 -2
- package/ui/speed_dial_action.js +2 -2
- package/ui/switch.d.ts +2 -2
- package/ui/switch.js +2 -2
- package/ui/tab_panel/item.js +2 -2
- package/ui/tab_panel.d.ts +2 -2
- package/ui/tab_panel.js +2 -2
- package/ui/tabs/item.js +2 -2
- package/ui/tabs.d.ts +2 -2
- package/ui/tabs.js +2 -2
- package/ui/tag_box.d.ts +2 -2
- package/ui/tag_box.js +51 -14
- package/ui/text_area.d.ts +2 -2
- package/ui/text_area.js +13 -25
- package/ui/text_box/text_box.js +14 -14
- package/ui/text_box/texteditor_button_collection/button.js +2 -2
- package/ui/text_box/texteditor_button_collection/custom.js +2 -2
- package/ui/text_box/texteditor_button_collection/index.js +2 -2
- package/ui/text_box/ui.text_editor.base.js +27 -2
- package/ui/text_box/ui.text_editor.clear.js +3 -3
- package/ui/text_box/ui.text_editor.js +2 -2
- package/ui/text_box/ui.text_editor.mask.js +22 -12
- package/ui/text_box/ui.text_editor.mask.rule.js +2 -2
- package/ui/text_box/ui.text_editor.mask.strategy.android.js +2 -7
- package/ui/text_box/ui.text_editor.mask.strategy.base.js +26 -14
- package/ui/text_box/ui.text_editor.mask.strategy.default.js +34 -35
- package/ui/text_box/utils.caret.js +2 -2
- package/ui/text_box/utils.scroll.js +37 -0
- package/ui/text_box.d.ts +2 -2
- package/ui/text_box.js +2 -2
- package/ui/themes.d.ts +2 -2
- package/ui/themes.js +2 -2
- package/ui/themes_callback.js +2 -2
- package/ui/tile_view.d.ts +2 -2
- package/ui/tile_view.js +2 -2
- package/ui/toast.d.ts +2 -2
- package/ui/toast.js +2 -2
- package/ui/toolbar/ui.toolbar.base.js +6 -4
- package/ui/toolbar/ui.toolbar.menu.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.action_sheet.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.drop_down_menu.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.js +2 -2
- package/ui/toolbar.d.ts +2 -2
- package/ui/toolbar.js +2 -2
- package/ui/tooltip/tooltip.js +2 -2
- package/ui/tooltip/ui.tooltip.js +2 -2
- package/ui/tooltip.d.ts +2 -2
- package/ui/tooltip.js +2 -2
- package/ui/track_bar.js +2 -2
- package/ui/tree_list/ui.tree_list.adaptivity.js +2 -2
- package/ui/tree_list/ui.tree_list.base.js +2 -2
- package/ui/tree_list/ui.tree_list.column_chooser.js +2 -2
- package/ui/tree_list/ui.tree_list.column_fixing.js +2 -2
- package/ui/tree_list/ui.tree_list.column_headers.js +2 -2
- package/ui/tree_list/ui.tree_list.columns_controller.js +2 -2
- package/ui/tree_list/ui.tree_list.columns_resizing_reordering.js +2 -2
- package/ui/tree_list/ui.tree_list.context_menu.js +2 -2
- package/ui/tree_list/ui.tree_list.core.js +2 -2
- package/ui/tree_list/ui.tree_list.data_controller.js +2 -2
- package/ui/tree_list/ui.tree_list.data_source_adapter.js +10 -2
- package/ui/tree_list/ui.tree_list.editing.js +3 -3
- package/ui/tree_list/ui.tree_list.editor_factory.js +2 -2
- package/ui/tree_list/ui.tree_list.error_handling.js +2 -2
- package/ui/tree_list/ui.tree_list.filter_builder.js +2 -2
- package/ui/tree_list/ui.tree_list.filter_panel.js +2 -2
- package/ui/tree_list/ui.tree_list.filter_row.js +2 -2
- package/ui/tree_list/ui.tree_list.filter_sync.js +2 -2
- package/ui/tree_list/ui.tree_list.focus.js +2 -2
- package/ui/tree_list/ui.tree_list.grid_view.js +2 -2
- package/ui/tree_list/ui.tree_list.header_filter.js +2 -2
- package/ui/tree_list/ui.tree_list.header_panel.js +2 -2
- package/ui/tree_list/ui.tree_list.js +2 -2
- package/ui/tree_list/ui.tree_list.keyboard_navigation.js +2 -2
- package/ui/tree_list/ui.tree_list.master_detail.js +2 -2
- package/ui/tree_list/ui.tree_list.pager.js +2 -2
- package/ui/tree_list/ui.tree_list.rows.js +2 -2
- package/ui/tree_list/ui.tree_list.search.js +2 -2
- package/ui/tree_list/ui.tree_list.selection.js +2 -2
- package/ui/tree_list/ui.tree_list.sorting.js +2 -2
- package/ui/tree_list/ui.tree_list.state_storing.js +2 -2
- package/ui/tree_list/ui.tree_list.validating.js +2 -2
- package/ui/tree_list/ui.tree_list.virtual_columns.js +2 -2
- package/ui/tree_list/ui.tree_list.virtual_scrolling.js +2 -2
- package/ui/tree_list.d.ts +2 -2
- package/ui/tree_list.js +2 -2
- package/ui/tree_view/ui.tree_view.base.js +2 -2
- package/ui/tree_view/ui.tree_view.search.js +2 -2
- package/ui/tree_view.d.ts +2 -2
- package/ui/tree_view.js +2 -2
- package/ui/validation/default_adapter.js +2 -2
- package/ui/validation/validation_mixin.js +2 -2
- package/ui/validation_engine.d.ts +2 -2
- package/ui/validation_engine.js +2 -2
- package/ui/validation_group.d.ts +2 -2
- package/ui/validation_group.js +2 -2
- package/ui/validation_summary.d.ts +2 -2
- package/ui/validation_summary.js +2 -2
- package/ui/validator.d.ts +2 -2
- package/ui/validator.js +2 -2
- package/ui/widget/bindable_template.js +2 -2
- package/ui/widget/child_default_template.js +2 -2
- package/ui/widget/empty_template.js +2 -2
- package/ui/widget/function_template.js +2 -2
- package/ui/widget/selectors.js +2 -2
- package/ui/widget/swatch_container.js +2 -2
- package/ui/widget/template.d.ts +2 -2
- package/ui/widget/template.js +2 -2
- package/ui/widget/template_engine_registry.js +2 -2
- package/ui/widget/template_engines.js +2 -2
- package/ui/widget/ui.errors.js +2 -2
- package/ui/widget/ui.keyboard_processor.js +2 -2
- package/ui/widget/ui.search_box_mixin.js +2 -2
- package/ui/widget/ui.template_base.js +2 -2
- package/ui/widget/ui.widget.js +14 -5
- package/ui/widget/utils.ink_ripple.js +2 -2
- package/utils.d.ts +2 -2
- package/utils.js +2 -2
- package/viz/axes/axes_constants.js +2 -2
- package/viz/axes/base_axis.js +12 -10
- package/viz/axes/constant_line.js +2 -2
- package/viz/axes/datetime_breaks.js +2 -2
- package/viz/axes/polar_axes.js +2 -2
- package/viz/axes/smart_formatter.js +2 -2
- package/viz/axes/strip.js +2 -2
- package/viz/axes/tick.js +2 -2
- package/viz/axes/tick_generator.js +2 -2
- package/viz/axes/xy_axes.js +13 -5
- package/viz/bar_gauge.d.ts +2 -2
- package/viz/bar_gauge.js +2 -2
- package/viz/bullet.d.ts +2 -2
- package/viz/bullet.js +2 -2
- package/viz/chart.d.ts +2 -2
- package/viz/chart.js +18 -20
- package/viz/chart_components/advanced_chart.js +5 -4
- package/viz/chart_components/base_chart.js +4 -4
- package/viz/chart_components/crosshair.js +2 -2
- package/viz/chart_components/layout_manager.js +2 -2
- package/viz/chart_components/multi_axes_synchronizer.js +2 -2
- package/viz/chart_components/scroll_bar.js +2 -2
- package/viz/chart_components/shutter_zoom.js +2 -2
- package/viz/chart_components/tracker.js +2 -2
- package/viz/chart_components/zoom_and_pan.js +33 -52
- package/viz/circular_gauge.d.ts +2 -2
- package/viz/circular_gauge.js +2 -2
- package/viz/components/chart_theme_manager.js +2 -2
- package/viz/components/consts.js +2 -2
- package/viz/components/data_validator.js +2 -2
- package/viz/components/legend.js +2 -2
- package/viz/components/parse_utils.js +2 -2
- package/viz/components/tracker.js +2 -2
- package/viz/core/annotations.js +2 -2
- package/viz/core/base_theme_manager.js +2 -2
- package/viz/core/base_widget.js +2 -2
- package/viz/core/data_source.js +2 -2
- package/viz/core/errors_warnings.js +2 -2
- package/viz/core/export.js +2 -2
- package/viz/core/helpers.js +2 -2
- package/viz/core/layout.js +2 -2
- package/viz/core/layout_element.js +2 -2
- package/viz/core/loading_indicator.js +2 -2
- package/viz/core/plaque.js +2 -2
- package/viz/core/renderers/animation.js +2 -2
- package/viz/core/renderers/renderer.js +5 -5
- package/viz/core/series_family.js +2 -2
- package/viz/core/themes/generic.carmine.js +2 -2
- package/viz/core/themes/generic.contrast.js +2 -2
- package/viz/core/themes/generic.dark.js +2 -2
- package/viz/core/themes/generic.darkmoon.js +2 -2
- package/viz/core/themes/generic.darkviolet.js +2 -2
- package/viz/core/themes/generic.greenmist.js +2 -2
- package/viz/core/themes/generic.light.js +2 -2
- package/viz/core/themes/generic.softblue.js +2 -2
- package/viz/core/themes/ios.js +2 -2
- package/viz/core/themes/material.js +2 -2
- package/viz/core/title.js +2 -2
- package/viz/core/tooltip.js +2 -2
- package/viz/core/utils.js +2 -2
- package/viz/export.d.ts +2 -2
- package/viz/export.js +2 -2
- package/viz/funnel/funnel.js +2 -2
- package/viz/funnel/item.js +2 -2
- package/viz/funnel/label.js +2 -2
- package/viz/funnel/tiling.funnel.js +2 -2
- package/viz/funnel/tiling.js +2 -2
- package/viz/funnel/tiling.pyramid.js +2 -2
- package/viz/funnel/tooltip.js +2 -2
- package/viz/funnel/tracker.js +2 -2
- package/viz/funnel.d.ts +2 -2
- package/viz/funnel.js +2 -2
- package/viz/gauges/bar_gauge.js +2 -2
- package/viz/gauges/base_gauge.js +2 -2
- package/viz/gauges/base_indicators.js +2 -2
- package/viz/gauges/base_range_container.js +2 -2
- package/viz/gauges/circular_gauge.js +2 -2
- package/viz/gauges/circular_indicators.js +2 -2
- package/viz/gauges/circular_range_container.js +2 -2
- package/viz/gauges/common.js +2 -2
- package/viz/gauges/linear_gauge.js +2 -2
- package/viz/gauges/linear_indicators.js +2 -2
- package/viz/gauges/linear_range_container.js +2 -2
- package/viz/gauges/theme_manager.js +2 -2
- package/viz/gauges/tracker.js +2 -2
- package/viz/linear_gauge.d.ts +2 -2
- package/viz/linear_gauge.js +2 -2
- package/viz/palette.d.ts +2 -2
- package/viz/palette.js +2 -2
- package/viz/pie_chart.d.ts +2 -2
- package/viz/pie_chart.js +2 -2
- package/viz/polar_chart.d.ts +2 -2
- package/viz/polar_chart.js +2 -2
- package/viz/range_selector/common.js +2 -2
- package/viz/range_selector/range_selector.js +158 -145
- package/viz/range_selector/range_view.js +2 -2
- package/viz/range_selector/series_data_source.js +2 -2
- package/viz/range_selector/slider.js +2 -2
- package/viz/range_selector/slider_marker.js +2 -2
- package/viz/range_selector/sliders_controller.js +23 -23
- package/viz/range_selector/tracker.js +109 -86
- package/viz/range_selector.d.ts +2 -2
- package/viz/range_selector.js +2 -2
- package/viz/sankey/constants.js +2 -2
- package/viz/sankey/data_validator.js +2 -2
- package/viz/sankey/graph.js +2 -2
- package/viz/sankey/layout.js +2 -2
- package/viz/sankey/link_item.js +2 -2
- package/viz/sankey/node_item.js +2 -2
- package/viz/sankey/sankey.js +2 -2
- package/viz/sankey/tooltip.js +2 -2
- package/viz/sankey/tracker.js +2 -2
- package/viz/sankey.d.ts +2 -2
- package/viz/sankey.js +2 -2
- package/viz/series/area_series.js +2 -2
- package/viz/series/bar_series.js +2 -2
- package/viz/series/base_series.js +4 -3
- package/viz/series/bubble_series.js +2 -2
- package/viz/series/financial_series.js +2 -2
- package/viz/series/helpers/range_data_calculator.js +2 -2
- package/viz/series/line_series.js +2 -2
- package/viz/series/pie_series.js +9 -5
- package/viz/series/points/bar_point.js +2 -2
- package/viz/series/points/base_point.js +2 -2
- package/viz/series/points/bubble_point.js +2 -2
- package/viz/series/points/candlestick_point.js +2 -2
- package/viz/series/points/label.js +2 -2
- package/viz/series/points/pie_point.js +2 -2
- package/viz/series/points/polar_point.js +2 -2
- package/viz/series/points/range_bar_point.js +2 -2
- package/viz/series/points/range_symbol_point.js +2 -2
- package/viz/series/points/stock_point.js +2 -2
- package/viz/series/points/symbol_point.js +2 -2
- package/viz/series/range_series.js +2 -2
- package/viz/series/scatter_series.js +2 -2
- package/viz/series/stacked_series.js +2 -2
- package/viz/sparkline.d.ts +2 -2
- package/viz/sparkline.js +2 -2
- package/viz/sparklines/base_sparkline.js +2 -2
- package/viz/sparklines/bullet.js +2 -2
- package/viz/sparklines/sparkline.js +2 -2
- package/viz/themes.d.ts +2 -2
- package/viz/themes.js +2 -2
- package/viz/translators/category_translator.js +2 -2
- package/viz/translators/datetime_translator.js +2 -2
- package/viz/translators/interval_translator.js +2 -2
- package/viz/translators/logarithmic_translator.js +2 -2
- package/viz/translators/range.js +2 -2
- package/viz/translators/translator1d.js +2 -2
- package/viz/translators/translator2d.js +2 -2
- package/viz/tree_map/api.js +2 -2
- package/viz/tree_map/colorizing.discrete.js +2 -2
- package/viz/tree_map/colorizing.gradient.js +2 -2
- package/viz/tree_map/colorizing.js +2 -2
- package/viz/tree_map/colorizing.range.js +2 -2
- package/viz/tree_map/common.js +2 -2
- package/viz/tree_map/drilldown.js +2 -2
- package/viz/tree_map/hover.js +2 -2
- package/viz/tree_map/node.js +2 -2
- package/viz/tree_map/plain_data_source.js +2 -2
- package/viz/tree_map/selection.js +2 -2
- package/viz/tree_map/states.js +2 -2
- package/viz/tree_map/tiling.js +2 -2
- package/viz/tree_map/tiling.rotated_slice_and_dice.js +2 -2
- package/viz/tree_map/tiling.slice_and_dice.js +2 -2
- package/viz/tree_map/tiling.squarified.base.js +2 -2
- package/viz/tree_map/tiling.squarified.js +2 -2
- package/viz/tree_map/tiling.strip.js +2 -2
- package/viz/tree_map/tooltip.js +2 -2
- package/viz/tree_map/tracker.js +2 -2
- package/viz/tree_map/tree_map.base.js +2 -2
- package/viz/tree_map/tree_map.js +2 -2
- package/viz/tree_map.d.ts +2 -2
- package/viz/tree_map.js +2 -2
- package/viz/utils.d.ts +2 -2
- package/viz/utils.js +2 -2
- package/viz/vector_map/control_bar.js +2 -2
- package/viz/vector_map/data_exchanger.js +2 -2
- package/viz/vector_map/event_emitter.js +2 -2
- package/viz/vector_map/gesture_handler.js +2 -2
- package/viz/vector_map/layout.js +2 -2
- package/viz/vector_map/legend.js +2 -2
- package/viz/vector_map/map_layer.js +2 -2
- package/viz/vector_map/projection.d.ts +2 -2
- package/viz/vector_map/projection.js +2 -2
- package/viz/vector_map/projection.main.js +2 -2
- package/viz/vector_map/tooltip_viewer.js +2 -2
- package/viz/vector_map/tracker.js +2 -2
- package/viz/vector_map/vector_map.js +2 -2
- package/viz/vector_map.d.ts +2 -2
- package/viz/vector_map.js +2 -2
package/ui/form/ui.form.js
CHANGED
|
@@ -1,71 +1,91 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExtreme (ui/form/ui.form.js)
|
|
3
|
-
* Version: 19.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 19.1.7
|
|
4
|
+
* Build date: Fri Oct 11 2019
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
10
|
+
var _renderer = require("../../core/renderer");
|
|
11
|
+
var _renderer2 = _interopRequireDefault(_renderer);
|
|
12
|
+
var _events_engine = require("../../events/core/events_engine");
|
|
13
|
+
var _events_engine2 = _interopRequireDefault(_events_engine);
|
|
14
|
+
var _component_registrator = require("../../core/component_registrator");
|
|
15
|
+
var _component_registrator2 = _interopRequireDefault(_component_registrator);
|
|
16
|
+
var _guid = require("../../core/guid");
|
|
17
|
+
var _guid2 = _interopRequireDefault(_guid);
|
|
18
|
+
var _common = require("../../core/utils/common");
|
|
19
|
+
var _type = require("../../core/utils/type");
|
|
20
|
+
var _iterator = require("../../core/utils/iterator");
|
|
21
|
+
var _array = require("../../core/utils/array");
|
|
22
|
+
var _extend = require("../../core/utils/extend");
|
|
23
|
+
var _string = require("../../core/utils/string");
|
|
24
|
+
var _browser = require("../../core/utils/browser");
|
|
25
|
+
var _browser2 = _interopRequireDefault(_browser);
|
|
26
|
+
var _dom = require("../../core/utils/dom");
|
|
27
|
+
var _message = require("../../localization/message");
|
|
28
|
+
var _message2 = _interopRequireDefault(_message);
|
|
29
|
+
var _ui = require("../widget/ui.widget");
|
|
30
|
+
var _ui2 = _interopRequireDefault(_ui);
|
|
31
|
+
var _window = require("../../core/utils/window");
|
|
32
|
+
var _validation_engine = require("../validation_engine");
|
|
33
|
+
var _validation_engine2 = _interopRequireDefault(_validation_engine);
|
|
34
|
+
var _uiForm = require("./ui.form.layout_manager");
|
|
35
|
+
var _uiForm2 = _interopRequireDefault(_uiForm);
|
|
36
|
+
var _uiForm3 = require("./ui.form.items_runtime_info");
|
|
37
|
+
var _uiForm4 = _interopRequireDefault(_uiForm3);
|
|
38
|
+
var _tab_panel = require("../tab_panel");
|
|
39
|
+
var _tab_panel2 = _interopRequireDefault(_tab_panel);
|
|
40
|
+
var _ui3 = require("../scroll_view/ui.scrollable");
|
|
41
|
+
var _ui4 = _interopRequireDefault(_ui3);
|
|
42
|
+
var _deferred = require("../../core/utils/deferred");
|
|
43
|
+
var _themes = require("../themes");
|
|
44
|
+
var _themes2 = _interopRequireDefault(_themes);
|
|
45
|
+
var _uiForm5 = require("./ui.form.item_options_actions");
|
|
46
|
+
var _uiForm6 = _interopRequireDefault(_uiForm5);
|
|
33
47
|
require("../validation_summary");
|
|
34
48
|
require("../validation_group");
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var
|
|
49
|
+
|
|
50
|
+
function _interopRequireDefault(obj) {
|
|
51
|
+
return obj && obj.__esModule ? obj : {
|
|
52
|
+
"default": obj
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
var FORM_CLASS = "dx-form";
|
|
56
|
+
var FIELD_ITEM_CLASS = "dx-field-item";
|
|
57
|
+
var FIELD_ITEM_LABEL_TEXT_CLASS = "dx-field-item-label-text";
|
|
58
|
+
var FORM_GROUP_CLASS = "dx-form-group";
|
|
59
|
+
var FORM_GROUP_CONTENT_CLASS = "dx-form-group-content";
|
|
60
|
+
var FORM_GROUP_WITH_CAPTION_CLASS = "dx-form-group-with-caption";
|
|
61
|
+
var FORM_GROUP_CAPTION_CLASS = "dx-form-group-caption";
|
|
62
|
+
var HIDDEN_LABEL_CLASS = "dx-layout-manager-hidden-label";
|
|
63
|
+
var FIELD_ITEM_LABEL_CLASS = "dx-field-item-label";
|
|
64
|
+
var FIELD_ITEM_LABEL_CONTENT_CLASS = "dx-field-item-label-content";
|
|
65
|
+
var FIELD_ITEM_TAB_CLASS = "dx-field-item-tab";
|
|
66
|
+
var FORM_FIELD_ITEM_COL_CLASS = "dx-col-";
|
|
67
|
+
var GROUP_COL_COUNT_CLASS = "dx-group-colcount-";
|
|
68
|
+
var FIELD_ITEM_CONTENT_CLASS = "dx-field-item-content";
|
|
69
|
+
var FORM_VALIDATION_SUMMARY = "dx-form-validation-summary";
|
|
70
|
+
var WIDGET_CLASS = "dx-widget";
|
|
71
|
+
var FOCUSED_STATE_CLASS = "dx-state-focused";
|
|
72
|
+
var Form = _ui2.default.inherit({
|
|
53
73
|
_init: function() {
|
|
54
74
|
this.callBase();
|
|
55
75
|
this._cachedColCountOptions = [];
|
|
56
|
-
this._itemsRunTimeInfo = new
|
|
76
|
+
this._itemsRunTimeInfo = new _uiForm4.default;
|
|
57
77
|
this._groupsColCount = [];
|
|
58
78
|
this._attachSyncSubscriptions()
|
|
59
79
|
},
|
|
60
80
|
_initOptions: function(options) {
|
|
61
81
|
if (!("screenByWidth" in options)) {
|
|
62
|
-
options.screenByWidth =
|
|
82
|
+
options.screenByWidth = _window.defaultScreenFactorFunc
|
|
63
83
|
}
|
|
64
84
|
this.callBase(options)
|
|
65
85
|
},
|
|
66
86
|
_getDefaultOptions: function() {
|
|
67
|
-
return extend(this.callBase(), {
|
|
68
|
-
formID: "dx-" + new
|
|
87
|
+
return (0, _extend.extend)(this.callBase(), {
|
|
88
|
+
formID: "dx-" + new _guid2.default,
|
|
69
89
|
formData: {},
|
|
70
90
|
colCount: 1,
|
|
71
91
|
screenByWidth: null,
|
|
@@ -82,8 +102,8 @@ var Form = Widget.inherit({
|
|
|
82
102
|
showRequiredMark: true,
|
|
83
103
|
showOptionalMark: false,
|
|
84
104
|
requiredMark: "*",
|
|
85
|
-
optionalMark:
|
|
86
|
-
requiredMessage:
|
|
105
|
+
optionalMark: _message2.default.format("dxForm-optionalMark"),
|
|
106
|
+
requiredMessage: _message2.default.getFormatter("dxForm-requiredMessage"),
|
|
87
107
|
showValidationSummary: false,
|
|
88
108
|
items: void 0,
|
|
89
109
|
scrollingEnabled: false,
|
|
@@ -94,7 +114,7 @@ var Form = Widget.inherit({
|
|
|
94
114
|
_defaultOptionsRules: function() {
|
|
95
115
|
return this.callBase().concat([{
|
|
96
116
|
device: function() {
|
|
97
|
-
return
|
|
117
|
+
return _themes2.default.isMaterial()
|
|
98
118
|
},
|
|
99
119
|
options: {
|
|
100
120
|
showColonAfterLabel: false,
|
|
@@ -104,7 +124,7 @@ var Form = Widget.inherit({
|
|
|
104
124
|
},
|
|
105
125
|
_setOptionsByReference: function() {
|
|
106
126
|
this.callBase();
|
|
107
|
-
extend(this._optionsByReference, {
|
|
127
|
+
(0, _extend.extend)(this._optionsByReference, {
|
|
108
128
|
formData: true,
|
|
109
129
|
validationGroup: true
|
|
110
130
|
})
|
|
@@ -123,7 +143,7 @@ var Form = Widget.inherit({
|
|
|
123
143
|
return index
|
|
124
144
|
},
|
|
125
145
|
_createHiddenElement: function(rootLayoutManager) {
|
|
126
|
-
this._$hiddenElement =
|
|
146
|
+
this._$hiddenElement = (0, _renderer2.default)("<div>").addClass(WIDGET_CLASS).addClass(HIDDEN_LABEL_CLASS).appendTo("body");
|
|
127
147
|
var $hiddenLabel = rootLayoutManager._renderLabel({
|
|
128
148
|
text: " ",
|
|
129
149
|
location: this.option("labelLocation")
|
|
@@ -150,7 +170,7 @@ var Form = Widget.inherit({
|
|
|
150
170
|
result = "";
|
|
151
171
|
for (i = 0; i < length; i++) {
|
|
152
172
|
child = labelText.children[i];
|
|
153
|
-
result += !
|
|
173
|
+
result += !(0, _string.isEmpty)(child.innerText) ? child.innerText : child.innerHTML
|
|
154
174
|
}
|
|
155
175
|
return result
|
|
156
176
|
},
|
|
@@ -179,7 +199,7 @@ var Form = Widget.inherit({
|
|
|
179
199
|
}
|
|
180
200
|
},
|
|
181
201
|
_getGroupElementsInColumn: function($container, columnIndex, colCount) {
|
|
182
|
-
var cssColCountSelector =
|
|
202
|
+
var cssColCountSelector = (0, _type.isDefined)(colCount) ? "." + GROUP_COL_COUNT_CLASS + colCount : "",
|
|
183
203
|
groupSelector = "." + FORM_FIELD_ITEM_COL_CLASS + columnIndex + " > ." + FIELD_ITEM_CONTENT_CLASS + " > ." + FORM_GROUP_CLASS + cssColCountSelector;
|
|
184
204
|
return $container.find(groupSelector)
|
|
185
205
|
},
|
|
@@ -211,7 +231,7 @@ var Form = Widget.inherit({
|
|
|
211
231
|
}
|
|
212
232
|
},
|
|
213
233
|
_alignLabelsInColumn: function(options) {
|
|
214
|
-
if (!
|
|
234
|
+
if (!(0, _window.hasWindow)()) {
|
|
215
235
|
return
|
|
216
236
|
}
|
|
217
237
|
this._createHiddenElement(options.layoutManager);
|
|
@@ -227,12 +247,12 @@ var Form = Widget.inherit({
|
|
|
227
247
|
this._removeHiddenElement()
|
|
228
248
|
},
|
|
229
249
|
_prepareFormData: function() {
|
|
230
|
-
if (!
|
|
250
|
+
if (!(0, _type.isDefined)(this.option("formData"))) {
|
|
231
251
|
this.option("formData", {})
|
|
232
252
|
}
|
|
233
253
|
},
|
|
234
254
|
_initMarkup: function() {
|
|
235
|
-
|
|
255
|
+
_validation_engine2.default.addGroup(this._getValidationGroup());
|
|
236
256
|
this._clearCachedInstances();
|
|
237
257
|
this._prepareFormData();
|
|
238
258
|
this.$element().addClass(FORM_CLASS);
|
|
@@ -246,7 +266,7 @@ var Form = Widget.inherit({
|
|
|
246
266
|
this._lastMarkupScreenFactor = this._targetScreenFactor || this._getCurrentScreenFactor()
|
|
247
267
|
},
|
|
248
268
|
_getCurrentScreenFactor: function() {
|
|
249
|
-
return
|
|
269
|
+
return (0, _window.hasWindow)() ? (0, _window.getCurrentScreenFactor)(this.option("screenByWidth")) : "lg"
|
|
250
270
|
},
|
|
251
271
|
_clearCachedInstances: function() {
|
|
252
272
|
this._itemsRunTimeInfo.clear();
|
|
@@ -269,7 +289,7 @@ var Form = Widget.inherit({
|
|
|
269
289
|
},
|
|
270
290
|
_renderScrollable: function() {
|
|
271
291
|
var useNativeScrolling = this.option("useNativeScrolling");
|
|
272
|
-
this._scrollable = new
|
|
292
|
+
this._scrollable = new _ui4.default(this.$element(), {
|
|
273
293
|
useNative: !!useNativeScrolling,
|
|
274
294
|
useSimulatedScrollbar: !useNativeScrolling,
|
|
275
295
|
useKeyboard: false,
|
|
@@ -286,7 +306,7 @@ var Form = Widget.inherit({
|
|
|
286
306
|
$validationSummary.remove()
|
|
287
307
|
}
|
|
288
308
|
if (this.option("showValidationSummary")) {
|
|
289
|
-
|
|
309
|
+
(0, _renderer2.default)("<div>").addClass(FORM_VALIDATION_SUMMARY).dxValidationSummary({
|
|
290
310
|
validationGroup: this._getValidationGroup()
|
|
291
311
|
}).appendTo(this._getContent())
|
|
292
312
|
}
|
|
@@ -297,8 +317,8 @@ var Form = Widget.inherit({
|
|
|
297
317
|
for (var i = 0; i < items.length; i++) {
|
|
298
318
|
var item = items[i];
|
|
299
319
|
var guid = this._itemsRunTimeInfo.add(item);
|
|
300
|
-
if (
|
|
301
|
-
var itemCopy = extend({}, item);
|
|
320
|
+
if ((0, _type.isObject)(item)) {
|
|
321
|
+
var itemCopy = (0, _extend.extend)({}, item);
|
|
302
322
|
itemCopy.guid = guid;
|
|
303
323
|
this._tryPrepareGroupItem(itemCopy);
|
|
304
324
|
this._tryPrepareTabbedItem(itemCopy);
|
|
@@ -319,7 +339,7 @@ var Form = Widget.inherit({
|
|
|
319
339
|
},
|
|
320
340
|
_tryPrepareGroupItem: function(item) {
|
|
321
341
|
if ("group" === item.itemType) {
|
|
322
|
-
item.alignItemLabels =
|
|
342
|
+
item.alignItemLabels = (0, _common.ensureDefined)(item.alignItemLabels, true);
|
|
323
343
|
if (item.template) {
|
|
324
344
|
item.groupContentTemplate = this._getTemplate(item.template)
|
|
325
345
|
}
|
|
@@ -370,15 +390,15 @@ var Form = Widget.inherit({
|
|
|
370
390
|
},
|
|
371
391
|
_itemTabbedTemplate: function(item, e, $container) {
|
|
372
392
|
var that = this,
|
|
373
|
-
$tabPanel =
|
|
374
|
-
tabPanelOptions = extend({}, item.tabPanelOptions, {
|
|
393
|
+
$tabPanel = (0, _renderer2.default)("<div>").appendTo($container),
|
|
394
|
+
tabPanelOptions = (0, _extend.extend)({}, item.tabPanelOptions, {
|
|
375
395
|
dataSource: item.tabs,
|
|
376
396
|
onItemRendered: function(args) {
|
|
377
|
-
|
|
397
|
+
(0, _dom.triggerShownEvent)(args.itemElement)
|
|
378
398
|
},
|
|
379
399
|
itemTemplate: function(itemData, e, container) {
|
|
380
|
-
var layoutManager, $container =
|
|
381
|
-
alignItemLabels =
|
|
400
|
+
var layoutManager, $container = (0, _renderer2.default)(container),
|
|
401
|
+
alignItemLabels = (0, _common.ensureDefined)(itemData.alignItemLabels, true);
|
|
382
402
|
layoutManager = that._renderLayoutManager(that._tryGetItemsForTemplate(itemData), $container, {
|
|
383
403
|
colCount: itemData.colCount,
|
|
384
404
|
alignItemLabels: alignItemLabels,
|
|
@@ -404,14 +424,14 @@ var Form = Widget.inherit({
|
|
|
404
424
|
}
|
|
405
425
|
}
|
|
406
426
|
});
|
|
407
|
-
that._createComponent($tabPanel,
|
|
427
|
+
that._createComponent($tabPanel, _tab_panel2.default, tabPanelOptions)
|
|
408
428
|
},
|
|
409
429
|
_itemGroupTemplate: function(item, e, $container) {
|
|
410
|
-
var $groupContent, colCount, layoutManager, $group =
|
|
430
|
+
var $groupContent, colCount, layoutManager, $group = (0, _renderer2.default)("<div>").toggleClass(FORM_GROUP_WITH_CAPTION_CLASS, (0, _type.isDefined)(item.caption) && item.caption.length).addClass(FORM_GROUP_CLASS).appendTo($container);
|
|
411
431
|
if (item.caption) {
|
|
412
|
-
|
|
432
|
+
(0, _renderer2.default)("<span>").addClass(FORM_GROUP_CAPTION_CLASS).text(item.caption).appendTo($group)
|
|
413
433
|
}
|
|
414
|
-
$groupContent =
|
|
434
|
+
$groupContent = (0, _renderer2.default)("<div>").addClass(FORM_GROUP_CONTENT_CLASS).appendTo($group);
|
|
415
435
|
if (item.groupContentTemplate) {
|
|
416
436
|
var data = {
|
|
417
437
|
formData: this.option("formData"),
|
|
@@ -419,7 +439,7 @@ var Form = Widget.inherit({
|
|
|
419
439
|
};
|
|
420
440
|
item.groupContentTemplate.render({
|
|
421
441
|
model: data,
|
|
422
|
-
container:
|
|
442
|
+
container: (0, _dom.getPublicElement)($groupContent)
|
|
423
443
|
})
|
|
424
444
|
} else {
|
|
425
445
|
layoutManager = this._renderLayoutManager(this._tryGetItemsForTemplate(item), $groupContent, {
|
|
@@ -429,14 +449,14 @@ var Form = Widget.inherit({
|
|
|
429
449
|
cssItemClass: item.cssItemClass
|
|
430
450
|
});
|
|
431
451
|
colCount = layoutManager._getColCount();
|
|
432
|
-
if (inArray(colCount, this._groupsColCount) === -1) {
|
|
452
|
+
if ((0, _array.inArray)(colCount, this._groupsColCount) === -1) {
|
|
433
453
|
this._groupsColCount.push(colCount)
|
|
434
454
|
}
|
|
435
455
|
$group.addClass(GROUP_COL_COUNT_CLASS + colCount)
|
|
436
456
|
}
|
|
437
457
|
},
|
|
438
458
|
_renderLayoutManager: function(items, $rootElement, options) {
|
|
439
|
-
var instance, $element =
|
|
459
|
+
var instance, $element = (0, _renderer2.default)("<div>"),
|
|
440
460
|
that = this,
|
|
441
461
|
config = that._getLayoutManagerConfig(items, options),
|
|
442
462
|
baseColCountByScreen = {
|
|
@@ -446,7 +466,7 @@ var Form = Widget.inherit({
|
|
|
446
466
|
xs: 1
|
|
447
467
|
};
|
|
448
468
|
that._cachedColCountOptions.push({
|
|
449
|
-
colCountByScreen: extend(baseColCountByScreen, options.colCountByScreen)
|
|
469
|
+
colCountByScreen: (0, _extend.extend)(baseColCountByScreen, options.colCountByScreen)
|
|
450
470
|
});
|
|
451
471
|
$element.appendTo($rootElement);
|
|
452
472
|
instance = that._createComponent($element, "dxLayoutManager", config);
|
|
@@ -483,7 +503,7 @@ var Form = Widget.inherit({
|
|
|
483
503
|
},
|
|
484
504
|
validationBoundary: that.option("scrollingEnabled") ? that.$element() : void 0
|
|
485
505
|
};
|
|
486
|
-
return extend(baseConfig, {
|
|
506
|
+
return (0, _extend.extend)(baseConfig, {
|
|
487
507
|
items: items,
|
|
488
508
|
onContentReady: function(args) {
|
|
489
509
|
that._itemsRunTimeInfo.addItemsOrExtendFrom(args.component._itemsRunTimeInfo);
|
|
@@ -510,13 +530,13 @@ var Form = Widget.inherit({
|
|
|
510
530
|
that.on("optionChanged", function(args) {
|
|
511
531
|
var optionFullName = args.fullName;
|
|
512
532
|
if ("formData" === optionFullName) {
|
|
513
|
-
if (!
|
|
533
|
+
if (!(0, _type.isDefined)(args.value)) {
|
|
514
534
|
that._options.formData = args.value = {}
|
|
515
535
|
}
|
|
516
536
|
that._triggerOnFieldDataChangedByDataSet(args.value)
|
|
517
537
|
}
|
|
518
538
|
if (that._cachedLayoutManagers.length) {
|
|
519
|
-
each(that._cachedLayoutManagers, function(index, layoutManager) {
|
|
539
|
+
(0, _iterator.each)(that._cachedLayoutManagers, function(index, layoutManager) {
|
|
520
540
|
if ("formData" === optionFullName) {
|
|
521
541
|
that._isDataUpdating = true;
|
|
522
542
|
layoutManager.option("layoutData", args.value);
|
|
@@ -540,7 +560,7 @@ var Form = Widget.inherit({
|
|
|
540
560
|
if (!this.option("items")) {
|
|
541
561
|
this._invalidate()
|
|
542
562
|
} else {
|
|
543
|
-
if (
|
|
563
|
+
if ((0, _type.isEmptyObject)(args.value)) {
|
|
544
564
|
this._resetValues()
|
|
545
565
|
}
|
|
546
566
|
}
|
|
@@ -584,11 +604,11 @@ var Form = Widget.inherit({
|
|
|
584
604
|
case "visible":
|
|
585
605
|
this.callBase(args);
|
|
586
606
|
if (args.value) {
|
|
587
|
-
|
|
607
|
+
(0, _dom.triggerShownEvent)(this.$element())
|
|
588
608
|
}
|
|
589
609
|
break;
|
|
590
610
|
case "validationGroup":
|
|
591
|
-
|
|
611
|
+
_validation_engine2.default.removeGroup(args.previousValue || this);
|
|
592
612
|
this._invalidate();
|
|
593
613
|
break;
|
|
594
614
|
default:
|
|
@@ -607,64 +627,43 @@ var Form = Widget.inherit({
|
|
|
607
627
|
}
|
|
608
628
|
return result
|
|
609
629
|
},
|
|
630
|
+
_tryCreateItemOptionAction: function(optionName, item, value, previousValue) {
|
|
631
|
+
return (0, _uiForm6.default)(optionName, {
|
|
632
|
+
item: item,
|
|
633
|
+
value: value,
|
|
634
|
+
previousValue: previousValue,
|
|
635
|
+
itemsRunTimeInfo: this._itemsRunTimeInfo
|
|
636
|
+
})
|
|
637
|
+
},
|
|
638
|
+
_tryExecuteItemOptionAction: function(action) {
|
|
639
|
+
return action && action.tryExecute()
|
|
640
|
+
},
|
|
610
641
|
_customHandlerOfComplexOption: function(args, rootOptionName) {
|
|
611
642
|
var nameParts = args.fullName.split(".");
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
if (!oldContainsRequired && !newContainsRequired || oldContainsRequired && newContainsRequired) {
|
|
637
|
-
validator.option("validationRules", item.validationRules);
|
|
638
|
-
break
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
} else {
|
|
642
|
-
if ($itemContainer && "cssClass" === fullName.substring(fullName.length - 8, fullName.length)) {
|
|
643
|
-
$itemContainer.removeClass(args.previousValue).addClass(args.value);
|
|
644
|
-
break
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
if (item) {
|
|
651
|
-
var items, name = args.fullName.replace(itemPath + ".", "");
|
|
652
|
-
this._changeItemOption(item, name, args.value);
|
|
653
|
-
items = this._generateItemsFromData(this.option("items"));
|
|
654
|
-
this.option("items", items)
|
|
655
|
-
}
|
|
656
|
-
break;
|
|
657
|
-
case "formData":
|
|
658
|
-
var dataField = nameParts.slice(1).join("."),
|
|
659
|
-
editor = this.getEditor(dataField);
|
|
660
|
-
if (editor) {
|
|
661
|
-
editor.option("value", args.value)
|
|
662
|
-
} else {
|
|
663
|
-
this._triggerOnFieldDataChanged({
|
|
664
|
-
dataField: dataField,
|
|
665
|
-
value: args.value
|
|
666
|
-
})
|
|
667
|
-
}
|
|
643
|
+
var value = args.value;
|
|
644
|
+
if ("items" === rootOptionName) {
|
|
645
|
+
var itemPath = this._getItemPath(nameParts);
|
|
646
|
+
var item = this.option(itemPath);
|
|
647
|
+
var optionNameWithoutPath = args.fullName.replace(itemPath + ".", "");
|
|
648
|
+
var simpleOptionName = optionNameWithoutPath.split(".")[0].replace(/\[\d+]/, "");
|
|
649
|
+
var itemAction = this._tryCreateItemOptionAction(simpleOptionName, item, item[simpleOptionName], args.previousValue);
|
|
650
|
+
if (!this._tryExecuteItemOptionAction(itemAction) && item) {
|
|
651
|
+
this._changeItemOption(item, optionNameWithoutPath, value);
|
|
652
|
+
var items = this._generateItemsFromData(this.option("items"));
|
|
653
|
+
this.option("items", items)
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
if ("formData" === rootOptionName) {
|
|
657
|
+
var dataField = nameParts.slice(1).join(".");
|
|
658
|
+
var editor = this.getEditor(dataField);
|
|
659
|
+
if (editor) {
|
|
660
|
+
editor.option("value", value)
|
|
661
|
+
} else {
|
|
662
|
+
this._triggerOnFieldDataChanged({
|
|
663
|
+
dataField: dataField,
|
|
664
|
+
value: value
|
|
665
|
+
})
|
|
666
|
+
}
|
|
668
667
|
}
|
|
669
668
|
},
|
|
670
669
|
_getItemPath: function(nameParts) {
|
|
@@ -683,8 +682,8 @@ var Form = Widget.inherit({
|
|
|
683
682
|
},
|
|
684
683
|
_triggerOnFieldDataChangedByDataSet: function(data) {
|
|
685
684
|
var that = this;
|
|
686
|
-
if (data &&
|
|
687
|
-
each(data, function(dataField, value) {
|
|
685
|
+
if (data && (0, _type.isObject)(data)) {
|
|
686
|
+
(0, _iterator.each)(data, function(dataField, value) {
|
|
688
687
|
that._triggerOnFieldDataChanged({
|
|
689
688
|
dataField: dataField,
|
|
690
689
|
value: value
|
|
@@ -693,7 +692,7 @@ var Form = Widget.inherit({
|
|
|
693
692
|
}
|
|
694
693
|
},
|
|
695
694
|
_updateFieldValue: function(dataField, value) {
|
|
696
|
-
if (
|
|
695
|
+
if ((0, _type.isDefined)(this.option("formData"))) {
|
|
697
696
|
var editor = this.getEditor(dataField);
|
|
698
697
|
this.option("formData." + dataField, value);
|
|
699
698
|
if (editor) {
|
|
@@ -707,16 +706,16 @@ var Form = Widget.inherit({
|
|
|
707
706
|
_generateItemsFromData: function(items) {
|
|
708
707
|
var formData = this.option("formData"),
|
|
709
708
|
result = [];
|
|
710
|
-
if (!items &&
|
|
711
|
-
each(formData, function(dataField) {
|
|
709
|
+
if (!items && (0, _type.isDefined)(formData)) {
|
|
710
|
+
(0, _iterator.each)(formData, function(dataField) {
|
|
712
711
|
result.push({
|
|
713
712
|
dataField: dataField
|
|
714
713
|
})
|
|
715
714
|
})
|
|
716
715
|
}
|
|
717
716
|
if (items) {
|
|
718
|
-
each(items, function(index, item) {
|
|
719
|
-
if (
|
|
717
|
+
(0, _iterator.each)(items, function(index, item) {
|
|
718
|
+
if ((0, _type.isObject)(item)) {
|
|
720
719
|
result.push(item)
|
|
721
720
|
} else {
|
|
722
721
|
result.push({
|
|
@@ -729,11 +728,11 @@ var Form = Widget.inherit({
|
|
|
729
728
|
},
|
|
730
729
|
_getItemByField: function(field, items) {
|
|
731
730
|
var resultItem, that = this,
|
|
732
|
-
fieldParts =
|
|
731
|
+
fieldParts = (0, _type.isObject)(field) ? field : that._getFieldParts(field),
|
|
733
732
|
fieldName = fieldParts.fieldName,
|
|
734
733
|
fieldPath = fieldParts.fieldPath;
|
|
735
734
|
if (items.length) {
|
|
736
|
-
each(items, function(index, item) {
|
|
735
|
+
(0, _iterator.each)(items, function(index, item) {
|
|
737
736
|
var itemType = item.itemType;
|
|
738
737
|
if (fieldPath.length) {
|
|
739
738
|
var path = fieldPath.slice();
|
|
@@ -779,7 +778,7 @@ var Form = Widget.inherit({
|
|
|
779
778
|
do {
|
|
780
779
|
if (isItemWithSubItems) {
|
|
781
780
|
var pathNode, name = item.name || item.caption || item.title,
|
|
782
|
-
isGroupWithName =
|
|
781
|
+
isGroupWithName = (0, _type.isDefined)(name),
|
|
783
782
|
nameWithoutSpaces = that._getTextWithoutSpaces(name);
|
|
784
783
|
item[subItemsField] = that._generateItemsFromData(item[subItemsField]);
|
|
785
784
|
if (isGroupWithName) {
|
|
@@ -799,7 +798,7 @@ var Form = Widget.inherit({
|
|
|
799
798
|
} else {
|
|
800
799
|
break
|
|
801
800
|
}
|
|
802
|
-
} while (path.length && !
|
|
801
|
+
} while (path.length && !(0, _type.isDefined)(result));
|
|
803
802
|
return result
|
|
804
803
|
},
|
|
805
804
|
_getSubItemField: function(itemType) {
|
|
@@ -807,7 +806,7 @@ var Form = Widget.inherit({
|
|
|
807
806
|
},
|
|
808
807
|
_searchItemInEverySubItem: function(path, fieldName, items) {
|
|
809
808
|
var result, that = this;
|
|
810
|
-
each(items, function(index, groupItem) {
|
|
809
|
+
(0, _iterator.each)(items, function(index, groupItem) {
|
|
811
810
|
result = that._getItemByFieldPath(path.slice(), fieldName, groupItem);
|
|
812
811
|
if (result) {
|
|
813
812
|
return false
|
|
@@ -825,7 +824,7 @@ var Form = Widget.inherit({
|
|
|
825
824
|
return item && (item.dataField === fieldName || item.name === fieldName || this._getTextWithoutSpaces(item.title) === fieldName || "group" === item.itemType && this._getTextWithoutSpaces(item.caption) === fieldName)
|
|
826
825
|
},
|
|
827
826
|
_changeItemOption: function(item, option, value) {
|
|
828
|
-
if (
|
|
827
|
+
if ((0, _type.isObject)(item)) {
|
|
829
828
|
item[option] = value
|
|
830
829
|
}
|
|
831
830
|
},
|
|
@@ -842,7 +841,7 @@ var Form = Widget.inherit({
|
|
|
842
841
|
},
|
|
843
842
|
_isColCountChanged: function(oldScreenSize, newScreenSize) {
|
|
844
843
|
var isChanged = false;
|
|
845
|
-
each(this._cachedColCountOptions, function(index, item) {
|
|
844
|
+
(0, _iterator.each)(this._cachedColCountOptions, function(index, item) {
|
|
846
845
|
if (item.colCountByScreen[oldScreenSize] !== item.colCountByScreen[newScreenSize]) {
|
|
847
846
|
isChanged = true;
|
|
848
847
|
return false
|
|
@@ -852,29 +851,27 @@ var Form = Widget.inherit({
|
|
|
852
851
|
},
|
|
853
852
|
_refresh: function() {
|
|
854
853
|
var editorSelector = "." + FOCUSED_STATE_CLASS + " input, ." + FOCUSED_STATE_CLASS + " textarea";
|
|
855
|
-
|
|
854
|
+
_events_engine2.default.trigger(this.$element().find(editorSelector), "change");
|
|
856
855
|
this.callBase()
|
|
857
856
|
},
|
|
858
857
|
_resetValues: function() {
|
|
859
|
-
var validationGroup = this._getValidationGroup(),
|
|
860
|
-
validationGroupConfig = ValidationEngine.getGroupConfig(validationGroup);
|
|
861
|
-
validationGroupConfig && validationGroupConfig.reset();
|
|
862
858
|
this._itemsRunTimeInfo.each(function(_, itemRunTimeInfo) {
|
|
863
|
-
if (
|
|
859
|
+
if ((0, _type.isDefined)(itemRunTimeInfo.widgetInstance) && (0, _type.isDefined)(itemRunTimeInfo.item) && "button" !== itemRunTimeInfo.item.itemType) {
|
|
864
860
|
itemRunTimeInfo.widgetInstance.reset();
|
|
865
861
|
itemRunTimeInfo.widgetInstance.option("isValid", true)
|
|
866
862
|
}
|
|
867
|
-
})
|
|
863
|
+
});
|
|
864
|
+
_validation_engine2.default.resetGroup(this._getValidationGroup())
|
|
868
865
|
},
|
|
869
866
|
_updateData: function(data, value, isComplexData) {
|
|
870
867
|
var that = this,
|
|
871
868
|
_data = isComplexData ? value : data;
|
|
872
|
-
if (
|
|
873
|
-
each(_data, function(dataField, fieldValue) {
|
|
874
|
-
that._updateData(isComplexData ? data + "." + dataField : dataField, fieldValue,
|
|
869
|
+
if ((0, _type.isObject)(_data)) {
|
|
870
|
+
(0, _iterator.each)(_data, function(dataField, fieldValue) {
|
|
871
|
+
that._updateData(isComplexData ? data + "." + dataField : dataField, fieldValue, (0, _type.isObject)(fieldValue))
|
|
875
872
|
})
|
|
876
873
|
} else {
|
|
877
|
-
if (
|
|
874
|
+
if ((0, _type.isString)(data)) {
|
|
878
875
|
that._updateFieldValue(data, value)
|
|
879
876
|
}
|
|
880
877
|
}
|
|
@@ -882,7 +879,7 @@ var Form = Widget.inherit({
|
|
|
882
879
|
registerKeyHandler: function(key, handler) {
|
|
883
880
|
this.callBase(key, handler);
|
|
884
881
|
this._itemsRunTimeInfo.each(function(_, itemRunTimeInfo) {
|
|
885
|
-
if (
|
|
882
|
+
if ((0, _type.isDefined)(itemRunTimeInfo.widgetInstance)) {
|
|
886
883
|
itemRunTimeInfo.widgetInstance.registerKeyHandler(key, handler)
|
|
887
884
|
}
|
|
888
885
|
})
|
|
@@ -891,12 +888,12 @@ var Form = Widget.inherit({
|
|
|
891
888
|
return this.$element().find("." + FIELD_ITEM_CONTENT_CLASS + " [tabindex]").first()
|
|
892
889
|
},
|
|
893
890
|
_visibilityChanged: function(visible) {
|
|
894
|
-
if (visible &&
|
|
891
|
+
if (visible && _browser2.default.msie) {
|
|
895
892
|
this._refresh()
|
|
896
893
|
}
|
|
897
894
|
},
|
|
898
895
|
_dispose: function() {
|
|
899
|
-
|
|
896
|
+
_validation_engine2.default.removeGroup(this._getValidationGroup());
|
|
900
897
|
this.callBase()
|
|
901
898
|
},
|
|
902
899
|
resetValues: function() {
|
|
@@ -913,7 +910,7 @@ var Form = Widget.inherit({
|
|
|
913
910
|
},
|
|
914
911
|
updateDimensions: function() {
|
|
915
912
|
var that = this,
|
|
916
|
-
deferred = new Deferred;
|
|
913
|
+
deferred = new _deferred.Deferred;
|
|
917
914
|
if (that._scrollable) {
|
|
918
915
|
that._scrollable.update().done(function() {
|
|
919
916
|
deferred.resolveWith(that)
|
|
@@ -924,34 +921,42 @@ var Form = Widget.inherit({
|
|
|
924
921
|
return deferred.promise()
|
|
925
922
|
},
|
|
926
923
|
itemOption: function(id, option, value) {
|
|
927
|
-
var
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
switch (argsCount) {
|
|
924
|
+
var _this = this;
|
|
925
|
+
var items = this._generateItemsFromData(this.option("items"));
|
|
926
|
+
var item = this._getItemByField(id, items);
|
|
927
|
+
switch (arguments.length) {
|
|
932
928
|
case 1:
|
|
933
929
|
return item;
|
|
934
930
|
case 3:
|
|
935
|
-
|
|
931
|
+
var itemAction = this._tryCreateItemOptionAction(option, item, value, item[option]);
|
|
932
|
+
this._changeItemOption(item, option, value);
|
|
933
|
+
if (!this._tryExecuteItemOptionAction(itemAction)) {
|
|
934
|
+
this.option("items", items)
|
|
935
|
+
}
|
|
936
936
|
break;
|
|
937
937
|
default:
|
|
938
|
-
if (
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
938
|
+
if ((0, _type.isObject)(option)) {
|
|
939
|
+
var allowUpdateItems = void 0;
|
|
940
|
+
(0, _iterator.each)(option, function(optionName, optionValue) {
|
|
941
|
+
var itemAction = _this._tryCreateItemOptionAction(optionName, item, optionValue, item[optionName]);
|
|
942
|
+
_this._changeItemOption(item, optionName, optionValue);
|
|
943
|
+
if (!allowUpdateItems && !_this._tryExecuteItemOptionAction(itemAction)) {
|
|
944
|
+
allowUpdateItems = true
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
allowUpdateItems && this.option("items", items)
|
|
942
948
|
}
|
|
943
949
|
}
|
|
944
|
-
this.option("items", items)
|
|
945
950
|
},
|
|
946
951
|
validate: function() {
|
|
947
|
-
return
|
|
952
|
+
return _validation_engine2.default.validateGroup(this._getValidationGroup())
|
|
948
953
|
},
|
|
949
954
|
getItemID: function(name) {
|
|
950
|
-
return "dx_" + this.option("formID") + "_" + (name || new
|
|
955
|
+
return "dx_" + this.option("formID") + "_" + (name || new _guid2.default)
|
|
951
956
|
},
|
|
952
957
|
getTargetScreenFactor: function() {
|
|
953
958
|
return this._targetScreenFactor
|
|
954
959
|
}
|
|
955
960
|
});
|
|
956
|
-
|
|
961
|
+
(0, _component_registrator2.default)("dxForm", Form);
|
|
957
962
|
module.exports = Form;
|