@oracle/oraclejet 10.0.3 → 10.0.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/README.md +1 -1
- package/THIRDPARTYLICENSE.txt +8 -8
- package/dist/css/alta/oj-alta-min.css +1 -1
- package/dist/css/alta/oj-alta-notag-min.css +1 -1
- package/dist/css/alta/oj-alta-notag.css +4 -2
- package/dist/css/alta/oj-alta.css +4 -2
- package/dist/css/alta-android/oj-alta-min.css +1 -1
- package/dist/css/alta-android/oj-alta.css +4 -2
- package/dist/css/alta-ios/oj-alta-min.css +1 -1
- package/dist/css/alta-ios/oj-alta.css +4 -2
- package/dist/css/alta-windows/oj-alta-min.css +1 -1
- package/dist/css/alta-windows/oj-alta.css +4 -2
- package/dist/css/redwood/oj-redwood-cssvars-min.css +1 -1
- package/dist/css/redwood/oj-redwood-cssvars-notag-min.css +1 -1
- package/dist/css/redwood/oj-redwood-cssvars-notag.css +4 -2
- package/dist/css/redwood/oj-redwood-cssvars.css +4 -2
- package/dist/css/redwood/oj-redwood-min.css +1 -1
- package/dist/css/redwood/oj-redwood-notag-min.css +1 -1
- package/dist/css/redwood/oj-redwood-notag-novars-min.css +1 -1
- package/dist/css/redwood/oj-redwood-notag-novars.css +4 -2
- package/dist/css/redwood/oj-redwood-notag.css +4 -2
- package/dist/css/redwood/oj-redwood-novars-min.css +1 -1
- package/dist/css/redwood/oj-redwood-novars.css +4 -2
- package/dist/css/redwood/oj-redwood.css +4 -2
- package/dist/js/libs/oj/debug/ojactioncard.js +0 -6
- package/dist/js/libs/oj/debug/ojbufferingdataprovider.js +32 -1
- package/dist/js/libs/oj/debug/ojcollectiondataprovider.js +35 -1
- package/dist/js/libs/oj/debug/ojcore-base.js +2 -2
- package/dist/js/libs/oj/debug/ojdataprovider.js +84 -2
- package/dist/js/libs/oj/debug/ojdataproviderscroller.js +31 -4
- package/dist/js/libs/oj/debug/ojdeferreddataprovider.js +32 -1
- package/dist/js/libs/oj/debug/ojdvt-toolkit.js +2 -2
- package/dist/js/libs/oj/debug/ojfilepickerutils.js +21 -3
- package/dist/js/libs/oj/debug/ojflattenedtreedataproviderview.js +32 -1
- package/dist/js/libs/oj/debug/ojgroupingdataprovider.js +27 -5
- package/dist/js/libs/oj/debug/ojjoiningdataprovider.js +32 -1
- package/dist/js/libs/oj/debug/ojlistdataproviderview.js +32 -1
- package/dist/js/libs/oj/debug/ojpagingdataproviderview.js +32 -1
- package/dist/js/libs/oj/debug/ojselectsingle.js +14 -23
- package/dist/js/libs/oj/debug/ojstreamlist.js +2 -2
- package/dist/js/libs/oj/debug/ojtable.js +208 -139
- package/dist/js/libs/oj/debug/ojtreedataprovider.js +29 -3
- package/dist/js/libs/oj/debug/ojtreedataproviderview.js +32 -1
- package/dist/js/libs/oj/debug/ojtreeview.js +132 -50
- package/dist/js/libs/oj/debug_es5/ojactioncard.js +9 -15
- package/dist/js/libs/oj/debug_es5/ojanimation.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojarraydatagriddatasource.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojarraydataprovider.js +14 -14
- package/dist/js/libs/oj/debug_es5/ojarraytreedataprovider.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-adapter.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-daterestriction.js +5 -5
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-datetimerange.js +5 -5
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-length.js +5 -5
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-numberrange.js +5 -5
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-regexp.js +5 -5
- package/dist/js/libs/oj/debug_es5/ojasyncvalidator-required.js +5 -5
- package/dist/js/libs/oj/debug_es5/ojavatar.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojbufferingdataprovider.js +38 -7
- package/dist/js/libs/oj/debug_es5/ojbundletransform.js +21 -21
- package/dist/js/libs/oj/debug_es5/ojbutton.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojbutton2.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojbuttonlegacy.js +6 -2
- package/dist/js/libs/oj/debug_es5/ojcachediteratorresultsdataprovider.js +4 -4
- package/dist/js/libs/oj/debug_es5/ojcachingdataprovider.js +3 -3
- package/dist/js/libs/oj/debug_es5/ojchart-toolkit.js +114 -114
- package/dist/js/libs/oj/debug_es5/ojchart.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojcollectiondataprovider.js +36 -2
- package/dist/js/libs/oj/debug_es5/ojcolor.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojcolorpalette.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojcomponentcore.js +4 -4
- package/dist/js/libs/oj/debug_es5/ojcomposite.js +4 -4
- package/dist/js/libs/oj/debug_es5/ojconverterutils.js +7 -3
- package/dist/js/libs/oj/debug_es5/ojcore-base.js +3 -3
- package/dist/js/libs/oj/debug_es5/ojcorerouter.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojcustomelement-utils.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojcustomelement.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojdatacollection-common.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojdatagrid.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojdataprovider.js +93 -11
- package/dist/js/libs/oj/debug_es5/ojdataprovideradapter-base.js +10 -10
- package/dist/js/libs/oj/debug_es5/ojdataprovideradapter.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojdataproviderfactory.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojdataproviderscroller.js +35 -4
- package/dist/js/libs/oj/debug_es5/ojdedupdataprovider.js +4 -4
- package/dist/js/libs/oj/debug_es5/ojdeferreddataprovider.js +34 -3
- package/dist/js/libs/oj/debug_es5/ojdiagram-toolkit.js +132 -132
- package/dist/js/libs/oj/debug_es5/ojdialog.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojdomutils.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojdvt-base.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojdvt-panzoomcanvas.js +20 -20
- package/dist/js/libs/oj/debug_es5/ojdvt-timecomponent.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojdvt-toolkit.js +103 -103
- package/dist/js/libs/oj/debug_es5/ojdvt-treeview.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojeditablevalue.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojeventtarget.js +3 -3
- package/dist/js/libs/oj/debug_es5/ojfilepicker.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojfilepickerutils.js +21 -3
- package/dist/js/libs/oj/debug_es5/ojfilmstrip.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojfilter-length.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojflattenedtreedataproviderview.js +48 -17
- package/dist/js/libs/oj/debug_es5/ojgantt-toolkit.js +16 -16
- package/dist/js/libs/oj/debug_es5/ojgauge-toolkit.js +155 -155
- package/dist/js/libs/oj/debug_es5/ojgroupingdataprovider.js +36 -13
- package/dist/js/libs/oj/debug_es5/ojhighlighttext.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojindexermodeltreedataprovider.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojinputsearch.js +11 -11
- package/dist/js/libs/oj/debug_es5/ojjoiningdataprovider.js +38 -7
- package/dist/js/libs/oj/debug_es5/ojknockout.js +3 -3
- package/dist/js/libs/oj/debug_es5/ojknockoutrouteradapter.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojlegend-toolkit.js +15 -15
- package/dist/js/libs/oj/debug_es5/ojlistdataproviderview.js +45 -14
- package/dist/js/libs/oj/debug_es5/ojlistitemlayout.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojmetadatautils.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojmodel.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojmodule.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojmutablearraydataprovider.js +14 -14
- package/dist/js/libs/oj/debug_es5/ojmutateeventfilteringdataprovider.js +3 -3
- package/dist/js/libs/oj/debug_es5/ojnbox-toolkit.js +89 -89
- package/dist/js/libs/oj/debug_es5/ojobservable.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojpagingdataproviderview.js +46 -15
- package/dist/js/libs/oj/debug_es5/ojpopupcore.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojprogress-bar.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojprogress-circle.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojselector.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojselectsingle.js +17 -25
- package/dist/js/libs/oj/debug_es5/ojset.js +4 -4
- package/dist/js/libs/oj/debug_es5/ojstreamlist.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojtable.js +245 -160
- package/dist/js/libs/oj/debug_es5/ojtabs.js +6 -6
- package/dist/js/libs/oj/debug_es5/ojthematicmap-toolkit.js +50 -50
- package/dist/js/libs/oj/debug_es5/ojtimeaxis.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojtranslation.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojtree.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojtreedataprovider.js +50 -24
- package/dist/js/libs/oj/debug_es5/ojtreedataprovideradapter.js +4 -4
- package/dist/js/libs/oj/debug_es5/ojtreedataproviderview.js +33 -2
- package/dist/js/libs/oj/debug_es5/ojtreeview.js +170 -65
- package/dist/js/libs/oj/debug_es5/ojvcollection.js +6 -6
- package/dist/js/libs/oj/debug_es5/ojvcomponent-element.js +8 -8
- package/dist/js/libs/oj/debug_es5/ojvcomponent.js +1 -1
- package/dist/js/libs/oj/debug_es5/ojvdom.js +2 -2
- package/dist/js/libs/oj/debug_es5/ojvmenu.js +9 -9
- package/dist/js/libs/oj/debug_es5/ojwaterfalllayout.js +8 -8
- package/dist/js/libs/oj/debug_esm/ojactioncard.js +0 -6
- package/dist/js/libs/oj/debug_esm/ojbufferingdataprovider.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojcollectiondataprovider.js +35 -1
- package/dist/js/libs/oj/debug_esm/ojcore-base.js +2 -2
- package/dist/js/libs/oj/debug_esm/ojdataprovider.js +84 -2
- package/dist/js/libs/oj/debug_esm/ojdataproviderscroller.js +31 -4
- package/dist/js/libs/oj/debug_esm/ojdeferreddataprovider.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojdvt-toolkit.js +2 -2
- package/dist/js/libs/oj/debug_esm/ojfilepickerutils.js +20 -2
- package/dist/js/libs/oj/debug_esm/ojflattenedtreedataproviderview.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojgroupingdataprovider.js +27 -5
- package/dist/js/libs/oj/debug_esm/ojjoiningdataprovider.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojlistdataproviderview.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojpagingdataproviderview.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojselectsingle.js +14 -23
- package/dist/js/libs/oj/debug_esm/ojstreamlist.js +2 -2
- package/dist/js/libs/oj/debug_esm/ojtable.js +208 -139
- package/dist/js/libs/oj/debug_esm/ojtreedataprovider.js +29 -3
- package/dist/js/libs/oj/debug_esm/ojtreedataproviderview.js +32 -1
- package/dist/js/libs/oj/debug_esm/ojtreeview.js +132 -50
- package/dist/js/libs/oj/main-template.js +3 -3
- package/dist/js/libs/oj/min/ojactioncard.js +1 -1
- package/dist/js/libs/oj/min/ojactioncard.js.map +1 -1
- package/dist/js/libs/oj/min/ojbufferingdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min/ojcollectiondataprovider.js.map +1 -1
- package/dist/js/libs/oj/min/ojcore-base.js +1 -1
- package/dist/js/libs/oj/min/ojdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min/ojdataproviderscroller.js +2 -2
- package/dist/js/libs/oj/min/ojdataproviderscroller.js.map +1 -1
- package/dist/js/libs/oj/min/ojdeferreddataprovider.js.map +1 -1
- package/dist/js/libs/oj/min/ojdvt-toolkit.js +1 -1
- package/dist/js/libs/oj/min/ojdvt-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min/ojfilepickerutils.js +3 -2
- package/dist/js/libs/oj/min/ojfilepickerutils.js.map +1 -1
- package/dist/js/libs/oj/min/ojflattenedtreedataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min/ojgroupingdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min/ojjoiningdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min/ojlistdataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min/ojpagingdataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min/ojselectsingle.js +7 -7
- package/dist/js/libs/oj/min/ojselectsingle.js.map +1 -1
- package/dist/js/libs/oj/min/ojstreamlist.js +1 -1
- package/dist/js/libs/oj/min/ojstreamlist.js.map +1 -1
- package/dist/js/libs/oj/min/ojtable.js +11 -11
- package/dist/js/libs/oj/min/ojtable.js.map +1 -1
- package/dist/js/libs/oj/min/ojtreedataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min/ojtreeview.js +2 -2
- package/dist/js/libs/oj/min/ojtreeview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojactioncard.js +2 -2
- package/dist/js/libs/oj/min_es5/ojactioncard.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojanimation.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojarraydatagriddatasource.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojarraydataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojarraydataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojarraytreedataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojarraytreedataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-adapter.js +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-adapter.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-daterestriction.js +2 -2
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-daterestriction.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-datetimerange.js +2 -2
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-datetimerange.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-length.js +2 -2
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-length.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-numberrange.js +2 -2
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-numberrange.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-regexp.js +2 -2
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-regexp.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-required.js +2 -2
- package/dist/js/libs/oj/min_es5/ojasyncvalidator-required.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojavatar.js +2 -2
- package/dist/js/libs/oj/min_es5/ojavatar.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojbufferingdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojbufferingdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojbundletransform.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojbutton.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojbutton2.js +2 -2
- package/dist/js/libs/oj/min_es5/ojbutton2.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojbuttonlegacy.js +2 -1
- package/dist/js/libs/oj/min_es5/ojbuttonlegacy.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcachediteratorresultsdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojcachediteratorresultsdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcachingdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojcachingdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojchart-toolkit.js +1 -1
- package/dist/js/libs/oj/min_es5/ojchart-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojchart.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcollectiondataprovider.js +1 -1
- package/dist/js/libs/oj/min_es5/ojcollectiondataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcolor.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcolorpalette.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcomponentcore.js +8 -8
- package/dist/js/libs/oj/min_es5/ojcomponentcore.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcomposite.js +5 -5
- package/dist/js/libs/oj/min_es5/ojcomposite.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojconverterutils.js +2 -2
- package/dist/js/libs/oj/min_es5/ojconverterutils.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcore-base.js +1 -1
- package/dist/js/libs/oj/min_es5/ojcore-base.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcorerouter.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcustomelement-utils.js +1 -1
- package/dist/js/libs/oj/min_es5/ojcustomelement-utils.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojcustomelement.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdatacollection-common.js +1 -1
- package/dist/js/libs/oj/min_es5/ojdatacollection-common.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdatagrid.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdataprovideradapter-base.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdataprovideradapter-base.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdataprovideradapter.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdataprovideradapter.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdataproviderfactory.js +1 -1
- package/dist/js/libs/oj/min_es5/ojdataproviderfactory.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdataproviderscroller.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdataproviderscroller.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdedupdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdedupdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdeferreddataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdeferreddataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdiagram-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdialog.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdomutils.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdvt-base.js +1 -1
- package/dist/js/libs/oj/min_es5/ojdvt-base.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdvt-panzoomcanvas.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdvt-timecomponent.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdvt-toolkit.js +2 -2
- package/dist/js/libs/oj/min_es5/ojdvt-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojdvt-treeview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojeditablevalue.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojeventtarget.js +2 -2
- package/dist/js/libs/oj/min_es5/ojeventtarget.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojfilepicker.js +2 -2
- package/dist/js/libs/oj/min_es5/ojfilepicker.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojfilepickerutils.js +3 -2
- package/dist/js/libs/oj/min_es5/ojfilepickerutils.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojfilmstrip.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojfilter-length.js +2 -2
- package/dist/js/libs/oj/min_es5/ojfilter-length.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojflattenedtreedataproviderview.js +2 -2
- package/dist/js/libs/oj/min_es5/ojflattenedtreedataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojgantt-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojgauge-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojgroupingdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojgroupingdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojhighlighttext.js +2 -2
- package/dist/js/libs/oj/min_es5/ojhighlighttext.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojindexermodeltreedataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojindexermodeltreedataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojinputsearch.js +2 -2
- package/dist/js/libs/oj/min_es5/ojinputsearch.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojjoiningdataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojjoiningdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojknockout.js +11 -11
- package/dist/js/libs/oj/min_es5/ojknockout.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojknockoutrouteradapter.js +3 -3
- package/dist/js/libs/oj/min_es5/ojknockoutrouteradapter.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojlegend-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojlistdataproviderview.js +2 -2
- package/dist/js/libs/oj/min_es5/ojlistdataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojlistitemlayout.js +2 -2
- package/dist/js/libs/oj/min_es5/ojlistitemlayout.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojmetadatautils.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojmodel.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojmodule.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojmutablearraydataprovider.js +2 -2
- package/dist/js/libs/oj/min_es5/ojmutablearraydataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojmutateeventfilteringdataprovider.js +3 -3
- package/dist/js/libs/oj/min_es5/ojmutateeventfilteringdataprovider.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojnbox-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojobservable.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojpagingdataproviderview.js +2 -2
- package/dist/js/libs/oj/min_es5/ojpagingdataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojpopupcore.js +6 -6
- package/dist/js/libs/oj/min_es5/ojpopupcore.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojprogress-bar.js +2 -2
- package/dist/js/libs/oj/min_es5/ojprogress-bar.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojprogress-circle.js +2 -2
- package/dist/js/libs/oj/min_es5/ojprogress-circle.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojselector.js +2 -2
- package/dist/js/libs/oj/min_es5/ojselector.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojselectsingle.js +6 -6
- package/dist/js/libs/oj/min_es5/ojselectsingle.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojset.js +2 -2
- package/dist/js/libs/oj/min_es5/ojset.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojstreamlist.js +2 -2
- package/dist/js/libs/oj/min_es5/ojstreamlist.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtable.js +8 -8
- package/dist/js/libs/oj/min_es5/ojtable.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojthematicmap-toolkit.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtimeaxis.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtranslation.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtree.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtreedataprovideradapter.js +2 -2
- package/dist/js/libs/oj/min_es5/ojtreedataprovideradapter.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtreedataproviderview.js +1 -1
- package/dist/js/libs/oj/min_es5/ojtreedataproviderview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojtreeview.js +3 -3
- package/dist/js/libs/oj/min_es5/ojtreeview.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojvcollection.js +2 -2
- package/dist/js/libs/oj/min_es5/ojvcollection.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojvcomponent-element.js +3 -3
- package/dist/js/libs/oj/min_es5/ojvcomponent-element.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojvcomponent.js +1 -1
- package/dist/js/libs/oj/min_es5/ojvcomponent.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojvdom.js +1 -1
- package/dist/js/libs/oj/min_es5/ojvdom.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojvmenu.js +2 -2
- package/dist/js/libs/oj/min_es5/ojvmenu.js.map +1 -1
- package/dist/js/libs/oj/min_es5/ojwaterfalllayout.js +2 -2
- package/dist/js/libs/oj/min_es5/ojwaterfalllayout.js.map +1 -1
- package/dist/metadata/components/allComponents.json +229 -229
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/accordion/themes/base/_oj-accordion.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/accordion/themes/redwood/_oj-accordion.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/accordion/themes/redwood/oj-accordion.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/action-card/themes/base/_oj-action-card.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/action-card/themes/redwood/_oj-action-card.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/action-card/themes/redwood/oj-action-card.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/base/_oj.common.variables.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/base/oj.common.settings.cssvariables.css +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/redwood/_oj-all-components-common.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/redwood/_oj-all-components-notag.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/redwood/_oj-all-components.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/redwood/_oj.redwood.settings.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/all-components/themes/redwood/oj.redwood.cssvars.settings.css +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/animation/themes/base/_oj-animation.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/animation/themes/redwood/_oj-animation.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/animation/themes/redwood/_oj-animation.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/animation/themes/redwood/oj-animation.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout/themes/base/_oj-app-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout/themes/redwood/_oj-app-layout.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout/themes/redwood/_oj-app-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout-hybrid/themes/base/_oj-app-layout-hybrid.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout-hybrid/themes/redwood/_oj-app-layout-hybrid.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout-hybrid/themes/redwood/oj-app-layout-hybrid.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout-web/themes/base/_oj-app-layout-web.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout-web/themes/redwood/_oj-app-layout-web.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/app-layout-web/themes/redwood/oj-app-layout-web.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/avatar/themes/base/_oj-avatar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/avatar/themes/redwood/_oj-avatar-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/avatar/themes/redwood/_oj-avatar.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/avatar/themes/redwood/oj-avatar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/badge/themes/base/_oj-badge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/badge/themes/redwood/_oj-badge-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/badge/themes/redwood/_oj-badge.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/badge/themes/redwood/oj-badge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/button/themes/base/_oj-button.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/button/themes/base/_oj-private.button.mixins.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/button/themes/redwood/_oj-button-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/button/themes/redwood/_oj-button.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/button/themes/redwood/_oj-button.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/button/themes/redwood/oj-button.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset/themes/base/_oj-buttonset.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset/themes/redwood/_oj-buttonset-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset/themes/redwood/_oj-buttonset.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset/themes/redwood/_oj-buttonset.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset/themes/redwood/_oj-buttonset.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset-many/themes/redwood/oj-buttonset-many.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/buttonset-one/themes/redwood/oj-buttonset-one.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/chart/themes/base/_oj-chart.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/chart/themes/redwood/_oj-chart.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/chart/themes/redwood/oj-chart.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/checkboxset/themes/redwood/_oj-checkboxset.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/checkboxset/themes/redwood/oj-checkboxset.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/collapsible/themes/base/_oj-collapsible.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/collapsible/themes/redwood/_oj-collapsible.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/collapsible/themes/redwood/oj-collapsible.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/collection/themes/redwood/_oj-collection.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/color-palette/themes/base/_oj-color-palette.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/color-palette/themes/redwood/_oj-color-palette.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/color-palette/themes/redwood/oj-color-palette.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/color-spectrum/themes/base/_oj-color-spectrum.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/color-spectrum/themes/redwood/_oj-color-spectrum.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/color-spectrum/themes/redwood/oj-color-spectrum.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/combobox/themes/base/_oj-combobox.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/combobox/themes/redwood/_oj-combobox.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/combobox/themes/redwood/_oj-combobox.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/combobox-many/themes/redwood/oj-combobox-many.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/combobox-one/themes/redwood/oj-combobox-one.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/conveyor-belt/themes/base/_oj-conveyor-belt.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/conveyor-belt/themes/redwood/_oj-conveyor-belt.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/conveyor-belt/themes/redwood/_oj-conveyor-belt.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/conveyor-belt/themes/redwood/oj-conveyor-belt.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/core/themes/redwood/_oj-core-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/core/themes/redwood/_oj-core.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/data-grid/themes/base/_oj-data-grid.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/data-grid/themes/redwood/_oj-data-grid.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/data-grid/themes/redwood/oj-data-grid.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/date-picker/themes/redwood/oj-date-picker.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/date-time-picker/themes/base/_oj-date-time-picker.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/date-time-picker/themes/redwood/_oj-date-time-picker.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/date-time-picker/themes/redwood/oj-date-time-picker.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/diagram/themes/base/_oj-diagram.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/diagram/themes/redwood/_oj-diagram.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/diagram/themes/redwood/oj-diagram.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dialog/themes/base/_oj-dialog.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dialog/themes/redwood/_oj-dialog.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dialog/themes/redwood/_oj-dialog.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dialog/themes/redwood/oj-dialog.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dvt/themes/base/_oj-dvt.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dvt/themes/redwood/_oj-dvt.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/dvt/themes/redwood/_oj-dvt.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/file-picker/themes/base/_oj-file-picker.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/file-picker/themes/redwood/_oj-file-picker.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/file-picker/themes/redwood/oj-file-picker.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/film-strip/themes/base/_oj-film-strip.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/film-strip/themes/redwood/_oj-film-strip.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/film-strip/themes/redwood/oj-film-strip.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/flex/themes/base/_oj-flex.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/flex/themes/redwood/oj-flex.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-control/themes/base/_oj-form-control.mixins.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-control/themes/base/_oj-form-control.scss +6 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-control/themes/base/_oj-messaging.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-control/themes/redwood/_oj-form-control.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-control/themes/redwood/_oj-form-control.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-control/themes/redwood/_oj-messaging.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-layout/themes/base/_oj-form-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-layout/themes/redwood/_oj-form-layout.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-layout/themes/redwood/_oj-form-layout.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/form-layout/themes/redwood/oj-form-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/gantt/themes/base/_oj-gantt.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/gantt/themes/redwood/_oj-gantt.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/gantt/themes/redwood/oj-gantt.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/gauge/themes/base/_oj-gauge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/gauge/themes/redwood/_oj-gauge.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/gauge/themes/redwood/oj-gauge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/grid/themes/base/_oj-grid.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/grid/themes/redwood/oj-grid.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/helpers/themes/base/_oj-helpers.scss +1 -1
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/helpers/themes/base/_oj-responsive-helpers.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/helpers/themes/redwood/_oj-theme.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/helpers/themes/redwood/oj-helpers.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/helpers/themes/redwood/oj-responsive.helpers.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/highlight-text/themes/base/_oj-highlight-text.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/highlight-text/themes/redwood/oj-highlight-text.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icon-circle/themes/base/_oj-icon-circle.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icon-circle/themes/redwood/_oj-icon-circle-ignore.scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icon-circle/themes/redwood/_oj-icon-circle.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icon-circle/themes/redwood/oj-icon-circle.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icons/themes/base/_oj-icons.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icons/themes/redwood/_oj-icon-font.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icons/themes/redwood/_oj-icons-ignore.scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icons/themes/redwood/_oj-icons.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/icons/themes/redwood/oj-icons.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/indexer/themes/base/_oj-indexer.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/indexer/themes/redwood/_oj-indexer.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/indexer/themes/redwood/oj-indexer.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-date/themes/redwood/oj-input-date.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-date-time/themes/redwood/oj-input-date-time.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-number/themes/base/_oj-input-number.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-number/themes/redwood/_oj-input-number.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-number/themes/redwood/_oj-input-number.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-number/themes/redwood/oj-input-number.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-password/themes/redwood/oj-input-password.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-search/themes/base/_oj-input-search.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-search/themes/redwood/_oj-input-search-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-search/themes/redwood/_oj-input-search.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-search/themes/redwood/_oj-input-search.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-text/themes/base/_oj-input-text.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-text/themes/redwood/_oj-input-text.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-text/themes/redwood/oj-input-text.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/input-time/themes/redwood/oj-input-time.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/label/themes/base/_oj-label.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/label/themes/redwood/_oj-label-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/label/themes/redwood/_oj-label.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/label/themes/redwood/oj-label.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/label-value/themes/base/_oj-label-value.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/label-value/themes/redwood/_oj-label-value.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/led-gauge/themes/redwood/oj-led-gauge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/legend/themes/base/_oj-legend.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/legend/themes/redwood/_oj-legend.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/legend/themes/redwood/oj-legend.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-box/themes/base/_oj-list-box.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-box/themes/redwood/_oj-list-box.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-box/themes/redwood/_oj-list-box.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-item-layout/themes/base/_oj-list-item-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-item-layout/themes/redwood/_oj-list-item-layout.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-item-layout/themes/redwood/oj-list-item-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-view/themes/base/_oj-list-view.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-view/themes/redwood/_oj-list-view.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-view/themes/redwood/_oj-list-view.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/list-view/themes/redwood/oj-list-view.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/masonry-layout/themes/base/_oj-masonry-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/masonry-layout/themes/redwood/_oj-masonry-layout.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/masonry-layout/themes/redwood/oj-masonry-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu/themes/base/_oj-menu.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu/themes/redwood/_oj-menu.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu/themes/redwood/_oj-menu.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu/themes/redwood/oj-menu.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-button/themes/base/_oj-menu-button.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-button/themes/redwood/_oj-menu-button.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-button/themes/redwood/_oj-menu-button.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-button/themes/redwood/oj-menu-button.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-select-many/themes/base/_oj-menu-select-many.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-select-many/themes/redwood/_oj-menu-select-many.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/menu-select-many/themes/redwood/oj-menu-select-many.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/message/themes/base/_oj-message.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/message/themes/redwood/_oj-message-ignore.scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/message/themes/redwood/_oj-message.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/message/themes/redwood/_oj-message.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/message/themes/redwood/oj-message.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/messages/themes/base/_oj-messages.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/messages/themes/redwood/_oj-messages.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/messages/themes/redwood/_oj-messages.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/messages/themes/redwood/oj-messages.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/module/themes/base/_oj-module.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/module/themes/redwood/oj-module.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/n-box/themes/base/_oj-n-box.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/n-box/themes/redwood/_oj-n-box.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/n-box/themes/redwood/oj-n-box.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/navigation-list/themes/base/_oj-navigation-list.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/navigation-list/themes/redwood/_oj-navigation-list-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/navigation-list/themes/redwood/_oj-navigation-list.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/navigation-list/themes/redwood/_oj-navigation-list.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/navigation-list/themes/redwood/oj-navigation-list.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/off-canvas/themes/base/_oj-off-canvas.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/off-canvas/themes/redwood/_oj-off-canvas.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/off-canvas/themes/redwood/oj-off-canvas.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/optgroup/themes/base/_oj-optgroup.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/optgroup/themes/redwood/oj-optgroup.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/option/themes/base/_oj-option.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/option/themes/redwood/oj-option.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/paging-control/themes/base/_oj-paging-control.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/paging-control/themes/redwood/_oj-paging-control.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/paging-control/themes/redwood/oj-paging-control.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/palette/themes/redwood/_oj-palette-dvt-next-ignore.scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/palette/themes/redwood/_oj-palette-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/palette/themes/redwood/_oj-palette.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/panel/themes/base/_oj-panel.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/panel/themes/redwood/_oj-panel-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/panel/themes/redwood/_oj-panel.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/panel/themes/redwood/oj-panel.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/picto-chart/themes/base/_oj-picto-chart.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/picto-chart/themes/redwood/_oj-picto-chart.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/picto-chart/themes/redwood/oj-picto-chart.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/popup/themes/base/_oj-layer.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/popup/themes/base/_oj-popup.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/popup/themes/redwood/_oj-layer.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/popup/themes/redwood/_oj-popup.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/popup/themes/redwood/_oj-popup.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/popup/themes/redwood/oj-popup.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-bar/themes/base/_oj-progress-bar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-bar/themes/redwood/_oj-progress-bar-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-bar/themes/redwood/_oj-progress-bar.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-bar/themes/redwood/_oj-progress-bar.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-bar/themes/redwood/oj-progress-bar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-circle/themes/base/_oj-progress-circle.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-circle/themes/redwood/_oj-progress-circle-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-circle/themes/redwood/_oj-progress-circle.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-circle/themes/redwood/_oj-progress-circle.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/progress-circle/themes/redwood/oj-progress-circle.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/radio-checkbox/themes/base/_oj-radiocheckbox.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/radio-checkbox/themes/redwood/_oj-radiocheckbox.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/radioset/themes/redwood/_oj-radioset.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/radioset/themes/redwood/oj-radioset.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/rangeslider/themes/redwood/_oj-rangeslider.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/rangeslider/themes/redwood/oj-rangeslider.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/rating-gauge/themes/base/_oj-rating-gauge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/rating-gauge/themes/redwood/_oj-rating-gauge.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/rating-gauge/themes/redwood/oj-rating-gauge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/refresher/themes/base/_oj-refresher.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/refresher/themes/redwood/_oj-refresher.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/refresher/themes/redwood/_oj-refresher.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/refresher/themes/redwood/oj-refresher.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/resizable/themes/base/_oj-resizable.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/resizable/themes/redwood/_oj-resizable.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/row-expander/themes/base/_oj-row-expander.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/row-expander/themes/redwood/_oj-row-expander.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/row-expander/themes/redwood/oj-row-expander.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/scrollbar/themes/base/_oj-scrollbar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/scrollbar/themes/redwood/_oj-scrollbar-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/scrollbar/themes/redwood/_oj-scrollbar.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/scrollbar/themes/redwood/_oj-scrollbar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select/themes/base/_oj-select.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select/themes/redwood/_oj-select.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select/themes/redwood/_oj-select.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select-many/themes/redwood/oj-select-many.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select-one/themes/redwood/oj-select-one.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select-original/themes/base/_oj-select-original.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select-original/themes/redwood/_oj-select-original.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select-original/themes/redwood/_oj-select-original.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/select-single/themes/redwood/oj-select-single.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/selector/themes/base/_oj-selector.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/selector/themes/redwood/_oj-selector.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/selector/themes/redwood/oj-selector.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/slider/themes/base/_oj-slider.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/slider/themes/redwood/_oj-slider.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/slider/themes/redwood/oj-slider.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/spark-chart/themes/base/_oj-spark-chart.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/spark-chart/themes/redwood/oj-spark-chart.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/status-meter-gauge/themes/redwood/oj-status-meter-gauge.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/stream-list/themes/base/_oj-stream-list.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/stream-list/themes/redwood/_oj-stream-list.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/stream-list/themes/redwood/_oj-stream-list.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/stream-list/themes/redwood/oj-stream-list.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/sunburst/themes/base/_oj-sunburst.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/sunburst/themes/redwood/_oj-sunburst.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/sunburst/themes/redwood/oj-sunburst.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/swipe-actions/themes/base/_oj-swipe-actions.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/swipe-actions/themes/redwood/_oj-swipe-actions.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/swipe-actions/themes/redwood/oj-swipe-actions.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/switch/themes/base/_oj-switch.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/switch/themes/redwood/_oj-switch.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/switch/themes/redwood/oj-switch.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/switcher/themes/base/_oj-switcher.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/switcher/themes/redwood/oj-switcher.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tab-bar/themes/base/_oj-tab-bar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tab-bar/themes/redwood/_oj-tab-bar-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tab-bar/themes/redwood/_oj-tab-bar.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tab-bar/themes/redwood/_oj-tab-bar.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tab-bar/themes/redwood/oj-tab-bar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/table/themes/base/_oj-table.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/table/themes/redwood/_oj-table.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/table/themes/redwood/_oj-table.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/table/themes/redwood/oj-table.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tag-cloud/themes/base/_oj-tag-cloud.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tag-cloud/themes/redwood/_oj-tag-cloud.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tag-cloud/themes/redwood/oj-tag-cloud.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tags/themes/base/_oj-notags.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tags/themes/base/_oj-tags.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tags/themes/redwood/_oj-tags-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tags/themes/redwood/_oj-tags.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tags/themes/redwood/oj-notags.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tags/themes/redwood/oj-tags.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/text-area/themes/base/_oj-text-area.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/text-area/themes/redwood/_oj-text-area.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/text-area/themes/redwood/oj-text-area.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/text-field/themes/redwood/_oj-text-field-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/text-field/themes/redwood/_oj-text-field.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/thematic-map/themes/base/_oj-thematic-map.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/thematic-map/themes/redwood/_oj-thematic-map.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/thematic-map/themes/redwood/oj-thematic-map.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/time-axis/themes/base/_oj-time-axis.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/time-axis/themes/redwood/_oj-time-axis.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/time-axis/themes/redwood/oj-time-axis.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/timeline/themes/base/_oj-timeline.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/timeline/themes/redwood/_oj-timeline.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/timeline/themes/redwood/oj-timeline.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/toolbar/themes/base/_oj-toolbar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/toolbar/themes/redwood/_oj-toolbar.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/toolbar/themes/redwood/_oj-toolbar.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/toolbar/themes/redwood/oj-toolbar.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tooltip/themes/base/_oj-tooltip.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tooltip/themes/redwood/_oj-tooltip.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tooltip/themes/redwood/oj-tooltip.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/train/themes/base/_oj-train.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/train/themes/redwood/_oj-train.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/train/themes/redwood/oj-train.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tree-view/themes/base/_oj-tree-view.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tree-view/themes/redwood/_oj-tree-view.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tree-view/themes/redwood/_oj-tree-view.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/tree-view/themes/redwood/oj-tree-view.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/treemap/themes/base/_oj-treemap.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/treemap/themes/redwood/_oj-treemap.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/treemap/themes/redwood/oj-treemap.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/typography/themes/base/_oj-typography.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/typography/themes/redwood/_oj-typography-scoped.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/typography/themes/redwood/_oj-typography.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/typography/themes/redwood/oj-typography.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/_oj.utilities.bidi.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/_oj.utilities.icons.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/_oj.utilities.json.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/_oj.utilities.masonrylayout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/_oj.utilities.modules.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/_oj.utilities.urls.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/utilities/svg-sprite-template.scss.txt +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/validation-group/themes/base/_oj-validation-group.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/validation-group/themes/redwood/oj-validation-group.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/waterfall-layout/themes/base/_oj-waterfall-layout.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/waterfall-layout/themes/redwood/_oj-waterfall-layout.cssvars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/waterfall-layout/themes/redwood/_oj-waterfall-layout.servervars.scss +0 -0
- package/dist/pcss/oj/{v10.0.3 → v10.0.7}/oj/waterfall-layout/themes/redwood/oj-waterfall-layout.scss +0 -0
- package/dist/scss/common/helpers/_oj.common.helpers.scss +1 -1
- package/dist/scss/common/widgets/_oj.common.treeview.scss +2 -0
- package/dist/types/ojgroupingdataprovider/index.d.ts +1 -1
- package/dist/webpack-tools/4.x/webpack.config.js +3 -3
- package/dist/webpack-tools/webpack.config.js +3 -3
- package/package.json +1 -1
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
6
6
|
* @ignore
|
|
7
7
|
*/
|
|
8
|
-
define(["touchr","ojdnd","ojs/ojeditablevalue","ojs/ojinputnumber","ojs/ojmenu","ojs/ojpopup","ojs/ojbutton","ojs/ojdatasource-common","ojs/ojdataprovideradapter","ojs/ojlistdataproviderview","ojs/ojselector","ojs/ojcore-base","jquery","ojs/ojdomutils","ojs/ojlogger","ojs/ojcontext","ojs/ojconfig","ojs/ojtranslation","ojs/ojthemeutils","ojs/ojcomponentcore","ojs/ojdatacollection-common","ojs/ojanimation","ojs/ojdomscroller","ojs/ojcustomelement-utils","ojs/ojkeyset","ojs/ojvalidator-regexp"],function(e,t,o,l,i,n,s,a,r,_,d,h,u,c,S,C,E,T,p,g,f,m,b,A,y
|
|
8
|
+
define(["touchr","ojdnd","ojs/ojeditablevalue","ojs/ojinputnumber","ojs/ojmenu","ojs/ojpopup","ojs/ojbutton","ojs/ojdatasource-common","ojs/ojdataprovideradapter","ojs/ojlistdataproviderview","ojs/ojselector","ojs/ojcore-base","jquery","ojs/ojdomutils","ojs/ojlogger","ojs/ojcontext","ojs/ojconfig","ojs/ojtranslation","ojs/ojthemeutils","ojs/ojcomponentcore","ojs/ojdatacollection-common","ojs/ojanimation","ojs/ojdomscroller","ojs/ojcustomelement-utils","ojs/ojkeyset","ojs/ojvalidator-regexp"],function(e,t,o,l,i,n,s,a,r,_,d,h,u,c,S,C,E,T,p,g,f,m,b,A,L,y){"use strict";
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
12
12
|
* The Universal Permissive License (UPL), Version 1.0
|
|
13
13
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
14
14
|
* @ignore
|
|
15
|
-
*/var R;_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,
|
|
15
|
+
*/var R;_=_&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,h=h&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h,u=u&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,C=C&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C,b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,y=y&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y,(R={properties:{accessibility:{type:"object",properties:{rowHeader:{type:"string"}}},as:{type:"string",value:""},columns:{type:"Array<Object>",writeback:!0},columnsDefault:{type:"object",properties:{className:{type:"string"},field:{type:"string"},footerClassName:{type:"string"},footerRenderer:{type:"function"},footerStyle:{type:"string"},footerTemplate:{type:"string"},headerClassName:{type:"string"},headerRenderer:{type:"function"},headerStyle:{type:"string"},headerTemplate:{type:"string"},headerText:{type:"string"},maxWidth:{type:"string|number"},minWidth:{type:"string|number",enumValues:["auto"],value:"auto"},renderer:{type:"function"},resizable:{type:"string",enumValues:["disabled","enabled"],value:"disabled"},sortProperty:{type:"string"},sortable:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"},style:{type:"string"},template:{type:"string"},weight:{type:"number",value:1},width:{type:"string|number"}}},currentRow:{type:"object",writeback:!0},data:{type:"object"},display:{type:"string",enumValues:["grid","list"],value:"list"},dnd:{type:"object",properties:{drag:{type:"object",properties:{rows:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},drag:{type:"function"},dragEnd:{type:"function"},dragStart:{type:"function"}}}}},drop:{type:"object",properties:{columns:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},dragEnter:{type:"function"},dragLeave:{type:"function"},dragOver:{type:"function"},drop:{type:"function"}}},rows:{type:"object",properties:{dataTypes:{type:"string|Array<string>"},dragEnter:{type:"function"},dragLeave:{type:"function"},dragOver:{type:"function"},drop:{type:"function"}}}}},reorder:{type:"object",properties:{columns:{type:"string",enumValues:["disabled","enabled"],value:"disabled"}}}}},editMode:{type:"string",enumValues:["none","rowEdit"],value:"none"},editRow:{type:"object",writeback:!0,value:{rowKey:null,rowIndex:-1}},firstSelectedRow:{type:"object",writeback:!0,readOnly:!0,value:{key:null,data:null},properties:{data:{type:"any"},key:{type:"any"}}},horizontalGridVisible:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"},layout:{type:"string",enumValues:["contents","fixed"],value:"contents"},rowRenderer:{type:"function"},scrollPolicy:{type:"string",enumValues:["auto","loadAll","loadMoreOnScroll"],value:"auto"},scrollPolicyOptions:{type:"object",properties:{fetchSize:{type:"number",value:25},maxCount:{type:"number",value:500}}},scrollPosition:{type:"object",writeback:!0,value:{x:0,y:0},properties:{columnIndex:{type:"number"},columnKey:{type:"any"},offsetX:{type:"number"},offsetY:{type:"number"},rowIndex:{type:"number"},rowKey:{type:"any"},x:{type:"number"},y:{type:"number"}}},scrollToKey:{type:"string",enumValues:["always","auto","capability","never"],value:"auto"},selected:{type:"object",writeback:!0,properties:{column:{type:"KeySet",writeback:!0},row:{type:"KeySet",writeback:!0}}},selection:{type:"Array<Object>",writeback:!0,value:[]},selectionMode:{type:"Object<string, string>",properties:{column:{type:"string",enumValues:["multiple","none","single"]},row:{type:"string",enumValues:["multiple","none","single"]}}},selectionRequired:{type:"boolean",value:!1},translations:{type:"object",value:{},properties:{accessibleColumnContext:{type:"string"},accessibleColumnFooterContext:{type:"string"},accessibleColumnHeaderContext:{type:"string"},accessibleRowContext:{type:"string"},accessibleSortAscending:{type:"string"},accessibleSortDescending:{type:"string"},accessibleSortable:{type:"string"},accessibleStateSelected:{type:"string"},labelAccSelectionAffordanceBottom:{type:"string"},labelAccSelectionAffordanceTop:{type:"string"},labelDisableNonContiguousSelection:{type:"string"},labelEditRow:{type:"string"},labelEnableNonContiguousSelection:{type:"string"},labelResize:{type:"string"},labelResizePopupCancel:{type:"string"},labelResizePopupSpinner:{type:"string"},labelResizePopupSubmit:{type:"string"},labelSelectAndEditRow:{type:"string"},labelSelectColum:{type:"string"},labelSelectRow:{type:"string"},labelSort:{type:"string"},labelSortAsc:{type:"string"},labelSortDsc:{type:"string"},msgColumnResizeWidthValidation:{type:"string"},msgFetchingData:{type:"string"},msgInitializing:{type:"string"},msgNoData:{type:"string"},msgScrollPolicyMaxCountDetail:{type:"string"},msgScrollPolicyMaxCountSummary:{type:"string"},msgStatusSortAscending:{type:"string"},msgStatusSortDescending:{type:"string"}}},verticalGridVisible:{type:"string",enumValues:["auto","disabled","enabled"],value:"auto"}},methods:{getContextByNode:{},getDataForVisibleRow:{},getProperty:{},refresh:{},refreshRow:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAnimateEnd:{},ojAnimateStart:{},ojBeforeCurrentRow:{},ojBeforeRowEdit:{},ojBeforeRowEditEnd:{},ojRowAction:{},ojSort:{}},extension:{}}).extension._WIDGET_NAME="ojTable",R.extension._INNER_ELEM="table",h.CustomElementBridge.register("oj-table",{metadata:R});
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -27,7 +27,7 @@ define(["touchr","ojdnd","ojs/ojeditablevalue","ojs/ojinputnumber","ojs/ojmenu",
|
|
|
27
27
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
28
28
|
* @ignore
|
|
29
29
|
*/
|
|
30
|
-
const v=function(){};v._BUNDLE_KEY={_MSG_FETCHING_DATA:"msgFetchingData",_MSG_NO_DATA:"msgNoData",_MSG_INITIALIZING:"msgInitializing",_MSG_STATUS_SORT_ASC:"msgStatusSortAscending",_MSG_STATUS_SORT_DSC:"msgStatusSortDescending",_LABEL_SELECT_COLUMN:"labelSelectColumn",_LABEL_SELECT_ROW:"labelSelectRow",_LABEL_EDIT_ROW:"labelEditRow",_LABEL_SELECT_AND_EDIT_ROW:"labelSelectAndEditRow"},v._LOGGER_MSG={_ERR_PRECURRENTROW_ERROR_SUMMARY:"Did not change current row due to error.",_ERR_PRECURRENTROW_ERROR_DETAIL:"Error detail: {error}.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY:"Did not change current row due to unavailable row index.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL:"Unavailable row index: {rowIdx}.",_ERR_REFRESHROW_INVALID_INDEX_SUMMARY:"Invalid row index value.",_ERR_REFRESHROW_INVALID_INDEX_DETAIL:"Row index: {rowIdx}.",_ERR_DATA_INVALID_TYPE_SUMMARY:"Invalid data type.",_ERR_DATA_INVALID_TYPE_DETAIL:"Please specify the appropriate data type.",_ERR_ELEMENT_INVALID_TYPE_SUMMARY:"Invalid element type.",_ERR_ELEMENT_INVALID_TYPE_DETAIL:"Only a <table> element can be specified for ojTable."},v._UPDATE={_DATA_REFRESH:"dataRefresh",_DATA_SORT:"dataSort",_RESIZE:"resize",_REFRESH:"refresh",_COL_REORDER:"colReorder",_COL_RESIZE:"colResize",_ROW_REFRESH:"rowRefresh",_ROWS_ADDED:"rowsAdded",_ROWS_REMOVED:"rowsRemoved"},v._FIELD_ID="id",v._CONST_ATTRIBUTE="attribute",v._CONST_DATA="data",v._CONST_METADATA="metadata",v._CONST_INDEXES="indexes",v._CONST_INDEX="index",v._CONST_KEY="key",v._CONST_KEYS="keys",v._CONST_AFTERKEYS="afterKeys",v._CONST_ADDBEFOREKEYS="addBeforeKeys",v._CONST_CLIENTID="clientId",v._CONST_STARTINDEX="startIndex",v._CONST_ENDINDEX="endIndex",v._CONST_PAGESIZE="size",v._CONST_OFFSET="offset",v._CONST_SILENT="silent",v._CONST_COLUMN="column",v._CONST_ROW="row",v._CONST_VALUE="value",v._CONST_SORTCRITERIA="sortCriteria",v._COLUMN_HEADER_ID="_headerColumn",v._COLUMN_HEADER_TEXT_ID="_headerColumnText",v._COLUMN_HEADER_ASC_ID="_headerColumnAsc",v._COLUMN_HEADER_DSC_ID="_headerColumnDsc",v._COLUMN_HEADER_ID_PREFIX="_hdrCol",v._COLUMN_HEADER_ROW_SELECT_ID="_hdrColRowSel",v._FOCUS_CALLED="_focusedCalled",v._ROW_TEMPLATE="rowTemplate",v._CELL_TEMPLATE="template",v._HEADER_TEMPLATE="headerTemplate",v._FOOTER_TEMPLATE="footerTemplate",v._OPTION_AUTO="auto",v._OPTION_ENABLED="enabled",v._OPTION_DISABLED="disabled",v._OPTION_DISPLAY={_LIST:"list",_GRID:"grid"},v._OPTION_EDIT_MODE={_NONE:"none",_ROW_EDIT:"rowEdit"},v._OPTION_SELECTION_MODES={_SINGLE:"single",_MULTIPLE:"multiple",_NONE:"none"},v._OPTION_SCROLL_POLICY={_AUTO:"auto",_LOADMORE_ON_SCROLL:"loadMoreOnScroll",_LOAD_ALL:"loadAll"},v._COLUMN_SORT_ORDER={_ASCENDING:"ascending",_DESCENDING:"descending"},v._DND_REORDER_TABLE_ID_DATA_KEY="oj-table-dnd-reorder-table-id",v._CURRENT_ROW_STATUS={_UPDATED:"updated",_IGNORED:"ignored",_VETOED:"vetoed",_ERROR:"error"},v._BATCH_PROCESS_SIZE_WHEN_IDLE=5,v.prototype._isStickyLayoutEnabled=function(){return null==this._defaultOptions&&(this._defaultOptions=p.parseJSONFromFontFamily("oj-table-option-defaults")),!0===this._defaultOptions.enableSticky},v.prototype._isFixedLayoutEnabled=function(){return"fixed"===this.options.layout},v.prototype._isTableStretchEnabled=function(){return this._getTableContainer().classList.contains(v.CSS_CLASSES._TABLE_STRETCH_CLASS)},v.prototype._isNodeEditable=function(e){return this._isNodeType(e,/^INPUT|TEXTAREA/)},v.prototype._isNodeClickable=function(e){return this._isNodeType(e,/SELECT|OPTION|BUTTON|^A\b/)},v.prototype._isNodeDraggable=function(e){return null!=this._getFirstAncestor(e,"[draggable='true']",!0)},v.prototype._isNodeType=function(e,t){for(var o=this._getTable();null!=e&&e!==o;){var l=e.nodeName;if(l===v.DOM_ELEMENT._TD||l===v.DOM_ELEMENT._TH)break;if(3!==e.nodeType)if(l.match(t))if(-1!==e.getAttribute(v.DOM_ATTR._TABINDEX))return!0;e=e.parentNode}return!1},v.prototype._handleDataFetchStart=function(){this._setDataWaitingState()},v.prototype._setDataWaitingState=function(e){!1!==e&&(this._showStatusMessage(),this._hideNoDataMessage()),this._dataFetching=!0,this._dataResolveFunc||(this._dataResolveFunc=this._addComponentBusyState("is waiting for data."))},v.prototype._checkViewportRejected=function(){this._animateOnFetch=!1,this._clearDataWaitingState()},v.prototype._clearDataWaitingState=function(){this._pendingFetchStale?(this._pendingFetchStale=!1,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this))):(this._hideStatusMessage(),this._dataFetching=!1,this._pendingFetchStale=!1,this._dataResolveFunc&&(this._dataResolveFunc(),this._dataResolveFunc=null))},v.prototype._setComponentNotReady=function(){this._readyResolveFunc||(this._readyResolveFunc=this._addComponentBusyState("is being loaded."))},v.prototype._setComponentReady=function(){this._readyResolveFunc&&(this._readyResolveFunc(),this._readyResolveFunc=null)},v.prototype._addComponentBusyState=function(e){var t=C.getContext(this.element[0]).getBusyContext(),o={description:"The component identified by '"+this._getTableId()+"' "+e};return t.addBusyState(o)},v.prototype._createComponentBusyState=function(e){var t=this._addComponentBusyState(e);return null==this._busyStateStack&&(this._busyStateStack=[]),this._busyStateStack.push(t),t},v.prototype._clearComponentBusyState=function(e){if(this._busyStateStack){var t=this._busyStateStack.indexOf(e);-1!==t&&(e(),this._busyStateStack.splice(t,1))}},v.prototype._clearBusyStateStack=function(){if(this._busyStateStack){for(var e=0;e<this._busyStateStack.length;e++)this._busyStateStack[e]();this._busyStateStack=null}},v.prototype._setFocusoutBusyState=function(){this._focusoutResolveFunc||(this._focusoutResolveFunc=this._addComponentBusyState("is handling focusout."))},v.prototype._clearFocusoutBusyState=function(){this._focusoutResolveFunc&&(this._focusoutResolveFunc(),this._focusoutResolveFunc=null)},v.prototype._setIdleRenderBusyState=function(){this._idleRenderResolveFunc||(this._idleRenderResolveFunc=this._addComponentBusyState("is waiting for idle rendering."))},v.prototype._clearIdleRenderBusyState=function(){this._idleRenderResolveFunc&&(this._idleRenderResolveFunc(),this._idleRenderResolveFunc=null)},v.prototype._setScrollPosBusyState=function(){this._scrollPosResolveFunc||(this._scrollPosResolveFunc=this._addComponentBusyState("is handling scroll position."))},v.prototype._clearScrollPosBusyState=function(){this._scrollPosResolveFunc&&(this._scrollPosResolveFunc(),this._scrollPosResolveFunc=null)},v.prototype._clearAllComponentBusyStates=function(){this._clearBusyStateStack(),this._pendingFetchStale=!1,this._clearDataWaitingState(),this._clearFocusoutBusyState(),this._clearIdleRenderBusyState(),this._clearScrollPosBusyState(),this._setComponentReady()},v.prototype._cleanComponent=function(e){this._clearAllComponentTimeouts(),this._clearAllComponentBusyStates(),this._clearIdleCallback(),this._unregisterDomScroller(),e?(u(this._getTableBody()).removeAttr(g._OJ_CONTAINER_ATTR),this.element.children().remove("."+v.CSS_CLASSES._TABLE_HEADER_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_BODY_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_FOOTER_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),c.unwrap(this.element,u(this._getTableContainer())),this.element[0].classList.remove(v.CSS_CLASSES._TABLE_CLASS),this._data instanceof h.TableDataSourceAdapter&&this._data.destroy(),(this._hasHeaderTemplate||this._hasCellTemplate||this._hasFooterTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(this.element[0]),this._componentDestroyed=!0):(this._unregisterDataSourceEventListeners(),this._unregisterResizeListener())},v.prototype._clearAllComponentTimeouts=function(){this._clearFocusoutTimeout(),this._clearShowStatusTimeout()},v.prototype._clearFocusoutTimeout=function(){this._focusoutTimeout&&(clearTimeout(this._focusoutTimeout),this._focusoutTimeout=null)},v.prototype._clearShowStatusTimeout=function(){this._showStatusTimeout&&(clearTimeout(this._showStatusTimeout),this._showStatusTimeout=null)},v.prototype._setFinalTask=function(e){this._finalTask=e?e.bind(this):void 0},v.prototype._hasPendingTasks=function(){return this._taskCount>0},v.prototype._hasAdditionalPendingTasks=function(){return this._taskCount>1},v.prototype._queueTask=function(e){return this._pendingTasks||(this._taskCount=0,this._pendingTasks=Promise.resolve(),this._setComponentNotReady()),this._taskCount+=1,this._pendingTasks=this._pendingTasks.then(function(){if(!this._componentDestroyed)return e.bind(this)()}.bind(this)).then(function(e){if(this._taskCount-=1,0===this._taskCount){this._pendingTasks=void 0;try{this._componentDestroyed||(this._finalTask&&this._finalTask(),this._trigger("ready"))}catch(e){S.error(e)}this._setComponentReady()}return e}.bind(this),function(e){return this._taskCount-=1,0===this._taskCount&&(this._pendingTasks=void 0,S.error(e),this._setComponentReady()),Promise.reject(e)}.bind(this)),this._pendingTasks},v.prototype._draw=function(){if(this._setFinalTask(function(){this._syncTableSizing(),this._initialSelectionStateValidated?this._syncSelectionState():this._validateInitialSelectionState(),this._resetAriaLabel&&null!=this._accRowIndex&&null!=this._accColumnIndex&&this._updateAccStatusInfo(this._accRowIndex,this._accColumnIndex,this._accHeaderIndex,this._accFooterIndex),this._resetAriaLabel=!1}.bind(this)),!this.element.is("table")){var e=v._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_SUMMARY,t=v._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_DETAIL;throw new RangeError(e+"\n"+t)}this.element[0].classList.add(v.CSS_CLASSES._TABLE_ELEMENT_CLASS),this.element[0].setAttribute(v.DOM_ATTR._ROLE,"application"),this._createInitialTable(this._isTableHeaderless(),this._isTableFooterless()),this._styleInitialTable(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._REFRESH),this._refreshTableHeader(),this._refreshTableFooter(),this._refreshTableBody(),this._processSlottedChildren()}.bind(this)),this.options.disabled&&this.disable()},v.prototype._refresh=function(){var e=!1;this._dataOption!==this.options[v._CONST_DATA]&&(this._clearCachedDataMetadata(),null==this._data&&(e=!0));var t=this._GetContextMenu();return null!=t&&t!==this._getContextMenuElement()&&this._createContextMenuContainer(),this._clearLayoutManager(),this._clearCachedDom(),this._refreshContextMenu(),this._refreshTableStatusMessage(),this._clearIdleCallback(),e?this._initFetch():this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},v.prototype._refreshAll=function(e,t){var o=[];if((this._isColumnMetadataUpdated()||!this._isTableHeaderColumnsRendered()&&!this._isTableHeaderless())&&(this._clearCachedMetadata(),o.push(this._refreshTableHeader()),null!=this._sortColumn)){for(var l=!1,i=this._getColumnDefs(),n=i.length,s=0;s<n;s++){var a=i[s];if(h.Object.compareValues(a,this._sortColumn)){l=!0;break}}l||this._initFetch(null,!0)}return o.push(this._refreshTableFooter()),o.push(this._refreshTableBody(e,t)),Promise.all(o)},v.prototype._refreshTableHeader=function(){var e,t=this,o=this._getColumnDefs(),l=o.length,i=this._getTableColGroup();if(null!=i){if(u(i).empty(),this._isDefaultSelectorEnabled()){var n=this._createTableSelectorCol();i.appendChild(n)}for(e=0;e<l;e++){var s=this._createTableCol();i.appendChild(s)}}var a=this._getTableHeader();if(!a){if(this._isTableHeaderless())return Promise.resolve();a=this._createTableHeader(),this._styleTableHeader(a)}var r=this._getTableHeaderRow();for(this._unregisterChildStateListeners(r),this._hasHeaderTemplate&&(this._cleanTemplateNodes(r),this._hasHeaderTemplate=!1),u(r).empty(),e=0;e<l;e++){var _=o[e],d=this._getColumnRenderer(e,"header"),h=this._createTableHeaderColumn(e);if(d){var c=this._getRendererContextObject(h,{}),S={headerContext:c,columnIndex:e,data:_.headerText,componentElement:c.componentElement,parentElement:c.parentElement};_.sortable===v._OPTION_ENABLED?S.columnHeaderSortableIconRenderer=function(e,o){t._columnHeaderSortableIconRenderer(this,o)}:S.columnHeaderDefaultRenderer=function(e,o){t._columnHeaderDefaultRenderer(this,o)};var C=d(S);null!=C?(u(h).empty(),u(h).append(C)):(h=u(r).children()[e],this._setTableHeaderColumnAttributes(e,h),this._styleTableHeaderColumn(e,h,!1))}else{var E=this._getSlotTemplate(_[v._HEADER_TEMPLATE]);if(null==E&&this._isDefaultHeaderTemplateSlotValid()&&(E=this._getSlotTemplate("headerTemplate")),E){var T=this._getRootElement(),p=this._getTemplateEngine();if(null!=p){h&&u(h).empty();var g=this._getHeaderSlotTemplateContextObject(_.headerText,e),f=p.execute(T,E,g,this.options.as);f instanceof Array||(f=[f]),f.map(function(e){h.appendChild(e)}),this._hasHeaderTemplate=!0}}}}if(this._isDefaultSelectorEnabled()){var m=this._createTableHeaderSelectorColumn();r.insertBefore(m,r.firstChild)}return this._renderedTableHeaderColumns=!0,this._finalizeRowRendering([r])},v.prototype._refreshTableFooter=function(){var e=this._getColumnDefs(),t=this._getTableFooter();if(!t){if(this._isTableFooterless())return Promise.resolve();t=this._createTableFooter(),this._styleTableFooter(t)}t.style[v.CSS_PROP._VISIBILITY]=v.CSS_VAL._HIDDEN;var o=this._getTableFooterRow();if(this._hasFooterTemplate&&(this._cleanTemplateNodes(o),this._hasFooterTemplate=!1),u(o).empty(),e.length>0){for(var l=this._isDefaultFooterTemplateSlotValid(),i=e.length,n=0;n<i;n++){var s=e[n],a=this._getColumnRenderer(n,"footer"),r=this._createTableFooterCell();if(this._styleTableFooterCell(n,r),this._insertTableFooterCell(n,r),a){var _=this._getRendererContextObject(r,{}),d=a({footerContext:_,columnIndex:n,componentElement:_.componentElement,parentElement:_.parentElement});null!=d?(u(r).empty(),u(r).append(d)):(r=u(o).children()[n],this._setTableFooterColumnAttributes(n,r),this._styleTableFooterCell(n,r))}else{var h=this._getSlotTemplate(s[v._FOOTER_TEMPLATE]);if(null==h&&l&&(h=this._getSlotTemplate("footerTemplate")),h){var c=this._getRootElement(),S=this._getTemplateEngine();if(null!=S){var C=this._getFooterSlotTemplateContextObject(n),E=S.execute(c,h,C,this.options.as);E instanceof Array||(E=[E]),E.map(function(e){r.appendChild(e)}),this._hasFooterTemplate=!0}}}}if(this._isDefaultSelectorEnabled()){var T=this._createTableFooterSelectorCell();o.insertBefore(T,o.firstChild)}}return this._finalizeRowRendering([o])},v.prototype._refreshTableBody=function(e,t,o){var l=this._getTableBody();if(null==l)return Promise.resolve();var i,n,s,a=this._getRowIdxRowArray(e,t),r=u.contains(l,document.activeElement),_=!1;if(this._scrollLeft=void 0===this._scrollLeft?0:this._scrollLeft,this._scrollTop=void 0===this._scrollTop?0:this._scrollTop,0===t)r&&(_=!0),this._removeAllTableBodyRows();else if((i=this._getTableBodyRows()).length>0)for(s=i.length-1;s>=t;s--)r&&null!=(n=this._getTableBodyRow(s))&&u.contains(n,document.activeElement)&&(_=!0,r=!1),this._removeTableBodyRow(s);if(_&&this._getTable().focus(),this._clearCachedDomRowData(),this._hideNoDataMessage(),i=l.children,0!==a.length||0!==i.length){var d;if(t>0&&this._isOverflow()&&!this._fetchBySyncScroll)return new Promise(function(o,i){this._setIdleRenderBusyState(),this._renderRowsWhenIdle(a.slice(0),l,t,o,i,e.isMouseWheel)}.bind(this));var h=a.length;if(this._animateOnFetch&&this._IsCustomElement()){this._animateOnFetch=!1;var c=[],S=[];for(s=0;s<h;s++)S.push(a[s].rowIdx),c.push(this._addSingleTableBodyRow(a[s].rowIdx,a[s].row));return this._animateVisibleRows(c,S,"add").then(function(){return this._finalizeBodyRowRendering(c)}.bind(this))}for(this._animateOnFetch=!1,o||(l.style[v.CSS_PROP._VISIBILITY]=v.CSS_VAL._HIDDEN),d=document.createDocumentFragment(),s=0;s<h;s++)this._renderRow(a[s],d,t);return l.appendChild(d),this._afterRowsRendered(l)}return this._showNoDataMessage(),Promise.resolve()},v.prototype._isDefaultSelectorEnabled=function(){return null==this._defaultOptions&&(this._defaultOptions=p.parseJSONFromFontFamily("oj-table-option-defaults")),!0===this._defaultOptions.enableSelector&&this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE},v.prototype._refreshTableBodyRow=function(e,t,o,l,i){var n=this._getRowRenderer(),s=this._getTableBody();(isNaN(e)||e<0)&&S.error("Error: Invalid rowIdx value: "+e);var a=this._hashCode(t[v._CONST_KEY]);if(null==o){if(!(o=this._getTableBodyRow(e)))return null;(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(o),u(o).empty()}this._hideNoDataMessage();var r=this._getCurrentRow();r=r||{};var _=this._getRendererContextObject(o,{row:t,isCurrentRow:r.rowIndex===e}),d={rowContext:_,row:t[v._CONST_DATA],componentElement:_.componentElement,parentElement:_.parentElement,data:t[v._CONST_DATA]},h=this._getColumnDefs();if(null!=n||this._isDefaultRowTemplateSlotValid()&&null!==this._getSlotTemplate("rowTemplate")){if(null!=n){var c=n(d);null!=c?o.appendChild(c):null==l?o=s.children[e]:(i=null==i?0:i,o=l.children?l.children[e-i]:u(l).children()[e-i])}else{var C=this._getSlotTemplate("rowTemplate"),E=this._getRootElement(),T=this._getTemplateEngine();if(null!=T){var p=this._getRowSlotTemplateContextObject(d),g=T.execute(E,C,p,this.options.as);for(let e=0;e<g.length;e++){if("TR"===g[e].tagName){o.parentNode.replaceChild(g[e],o);break}o.appendChild(g[e])}null==l?o=s.children[e]:(i=null==i?0:i,o=l.children?l.children[e-i]:u(l).children()[e-i]),this._hasRowTemplate=!0}}this._clearCachedDomRowData(),this._setTableBodyRowAttributes(t,o),this._styleTableBodyRow(o,!1);var f,m=this._getTableElementsByTagName(o,v.DOM_ELEMENT._TD),b=m.length;for(let o=0;o<b;o++)f=m[o],this._setTableBodyCellAttributes(e,t[v._CONST_KEY],a,o,f),this._styleTableBodyCell(o,f,!1);if(null!=this._columnsDestMap)for(let e=0;e<this._columnsDestMap.length;e++){var A=m[this._columnsDestMap[e]];A.parentNode.appendChild(A)}h.length>0&&this._isDefaultSelectorEnabled()&&this._createTableBodyDefaultSelector(t.key,o)}else h.length>0&&this._isDefaultSelectorEnabled()&&this._createTableBodyDefaultSelector(t.key,o),this._tableBodyRowDefaultRenderer(e,t,d);return this._hasEditableRow()&&this._getEditableRowIdx()===e?o.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS):o.classList.remove(v.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS),o["oj-table-oj-row-item"]=t,o},v.prototype._finalizeBodyRowRendering=function(e){return this._waitForAllBodyElementsToResolve(e).then(function(){var t=this._hasEditableRow()?this._getEditableRowKey():null;return e.forEach(function(e){var o=this._getRowKey(e);null!=t&&h.KeyUtils.equals(o,t)||f.disableAllFocusableElements(e)}.bind(this)),Promise.resolve(!0)}.bind(this))},v.prototype._finalizeRowRendering=function(e){return this._waitForAllElementsToResolve(e).then(function(){return e.forEach(function(e){f.disableAllFocusableElements(e)}),Promise.resolve(!0)})},v.prototype._waitForAllBodyElementsToResolve=function(e){return e.length>0&&this._hasRowOrCellRendererOrTemplate()?this._waitForAllElementsToResolve(e):Promise.resolve()},v.prototype._waitForAllElementsToResolve=function(e){var t=[];return e.forEach(function(e){e&&t.push(C.getContext(e).getBusyContext().whenReady())}),Promise.all(t)},v.prototype._refreshRow=function(e,t){var o=this._getData();if(!o)return Promise.resolve(!1);var l=this._getTableBodyRows();if(isNaN(e)||e<0||e>=l.length||0===l.length){var i=v._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,n=T.applyParameters(v._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(i+"\n"+n)}var s=this._getRowKeyForRowIdx(e);return this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROW_REFRESH),o.fetchByKeys({keys:new Set([s])}).then(function(o){if(null==o||null==o.results||0===o.results.size)return Promise.resolve(!1);var l=this._getTableBodyRow(e);t=t&&u.contains(l,document.activeElement);var i=o.results.get(s);return this._refreshTableBodyRow(e,{data:i.data,metadata:i.metadata,index:e,key:s}),t&&this._getTable().focus(),(l=this._getTableBodyRow(e))?this._finalizeBodyRowRendering([l]):Promise.resolve(!0)}.bind(this))}.bind(this))},v.prototype._refreshTableStatusMessage=function(){var e=this._getTableStatusMessage();null!=e&&u(e).remove(),this._createTableStatusMessage()},v.prototype._showStatusMessage=function(){if(!this._showStatusTimeout){var e=this._getTableTempSkeletonRow();this._statusMessageShown||e||(this._showStatusTimeout=setTimeout(function(){this._refreshTableStatusPosition(!0),this._showStatusTimeout=null}.bind(this),this._getShowStatusDelay()),this._isSkeletonSupport()&&!this._isPagingModelDataProvider()&&this._removeAllTableBodyRows())}},v.prototype._showProgressiveLoading=function(){if(this._isSkeletonSupport()){var e=this._getTableBodyRows(),t=this._getTableTempSkeletonRow();if(null!=e&&e.length>0&&!t){(t=this._createTableBodyRow()).classList.add(v.CSS_CLASSES._TABLE_TEMP_SKELETON_ROW_CLASS);var o=this._createTableBodyCell(),l=this._getColumnDefs().length;o.colSpan=this._isDefaultSelectorEnabled()?l+1:l;for(var i=0;i<3;i++)o.appendChild(this._createSkeletonRow());t.appendChild(o),this._getTableBody().appendChild(t),this._skeletonHWMSFadeInEndListener=function(){t.classList.remove("oj-animation-skeleton-fade-in"),t.querySelectorAll(".oj-table-skeleton-row").forEach(function(e){e.classList.add("oj-animation-skeleton")}),t.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)}.bind(this),t.addEventListener("animationend",this._skeletonHWMSFadeInEndListener),t.classList.add("oj-animation-skeleton-fade-in")}}},v.prototype._hideStatusMessage=function(){this._clearShowStatusTimeout();var e=this._getTableTempSkeletonRow();if(this._statusMessageShown||e){var t=this._getTableStatusMessage();if(t.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE,this._isSkeletonSupport())if(e)this._getTableBody().removeChild(e);else for(var o=t.childNodes,l=o.length;l>0;l--)t.removeChild(o[l-1]);this._statusMessageShown=!1}},v.prototype._isStatusMessageShown=function(){return this._statusMessageShown},v.prototype._getDefaultOptions=function(){return null==this._defaultOptions&&(this._defaultOptions=p.parseJSONFromFontFamily("oj-table-option-defaults")||{}),this._defaultOptions},v.prototype._getShowStatusDelay=function(){var e=parseInt(this._getDefaultOptions().showIndicatorDelay,10);return isNaN(e)?0:e},v.prototype._isSkeletonSupport=function(){return"skeleton"===this._getDefaultOptions().loadIndicator},v.prototype._showNoDataMessage=function(){if(!this._noDataMessageShown){var e=this._getTableBodyMessageRow(),t=this._getData(),o=this._getSlotTemplate("noData");if(this._isDefaultTemplateSlotValid("noData")&&null!==o){var l=this._getTable(),i=this._getTableBody();l.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var n=document.createElement(v.DOM_ELEMENT._TR);n.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS),this._getTableContainer().classList.contains(v.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)&&n.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS),i.appendChild(n);var s=document.createElement(v.DOM_ELEMENT._TD),a=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(a+=1),s.setAttribute(v.DOM_ATTR._COLSPAN,a),n.appendChild(s);var r=this._getTemplateEngine();if(null!=r)r.execute(this._getRootElement(),o,{},null).forEach(function(e){s.appendChild(e)})}else{var _=null;_=null!=this.options.emptyText?this.options.emptyText:this.getTranslatedString(v._BUNDLE_KEY._MSG_NO_DATA);var d=null!=t?_:this.getTranslatedString(v._BUNDLE_KEY._MSG_INITIALIZING);null==e?this._createTableBodyMessageRow(this._getColumnDefs().length,d):this._setTableBodyMessage(d)}this._noDataMessageShown=!0}},v.prototype._hideNoDataMessage=function(){if(this._noDataMessageShown){var e=this._getTableBodyMessageRow();if(null!=e)u(e).remove();else{var t=this._getTable();if(t.classList.contains(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS)){t.classList.remove(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var o=t.querySelector("tr."+v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);null!=o&&(this._cleanTemplateNodes(o),u(o).remove())}}this._noDataMessageShown=!1}},v.prototype._handleContextMenuResizePopup=function(){var e,t=document.getElementById(this._getTableId()+"_resize_popup_spinner"),o=this._getContextMenuResizePopup(),l=parseInt(o.getAttribute("data-oj-columnIdx"),10);this._IsCustomElement()?(e=t.value,o.close()):(e=u(t).ojInputNumber("option","value"),u(o).ojPopup("close"));for(var i=[],n=this.options.columns.length,s=0;s<n;s++)i[s]=u.extend({},{},this.options.columns[s]);var a=this._getLayoutManager().getMinimumForcedOffsetWidth(l);i[l].width=Math.max(e,a),this.option("columns",i,{_context:{writeback:!0,internalSet:!0}}),this._clearCachedMetadata(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._COL_RESIZE),setTimeout(function(){this._getTable().focus()}.bind(this),0)}.bind(this))},v.prototype._handleContextMenuSelect=function(e,t){var o,l=(o=t?t.item:u(e.target)).attr("data-oj-command"),i=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);i=null==i?this._contextMenuEventHeaderColumn:i;var n=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0),s=null;if(null!=i&&(s=this._getElementColumnIdx(i)),null!=n&&(s=this._getElementColumnIdx(n)),null!==s)if("oj-table-sortAsc"===l)this._handleSortTableHeaderColumn(s,!0,e);else if("oj-table-sortDsc"===l)this._handleSortTableHeaderColumn(s,!1,e);else if("oj-table-enableNonContiguousSelection"===l)this._nonContiguousSelection=!0,this._removeTableBodyRowTouchSelectionAffordance(),o.attr("data-oj-command","oj-table-disableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelDisableNonContiguousSelection"));else if("oj-table-disableNonContiguousSelection"===l)this._nonContiguousSelection=!1,o.attr("data-oj-command","oj-table-enableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelEnableNonContiguousSelection"));else if("oj-table-resize"===l){var a=this._getContextMenuResizePopup();a.setAttribute("data-oj-columnIdx",s);var r,_=i||n,d=this._getLayoutManager().getColumnWidthProperty(_);r=null!=i?i:null!=n?n:this._getTable();var h=document.getElementById(this._getTableId()+"_resize_popup_spinner");this._IsCustomElement()?(h.value=Math.round(d),a.open(r)):(u(h).ojInputNumber("option","value",Math.round(d)),u(a).ojPopup("open",r))}},v.prototype._registerResizeListener=function(){var e=this._getTableContainer();this._resizeListener||(this._resizeListener=function(){var e=this._getLayoutManager(),t=this._getTableContainer();e.isSizingRefreshRequired(t.offsetWidth,t.offsetHeight)&&(e.notifyTableUpdate(v._UPDATE._RESIZE),this._hasPendingTasks()||this._syncTableSizing(!0))}.bind(this)),this._isResizeListenerAdded||(c.addResizeListener(e,this._resizeListener,50),this._isResizeListenerAdded=!0)},v.prototype._unregisterResizeListener=function(){var e=this._getTableContainer();c.removeResizeListener(e,this._resizeListener),this._isResizeListenerAdded=!1},v.prototype._unregisterChildStateListeners=function(e){for(var t=e.querySelectorAll("*"),o=0;o<t.length;o++)this._UnregisterChildNode(t[o])},v.prototype._isLoadMoreOnScroll=function(){return this.options.scrollPolicy===v._OPTION_SCROLL_POLICY._AUTO?!(this._data instanceof h.TableDataSourceAdapter):this.options.scrollPolicy!==v._OPTION_SCROLL_POLICY._LOAD_ALL},v.prototype._isTableHeaderless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var l=this._getSlotTemplate(e[o][v._HEADER_TEMPLATE]);if(null!=e[o].headerText||null!=e[o].headerStyle||null!=e[o].sortable&&e[o].sortable!==v._OPTION_DISABLED||null!=e[o].sortProperty||null!=e[o].headerRenderer||null!=l)return!1}if(this._isDefaultHeaderTemplateSlotValid()&&null!=this._getSlotTemplate("headerTemplate"))return!1;return!0},v.prototype._isTableFooterless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var l=this._getColumnRenderer(o,"footer"),i=this._getSlotTemplate(e[o][v._FOOTER_TEMPLATE]);if(null!=l)return!1;if(null!=i)return!1}if(this._isDefaultFooterTemplateSlotValid()&&null!=this._getSlotTemplate("footerTemplate"))return!1;return!0},v.prototype._isTableHeaderColumnsRendered=function(){return!0===this._renderedTableHeaderColumns},v.prototype._isTableRefreshNeeded=function(e,t){var o=this._cachedOptions,l=!1;return"contextMenu"===e&&t==="#"+this._getTableId()+"_contextmenu"?l=!1:"columns"!==e||this._isColumnMetadataUpdated()?"scrollToKey"===e?l=!1:"selection"===e||"currentRow"===e||h.Object.compareValues(t,o[e])||(l=!0):l=!1,this._cachedOptions=u.extend(!0,{},this.options),l},v.prototype._isTableSortable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].sortable===v._OPTION_ENABLED)return!0;return!1},v.prototype._isTableColumnsResizable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].resizable===v._OPTION_ENABLED)return!0;return!1},v.prototype._isTouchDevice=function(){return null==this._isTouch&&(this._isTouch=f.isMobileTouchDevice()),this._isTouch},v.prototype._processSlottedChildren=function(){var e=this._getTableBottomSlot();null!=e&&u(e).remove();for(var t=A.CustomElementUtils.getSlotMap(this._getRootElement()),o=Object.keys(t),l=0;l<o.length;l++){var i=o[l];if("bottom"===i){var n=t[i];if(null!=n){e=this._createTableBottomSlot();for(var s=0;s<n.length;s++)e.appendChild(n[s])}}}},v.prototype._handleSortTableHeaderColumn=function(e,t,o){this._clearSortedHeaderColumn(e);var l=this._getColumnDefs()[e],i=null==l.sortProperty?l.field:l.sortProperty;this._invokeDataSort(i,t,o),this._sortColumn=l,this._refreshSortTableHeaderColumn(i,t)},v.prototype._processFetchSort=function(e){try{var t=e.fetchParameters,o=this._getColumnDefs(),l=t[v._CONST_SORTCRITERIA];if(null!=l&&l.length>0){var i=l[0].attribute,n=l[0].direction===v._COLUMN_SORT_ORDER._ASCENDING;this._refreshSortTableHeaderColumn(i,n),this._setCurrentRow(this.options.currentRow,null,!1);for(var s=null,a=o.length,r=0;r<a;r++){var _=o[r];if(i===(null==_.sortProperty?_.field:_.sortProperty)){s=r;break}}null!=s&&setTimeout(function(){this._scrollColumnIntoViewport(s)}.bind(this),0)}else this._clearSortedHeaderColumn()}catch(e){S.error(e)}},v.prototype._handleMouseEnterColumnHeader=function(e){if(e){e.classList.add(v.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);(e.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS)||e.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)||e.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS))&&e.classList.add(v.MARKER_STYLE_CLASSES._HOVER),this._showTableHeaderColumnSortIcon(t)}},v.prototype._handleMouseLeaveColumnHeader=function(e){if(e){e.classList.remove(v.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);this._hideTableHeaderColumnSortIcon(t)}},v.prototype._showTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===v._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(!t)return;if(null==u(t).data("sorted")){var o=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=o&&null!=l&&(l.classList.remove(v.MARKER_STYLE_CLASSES._DISABLED),l.classList.add(v.MARKER_STYLE_CLASSES._ENABLED),l.classList.add(v.MARKER_STYLE_CLASSES._DEFAULT))}}},v.prototype._hideTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===v._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(null==u(t).data("sorted")){var o=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=o&&null!=l&&(o.setAttribute("title",this.getTranslatedString("labelSortAsc")),l.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),l.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),l.classList.add(v.MARKER_STYLE_CLASSES._DISABLED),l.classList.remove(v.MARKER_STYLE_CLASSES._ENABLED),l.classList.remove(v.MARKER_STYLE_CLASSES._DEFAULT))}}},v.prototype._refreshSortTableHeaderColumn=function(e,t){for(var o,l=this._getColumnDefs(),i=null,n=l.length,s=0;s<n;s++){var a=l[s];if(e===(null==a.sortProperty?a.field:a.sortProperty)){i=s;break}}if(null!=i){this._clearSortedHeaderColumn(i);var r=this._getTableHeaderColumn(i);if(null!=r){var _=u(r).data("sorted"),d=this._getSortIconContainer(r);null!=(o=this._getSortIcon(r))&&(o.classList.add(v.MARKER_STYLE_CLASSES._DEFAULT),o.classList.remove(v.MARKER_STYLE_CLASSES._DISABLED)),t&&_!==v._COLUMN_SORT_ORDER._ASCENDING?(u(r).data("sorted",v._COLUMN_SORT_ORDER._ASCENDING),null!=o&&(d.setAttribute("title",this.getTranslatedString("labelSortDsc")),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS))):t||_===v._COLUMN_SORT_ORDER._DESCENDING||(u(r).data("sorted",v._COLUMN_SORT_ORDER._DESCENDING),null!=o&&(d.setAttribute("title",this.getTranslatedString("labelSortAsc")),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)))}}},v.prototype._getSortedTableHeaderColumnIdx=function(){for(var e=this._getTableHeaderColumns(),t=e?e.length:0,o=0;o<t;o++){if(null!=u(e[o]).data("sorted"))return o}return null},v.prototype._clearSortedHeaderColumn=function(e){var t=this._getSortedTableHeaderColumnIdx();if(null!=t){var o=this._getTableHeaderColumn(t);if(u(o).data("sorted",null),null==e||t!==e)this._hideTableHeaderColumnSortIcon(t);else{var l=this._getSortIcon(o);null!=l&&l.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)}}},v.prototype._getColumnDefs=function(){return this._columnDefArray||(this._columnDefArray=this._getColumnMetadata()),this._columnDefArray},v.prototype._getColumnMetadata=function(){var e,t=this.options.columns,o=this.options.columnsDefault;if((0===t.length||1===t.length&&null==t[0].id&&null==t[0].headerText&&null==t[0].field)&&null==o.headerText&&null==o.field)return[];var l=[],i=t.length;for(e=0;e<i;e++)l[e]=u.extend({},o,t[e]);var n=[],s=l.length;for(e=0;e<s;e++)n.push(l[e]);var a=this._getData(),r=!1;for(null!=a&&null!=a.getCapability("sort")&&(r=!0),e=0;e<s;e++)null==n[e][v._FIELD_ID]&&(n[e][v._FIELD_ID]=v._COLUMN_HEADER_ID_PREFIX+e),!r||null!=n[e].sortable&&n[e].sortable!==v._OPTION_AUTO||(n[e].sortable=v._OPTION_ENABLED);return n},v.prototype._getColumnRenderer=function(e,t){var o=this._getColumnDefs()[e],l=null;return"cell"===t?l=o.renderer:"footer"===t?l=o.footerRenderer:"header"===t&&(l=o.headerRenderer),this._WrapCustomElementRenderer(l)},v.prototype._getRowRenderer=function(){return this._WrapCustomElementRenderer(this.options.rowRenderer)},v.prototype._isOverflow=function(){return this._isLoadMoreOnScroll()&&this._domScroller&&this._domScroller.isOverflow()},v.prototype._registerDomScroller=function(){this._unregisterDomScroller(),this._domScrollerSuccessFunc=function(e){if(this._clearDataWaitingState(),null!=e)if(this._noMoreData=!1,e.maxCountLimit)this._noMoreData=!0,this._handleScrollerMaxRowCount(),this._syncScrollPosition();else{var t,o=e[v._CONST_VALUE],l=o[v._CONST_DATA],i=o.metadata.map(function(e){return e[v._CONST_KEY]}),n=o[v._CONST_METADATA];for(t=i.length-1;t>=0;t--)null!==this._getRowIdxForRowKey(i[t])&&(l.splice(t,1),i.splice(t,1),n.splice(t,1));l.length>0?this._queueTask(function(){var o=this._getLayoutManager();o.notifyTableUpdate(v._UPDATE._ROWS_ADDED);var s=this._getTableBodyRows().length,a=[];for(t=0;t<l.length;t++)a[t]=s+t;return this._refreshTableBody({isMouseWheel:e.isMouseWheel,data:l,keys:i,metadata:n,indexes:a},s,!0).then(function(){o.clearCachedDimensions(),e.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}.bind(this))}.bind(this)):e.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}else this._syncScrollPosition()}.bind(this);var e=this._getTableBodyRows().length;this._requiresDomScrollerRefresh=!1,this._domScroller=new b(this._getLayoutManager().getScroller(),this._getData(),{asyncIterator:this._dataProviderAsyncIterator,fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,initialRowCount:e,success:this._domScrollerSuccessFunc.bind(this),request:this._handleDataFetchStart.bind(this),localKeyValidator:function(e){return null!==this._findRowElementByKey(e)}.bind(this),beforeFetch:function(e){return null==this._idleCallback&&(this._fetchBySyncScroll=Math.abs(this._scrollY-e)<=1,this._setDataWaitingState(!1),this._showProgressiveLoading(),!0)}.bind(this),beforeScroll:this._clearScrollPosBusyState.bind(this),fetchTrigger:2})},v.prototype._unregisterDomScroller=function(){null!=this._domScroller&&(this._domScroller.destroy(),this._domScroller=null)},v.prototype._handleScrollerMaxRowCount=function(){var e=this.getTranslatedString("msgScrollPolicyMaxCountSummary"),t=this.getTranslatedString("msgScrollPolicyMaxCountDetail");S.warn(e+"\n"+t)},v.prototype._clearIdleCallback=function(){null!=this._idleCallback&&(window.requestIdleCallback&&window.cancelIdleCallback?(window.cancelIdleCallback(this._idleCallback),window.cancelAnimationFrame(this._idleCallback)):window.cancelAnimationFrame(this._idleCallback),this._idleCallback=null)},v.prototype._requestIdleCallback=function(e,t){if(!e&&window.requestIdleCallback&&window.cancelIdleCallback){var o=window.setTimeout(function(){this._idleCallback=window.requestAnimationFrame(function(){t()}),o=null},250);this._idleCallback=window.requestIdleCallback(function(e){null!=o&&(window.clearTimeout(o),t(e))})}else this._idleCallback=window.requestAnimationFrame(function(){t()})},v.prototype._renderRowsWhenIdle=function(e,t,o,l,i,n){if(0===e.length)return this._idleCallback=null,void this._afterRowsRendered(t).then(function(e){l(e)},function(e){i(e)});var s,a=this,r=0;function _(){window.requestAnimationFrame(function(){a._getLayoutManager().handleAfterRowsProcessed(s),t.appendChild(s),a._renderRowsWhenIdle(e,t,o+r,l,i,n),n&&h.AgentUtils.getAgentInfo().browser===h.AgentUtils.BROWSER.FIREFOX&&t.scrollTop!==a._scrollTop&&(t.scrollTop=a._scrollTop)})}this._requestIdleCallback(n,function(l){void 0===l?function(){s=document.createDocumentFragment();for(var l=0;l<v._BATCH_PROCESS_SIZE_WHEN_IDLE&&0!==e.length;l++)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[v.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1;_()}():function(l){var i=l.timeRemaining(),n=0;for(s=document.createDocumentFragment();i>n&&0!==e.length;)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[v.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1,n=i-l.timeRemaining(),i=l.timeRemaining();_()}(l)})},v.prototype._renderRow=function(e,t,o){var l=e.row,i=e.rowIdx;if(null!=l){var n=this._createTableBodyRow();n["oj-table-oj-row-item"]=l,this._styleTableBodyRow(n,!0),this._insertTableBodyRow(i,n,l,t),this._refreshTableBodyRow(i,l,n,t,o)}},v.prototype._afterRowsRendered=function(e){this._clearCachedDomRowData(),this._clearIdleRenderBusyState(),this._hasRowOrCellRendererOrTemplate()&&g.subtreeAttached(e);var t=this._getTableBodyRows();return t.length>0?this._finalizeBodyRowRendering(t).then(function(){return isNaN(this._rowHeight)&&e.rows.length>1&&(this._rowHeight=e.rows[1].offsetHeight),Promise.resolve(!0)}.bind(this)):Promise.resolve(!0)},v.prototype._getRowIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var l=t.length,i=0;i<l;i++){for(var n=this._getElementRowIdx(t[i]),s=!1,a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},v.prototype._getColumnIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var l=t.length,i=0;i<l;i++){var n=this._getElementColumnIdx(t[i]),s=!1;null===n&&(t[i].classList.contains(v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)||t[i].classList.contains(v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))&&(n=-1);for(var a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},v.prototype._syncTableSizing=function(e){var t=this._getLayoutManager();t.isTableLayoutRefreshRequired()&&(e||t.isSizingRefreshRequired())&&t.refreshTableDimensions(),this._isLoadMoreOnScroll()&&!this._dataFetching&&this._domScroller?(this._setDataWaitingState(!1),this._domScroller.checkViewport().then(this._domScrollerSuccessFunc,this._checkViewportRejected.bind(this))):this._syncScrollPosition()},v.prototype._addSingleTableBodyRow=function(e,t,o,l){var i=this._createTableBodyRow();return i["oj-table-oj-row-item"]=t,this._styleTableBodyRow(i,!0),this._insertTableBodyRow(e,i,t,o),i=this._refreshTableBodyRow(e,t,i,o,l),u(i).data("rowKey",t.metadata.key),o||g.subtreeAttached(i),i},v.prototype._animateVisibleRows=function(e,t,o){if(o=null==this._animationActionOverride?o:this._animationActionOverride,!this._hasAdditionalPendingTasks()){this._animationActionOverride=null;var l,i=this._getVisibleRowIdxs(),n=[];for(l=0;l<t.length;l++)-1===i.indexOf(t[l])&&n.push(t[l]);for(n.sort(function(e,t){return e-t}),l=n.length-1;l>=0;l--)e.splice(n[l],1);return this._unregisterResizeListener(),this._animateTableBodyRows(e,o).then(function(){this._registerResizeListener()}.bind(this))}return this._animationActionOverride="update",Promise.resolve()},v.prototype._cleanTemplateNodes=function(e){var t=this._getTemplateEngine();null!=t&&t.clean(e)},v.prototype._clearCachedMetadata=function(){this._columnDefArray=null,this._columnOffsets=null,this._setTableActionableMode(!1)},v.prototype._getSlotTemplate=function(e){if(this._IsCustomElement()&&e){var t=A.CustomElementUtils.getSlotMap(this._getRootElement())[e];if(t&&t.length>0&&"template"===t[0].tagName.toLowerCase())return t[0]}return null},v.prototype._isDefaultCellTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("cellTemplate")},v.prototype._isDefaultRowTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("rowTemplate")},v.prototype._isDefaultHeaderTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("headerTemplate")},v.prototype._isDefaultFooterTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("footerTemplate")},v.prototype._isDefaultTemplateSlotValid=function(e){for(var t=this._getColumnDefs(),o=t.length,l=0;l<o;l++){var i=t[l][v._CELL_TEMPLATE],n=t[l][v._HEADER_TEMPLATE],s=t[l][v._FOOTER_TEMPLATE];if(e===i||e===n||e===s)return!1}return!0},v.prototype._getTemplateEngine=function(){return this._templateEngine},v.prototype._getVisibleRowIdxs=function(){var e=[],t=this._getTableBody(),o=this._getTableBodyRows();if(o.length>0&&t.offsetHeight>0){var l=u(window).height(),i=t.getBoundingClientRect();if(i.top>l)return e;var n=i.left>=0?i.left+1:i.right-1,s=i.top>=0?i.top:0,a=document.elementFromPoint(n,s),r=null;null!=a&&(r=this._getElementRowIdx(a));var _,d,h=null!=r?r:0;if(i.bottom>l)r=null,null!=(d=document.elementFromPoint(n,l-1))&&(_=this._getElementRowIdx(d));else{var c=parseInt(window.getComputedStyle(t).borderBottomWidth,10)||0,S=i.bottom>=0?i.bottom-c-1:0;null!=(d=document.elementFromPoint(n,S))&&(_=this._getElementRowIdx(d))}null==_&&(_=o.length-1);for(var C=h;C<=_;C++)e.push(C)}return e},v.prototype._hasRowOrCellRendererOrTemplate=function(e){if(null!=this._getRowRenderer())return!0;var t=null,o=null,l=this._getColumnDefs();if(null!=e)t=this._getColumnRenderer(e,"cell"),o=this._getSlotTemplate(l[e][v._CELL_TEMPLATE]);else for(var i=l.length,n=0;n<i&&null==(t=this._getColumnRenderer(n,"cell"))&&null==(o=this._getSlotTemplate(l[n][v._CELL_TEMPLATE]));n++);if(null!=t||null!=o)return!0;if(this._isDefaultRowTemplateSlotValid()&&null!=this._getSlotTemplate("rowTemplate"))return!0;if(this._isDefaultCellTemplateSlotValid()&&null!=this._getSlotTemplate("cellTemplate"))return!0;return!1},v.prototype._initFetch=function(e,t){var o=e||{},l=this._getData(),i=this._getLayoutManager();return null==l||!h.DataProviderFeatureChecker.isDataProvider(l)||this._isPagingModelDataProvider()&&!t?null==l?this._queueTask(function(){return i.notifyTableUpdate(t?v._UPDATE._DATA_SORT:v._UPDATE._REFRESH),Promise.resolve()}):void 0:this._queueTask(function(){return i.notifyTableUpdate(t?v._UPDATE._DATA_SORT:v._UPDATE._REFRESH),this._scrollTop=0,i.getScroller().scrollTop=0,l instanceof h.TableDataSourceAdapter&&(o.fetchType="init",this._isLoadMoreOnScroll()&&(o[v._CONST_OFFSET]=0)),this._invokeDataFetchRows(o)}.bind(this))},v.prototype._initTemplateEngine=function(){this._queueTask(function(){var e;try{e=E.__getTemplateEngine().then(function(e){this._templateEngine=e}.bind(this),function(e){S.warn(e)})}catch(t){S.warn(t),e=Promise.resolve(null)}return e}.bind(this))},v.prototype._initializeFetchFirstOptions=function(e){var t=e||{};return this._clientId=this._clientId||Symbol(),t[v._CONST_CLIENTID]=this._clientId,!t[v._CONST_PAGESIZE]&&this._isLoadMoreOnScroll()?t[v._CONST_PAGESIZE]=this.options.scrollPolicyOptions.fetchSize:t[v._CONST_PAGESIZE]=-1,t[v._CONST_SILENT]=!0,t},v.prototype._containsKey=function(e,t){for(var o=0;o<t.length;o++)if(h.KeyUtils.equals(t[o].key,e))return!0;return!1},v.prototype._invokeDataFetchRows=function(e){var t=this._initializeFetchFirstOptions(e),o=this._getData();return null!=o?new Promise(function(e){this._noMoreData=!1,this._setDataWaitingState(),this._dataProviderAsyncIterator=o.fetchFirst(t)[Symbol.asyncIterator]();var l=function(e,i,n){var s=n;return(null==n||this._containsKey(n,i))&&(s=null),null!=s||!e.done&&-1===t[v._CONST_PAGESIZE]&&"function"!=typeof o.getPageCount?this._dataProviderAsyncIterator.next().then(function(t){return e.done=t.done,e.value.data=e.value.data.concat(t.value.data),e.value.metadata=e.value.metadata.concat(t.value.metadata),l(e,t.value.metadata,s)}):e}.bind(this),i=this._getScrollToKey(),n=this._dataProviderAsyncIterator.next();Promise.all([n,i]).then(function(e){var t=e[0],o=e[1];return l(t,t[v._CONST_VALUE].metadata,o)}).then(function(t){var l=t[v._CONST_VALUE],i=l[v._CONST_DATA],n=l.metadata.map(function(e){return e[v._CONST_KEY]}),s=0;o instanceof h.TableDataSourceAdapter&&(s=o[v._CONST_OFFSET]);var a=0;this._isPagingModelDataProvider()&&(a=o.getStartItemIndex());for(var r=[],_=i.length,d=0;d<_;d++)r[d]=s+a+d;var u=l[v._CONST_METADATA];this._unregisterDomScroller(),t.maxCountLimit?(this._noMoreData=!0,this._handleScrollerMaxRowCount()):t.done&&(this._noMoreData=!0),this._refreshAll({data:i,metadata:u,keys:n,indexes:r},s).then(function(){this._clearDataWaitingState(),this._processFetchSort(l),this._isLoadMoreOnScroll()&&this._registerDomScroller(),e(t)}.bind(this))}.bind(this),function(){this._clearDataWaitingState(),0===this._getTableBodyRows().length&&this._showNoDataMessage(),e(null)}.bind(this))}.bind(this)):Promise.resolve(null)},v.prototype._invokeDataSort=function(e,t,o){if(this._resetAriaLabel=!0,this._getData()){var l=[],i={};i[v._CONST_ATTRIBUTE]=e,i.direction=t?v._COLUMN_SORT_ORDER._ASCENDING:v._COLUMN_SORT_ORDER._DESCENDING,l.push(i),this._trigger("sort",o,{header:l[0][v._CONST_ATTRIBUTE],direction:l[0].direction}),this._beforeDataRefresh(),this._showStatusMessage(),this._initFetch({sortCriteria:l},!0)}},v.prototype._isColumnMetadataUpdated=function(){if(null!=this._columnDefArray){var e=this._getColumnMetadata();if(this._columnDefArray.length!==e.length)return!0;for(var t=e.length,o=0;o<t;o++)for(var l=Object.keys(e[o]),i=0;i<l.length;i++){var n=l[i];if(e[o][n]!==this._columnDefArray[o][n]&&("id"!==n||null==e[o][n]||0!==e[o][n].indexOf(v._COLUMN_HEADER_ID_PREFIX)||null==this._columnDefArray[o][n]||0!==this._columnDefArray[o][n].indexOf(v._COLUMN_HEADER_ID_PREFIX)))return!0}return!1}return!0},v.prototype._getColumnKeys=function(){for(var e=[],t=this._getColumnDefs(),o=0;o<t.length;o++)e.push(t[o][v._FIELD_ID]);return e},v.prototype._getLocalRowKeys=function(){for(var e=[],t=this._getTableBodyRows(),o=0;o<t.length;o++)e.push(u(t[o]).data("rowKey"));return e},v.prototype._hasMoreToFetch=function(){return!!this._isLoadMoreOnScroll()&&!this._noMoreData},v.prototype._clearCachedDataMetadata=function(){null!=this._data&&this._unregisterDataSourceEventListeners(),this._data=null},v.prototype._getColumnIdxForColumnKey=function(e){for(var t=this._getColumnDefs(),o=t.length,l=0;l<o;l++){var i=t[l];if(h.KeyUtils.equals(i.id,e))return l}return null},v.prototype._getColumnKeyForColumnIdx=function(e){var t=this._getColumnDefs();return e<t.length?t[e][v._FIELD_ID]:null},v.prototype._getRowIdxRowArray=function(e,t){var o=[];if(null!=e)for(var l=e[v._CONST_INDEXES].length,i=0;i<l;i++)o.push({row:{data:e[v._CONST_DATA][i],metadata:e[v._CONST_METADATA]?e[v._CONST_METADATA][i]:null,key:e[v._CONST_KEYS][i],index:e[v._CONST_INDEXES][i]},rowIdx:t+i});return o},v.prototype._getRowIdxForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,l=0;l<o;l++)if(h.KeyUtils.equals(u(t[l]).data("rowKey"),e))return l;return null},v.prototype._getDataSourceRowIndexForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,l=0;l<o;l++)if(h.KeyUtils.equals(u(t[l]).data("rowKey"),e)){var i=this._getData(),n=0;return this._isPagingModelDataProvider()&&(n=i.getStartItemIndex()),l+n}return null},v.prototype._getRowKeyForDataSourceRowIndex=function(e){var t=this._getTableBodyRows();if(t.length>0){var o=this._getData(),l=0;this._isPagingModelDataProvider()&&(l=o.getStartItemIndex());for(var i=t.length,n=0;n<i;n++)if(l+n===e)return u(t[n]).data("rowKey")}return null},v.prototype._getRowKeyForRowIdx=function(e){var t=this._getTableBodyRow(e);return null!=t?u(t).data("rowKey"):null},v.prototype._getRowKey=function(e,t){return null==e&&(e=this._getTableBodyRow(t)),null!=e?u(e).data("rowKey"):null},v.prototype._isPagingModelDataProvider=function(){var e=this._getData();return null!=e.getStartItemIndex&&null!==e.getStartItemIndex()&&e.getStartItemIndex()>=0},v.prototype._animateTableBodyRow=function(e,t){return this._isAnimationDisabled(t)?Promise.resolve(!1):new Promise(function(o){this._startAnimation(e,t).then(function(){o(!0)})}.bind(this))},v.prototype._animateTableBodyRows=function(e,t){if(this._isAnimationDisabled(t))return Promise.resolve(!1);for(var o=[],l=0;l<e.length;l++){var i=e[l];o.push(function(e){return this._animateTableBodyRow(e,t)}.bind(this)(i))}return o.length>0?Promise.all(o):Promise.resolve(!1)},v.prototype._getAnimationEffect=function(e){return null==this.defaultAnimations&&(this.defaultAnimations=this._getDefaultOptions().animation||{}),this.defaultAnimations[e]},v.prototype._isAnimationDisabled=function(e){var t=this._getAnimationEffect(e);return null==t||0===t.length},v.prototype._startAnimation=function(e,t,o){return null==o&&(o=this._getAnimationEffect(t)),m.startAnimation(e,t,o,this)};
|
|
30
|
+
const v=function(){};v._BUNDLE_KEY={_MSG_FETCHING_DATA:"msgFetchingData",_MSG_NO_DATA:"msgNoData",_MSG_INITIALIZING:"msgInitializing",_MSG_STATUS_SORT_ASC:"msgStatusSortAscending",_MSG_STATUS_SORT_DSC:"msgStatusSortDescending",_LABEL_SELECT_COLUMN:"labelSelectColumn",_LABEL_SELECT_ROW:"labelSelectRow",_LABEL_EDIT_ROW:"labelEditRow",_LABEL_SELECT_AND_EDIT_ROW:"labelSelectAndEditRow"},v._LOGGER_MSG={_ERR_PRECURRENTROW_ERROR_SUMMARY:"Did not change current row due to error.",_ERR_PRECURRENTROW_ERROR_DETAIL:"Error detail: {error}.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY:"Did not change current row due to unavailable row index.",_ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL:"Unavailable row index: {rowIdx}.",_ERR_REFRESHROW_INVALID_INDEX_SUMMARY:"Invalid row index value.",_ERR_REFRESHROW_INVALID_INDEX_DETAIL:"Row index: {rowIdx}.",_ERR_DATA_INVALID_TYPE_SUMMARY:"Invalid data type.",_ERR_DATA_INVALID_TYPE_DETAIL:"Please specify the appropriate data type.",_ERR_ELEMENT_INVALID_TYPE_SUMMARY:"Invalid element type.",_ERR_ELEMENT_INVALID_TYPE_DETAIL:"Only a <table> element can be specified for ojTable."},v._UPDATE={_DATA_REFRESH:"dataRefresh",_DATA_SORT:"dataSort",_RESIZE:"resize",_REFRESH:"refresh",_COL_REORDER:"colReorder",_COL_RESIZE:"colResize",_ROW_REFRESH:"rowRefresh",_ROWS_ADDED:"rowsAdded",_ROWS_REMOVED:"rowsRemoved"},v._FIELD_ID="id",v._CONST_ATTRIBUTE="attribute",v._CONST_DATA="data",v._CONST_METADATA="metadata",v._CONST_INDEXES="indexes",v._CONST_INDEX="index",v._CONST_KEY="key",v._CONST_KEYS="keys",v._CONST_AFTERKEYS="afterKeys",v._CONST_ADDBEFOREKEYS="addBeforeKeys",v._CONST_CLIENTID="clientId",v._CONST_STARTINDEX="startIndex",v._CONST_ENDINDEX="endIndex",v._CONST_PAGESIZE="size",v._CONST_OFFSET="offset",v._CONST_SILENT="silent",v._CONST_COLUMN="column",v._CONST_ROW="row",v._CONST_VALUE="value",v._CONST_SORTCRITERIA="sortCriteria",v._COLUMN_HEADER_ID="_headerColumn",v._COLUMN_HEADER_TEXT_ID="_headerColumnText",v._COLUMN_HEADER_ASC_ID="_headerColumnAsc",v._COLUMN_HEADER_DSC_ID="_headerColumnDsc",v._COLUMN_HEADER_ID_PREFIX="_hdrCol",v._COLUMN_HEADER_ROW_SELECT_ID="_hdrColRowSel",v._FOCUS_CALLED="_focusedCalled",v._ROW_TEMPLATE="rowTemplate",v._CELL_TEMPLATE="template",v._HEADER_TEMPLATE="headerTemplate",v._FOOTER_TEMPLATE="footerTemplate",v._OPTION_AUTO="auto",v._OPTION_ENABLED="enabled",v._OPTION_DISABLED="disabled",v._OPTION_DISPLAY={_LIST:"list",_GRID:"grid"},v._OPTION_EDIT_MODE={_NONE:"none",_ROW_EDIT:"rowEdit"},v._OPTION_SELECTION_MODES={_SINGLE:"single",_MULTIPLE:"multiple",_NONE:"none"},v._OPTION_SCROLL_POLICY={_AUTO:"auto",_LOADMORE_ON_SCROLL:"loadMoreOnScroll",_LOAD_ALL:"loadAll"},v._COLUMN_SORT_ORDER={_ASCENDING:"ascending",_DESCENDING:"descending"},v._DND_REORDER_TABLE_ID_DATA_KEY="oj-table-dnd-reorder-table-id",v._CURRENT_ROW_STATUS={_UPDATED:"updated",_IGNORED:"ignored",_VETOED:"vetoed",_ERROR:"error"},v._BATCH_PROCESS_SIZE_WHEN_IDLE=5,v.prototype._isStickyLayoutEnabled=function(){return null==this._defaultOptions&&(this._defaultOptions=p.parseJSONFromFontFamily("oj-table-option-defaults")),!0===this._defaultOptions.enableSticky},v.prototype._isFixedLayoutEnabled=function(){return"fixed"===this.options.layout},v.prototype._isTableStretchEnabled=function(){return this._getTableContainer().classList.contains(v.CSS_CLASSES._TABLE_STRETCH_CLASS)},v.prototype._isNodeEditable=function(e){return this._isNodeType(e,/^INPUT|TEXTAREA/)},v.prototype._isNodeClickable=function(e){return this._isNodeType(e,/SELECT|OPTION|BUTTON|^A\b/)},v.prototype._isNodeDraggable=function(e){return null!=this._getFirstAncestor(e,"[draggable='true']",!0)},v.prototype._isNodeType=function(e,t){for(var o=this._getTable();null!=e&&e!==o;){var l=e.nodeName;if(l===v.DOM_ELEMENT._TD||l===v.DOM_ELEMENT._TH)break;if(3!==e.nodeType)if(l.match(t))if(-1!==e.getAttribute(v.DOM_ATTR._TABINDEX))return!0;e=e.parentNode}return!1},v.prototype._handleDataFetchStart=function(){this._setDataWaitingState()},v.prototype._setDataWaitingState=function(e){!1!==e&&(this._showStatusMessage(),this._hideNoDataMessage()),this._dataFetching=!0,this._dataResolveFunc||(this._dataResolveFunc=this._addComponentBusyState("is waiting for data."))},v.prototype._checkViewportRejected=function(){this._animateOnFetch=!1,this._clearDataWaitingState()},v.prototype._clearDataWaitingState=function(){this._pendingFetchStale?(this._pendingFetchStale=!1,this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this))):(this._hideStatusMessage(),this._dataFetching=!1,this._pendingFetchStale=!1,this._dataResolveFunc&&(this._dataResolveFunc(),this._dataResolveFunc=null))},v.prototype._setComponentNotReady=function(){this._readyResolveFunc||(this._readyResolveFunc=this._addComponentBusyState("is being loaded."))},v.prototype._setComponentReady=function(){this._readyResolveFunc&&(this._readyResolveFunc(),this._readyResolveFunc=null)},v.prototype._addComponentBusyState=function(e){var t=C.getContext(this.element[0]).getBusyContext(),o={description:"The component identified by '"+this._getTableId()+"' "+e};return t.addBusyState(o)},v.prototype._createComponentBusyState=function(e){var t=this._addComponentBusyState(e);return null==this._busyStateStack&&(this._busyStateStack=[]),this._busyStateStack.push(t),t},v.prototype._clearComponentBusyState=function(e){if(this._busyStateStack){var t=this._busyStateStack.indexOf(e);-1!==t&&(e(),this._busyStateStack.splice(t,1))}},v.prototype._clearBusyStateStack=function(){if(this._busyStateStack){for(var e=0;e<this._busyStateStack.length;e++)this._busyStateStack[e]();this._busyStateStack=null}},v.prototype._setFocusoutBusyState=function(){this._focusoutResolveFunc||(this._focusoutResolveFunc=this._addComponentBusyState("is handling focusout."))},v.prototype._clearFocusoutBusyState=function(){this._focusoutResolveFunc&&(this._focusoutResolveFunc(),this._focusoutResolveFunc=null)},v.prototype._setIdleRenderBusyState=function(){this._idleRenderResolveFunc||(this._idleRenderResolveFunc=this._addComponentBusyState("is waiting for idle rendering."))},v.prototype._clearIdleRenderBusyState=function(){this._idleRenderResolveFunc&&(this._idleRenderResolveFunc(),this._idleRenderResolveFunc=null)},v.prototype._setScrollPosBusyState=function(){this._scrollPosResolveFunc||(this._scrollPosResolveFunc=this._addComponentBusyState("is handling scroll position."))},v.prototype._clearScrollPosBusyState=function(){this._scrollPosResolveFunc&&(this._scrollPosResolveFunc(),this._scrollPosResolveFunc=null)},v.prototype._clearAllComponentBusyStates=function(){this._clearBusyStateStack(),this._pendingFetchStale=!1,this._clearDataWaitingState(),this._clearFocusoutBusyState(),this._clearIdleRenderBusyState(),this._clearScrollPosBusyState(),this._setComponentReady()},v.prototype._cleanComponent=function(e){this._clearAllComponentTimeouts(),this._clearAllComponentBusyStates(),this._clearIdleCallback(),this._unregisterDomScroller(),e?(u(this._getTableBody()).removeAttr(g._OJ_CONTAINER_ATTR),this.element.children().remove("."+v.CSS_CLASSES._TABLE_HEADER_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_BODY_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_FOOTER_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),this.element.children().remove("."+v.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),c.unwrap(this.element,u(this._getTableContainer())),this.element[0].classList.remove(v.CSS_CLASSES._TABLE_CLASS),this._data instanceof h.TableDataSourceAdapter&&this._data.destroy(),(this._hasHeaderTemplate||this._hasCellTemplate||this._hasFooterTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(this.element[0]),this._componentDestroyed=!0):(this._unregisterDataSourceEventListeners(),this._unregisterResizeListener())},v.prototype._clearAllComponentTimeouts=function(){this._clearFocusoutTimeout(),this._clearShowStatusTimeout()},v.prototype._clearFocusoutTimeout=function(){this._focusoutTimeout&&(clearTimeout(this._focusoutTimeout),this._focusoutTimeout=null)},v.prototype._clearShowStatusTimeout=function(){this._showStatusTimeout&&(clearTimeout(this._showStatusTimeout),this._showStatusTimeout=null)},v.prototype._setFinalTask=function(e){this._finalTask=e?e.bind(this):void 0},v.prototype._hasPendingTasks=function(){return this._taskCount>0},v.prototype._hasAdditionalPendingTasks=function(){return this._taskCount>1},v.prototype._queueTask=function(e){return this._pendingTasks||(this._taskCount=0,this._pendingTasks=Promise.resolve(),this._setComponentNotReady()),this._taskCount+=1,this._pendingTasks=this._pendingTasks.then(function(){if(!this._componentDestroyed)return e.bind(this)()}.bind(this)).then(function(e){if(this._taskCount-=1,0===this._taskCount){this._pendingTasks=void 0;try{this._componentDestroyed||(this._finalTask&&this._finalTask(),this._trigger("ready"))}catch(e){S.error(e)}this._setComponentReady()}return e}.bind(this),function(e){return this._taskCount-=1,0===this._taskCount&&(this._pendingTasks=void 0,S.error(e),this._setComponentReady()),Promise.reject(e)}.bind(this)),this._pendingTasks},v.prototype._draw=function(){if(this._setFinalTask(function(){this._syncTableSizing(),this._initialSelectionStateValidated?this._syncSelectionState():this._validateInitialSelectionState(),this._resetAriaLabel&&null!=this._accRowIndex&&null!=this._accColumnIndex&&this._updateAccStatusInfo(this._accRowIndex,this._accColumnIndex,this._accHeaderIndex,this._accFooterIndex),this._resetAriaLabel=!1}.bind(this)),!this.element.is("table")){var e=v._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_SUMMARY,t=v._LOGGER_MSG._ERR_ELEMENT_INVALID_TYPE_DETAIL;throw new RangeError(e+"\n"+t)}this.element[0].classList.add(v.CSS_CLASSES._TABLE_ELEMENT_CLASS),this.element[0].setAttribute(v.DOM_ATTR._ROLE,"application"),this._createInitialTable(this._isTableHeaderless(),this._isTableFooterless()),this._styleInitialTable(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._REFRESH),this._refreshTableHeader(),this._refreshTableFooter(),this._refreshTableBody(),this._processSlottedChildren()}.bind(this)),this.options.disabled&&this.disable()},v.prototype._refresh=function(){var e=!1;this._dataOption!==this.options[v._CONST_DATA]&&(this._clearCachedDataMetadata(),null==this._data&&(e=!0));var t=this._GetContextMenu();return null!=t&&t!==this._getContextMenuElement()&&this._createContextMenuContainer(),this._clearLayoutManager(),this._clearCachedDom(),this._refreshContextMenu(),this._refreshTableStatusMessage(),this._clearIdleCallback(),e?this._initFetch():this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},v.prototype._refreshAll=function(e,t){var o=[];if((this._isColumnMetadataUpdated()||!this._isTableHeaderColumnsRendered()&&!this._isTableHeaderless())&&(this._clearCachedMetadata(),o.push(this._refreshTableHeader()),null!=this._sortColumn)){for(var l=!1,i=this._getColumnDefs(),n=i.length,s=0;s<n;s++){var a=i[s];if(h.Object.compareValues(a,this._sortColumn)){l=!0;break}}l||this._initFetch(null,!0)}return o.push(this._refreshTableFooter()),o.push(this._refreshTableBody(e,t)),Promise.all(o)},v.prototype._refreshTableHeader=function(){var e,t=this,o=this._getColumnDefs(),l=o.length,i=this._getTableColGroup();if(null!=i){if(u(i).empty(),this._isDefaultSelectorEnabled()){var n=this._createTableSelectorCol();i.appendChild(n)}for(e=0;e<l;e++){var s=this._createTableCol();i.appendChild(s)}}var a=this._getTableHeader();if(!a){if(this._isTableHeaderless())return Promise.resolve();a=this._createTableHeader(),this._styleTableHeader(a)}var r=this._getTableHeaderRow();for(this._unregisterChildStateListeners(r),this._hasHeaderTemplate&&(this._cleanTemplateNodes(r),this._hasHeaderTemplate=!1),u(r).empty(),e=0;e<l;e++){var _=o[e],d=this._getColumnRenderer(e,"header"),h=this._createTableHeaderColumn(e);if(d){var c=this._getRendererContextObject(h,{}),S={headerContext:c,columnIndex:e,data:_.headerText,componentElement:c.componentElement,parentElement:c.parentElement};_.sortable===v._OPTION_ENABLED?S.columnHeaderSortableIconRenderer=function(e,o){t._columnHeaderSortableIconRenderer(this,o)}:S.columnHeaderDefaultRenderer=function(e,o){t._columnHeaderDefaultRenderer(this,o)};var C=d(S);null!=C?(u(h).empty(),u(h).append(C)):(h=u(r).children()[e],this._setTableHeaderColumnAttributes(e,h),this._styleTableHeaderColumn(e,h,!1))}else{var E=this._getSlotTemplate(_[v._HEADER_TEMPLATE]);if(null==E&&this._isDefaultHeaderTemplateSlotValid()&&(E=this._getSlotTemplate("headerTemplate")),E){var T=this._getRootElement(),p=this._getTemplateEngine();if(null!=p){h&&u(h).empty();var g=this._getHeaderSlotTemplateContextObject(_.headerText,e),f=p.execute(T,E,g,this.options.as);f instanceof Array||(f=[f]),f.map(function(e){h.appendChild(e)}),this._hasHeaderTemplate=!0}}}}if(this._isDefaultSelectorEnabled()){var m=this._createTableHeaderSelectorColumn();r.insertBefore(m,r.firstChild)}return this._renderedTableHeaderColumns=!0,this._finalizeRowRendering([r])},v.prototype._refreshTableFooter=function(){var e=this._getColumnDefs(),t=this._getTableFooter();if(!t){if(this._isTableFooterless())return Promise.resolve();t=this._createTableFooter(),this._styleTableFooter(t)}t.style[v.CSS_PROP._VISIBILITY]=v.CSS_VAL._HIDDEN;var o=this._getTableFooterRow();if(this._hasFooterTemplate&&(this._cleanTemplateNodes(o),this._hasFooterTemplate=!1),u(o).empty(),e.length>0){for(var l=this._isDefaultFooterTemplateSlotValid(),i=e.length,n=0;n<i;n++){var s=e[n],a=this._getColumnRenderer(n,"footer"),r=this._createTableFooterCell();if(this._styleTableFooterCell(n,r),this._insertTableFooterCell(n,r),a){var _=this._getRendererContextObject(r,{}),d=a({footerContext:_,columnIndex:n,componentElement:_.componentElement,parentElement:_.parentElement});null!=d?(u(r).empty(),u(r).append(d)):(r=u(o).children()[n],this._setTableFooterColumnAttributes(n,r),this._styleTableFooterCell(n,r))}else{var h=this._getSlotTemplate(s[v._FOOTER_TEMPLATE]);if(null==h&&l&&(h=this._getSlotTemplate("footerTemplate")),h){var c=this._getRootElement(),S=this._getTemplateEngine();if(null!=S){var C=this._getFooterSlotTemplateContextObject(n),E=S.execute(c,h,C,this.options.as);E instanceof Array||(E=[E]),E.map(function(e){r.appendChild(e)}),this._hasFooterTemplate=!0}}}}if(this._isDefaultSelectorEnabled()){var T=this._createTableFooterSelectorCell();o.insertBefore(T,o.firstChild)}}return this._finalizeRowRendering([o])},v.prototype._refreshTableBody=function(e,t,o){var l=this._getTableBody();if(null==l)return Promise.resolve();var i,n,s,a=this._getRowIdxRowArray(e,t),r=u.contains(l,document.activeElement),_=!1;if(this._scrollLeft=void 0===this._scrollLeft?0:this._scrollLeft,this._scrollTop=void 0===this._scrollTop?0:this._scrollTop,0===t)r&&(_=!0),this._removeAllTableBodyRows();else if((i=this._getTableBodyRows()).length>0)for(s=i.length-1;s>=t;s--)r&&null!=(n=this._getTableBodyRow(s))&&u.contains(n,document.activeElement)&&(_=!0,r=!1),this._removeTableBodyRow(s);if(_&&this._getTable().focus(),this._clearCachedDomRowData(),this._hideNoDataMessage(),i=l.children,0!==a.length||0!==i.length){if(t>0&&this._isOverflow()&&!this._fetchBySyncScroll)return new Promise(function(o,i){this._setIdleRenderBusyState(),this._renderRowsWhenIdle(a.slice(0),l,t,o,i,e.isMouseWheel)}.bind(this));var d=this._getLayoutManager(),h=document.createDocumentFragment(),c=a.length;if(this._animateOnFetch&&this._IsCustomElement()){this._animateOnFetch=!1;var S=[],C=[];for(s=0;s<c;s++)C.push(a[s].rowIdx),S.push(this._addSingleTableBodyRow(a[s].rowIdx,a[s].row,h,t));return d.handleAfterRowsProcessed(h),l.appendChild(h),this._clearCachedDomRowData(),this._animateVisibleRows(S,C,"add").then(function(){return this._afterRowsRendered(l)}.bind(this))}for(this._animateOnFetch=!1,o||(l.style[v.CSS_PROP._VISIBILITY]=v.CSS_VAL._HIDDEN),s=0;s<c;s++)this._renderRow(a[s],h,t);return d.handleAfterRowsProcessed(h),l.appendChild(h),this._afterRowsRendered(l)}return this._showNoDataMessage(),Promise.resolve()},v.prototype._isDefaultSelectorEnabled=function(){return null==this._defaultOptions&&(this._defaultOptions=p.parseJSONFromFontFamily("oj-table-option-defaults")),!0===this._defaultOptions.enableSelector&&this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE},v.prototype._refreshTableBodyRow=function(e,t,o,l,i){var n=this._getRowRenderer(),s=this._getTableBody();(isNaN(e)||e<0)&&S.error("Error: Invalid rowIdx value: "+e);var a=this._hashCode(t[v._CONST_KEY]);if(null==o){if(!(o=this._getTableBodyRow(e)))return null;(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(o),u(o).empty()}this._hideNoDataMessage();var r=this._getCurrentRow();r=r||{};var _=this._getRendererContextObject(o,{row:t,isCurrentRow:r.rowIndex===e}),d={rowContext:_,row:t[v._CONST_DATA],componentElement:_.componentElement,parentElement:_.parentElement,data:t[v._CONST_DATA]},h=this._getColumnDefs();if(null!=n||this._isDefaultRowTemplateSlotValid()&&null!==this._getSlotTemplate("rowTemplate")){if(null!=n){var c=n(d);null!=c?o.appendChild(c):null==l?o=s.children[e]:(i=null==i?0:i,o=l.children?l.children[e-i]:u(l).children()[e-i])}else{var C=this._getSlotTemplate("rowTemplate"),E=this._getRootElement(),T=this._getTemplateEngine();if(null!=T){var p=this._getRowSlotTemplateContextObject(d),g=T.execute(E,C,p,this.options.as);for(let e=0;e<g.length;e++){if("TR"===g[e].tagName){o.parentNode.replaceChild(g[e],o);break}o.appendChild(g[e])}null==l?o=s.children[e]:(i=null==i?0:i,o=l.children?l.children[e-i]:u(l).children()[e-i]),this._hasRowTemplate=!0}}this._clearCachedDomRowData(),this._setTableBodyRowAttributes(t,o),this._styleTableBodyRow(o,!1);var f,m=this._getTableElementsByTagName(o,v.DOM_ELEMENT._TD),b=m.length;for(let o=0;o<b;o++)f=m[o],this._setTableBodyCellAttributes(e,t[v._CONST_KEY],a,o,f),this._styleTableBodyCell(o,f,!1);if(null!=this._columnsDestMap)for(let e=0;e<this._columnsDestMap.length;e++){var A=m[this._columnsDestMap[e]];A.parentNode.appendChild(A)}h.length>0&&this._isDefaultSelectorEnabled()&&this._createTableBodyDefaultSelector(t.key,o)}else h.length>0&&this._isDefaultSelectorEnabled()&&this._createTableBodyDefaultSelector(t.key,o),this._tableBodyRowDefaultRenderer(e,t,d);return this._hasEditableRow()&&this._getEditableRowIdx()===e?o.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS):o.classList.remove(v.CSS_CLASSES._TABLE_DATA_ROW_EDIT_CLASS),o["oj-table-oj-row-item"]=t,o},v.prototype._finalizeBodyRowRendering=function(e){return this._waitForAllBodyElementsToResolve(e).then(function(){var t=this._hasEditableRow()?this._getEditableRowKey():null;return e.forEach(function(e){var o=this._getRowKey(e);null!=t&&h.KeyUtils.equals(o,t)||f.disableAllFocusableElements(e)}.bind(this)),Promise.resolve(!0)}.bind(this))},v.prototype._finalizeRowRendering=function(e){return this._waitForAllElementsToResolve(e).then(function(){return e.forEach(function(e){f.disableAllFocusableElements(e)}),Promise.resolve(!0)})},v.prototype._waitForAllBodyElementsToResolve=function(e){return e.length>0&&this._hasRowOrCellRendererOrTemplate()?this._waitForAllElementsToResolve(e):Promise.resolve()},v.prototype._waitForAllElementsToResolve=function(e){var t=[];return e.forEach(function(e){e&&t.push(C.getContext(e).getBusyContext().whenReady())}),Promise.all(t)},v.prototype._refreshRow=function(e,t){var o=this._getData();if(!o)return Promise.resolve(!1);var l=this._getTableBodyRows();if(isNaN(e)||e<0||e>=l.length||0===l.length){var i=v._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_SUMMARY,n=T.applyParameters(v._LOGGER_MSG._ERR_REFRESHROW_INVALID_INDEX_DETAIL,{rowIdx:e.toString()});throw new RangeError(i+"\n"+n)}var s=this._getRowKeyForRowIdx(e);return this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROW_REFRESH),o.fetchByKeys({keys:new Set([s])}).then(function(o){if(null==o||null==o.results||0===o.results.size)return Promise.resolve(!1);var l=this._getTableBodyRow(e);t=t&&u.contains(l,document.activeElement);var i=o.results.get(s);return this._refreshTableBodyRow(e,{data:i.data,metadata:i.metadata,index:e,key:s}),t&&this._getTable().focus(),(l=this._getTableBodyRow(e))?this._finalizeBodyRowRendering([l]):Promise.resolve(!0)}.bind(this))}.bind(this))},v.prototype._refreshTableStatusMessage=function(){var e=this._getTableStatusMessage();null!=e&&u(e).remove(),this._createTableStatusMessage()},v.prototype._showStatusMessage=function(){if(!this._showStatusTimeout){var e=this._getTableTempSkeletonRow();this._statusMessageShown||e||(this._showStatusTimeout=setTimeout(function(){this._refreshTableStatusPosition(!0),this._showStatusTimeout=null}.bind(this),this._getShowStatusDelay()),this._isSkeletonSupport()&&!this._isPagingModelDataProvider()&&this._removeAllTableBodyRows())}},v.prototype._showProgressiveLoading=function(){if(this._isSkeletonSupport()){var e=this._getTableBodyRows(),t=this._getTableTempSkeletonRow();if(null!=e&&e.length>0&&!t){(t=this._createTableBodyRow()).classList.add(v.CSS_CLASSES._TABLE_TEMP_SKELETON_ROW_CLASS);var o=this._createTableBodyCell(),l=this._getColumnDefs().length;o.colSpan=this._isDefaultSelectorEnabled()?l+1:l;for(var i=0;i<3;i++)o.appendChild(this._createSkeletonRow());t.appendChild(o),this._getTableBody().appendChild(t),this._skeletonHWMSFadeInEndListener=function(){t.classList.remove("oj-animation-skeleton-fade-in"),t.querySelectorAll(".oj-table-skeleton-row").forEach(function(e){e.classList.add("oj-animation-skeleton")}),t.removeEventListener("animationend",this._skeletonHWMSFadeInEndListener)}.bind(this),t.addEventListener("animationend",this._skeletonHWMSFadeInEndListener),t.classList.add("oj-animation-skeleton-fade-in")}}},v.prototype._hideStatusMessage=function(){this._clearShowStatusTimeout();var e=this._getTableTempSkeletonRow();if(this._statusMessageShown||e){var t=this._getTableStatusMessage();if(t.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE,this._isSkeletonSupport())if(e)this._getTableBody().removeChild(e);else for(var o=t.childNodes,l=o.length;l>0;l--)t.removeChild(o[l-1]);this._statusMessageShown=!1}},v.prototype._isStatusMessageShown=function(){return this._statusMessageShown},v.prototype._getDefaultOptions=function(){return null==this._defaultOptions&&(this._defaultOptions=p.parseJSONFromFontFamily("oj-table-option-defaults")||{}),this._defaultOptions},v.prototype._getShowStatusDelay=function(){var e=parseInt(this._getDefaultOptions().showIndicatorDelay,10);return isNaN(e)?0:e},v.prototype._isSkeletonSupport=function(){return"skeleton"===this._getDefaultOptions().loadIndicator},v.prototype._showNoDataMessage=function(){if(!this._noDataMessageShown){var e=this._getTableBodyMessageRow(),t=this._getData(),o=this._getSlotTemplate("noData");if(this._isDefaultTemplateSlotValid("noData")&&null!==o){var l=this._getTable(),i=this._getTableBody();l.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var n=document.createElement(v.DOM_ELEMENT._TR);n.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS),this._getTableContainer().classList.contains(v.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS)&&n.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS),i.appendChild(n);var s=document.createElement(v.DOM_ELEMENT._TD),a=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(a+=1),s.setAttribute(v.DOM_ATTR._COLSPAN,a),n.appendChild(s);var r=this._getTemplateEngine();if(null!=r)r.execute(this._getRootElement(),o,{},null).forEach(function(e){s.appendChild(e)})}else{var _=null;_=null!=this.options.emptyText?this.options.emptyText:this.getTranslatedString(v._BUNDLE_KEY._MSG_NO_DATA);var d=null!=t?_:this.getTranslatedString(v._BUNDLE_KEY._MSG_INITIALIZING);null==e?this._createTableBodyMessageRow(this._getColumnDefs().length,d):this._setTableBodyMessage(d)}this._noDataMessageShown=!0}},v.prototype._hideNoDataMessage=function(){if(this._noDataMessageShown){var e=this._getTableBodyMessageRow();if(null!=e)u(e).remove();else{var t=this._getTable();if(t.classList.contains(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS)){t.classList.remove(v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);var o=t.querySelector("tr."+v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);null!=o&&(this._cleanTemplateNodes(o),u(o).remove())}}this._noDataMessageShown=!1}},v.prototype._handleContextMenuResizePopup=function(){var e,t=document.getElementById(this._getTableId()+"_resize_popup_spinner"),o=this._getContextMenuResizePopup(),l=parseInt(o.getAttribute("data-oj-columnIdx"),10);this._IsCustomElement()?(e=t.value,o.close()):(e=u(t).ojInputNumber("option","value"),u(o).ojPopup("close"));for(var i=[],n=this.options.columns.length,s=0;s<n;s++)i[s]=u.extend({},{},this.options.columns[s]);var a=this._getLayoutManager().getMinimumForcedOffsetWidth(l);i[l].width=Math.max(e,a),this.option("columns",i,{_context:{writeback:!0,internalSet:!0}}),this._clearCachedMetadata(),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._COL_RESIZE),setTimeout(function(){this._getTable().focus()}.bind(this),0)}.bind(this))},v.prototype._handleContextMenuSelect=function(e,t){var o,l=(o=t?t.item:u(e.target)).attr("data-oj-command"),i=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);i=null==i?this._contextMenuEventHeaderColumn:i;var n=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0),s=null;if(null!=i&&(s=this._getElementColumnIdx(i)),null!=n&&(s=this._getElementColumnIdx(n)),null!==s)if("oj-table-sortAsc"===l)this._handleSortTableHeaderColumn(s,!0,e);else if("oj-table-sortDsc"===l)this._handleSortTableHeaderColumn(s,!1,e);else if("oj-table-enableNonContiguousSelection"===l)this._nonContiguousSelection=!0,this._removeTableBodyRowTouchSelectionAffordance(),o.attr("data-oj-command","oj-table-disableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelDisableNonContiguousSelection"));else if("oj-table-disableNonContiguousSelection"===l)this._nonContiguousSelection=!1,o.attr("data-oj-command","oj-table-enableNonContiguousSelection"),o.children().first().text(this.getTranslatedString("labelEnableNonContiguousSelection"));else if("oj-table-resize"===l){var a=this._getContextMenuResizePopup();a.setAttribute("data-oj-columnIdx",s);var r,_=i||n,d=this._getLayoutManager().getColumnWidthProperty(_);r=null!=i?i:null!=n?n:this._getTable();var h=document.getElementById(this._getTableId()+"_resize_popup_spinner");this._IsCustomElement()?(h.value=Math.round(d),a.open(r)):(u(h).ojInputNumber("option","value",Math.round(d)),u(a).ojPopup("open",r))}},v.prototype._registerResizeListener=function(){var e=this._getTableContainer();this._resizeListener||(this._resizeListener=function(){var e=this._getLayoutManager(),t=this._getTableContainer();e.isSizingRefreshRequired(t.offsetWidth,t.offsetHeight)&&(e.notifyTableUpdate(v._UPDATE._RESIZE),this._hasPendingTasks()||this._syncTableSizing(!0))}.bind(this)),this._isResizeListenerAdded||(c.addResizeListener(e,this._resizeListener,50),this._isResizeListenerAdded=!0)},v.prototype._unregisterResizeListener=function(){var e=this._getTableContainer();c.removeResizeListener(e,this._resizeListener),this._isResizeListenerAdded=!1},v.prototype._unregisterChildStateListeners=function(e){for(var t=e.querySelectorAll("*"),o=0;o<t.length;o++)this._UnregisterChildNode(t[o])},v.prototype._isLoadMoreOnScroll=function(){return this.options.scrollPolicy===v._OPTION_SCROLL_POLICY._AUTO?!(this._data instanceof h.TableDataSourceAdapter):this.options.scrollPolicy!==v._OPTION_SCROLL_POLICY._LOAD_ALL},v.prototype._isTableHeaderless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var l=this._getSlotTemplate(e[o][v._HEADER_TEMPLATE]);if(null!=e[o].headerText||null!=e[o].headerStyle||null!=e[o].sortable&&e[o].sortable!==v._OPTION_DISABLED||null!=e[o].sortProperty||null!=e[o].headerRenderer||null!=l)return!1}if(this._isDefaultHeaderTemplateSlotValid()&&null!=this._getSlotTemplate("headerTemplate"))return!1;return!0},v.prototype._isTableFooterless=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++){var l=this._getColumnRenderer(o,"footer"),i=this._getSlotTemplate(e[o][v._FOOTER_TEMPLATE]);if(null!=l)return!1;if(null!=i)return!1}if(this._isDefaultFooterTemplateSlotValid()&&null!=this._getSlotTemplate("footerTemplate"))return!1;return!0},v.prototype._isTableHeaderColumnsRendered=function(){return!0===this._renderedTableHeaderColumns},v.prototype._isTableRefreshNeeded=function(e,t){var o=this._cachedOptions,l=!1;return"contextMenu"===e&&t==="#"+this._getTableId()+"_contextmenu"?l=!1:"columns"!==e||this._isColumnMetadataUpdated()?"scrollToKey"===e?l=!1:"selection"===e||"currentRow"===e||h.Object.compareValues(t,o[e])||(l=!0):l=!1,this._cachedOptions=u.extend(!0,{},this.options),l},v.prototype._isTableSortable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].sortable===v._OPTION_ENABLED)return!0;return!1},v.prototype._isTableColumnsResizable=function(){for(var e=this._getColumnDefs(),t=e.length,o=0;o<t;o++)if(e[o].resizable===v._OPTION_ENABLED)return!0;return!1},v.prototype._isTouchDevice=function(){return null==this._isTouch&&(this._isTouch=f.isMobileTouchDevice()),this._isTouch},v.prototype._processSlottedChildren=function(){var e=this._getTableBottomSlot();null!=e&&u(e).remove();for(var t=A.CustomElementUtils.getSlotMap(this._getRootElement()),o=Object.keys(t),l=0;l<o.length;l++){var i=o[l];if("bottom"===i){var n=t[i];if(null!=n){e=this._createTableBottomSlot();for(var s=0;s<n.length;s++)e.appendChild(n[s])}}}},v.prototype._handleSortTableHeaderColumn=function(e,t,o){this._clearSortedHeaderColumn(e);var l=this._getColumnDefs()[e],i=null==l.sortProperty?l.field:l.sortProperty;this._invokeDataSort(i,t,o),this._sortColumn=l,this._refreshSortTableHeaderColumn(i,t)},v.prototype._processFetchSort=function(e){try{var t=e.fetchParameters,o=this._getColumnDefs(),l=t[v._CONST_SORTCRITERIA];if(null!=l&&l.length>0){var i=l[0].attribute,n=l[0].direction===v._COLUMN_SORT_ORDER._ASCENDING;this._refreshSortTableHeaderColumn(i,n),this._setCurrentRow(this.options.currentRow,null,!1);for(var s=null,a=o.length,r=0;r<a;r++){var _=o[r];if(i===(null==_.sortProperty?_.field:_.sortProperty)){s=r;break}}null!=s&&setTimeout(function(){this._scrollColumnIntoViewport(s)}.bind(this),0)}else this._clearSortedHeaderColumn()}catch(e){S.error(e)}},v.prototype._handleMouseEnterColumnHeader=function(e){if(e){e.classList.add(v.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);(e.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS)||e.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)||e.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS))&&e.classList.add(v.MARKER_STYLE_CLASSES._HOVER),this._showTableHeaderColumnSortIcon(t)}},v.prototype._handleMouseLeaveColumnHeader=function(e){if(e){e.classList.remove(v.MARKER_STYLE_CLASSES._HOVER);var t=this._getElementColumnIdx(e);this._hideTableHeaderColumnSortIcon(t)}},v.prototype._showTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===v._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(!t)return;if(null==u(t).data("sorted")){var o=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=o&&null!=l&&(l.classList.remove(v.MARKER_STYLE_CLASSES._DISABLED),l.classList.add(v.MARKER_STYLE_CLASSES._ENABLED),l.classList.add(v.MARKER_STYLE_CLASSES._DEFAULT))}}},v.prototype._hideTableHeaderColumnSortIcon=function(e){if(this._getColumnDefs()[e].sortable===v._OPTION_ENABLED){var t=this._getTableHeaderColumn(e);if(null==u(t).data("sorted")){var o=this._getSortIconContainer(t),l=this._getSortIcon(t);null!=o&&null!=l&&(o.setAttribute("title",this.getTranslatedString("labelSortAsc")),l.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),l.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),l.classList.add(v.MARKER_STYLE_CLASSES._DISABLED),l.classList.remove(v.MARKER_STYLE_CLASSES._ENABLED),l.classList.remove(v.MARKER_STYLE_CLASSES._DEFAULT))}}},v.prototype._refreshSortTableHeaderColumn=function(e,t){for(var o,l=this._getColumnDefs(),i=null,n=l.length,s=0;s<n;s++){var a=l[s];if(e===(null==a.sortProperty?a.field:a.sortProperty)){i=s;break}}if(null!=i){this._clearSortedHeaderColumn(i);var r=this._getTableHeaderColumn(i);if(null!=r){var _=u(r).data("sorted"),d=this._getSortIconContainer(r);null!=(o=this._getSortIcon(r))&&(o.classList.add(v.MARKER_STYLE_CLASSES._DEFAULT),o.classList.remove(v.MARKER_STYLE_CLASSES._DISABLED)),t&&_!==v._COLUMN_SORT_ORDER._ASCENDING?(u(r).data("sorted",v._COLUMN_SORT_ORDER._ASCENDING),null!=o&&(d.setAttribute("title",this.getTranslatedString("labelSortDsc")),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS),o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS))):t||_===v._COLUMN_SORT_ORDER._DESCENDING||(u(r).data("sorted",v._COLUMN_SORT_ORDER._DESCENDING),null!=o&&(d.setAttribute("title",this.getTranslatedString("labelSortAsc")),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS),o.classList.remove(v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS),o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS)))}}},v.prototype._getSortedTableHeaderColumnIdx=function(){for(var e=this._getTableHeaderColumns(),t=e?e.length:0,o=0;o<t;o++){if(null!=u(e[o]).data("sorted"))return o}return null},v.prototype._clearSortedHeaderColumn=function(e){var t=this._getSortedTableHeaderColumnIdx();if(null!=t){var o=this._getTableHeaderColumn(t);if(u(o).data("sorted",null),null==e||t!==e)this._hideTableHeaderColumnSortIcon(t);else{var l=this._getSortIcon(o);null!=l&&l.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)}}},v.prototype._getColumnDefs=function(){return this._columnDefArray||(this._columnDefArray=this._getColumnMetadata()),this._columnDefArray},v.prototype._getColumnMetadata=function(){var e,t=this.options.columns,o=this.options.columnsDefault;if((0===t.length||1===t.length&&null==t[0].id&&null==t[0].headerText&&null==t[0].field)&&null==o.headerText&&null==o.field)return[];var l=[],i=t.length;for(e=0;e<i;e++)l[e]=u.extend({},o,t[e]);var n=[],s=l.length;for(e=0;e<s;e++)n.push(l[e]);var a=this._getData(),r=!1;for(null!=a&&null!=a.getCapability("sort")&&(r=!0),e=0;e<s;e++)null==n[e][v._FIELD_ID]&&(n[e][v._FIELD_ID]=v._COLUMN_HEADER_ID_PREFIX+e),!r||null!=n[e].sortable&&n[e].sortable!==v._OPTION_AUTO||(n[e].sortable=v._OPTION_ENABLED);return n},v.prototype._getColumnRenderer=function(e,t){var o=this._getColumnDefs()[e],l=null;return"cell"===t?l=o.renderer:"footer"===t?l=o.footerRenderer:"header"===t&&(l=o.headerRenderer),this._WrapCustomElementRenderer(l)},v.prototype._getRowRenderer=function(){return this._WrapCustomElementRenderer(this.options.rowRenderer)},v.prototype._isOverflow=function(){return this._isLoadMoreOnScroll()&&this._domScroller&&this._domScroller.isOverflow()},v.prototype._registerDomScroller=function(){this._unregisterDomScroller(),this._domScrollerSuccessFunc=function(e){if(this._clearDataWaitingState(),null!=e)if(this._noMoreData=!1,e.maxCountLimit)this._noMoreData=!0,this._handleScrollerMaxRowCount(),this._syncScrollPosition();else{var t,o=e[v._CONST_VALUE],l=o[v._CONST_DATA],i=o.metadata.map(function(e){return e[v._CONST_KEY]}),n=o[v._CONST_METADATA];for(t=i.length-1;t>=0;t--)null!==this._getRowIdxForRowKey(i[t])&&(l.splice(t,1),i.splice(t,1),n.splice(t,1));l.length>0?this._queueTask(function(){var o=this._getLayoutManager();o.notifyTableUpdate(v._UPDATE._ROWS_ADDED);var s=this._getTableBodyRows().length,a=[];for(t=0;t<l.length;t++)a[t]=s+t;return this._refreshTableBody({isMouseWheel:e.isMouseWheel,data:l,keys:i,metadata:n,indexes:a},s,!0).then(function(){o.clearCachedDimensions(),e.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}.bind(this))}.bind(this)):e.done?(this._noMoreData=!0,this._syncScrollPosition()):this._syncScrollPosition(null,null!=this._scrollPosition)}else this._syncScrollPosition()}.bind(this);var e=this._getTableBodyRows().length;this._requiresDomScrollerRefresh=!1,this._domScroller=new b(this._getLayoutManager().getScroller(),this._getData(),{asyncIterator:this._dataProviderAsyncIterator,fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,initialRowCount:e,success:this._domScrollerSuccessFunc.bind(this),request:this._handleDataFetchStart.bind(this),localKeyValidator:function(e){return null!==this._findRowElementByKey(e)}.bind(this),beforeFetch:function(e){return null==this._idleCallback&&(this._fetchBySyncScroll=Math.abs(this._scrollY-e)<=1,this._setDataWaitingState(!1),this._showProgressiveLoading(),!0)}.bind(this),beforeScroll:this._clearScrollPosBusyState.bind(this),fetchTrigger:2})},v.prototype._unregisterDomScroller=function(){null!=this._domScroller&&(this._domScroller.destroy(),this._domScroller=null)},v.prototype._handleScrollerMaxRowCount=function(){var e=this.getTranslatedString("msgScrollPolicyMaxCountSummary"),t=this.getTranslatedString("msgScrollPolicyMaxCountDetail");S.warn(e+"\n"+t)},v.prototype._clearIdleCallback=function(){null!=this._idleCallback&&(window.requestIdleCallback&&window.cancelIdleCallback?(window.cancelIdleCallback(this._idleCallback),window.cancelAnimationFrame(this._idleCallback)):window.cancelAnimationFrame(this._idleCallback),this._idleCallback=null)},v.prototype._requestIdleCallback=function(e,t){if(!e&&window.requestIdleCallback&&window.cancelIdleCallback){var o=window.setTimeout(function(){this._idleCallback=window.requestAnimationFrame(function(){t()}),o=null},250);this._idleCallback=window.requestIdleCallback(function(e){null!=o&&(window.clearTimeout(o),t(e))})}else this._idleCallback=window.requestAnimationFrame(function(){t()})},v.prototype._renderRowsWhenIdle=function(e,t,o,l,i,n){if(0===e.length)return this._idleCallback=null,void this._afterRowsRendered(t).then(function(e){l(e)},function(e){i(e)});var s,a=this,r=0;function _(){window.requestAnimationFrame(function(){a._getLayoutManager().handleAfterRowsProcessed(s),t.appendChild(s),a._renderRowsWhenIdle(e,t,o+r,l,i,n),n&&h.AgentUtils.getAgentInfo().browser===h.AgentUtils.BROWSER.FIREFOX&&t.scrollTop!==a._scrollTop&&(t.scrollTop=a._scrollTop)})}this._requestIdleCallback(n,function(l){void 0===l?function(){s=document.createDocumentFragment();for(var l=0;l<v._BATCH_PROCESS_SIZE_WHEN_IDLE&&0!==e.length;l++)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[v.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1;_()}():function(l){var i=l.timeRemaining(),n=0;for(s=document.createDocumentFragment();i>n&&0!==e.length;)0!==r||a._getLayoutManager().isTableWidthConstrained()||(t.style[v.CSS_PROP._OVERFLOW_X]="hidden"),a._renderRow(e.shift(),s,o),r+=1,n=i-l.timeRemaining(),i=l.timeRemaining();_()}(l)})},v.prototype._renderRow=function(e,t,o){var l=e.row,i=e.rowIdx;if(null!=l){var n=this._createTableBodyRow();n["oj-table-oj-row-item"]=l,this._styleTableBodyRow(n,!0),this._insertTableBodyRow(i,n,l,t),this._refreshTableBodyRow(i,l,n,t,o)}},v.prototype._afterRowsRendered=function(e){this._clearCachedDomRowData(),this._clearIdleRenderBusyState(),this._hasRowOrCellRendererOrTemplate()&&g.subtreeAttached(e);var t=this._getTableBodyRows();return t.length>0?this._finalizeBodyRowRendering(t).then(function(){return isNaN(this._rowHeight)&&e.rows.length>1&&(this._rowHeight=e.rows[1].offsetHeight),Promise.resolve(!0)}.bind(this)):Promise.resolve(!0)},v.prototype._getRowIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var l=t.length,i=0;i<l;i++){for(var n=this._getElementRowIdx(t[i]),s=!1,a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},v.prototype._getColumnIdxsForElementsWithStyleClass=function(e){var t=this._tableQuerySelectorAll(this._getTable(),e),o=[];if(t&&t.length>0)for(var l=t.length,i=0;i<l;i++){var n=this._getElementColumnIdx(t[i]),s=!1;null===n&&(t[i].classList.contains(v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS)||t[i].classList.contains(v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS))&&(n=-1);for(var a=o.length,r=0;r<a;r++)o[r]===n&&(s=!0);s||o.push(n)}return o},v.prototype._syncTableSizing=function(e){var t=this._getLayoutManager();t.isTableLayoutRefreshRequired()&&(e||t.isSizingRefreshRequired())&&t.refreshTableDimensions(),this._isLoadMoreOnScroll()&&!this._dataFetching&&this._domScroller?(this._setDataWaitingState(!1),this._domScroller.checkViewport().then(this._domScrollerSuccessFunc,this._checkViewportRejected.bind(this))):this._syncScrollPosition()},v.prototype._addSingleTableBodyRow=function(e,t,o,l){var i=this._createTableBodyRow();return i["oj-table-oj-row-item"]=t,this._styleTableBodyRow(i,!0),this._insertTableBodyRow(e,i,t,o),i=this._refreshTableBodyRow(e,t,i,o,l),u(i).data("rowKey",t.metadata.key),o||g.subtreeAttached(i),i},v.prototype._animateVisibleRows=function(e,t,o){if(o=null==this._animationActionOverride?o:this._animationActionOverride,!this._hasAdditionalPendingTasks()){this._animationActionOverride=null;var l,i=this._getVisibleRowIdxs(),n=[];for(l=0;l<t.length;l++)-1===i.indexOf(t[l])&&n.push(t[l]);for(n.sort(function(e,t){return e-t}),l=n.length-1;l>=0;l--)e.splice(n[l],1);return this._unregisterResizeListener(),this._animateTableBodyRows(e,o).then(function(){this._registerResizeListener()}.bind(this))}return this._animationActionOverride="update",Promise.resolve()},v.prototype._cleanTemplateNodes=function(e){var t=this._getTemplateEngine();null!=t&&t.clean(e)},v.prototype._clearCachedMetadata=function(){this._columnDefArray=null,this._columnOffsets=null,this._setTableActionableMode(!1)},v.prototype._getSlotTemplate=function(e){if(this._IsCustomElement()&&e){var t=A.CustomElementUtils.getSlotMap(this._getRootElement())[e];if(t&&t.length>0&&"template"===t[0].tagName.toLowerCase())return t[0]}return null},v.prototype._isDefaultCellTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("cellTemplate")},v.prototype._isDefaultRowTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("rowTemplate")},v.prototype._isDefaultHeaderTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("headerTemplate")},v.prototype._isDefaultFooterTemplateSlotValid=function(){return this._isDefaultTemplateSlotValid("footerTemplate")},v.prototype._isDefaultTemplateSlotValid=function(e){for(var t=this._getColumnDefs(),o=t.length,l=0;l<o;l++){var i=t[l][v._CELL_TEMPLATE],n=t[l][v._HEADER_TEMPLATE],s=t[l][v._FOOTER_TEMPLATE];if(e===i||e===n||e===s)return!1}return!0},v.prototype._getTemplateEngine=function(){return this._templateEngine},v.prototype._getVisibleRowIdxs=function(){var e=[],t=this._getTableBody(),o=this._getTableBodyRows();if(o.length>0&&t.offsetHeight>0){var l=u(window).height(),i=t.getBoundingClientRect();if(i.top>l)return e;var n=i.left>=0?i.left+1:i.right-1,s=i.top>=0?i.top:0,a=document.elementFromPoint(n,s),r=null;null!=a&&(r=this._getElementRowIdx(a));var _,d,h=null!=r?r:0;if(i.bottom>l)r=null,null!=(d=document.elementFromPoint(n,l-1))&&(_=this._getElementRowIdx(d));else{var c=parseInt(window.getComputedStyle(t).borderBottomWidth,10)||0,S=i.bottom>=0?i.bottom-c-1:0;null!=(d=document.elementFromPoint(n,S))&&(_=this._getElementRowIdx(d))}null==_&&(_=o.length-1);for(var C=h;C<=_;C++)e.push(C)}return e},v.prototype._hasRowOrCellRendererOrTemplate=function(e){if(null!=this._getRowRenderer())return!0;var t=null,o=null,l=this._getColumnDefs();if(null!=e)t=this._getColumnRenderer(e,"cell"),o=this._getSlotTemplate(l[e][v._CELL_TEMPLATE]);else for(var i=l.length,n=0;n<i&&null==(t=this._getColumnRenderer(n,"cell"))&&null==(o=this._getSlotTemplate(l[n][v._CELL_TEMPLATE]));n++);if(null!=t||null!=o)return!0;if(this._isDefaultRowTemplateSlotValid()&&null!=this._getSlotTemplate("rowTemplate"))return!0;if(this._isDefaultCellTemplateSlotValid()&&null!=this._getSlotTemplate("cellTemplate"))return!0;return!1},v.prototype._initFetch=function(e,t){var o=e||{},l=this._getData(),i=this._getLayoutManager();return null==l||!h.DataProviderFeatureChecker.isDataProvider(l)||this._isPagingModelDataProvider()&&!t?null==l?this._queueTask(function(){return i.notifyTableUpdate(t?v._UPDATE._DATA_SORT:v._UPDATE._REFRESH),Promise.resolve()}):void 0:this._queueTask(function(){return i.notifyTableUpdate(t?v._UPDATE._DATA_SORT:v._UPDATE._REFRESH),this._scrollTop=0,i.getScroller().scrollTop=0,l instanceof h.TableDataSourceAdapter&&(o.fetchType="init",this._isLoadMoreOnScroll()&&(o[v._CONST_OFFSET]=0)),this._invokeDataFetchRows(o)}.bind(this))},v.prototype._initTemplateEngine=function(){this._queueTask(function(){var e;try{e=E.__getTemplateEngine().then(function(e){this._templateEngine=e}.bind(this),function(e){S.warn(e)})}catch(t){S.warn(t),e=Promise.resolve(null)}return e}.bind(this))},v.prototype._initializeFetchFirstOptions=function(e){var t=e||{};return this._clientId=this._clientId||Symbol(),t[v._CONST_CLIENTID]=this._clientId,!t[v._CONST_PAGESIZE]&&this._isLoadMoreOnScroll()?t[v._CONST_PAGESIZE]=this.options.scrollPolicyOptions.fetchSize:t[v._CONST_PAGESIZE]=-1,t[v._CONST_SILENT]=!0,t},v.prototype._containsKey=function(e,t){for(var o=0;o<t.length;o++)if(h.KeyUtils.equals(t[o].key,e))return!0;return!1},v.prototype._invokeDataFetchRows=function(e){var t=this._initializeFetchFirstOptions(e),o=this._getData();return null!=o?new Promise(function(e){this._noMoreData=!1,this._setDataWaitingState(),this._dataProviderAsyncIterator=o.fetchFirst(t)[Symbol.asyncIterator]();var l=function(e,i,n){var s=n;return(null==n||this._containsKey(n,i))&&(s=null),null!=s||!e.done&&-1===t[v._CONST_PAGESIZE]&&"function"!=typeof o.getPageCount?this._dataProviderAsyncIterator.next().then(function(t){return e.done=t.done,e.value.data=e.value.data.concat(t.value.data),e.value.metadata=e.value.metadata.concat(t.value.metadata),l(e,t.value.metadata,s)}):e}.bind(this),i=this._getScrollToKey(),n=this._dataProviderAsyncIterator.next();Promise.all([n,i]).then(function(e){var t=e[0],o=e[1];return l(t,t[v._CONST_VALUE].metadata,o)}).then(function(t){var l=t[v._CONST_VALUE],i=l[v._CONST_DATA],n=l.metadata.map(function(e){return e[v._CONST_KEY]}),s=0;o instanceof h.TableDataSourceAdapter&&(s=o[v._CONST_OFFSET]);var a=0;this._isPagingModelDataProvider()&&(a=o.getStartItemIndex());for(var r=[],_=i.length,d=0;d<_;d++)r[d]=s+a+d;var u=l[v._CONST_METADATA];this._unregisterDomScroller(),t.maxCountLimit?(this._noMoreData=!0,this._handleScrollerMaxRowCount()):t.done&&(this._noMoreData=!0),this._refreshAll({data:i,metadata:u,keys:n,indexes:r},s).then(function(){this._clearDataWaitingState(),this._processFetchSort(l),this._isLoadMoreOnScroll()&&this._registerDomScroller(),e(t)}.bind(this))}.bind(this),function(){this._clearDataWaitingState(),0===this._getTableBodyRows().length&&this._showNoDataMessage(),e(null)}.bind(this))}.bind(this)):Promise.resolve(null)},v.prototype._invokeDataSort=function(e,t,o){if(this._resetAriaLabel=!0,this._getData()){var l=[],i={};i[v._CONST_ATTRIBUTE]=e,i.direction=t?v._COLUMN_SORT_ORDER._ASCENDING:v._COLUMN_SORT_ORDER._DESCENDING,l.push(i),this._trigger("sort",o,{header:l[0][v._CONST_ATTRIBUTE],direction:l[0].direction}),this._beforeDataRefresh(),this._showStatusMessage(),this._initFetch({sortCriteria:l},!0)}},v.prototype._isColumnMetadataUpdated=function(){if(null!=this._columnDefArray){var e=this._getColumnMetadata();if(this._columnDefArray.length!==e.length)return!0;for(var t=e.length,o=0;o<t;o++)for(var l=Object.keys(e[o]),i=0;i<l.length;i++){var n=l[i];if(e[o][n]!==this._columnDefArray[o][n]&&("id"!==n||null==e[o][n]||0!==e[o][n].indexOf(v._COLUMN_HEADER_ID_PREFIX)||null==this._columnDefArray[o][n]||0!==this._columnDefArray[o][n].indexOf(v._COLUMN_HEADER_ID_PREFIX)))return!0}return!1}return!0},v.prototype._getColumnKeys=function(){for(var e=[],t=this._getColumnDefs(),o=0;o<t.length;o++)e.push(t[o][v._FIELD_ID]);return e},v.prototype._getLocalRowKeys=function(){for(var e=[],t=this._getTableBodyRows(),o=0;o<t.length;o++)e.push(u(t[o]).data("rowKey"));return e},v.prototype._hasMoreToFetch=function(){return!!this._isLoadMoreOnScroll()&&!this._noMoreData},v.prototype._clearCachedDataMetadata=function(){null!=this._data&&this._unregisterDataSourceEventListeners(),this._data=null},v.prototype._getColumnIdxForColumnKey=function(e){for(var t=this._getColumnDefs(),o=t.length,l=0;l<o;l++){var i=t[l];if(h.KeyUtils.equals(i.id,e))return l}return null},v.prototype._getColumnKeyForColumnIdx=function(e){var t=this._getColumnDefs();return e<t.length?t[e][v._FIELD_ID]:null},v.prototype._getRowIdxRowArray=function(e,t){var o=[];if(null!=e)for(var l=e[v._CONST_INDEXES].length,i=0;i<l;i++)o.push({row:{data:e[v._CONST_DATA][i],metadata:e[v._CONST_METADATA]?e[v._CONST_METADATA][i]:null,key:e[v._CONST_KEYS][i],index:e[v._CONST_INDEXES][i]},rowIdx:t+i});return o},v.prototype._getRowIdxForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,l=0;l<o;l++)if(h.KeyUtils.equals(u(t[l]).data("rowKey"),e))return l;return null},v.prototype._getDataSourceRowIndexForRowKey=function(e){var t=this._getTableBodyRows();if(t.length>0)for(var o=t.length,l=0;l<o;l++)if(h.KeyUtils.equals(u(t[l]).data("rowKey"),e)){var i=this._getData(),n=0;return this._isPagingModelDataProvider()&&(n=i.getStartItemIndex()),l+n}return null},v.prototype._getRowKeyForDataSourceRowIndex=function(e){var t=this._getTableBodyRows();if(t.length>0){var o=this._getData(),l=0;this._isPagingModelDataProvider()&&(l=o.getStartItemIndex());for(var i=t.length,n=0;n<i;n++)if(l+n===e)return u(t[n]).data("rowKey")}return null},v.prototype._getRowKeyForRowIdx=function(e){var t=this._getTableBodyRow(e);return null!=t?u(t).data("rowKey"):null},v.prototype._getRowKey=function(e,t){return null==e&&(e=this._getTableBodyRow(t)),null!=e?u(e).data("rowKey"):null},v.prototype._isPagingModelDataProvider=function(){var e=this._getData();return null!=e.getStartItemIndex&&null!==e.getStartItemIndex()&&e.getStartItemIndex()>=0},v.prototype._animateTableBodyRow=function(e,t){return this._isAnimationDisabled(t)?Promise.resolve(!1):new Promise(function(o){this._startAnimation(e,t).then(function(){o(!0)})}.bind(this))},v.prototype._animateTableBodyRows=function(e,t){if(this._isAnimationDisabled(t))return Promise.resolve(!1);for(var o=[],l=0;l<e.length;l++){var i=e[l];o.push(function(e){return this._animateTableBodyRow(e,t)}.bind(this)(i))}return o.length>0?Promise.all(o):Promise.resolve(!1)},v.prototype._getAnimationEffect=function(e){return null==this.defaultAnimations&&(this.defaultAnimations=this._getDefaultOptions().animation||{}),this.defaultAnimations[e]},v.prototype._isAnimationDisabled=function(e){var t=this._getAnimationEffect(e);return null==t||0===t.length},v.prototype._startAnimation=function(e,t,o){return null==o&&(o=this._getAnimationEffect(t)),m.startAnimation(e,t,o,this)};
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -43,7 +43,7 @@ const O=function(e){this.component=e,this.Init()};h._registerLegacyNamespaceProp
|
|
|
43
43
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
44
44
|
* @ignore
|
|
45
45
|
*/
|
|
46
|
-
const D=function(e){this._table=e,this._tableUpdates=new Set};h.Object.createSubclass(D,h.Object,"TableLayoutManager"),D.prototype._getSizingState=function(){return null==this._sizingState&&(this._sizingState={outerWidth:null,outerHeight:null,hasHorizontalOverflow:!1,hasVerticalOverflow:!1}),this._sizingState},D.prototype.notifyTableUpdate=function(e){this._tableUpdates.add(e)},D.prototype._getTableUpdates=function(){return this._tableUpdates},D.prototype._clearTableUpdates=function(){this._tableUpdates.clear()},D.prototype.isTableLayoutRefreshRequired=function(){return this._tableUpdates.size>0},D.prototype.isSizingRefreshRequired=function(e,t){if(null!=e&&null!=t){var o=this._getSizingState();return e>0&&t>0&&(e!==o.outerWidth||t!==o.outerHeight)}var l=this._table._getTableContainer();return l.offsetWidth>0&&l.offsetHeight>0},D.prototype._enableTableVisibility=function(){var e=this._table._getTableBody();e&&(e.style[v.CSS_PROP._VISIBILITY]="");var t=this._table._getTableFooter();t&&(t.style[v.CSS_PROP._VISIBILITY]="")},D.prototype.refreshTableDimensions=function(){},D.prototype._finalizeTableDimensions=function(e,t){var o=this._table._getTableContainer();if(null!=e){var l=this.getScroller().scrollHeight-this.getScroller().clientHeight,i=e>l?l:e;this._table._isLoadMoreOnScroll()&&l===i&&(i-=1),this._table._skipScrollUpdate=!0,this.getScroller().scrollTop=i,u(this.getScroller()).scroll()}null!=t&&(this._table._skipScrollUpdate=!0,c.setScrollLeft(this.getScroller(),t),u(this.getScroller()).scroll());var n=this._getSizingState();n.outerWidth=o.offsetWidth,n.outerHeight=o.offsetHeight,this._clearTableUpdates(),this._enableTableVisibility()},D.prototype.handleAfterRowsProcessed=function(){},D.prototype.handleScrollerScrollLeft=function(){},D.prototype.registerScrollListeners=function(){},D.prototype.getColumnWidthProperty=function(e){var t=window.getComputedStyle(e),o=this._getBoxStyle(t);return this._table._isIE()?parseFloat(t.width)+o.paddingWidth:parseFloat(t.width)+("border-box"===o.boxSizing?-o.borderWidth:o.paddingWidth)},D.prototype.getWidthPropertyFromOffsetWidth=function(e,t){var o=window.getComputedStyle(t);return e-this._getBoxStyle(o).borderWidth},D.prototype.isTableWidthConstrained=function(){return this._getSizingState().hasHorizontalOverflow},D.prototype.isTableHeightConstrained=function(){return this._getSizingState().hasVerticalOverflow},D.prototype.getScrollBarHeight=function(){return this.isTableWidthConstrained()?this._getDefaultScrollBarSize():0},D.prototype.getScrollBarWidth=function(){return this.isTableHeightConstrained()&&!this._isVerticalScrollBarHidden()?this._getDefaultScrollBarSize():0},D.prototype._getBoxStyle=function(e){return{boxSizing:e[v.CSS_PROP._BOX_SIZING],borderWidth:(parseFloat(e[v.CSS_PROP._BORDER_RIGHT_WIDTH])||0)+(parseFloat(e[v.CSS_PROP._BORDER_LEFT_WIDTH])||0),paddingWidth:(parseFloat(e[v.CSS_PROP._PADDING_RIGHT])||0)+(parseFloat(e[v.CSS_PROP._PADDING_LEFT])||0)}},D.prototype._applyColumnHeaderHeight=function(e,t){var o=this._table._getTableElementsByClassName(e,v.CSS_CLASSES._COLUMN_HEADER_CLASS);o.length>0&&(o[0].style[v.CSS_PROP._MIN_HEIGHT]=t+v.CSS_VAL._PX)},D.prototype._applyForcedColumnWidth=function(e,t){var o=e;""!==t&&(t+=v.CSS_VAL._PX),o.style[v.CSS_PROP._MIN_WIDTH]=t,o.style[v.CSS_PROP._WIDTH]=t,o.style[v.CSS_PROP._MAX_WIDTH]=t},D.prototype._getForcedColumnWidth=function(e,t,o){var l=this._getBoxStyle(t);return null!=o?o+("border-box"===l.boxSizing?l.borderWidth:-l.paddingWidth):this._table._isIE()&&"border-box"===l.boxSizing?parseFloat(t.width)+l.paddingWidth+l.borderWidth:parseFloat(t.width)},D.prototype.getMinimumForcedOffsetWidth=function(e){var t=0,o=this._table._getTableHeaderColumn(e);if(null!=o){var l=this._getBoxStyle(window.getComputedStyle(o)),i=l.paddingWidth+l.borderWidth;t<i&&(t=i)}var n=this._table._getTableBodyCell(0,e,null);if(null!=n){var s,a=0;if(this._table._hasRowOrCellRendererOrTemplate(e)){for(var r=this._table._getTableBodyRows(),_=0;_<r.length;_++)if(null!=(n=this._table._getTableBodyCell(_,e,null))){var d=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;a<d&&(a=d)}}else a=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;t<a&&(t=a)}var h=this._table._getTableFooterCell(e);if(null!=h){var u=this._getBoxStyle(window.getComputedStyle(h)),c=u.paddingWidth+u.borderWidth;t<c&&(t=c)}return t},D.prototype._isVerticalScrollBarHidden=function(){return!this._table._isTouchDevice()&&this._table._getTableContainer().classList.contains(v.MARKER_STYLE_CLASSES._HIDE_VERTICAL_SCROLLBAR)},D.prototype._getDefaultScrollBarSize=function(){return null==this._defaultScrollBarSize&&(this._defaultScrollBarSize=f.getDefaultScrollBarWidth(this.getScroller())),this._defaultScrollBarSize},D.prototype.clearCachedDimensions=function(){this._clientWidth=null,this._clientHeight=null,this._scrollWidth=null,this._scrollHeight=null},D.prototype.getScrollWidth=function(){return null==this._scrollWidth&&(this._scrollWidth=this.getScroller().scrollWidth),this._scrollWidth},D.prototype.getScrollHeight=function(){return null==this._scrollHeight&&(this._scrollHeight=this.getScroller().scrollHeight),this._scrollHeight},D.prototype.getClientWidth=function(){return null==this._clientWidth&&(this._clientWidth=this.getScroller().clientWidth),this._clientWidth},D.prototype.getClientHeight=function(){return null==this._clientHeight&&(this._clientHeight=this.getScroller().clientHeight),this._clientHeight},D.prototype._removeTableDimensionsStyling=function(){var e=this._table._getTable(),t=this._table._getTableHeader(),o=this._table._getTableHeaderRow(),l=this._table._getTableFooter(),i=this._table._getTableFooterRow(),n=this._table._getTableBody(),s=this._table._getTableBottomSlot(),a=this._table._getTableContainer();if(a.classList.remove(v.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),a.classList.remove(v.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),e.removeAttribute(v.DOM_ATTR._STYLE),null!=n&&n.removeAttribute(v.DOM_ATTR._STYLE),null!=t){t.removeAttribute(v.DOM_ATTR._STYLE),o.removeAttribute(v.DOM_ATTR._STYLE);for(var r=this._table._getTableElementsByClassName(o,v.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),_=r.length,d=0;d<_;d++)r[d].style[v.CSS_PROP._WIDTH]=""}null!=l&&(l.removeAttribute(v.DOM_ATTR._STYLE),i.removeAttribute(v.DOM_ATTR._STYLE)),null!=s&&s.removeAttribute(v.DOM_ATTR._STYLE),this._removeHeaderColumnAndCellColumnWidths()},D.prototype._getTableContainerScrollableState=function(e){var t=this._table._getTableContainer(),o=this._table._getTable(),l=[];if(t.clientHeight>0){var i=o.offsetHeight+e;i>t.clientHeight?l[0]=1:t.clientHeight-i>0?l[0]=-1:l[0]=0}else l[0]=0;return t.clientWidth>0?o.offsetWidth>t.clientWidth?l[1]=1:t.clientWidth-o.offsetWidth>0?l[1]=-1:l[1]=0:l[1]=0,l},D.prototype._setForcedColumnWidths=function(){var e,t,o,l=this._table._getColumnDefs(),i=l.length,n=this._table._getTableBodyRows();this._forcedWidthColumns=[];for(var s=0;s<i;s++){var a=this._getPixelStyleEquivalent(l[s].width);if(null!=a){var r=null,_=null;if(null!=(e=this._table._getTableHeaderColumn(s))){var d=this._getForcedColumnWidth(e,window.getComputedStyle(e),a);this._applyForcedColumnWidth(e,d),this._forcedWidthColumns[s]=d}else this._forcedWidthColumns[s]=!0;if(null!=(t=0===this._table._editableRowIdx&&n.length>1?this._table._getTableBodyCell(1,s,null):this._table._getTableBodyCell(0,s,null))){this._table._hasRowOrCellRendererOrTemplate(s)||(r=window.getComputedStyle(t),_=this._getForcedColumnWidth(t,r,a));for(var h=0;h<n.length;h++)if(null!=(t=this._table._getTableBodyCell(h,s,null)))if(null==r){var u=window.getComputedStyle(t),c=this._getForcedColumnWidth(t,u,a);this._applyForcedColumnWidth(t,c)}else this._applyForcedColumnWidth(t,_)}null!=(o=this._table._getTableFooterCell(s))&&this._applyForcedColumnWidth(o,this._getForcedColumnWidth(o,window.getComputedStyle(o),a))}else this._forcedWidthColumns[s]=!1}},D.prototype._verifyMinAndMaxWidths=function(){for(var e=this._table._getColumnDefs(),t=e.length,o=this._table._getTableBodyRows().length,l=!0;l;){l=!1;for(var i=0;i<t;i++)if(!1===this._forcedWidthColumns[i]){if(this._applyColMinMax(e,i,o,!0)){l=!0;break}if(this._applyColMinMax(e,i,o,!1)){l=!0;break}}}},D.prototype._applyColMinMax=function(e,t,o,l){var i,n,s,a,r=!1,_=null,d=null,h=l?this._getPixelStyleEquivalent(e[t].minWidth):this._getPixelStyleEquivalent(e[t].maxWidth);if(null!=h&&(i=this._table._getTableHeaderColumn(t),n=0===this._table._editableRowIdx&&o>1?this._table._getTableBodyCell(1,t,null):this._table._getTableBodyCell(0,t,null),s=this._table._getTableFooterCell(t),null!=i?a=i.offsetWidth:null!=n?a=n.offsetWidth:null!=s&&(a=s.offsetWidth),a>0&&(l?a<h:a>h))){if(r=!0,this._forcedWidthColumns[t]=h,null!=i){var u=this._getForcedColumnWidth(i,window.getComputedStyle(i),h);this._applyForcedColumnWidth(i,u)}this._table._hasRowOrCellRendererOrTemplate(t)||(_=window.getComputedStyle(n),d=this._getForcedColumnWidth(n,_,h));for(var c=0;c<o;c++)if(null!=(n=this._table._getTableBodyCell(c,t,null)))if(null==_){var S=window.getComputedStyle(n),C=this._getForcedColumnWidth(n,S,h);this._applyForcedColumnWidth(n,C)}else this._applyForcedColumnWidth(n,d);null!=s&&this._applyForcedColumnWidth(s,this._getForcedColumnWidth(s,window.getComputedStyle(s),h))}return r},D.prototype._getPixelStyleEquivalent=function(e){return"string"==typeof e?""===e?null:"auto"===e?this._getMinWidthAutoEquivalent():null!=e.match(/\D/g)&&-1===e.indexOf("px")?(this._table._tableWidthContainer.style.width=e,this._table._tableWidthContainer.offsetWidth):parseFloat(e):e},D.prototype._getMinWidthAutoEquivalent=function(){return null};
|
|
46
|
+
const D=function(e){this._table=e,this._tableUpdates=new Set};h.Object.createSubclass(D,h.Object,"TableLayoutManager"),D.prototype.unregisterListeners=function(){this.unregisterScrollListeners()},D.prototype._getSizingState=function(){return null==this._sizingState&&(this._sizingState={outerWidth:null,outerHeight:null,hasHorizontalOverflow:!1,hasVerticalOverflow:!1}),this._sizingState},D.prototype.notifyTableUpdate=function(e){this._tableUpdates.add(e)},D.prototype._getTableUpdates=function(){return this._tableUpdates},D.prototype._clearTableUpdates=function(){this._tableUpdates.clear()},D.prototype.isTableLayoutRefreshRequired=function(){return this._tableUpdates.size>0},D.prototype.isSizingRefreshRequired=function(e,t){if(null!=e&&null!=t){var o=this._getSizingState();return e>0&&t>0&&(e!==o.outerWidth||t!==o.outerHeight)}var l=this._table._getTableContainer();return l.offsetWidth>0&&l.offsetHeight>0},D.prototype._enableTableVisibility=function(){var e=this._table._getTableBody();e&&(e.style[v.CSS_PROP._VISIBILITY]="");var t=this._table._getTableFooter();t&&(t.style[v.CSS_PROP._VISIBILITY]="")},D.prototype.refreshTableDimensions=function(){},D.prototype._finalizeTableDimensions=function(e,t){var o=this._table._getTableContainer();if(null!=e){var l=this.getScroller().scrollHeight-this.getScroller().clientHeight,i=e>l?l:e;this._table._isLoadMoreOnScroll()&&l===i&&(i-=1),this.getScroller().scrollTop=i}null!=t&&this._restoreScrollLeft(t);var n=this._getSizingState();n.outerWidth=o.offsetWidth,n.outerHeight=o.offsetHeight,this._clearTableUpdates(),this._enableTableVisibility(),this.registerScrollListeners()},D.prototype.handleAfterRowsProcessed=function(){},D.prototype._handleScrollerScrollLeft=function(e){this._table._scrollLeft=e},D.prototype._handleScrollerScrollTop=function(e){this._table._domScroller||this._table._clearScrollPosBusyState(),e<0&&(e=0),this._table._scrollTop=e,this._table._scrollY=this._table._skipScrollUpdate?e:null,this._table._moveTableBodyRowTouchSelectionAffordanceTop(),this._table._moveTableBodyRowTouchSelectionAffordanceBottom()},D.prototype.registerScrollListeners=function(){var e=this.getScroller();null!=e&&(null==this._scrollEventListener&&(this._scrollEventListener=function(e){var t=this._table._getElementScrollLeft(e.target),o=e.target.scrollTop;t===this._table._scrollLeft&&o===this._table._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(o),this._table._isScrollPositionAdjusted()||(this._table._skipScrollUpdate||this._ticking||(window.requestAnimationFrame(function(){this._table._isScrollPositionAdjusted()||this._table._skipScrollUpdate||this._table.option("scrollPosition",this._table._getCurrentScrollPosition(),{_context:{originalEvent:e,internalSet:!0}}),this._ticking=!1}.bind(this)),this._ticking=!0),this._table._skipScrollUpdate=!1))}.bind(this)),e.removeEventListener("scroll",this._scrollEventListener),e.addEventListener("scroll",this._scrollEventListener,!1))},D.prototype.unregisterScrollListeners=function(){var e=this.getScroller();null!=e&&null!=this._scrollEventListener&&e.removeEventListener("scroll",this._scrollEventListener)},D.prototype._restoreScrollLeft=function(e){c.setScrollLeft(this.getScroller(),e)},D.prototype.getColumnWidthProperty=function(e){var t=window.getComputedStyle(e),o=this._getBoxStyle(t);return this._table._isIE()?parseFloat(t.width)+o.paddingWidth:parseFloat(t.width)+("border-box"===o.boxSizing?-o.borderWidth:o.paddingWidth)},D.prototype.getWidthPropertyFromOffsetWidth=function(e,t){var o=window.getComputedStyle(t);return e-this._getBoxStyle(o).borderWidth},D.prototype.isTableWidthConstrained=function(){return this._getSizingState().hasHorizontalOverflow},D.prototype.isTableHeightConstrained=function(){return this._getSizingState().hasVerticalOverflow},D.prototype.getScrollBarHeight=function(){return this.isTableWidthConstrained()?this._getDefaultScrollBarSize():0},D.prototype.getScrollBarWidth=function(){return this.isTableHeightConstrained()&&!this._isVerticalScrollBarHidden()?this._getDefaultScrollBarSize():0},D.prototype._getBoxStyle=function(e){return{boxSizing:e[v.CSS_PROP._BOX_SIZING],borderWidth:(parseFloat(e[v.CSS_PROP._BORDER_RIGHT_WIDTH])||0)+(parseFloat(e[v.CSS_PROP._BORDER_LEFT_WIDTH])||0),paddingWidth:(parseFloat(e[v.CSS_PROP._PADDING_RIGHT])||0)+(parseFloat(e[v.CSS_PROP._PADDING_LEFT])||0)}},D.prototype._applyColumnHeaderHeight=function(e,t){var o=this._table._getTableElementsByClassName(e,v.CSS_CLASSES._COLUMN_HEADER_CLASS);o.length>0&&(o[0].style[v.CSS_PROP._MIN_HEIGHT]=t+v.CSS_VAL._PX)},D.prototype._applyForcedColumnWidth=function(e,t){var o=e;""!==t&&(t+=v.CSS_VAL._PX),o.style[v.CSS_PROP._MIN_WIDTH]=t,o.style[v.CSS_PROP._WIDTH]=t,o.style[v.CSS_PROP._MAX_WIDTH]=t},D.prototype._getForcedColumnWidth=function(e,t,o){var l=this._getBoxStyle(t);return null!=o?o+("border-box"===l.boxSizing?l.borderWidth:-l.paddingWidth):this._table._isIE()&&"border-box"===l.boxSizing?parseFloat(t.width)+l.paddingWidth+l.borderWidth:parseFloat(t.width)},D.prototype.getMinimumForcedOffsetWidth=function(e){var t=0,o=this._table._getTableHeaderColumn(e);if(null!=o){var l=this._getBoxStyle(window.getComputedStyle(o)),i=l.paddingWidth+l.borderWidth;t<i&&(t=i)}var n=this._table._getTableBodyCell(0,e,null);if(null!=n){var s,a=0;if(this._table._hasRowOrCellRendererOrTemplate(e)){for(var r=this._table._getTableBodyRows(),_=0;_<r.length;_++)if(null!=(n=this._table._getTableBodyCell(_,e,null))){var d=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;a<d&&(a=d)}}else a=(s=this._getBoxStyle(window.getComputedStyle(n))).paddingWidth+s.borderWidth;t<a&&(t=a)}var h=this._table._getTableFooterCell(e);if(null!=h){var u=this._getBoxStyle(window.getComputedStyle(h)),c=u.paddingWidth+u.borderWidth;t<c&&(t=c)}return t},D.prototype._isVerticalScrollBarHidden=function(){return!this._table._isTouchDevice()&&this._table._getTableContainer().classList.contains(v.MARKER_STYLE_CLASSES._HIDE_VERTICAL_SCROLLBAR)},D.prototype._getDefaultScrollBarSize=function(){return null==this._defaultScrollBarSize&&(this._defaultScrollBarSize=f.getDefaultScrollBarWidth(this.getScroller())),this._defaultScrollBarSize},D.prototype.clearCachedDimensions=function(){this._clientWidth=null,this._clientHeight=null,this._scrollWidth=null,this._scrollHeight=null},D.prototype.getScrollWidth=function(){return null==this._scrollWidth&&(this._scrollWidth=this.getScroller().scrollWidth),this._scrollWidth},D.prototype.getScrollHeight=function(){return null==this._scrollHeight&&(this._scrollHeight=this.getScroller().scrollHeight),this._scrollHeight},D.prototype.getClientWidth=function(){return null==this._clientWidth&&(this._clientWidth=this.getScroller().clientWidth),this._clientWidth},D.prototype.getClientHeight=function(){return null==this._clientHeight&&(this._clientHeight=this.getScroller().clientHeight),this._clientHeight},D.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners();var e=this._table._getTable(),t=this._table._getTableHeader(),o=this._table._getTableHeaderRow(),l=this._table._getTableFooter(),i=this._table._getTableFooterRow(),n=this._table._getTableBody(),s=this._table._getTableBottomSlot(),a=this._table._getTableContainer();if(a.classList.remove(v.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS),a.classList.remove(v.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),e.removeAttribute(v.DOM_ATTR._STYLE),null!=n&&n.removeAttribute(v.DOM_ATTR._STYLE),null!=t){t.removeAttribute(v.DOM_ATTR._STYLE),o.removeAttribute(v.DOM_ATTR._STYLE);for(var r=this._table._getTableElementsByClassName(o,v.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),_=r.length,d=0;d<_;d++)r[d].style[v.CSS_PROP._WIDTH]=""}null!=l&&(l.removeAttribute(v.DOM_ATTR._STYLE),i.removeAttribute(v.DOM_ATTR._STYLE)),null!=s&&s.removeAttribute(v.DOM_ATTR._STYLE),this._removeHeaderColumnAndCellColumnWidths()},D.prototype._getTableContainerScrollableState=function(e){var t=this._table._getTableContainer(),o=this._table._getTable(),l=[];if(t.clientHeight>0){var i=o.offsetHeight+e;i>t.clientHeight?l[0]=1:t.clientHeight-i>0?l[0]=-1:l[0]=0}else l[0]=0;return t.clientWidth>0?o.offsetWidth>t.clientWidth?l[1]=1:t.clientWidth-o.offsetWidth>0?l[1]=-1:l[1]=0:l[1]=0,l},D.prototype._setForcedColumnWidths=function(){var e,t,o,l=this._table._getColumnDefs(),i=l.length,n=this._table._getTableBodyRows();this._forcedWidthColumns=[];for(var s=0;s<i;s++){var a=this._getPixelStyleEquivalent(l[s].width);if(null!=a){var r=null,_=null;if(null!=(e=this._table._getTableHeaderColumn(s))){var d=this._getForcedColumnWidth(e,window.getComputedStyle(e),a);this._applyForcedColumnWidth(e,d),this._forcedWidthColumns[s]=d}else this._forcedWidthColumns[s]=!0;if(null!=(t=0===this._table._editableRowIdx&&n.length>1?this._table._getTableBodyCell(1,s,null):this._table._getTableBodyCell(0,s,null))){this._table._hasRowOrCellRendererOrTemplate(s)||(r=window.getComputedStyle(t),_=this._getForcedColumnWidth(t,r,a));for(var h=0;h<n.length;h++)if(null!=(t=this._table._getTableBodyCell(h,s,null)))if(null==r){var u=window.getComputedStyle(t),c=this._getForcedColumnWidth(t,u,a);this._applyForcedColumnWidth(t,c)}else this._applyForcedColumnWidth(t,_)}null!=(o=this._table._getTableFooterCell(s))&&this._applyForcedColumnWidth(o,this._getForcedColumnWidth(o,window.getComputedStyle(o),a))}else this._forcedWidthColumns[s]=!1}},D.prototype._verifyMinAndMaxWidths=function(){for(var e=this._table._getColumnDefs(),t=e.length,o=this._table._getTableBodyRows().length,l=!0;l;){l=!1;for(var i=0;i<t;i++)if(!1===this._forcedWidthColumns[i]){if(this._applyColMinMax(e,i,o,!0)){l=!0;break}if(this._applyColMinMax(e,i,o,!1)){l=!0;break}}}},D.prototype._applyColMinMax=function(e,t,o,l){var i,n,s,a,r=!1,_=null,d=null,h=l?this._getPixelStyleEquivalent(e[t].minWidth):this._getPixelStyleEquivalent(e[t].maxWidth);if(null!=h&&(i=this._table._getTableHeaderColumn(t),n=0===this._table._editableRowIdx&&o>1?this._table._getTableBodyCell(1,t,null):this._table._getTableBodyCell(0,t,null),s=this._table._getTableFooterCell(t),null!=i?a=i.offsetWidth:null!=n?a=n.offsetWidth:null!=s&&(a=s.offsetWidth),a>0&&(l?a<h:a>h))){if(r=!0,this._forcedWidthColumns[t]=h,null!=i){var u=this._getForcedColumnWidth(i,window.getComputedStyle(i),h);this._applyForcedColumnWidth(i,u)}this._table._hasRowOrCellRendererOrTemplate(t)||(_=window.getComputedStyle(n),d=this._getForcedColumnWidth(n,_,h));for(var c=0;c<o;c++)if(null!=(n=this._table._getTableBodyCell(c,t,null)))if(null==_){var S=window.getComputedStyle(n),C=this._getForcedColumnWidth(n,S,h);this._applyForcedColumnWidth(n,C)}else this._applyForcedColumnWidth(n,d);null!=s&&this._applyForcedColumnWidth(s,this._getForcedColumnWidth(s,window.getComputedStyle(s),h))}return r},D.prototype._getPixelStyleEquivalent=function(e){return"string"==typeof e?""===e?null:"auto"===e?this._getMinWidthAutoEquivalent():null!=e.match(/\D/g)&&-1===e.indexOf("px")?(this._table._tableWidthContainer.style.width=e,this._table._tableWidthContainer.offsetWidth):parseFloat(e):e},D.prototype._getMinWidthAutoEquivalent=function(){return null};
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -51,7 +51,7 @@ const D=function(e){this._table=e,this._tableUpdates=new Set};h.Object.createSub
|
|
|
51
51
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
52
52
|
* @ignore
|
|
53
53
|
*/
|
|
54
|
-
const I=function(e){I.superclass.constructor.call(this,e)};h.Object.createSubclass(I,D,"TableLegacyLayoutManager"),I.prototype.handleAfterRowsProcessed=function(e){this._freezeColumnWidths(e)},I.prototype.handleScrollerScrollLeft=function(e){var t=this._table._getTableHeaderRow();t&&c.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&c.setScrollLeft(o.parentNode,e)},I.prototype.registerScrollListeners=function(){var e=this._table._getTableHeaderRow();if(null!=e){var t=e.parentNode;null==this._table._headerScrollEventListener&&(this._table._headerScrollEventListener=function(e){var t=this._table._getElementScrollLeft(e.target);this._table._scrollLeft!==t&&this._table._setScrollX(t)}.bind(this)),t.removeEventListener("scroll",this._table._headerScrollEventListener),t.addEventListener("scroll",this._table._headerScrollEventListener,!1)}},I.prototype.getScroller=function(){return this._table._getTableBody()},I.prototype.getRowTopOverflowDiff=function(e){var t=this.getScroller(),o=e.getBoundingClientRect();return t.getBoundingClientRect().top-o.top+t.clientTop},I.prototype.getRowBottomOverflowDiff=function(e){var t=this.getScroller(),o=e.getBoundingClientRect(),l=t.getBoundingClientRect();return o.bottom-l.bottom+(t.offsetHeight-t.clientHeight-t.clientTop)},I.prototype._freezeColumnWidths=function(e){var t,o=this._table._getColumnDefs().length;this._frozenWidthRows||(this._frozenWidthRows=[]);for(var l=[],i=0;i<o;i++){t=this._table._getTableBodyCell(0,i,null);var n=parseFloat(t.style[v.CSS_PROP._MIN_WIDTH]);isNaN(n)?l.push(null):l.push(n)}for(var s=e.childNodes,a=0;a<s.length;a++)if("TR"===s[a].nodeName){for(var r=s[a],_=this._table._getTableBodyCells(null,r),d=0;d<_.length;d++){var h=l[d];isNaN(h)||this._applyForcedColumnWidth(_[d],h)}this._frozenWidthRows.push(r)}},I.prototype._unfreezeColumnWidths=function(){if(this._frozenWidthRows)for(var e=0;e<this._frozenWidthRows.length;e++)for(var t=this._table._getTableBodyCells(null,this._frozenWidthRows[e]),o=0;o<t.length;o++){var l=t[o];this._applyForcedColumnWidth(l,""),this._table._styleTableBodyCell(o,l)}this._frozenWidthRows=[]},I.prototype._setColumnWidths=function(e){var t,o,l,i,n=[],s=[],a=[],r=[],_=this._table._getColumnDefs().length;for(t=0;t<_;t++)if(!1!==this._forcedWidthColumns[t])n[t]=null,a[t]=null,r[t]=null;else{if(null!=(o=this._table._getTableHeaderColumn(t))){n[t]=this._getForcedColumnWidth(o,window.getComputedStyle(o));var d=this._table._getTableElementsByClassName(o,v.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS);d.length>0&&(s[t]=d[0].clientHeight)}null!=(l=this._table._getTableBodyCell(0,t,null))&&(a[t]=this._getForcedColumnWidth(l,window.getComputedStyle(l))),null!=(i=this._table._getTableFooterCell(t))&&(r[t]=this._getForcedColumnWidth(i,window.getComputedStyle(i)))}for(t=0;t<_;t++)o=this._table._getTableHeaderColumn(t),i=this._table._getTableFooterCell(t),!1!==this._forcedWidthColumns[t]?t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,this._forcedWidthColumns[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=i&&this._applyForcedColumnWidth(i,this._forcedWidthColumns[t]+e)):this._applyColumnHeaderHeight(o,s[t]):(t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,n[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=i&&this._applyForcedColumnWidth(i,r[t]+e)):(null!=o&&(this._applyForcedColumnWidth(o,n[t]),this._applyColumnHeaderHeight(o,s[t])),null!=i&&this._applyForcedColumnWidth(i,r[t])),null!=(l=this._table._getTableBodyCell(0,t,null))&&this._applyForcedColumnWidth(l,a[t]))},I.prototype._isTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1!==this._forcedWidthColumns[t])return!0;return!1},I.prototype._isAllTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1===this._forcedWidthColumns[t])return!1;return!0},I.prototype.refreshTableDimensions=function(){var e=this._getSizingState(),t=this._getTableUpdates();if(!t.has(v._UPDATE._DATA_REFRESH)&&!t.has(v._UPDATE._DATA_SORT)&&!t.has(v._UPDATE._RESIZE)&&!t.has(v._UPDATE._REFRESH)&&!t.has(v._UPDATE._COL_RESIZE)&&!t.has(v._UPDATE._COL_REORDER)&&!t.has(v._UPDATE._ROW_REFRESH)&&(!t.has(v._UPDATE._ROWS_ADDED)||e.hasVerticalOverflow)&&(!t.has(v._UPDATE._ROWS_REMOVED)||!e.hasVerticalOverflow))return this._clearTableUpdates(),void this._enableTableVisibility();var o,l=this._table._getTable(),i=this._table._getTableContainer(),n=this._table._getTableHeader(),s=this._table._getTableBody(),a=this._table._getTableFooter(),r=this._table._getTableBottomSlot(),_=null,d=null;null!=this._table._scrollTop&&this._table._scrollTop>0&&(_=this._table._scrollTop),null!=this._table._scrollLeft&&this._table._scrollLeft>0&&(d=this._table._scrollLeft),this.clearCachedDimensions(),this._removeTableDimensionsStyling(),this._table._styleTableContainer(i),this._setForcedColumnWidths(),this._verifyMinAndMaxWidths(),o=null!=r&&r.clientHeight>0&&r.style[v.CSS_PROP._DISPLAY]!==v.CSS_VAL._NONE?r.offsetHeight:0;var h=this._getTableContainerScrollableState(o);if(1===h[0]?e.hasVerticalOverflow=!0:e.hasVerticalOverflow=!1,1===h[1]?e.hasHorizontalOverflow=!0:e.hasHorizontalOverflow=!1,null!=s){var u=s.offsetHeight-s.clientHeight;if(e.hasVerticalOverflow||e.hasHorizontalOverflow){var c=i.clientWidth,S=i.clientHeight,C=this._getDefaultScrollBarSize();C>0&&(e.hasHorizontalOverflow||this._isVerticalScrollBarHidden()?e.hasVerticalOverflow||(l.style[v.CSS_PROP._HEIGHT]=S+C-o+v.CSS_VAL._PX,i.clientHeight<S+C?(S=i.clientHeight,l.style[v.CSS_PROP._HEIGHT]=S-C-o+v.CSS_VAL._PX,S-C<l.clientHeight+o&&(e.hasVerticalOverflow=!0)):(S=i.clientHeight,l.style[v.CSS_PROP._HEIGHT]="")):(l.style[v.CSS_PROP._WIDTH]=c+C+v.CSS_VAL._PX,i.clientWidth<c+C?(c=i.clientWidth,l.style[v.CSS_PROP._WIDTH]=c-C+v.CSS_VAL._PX,c-C<l.clientWidth&&(e.hasHorizontalOverflow=!0)):(c=i.clientWidth,l.style[v.CSS_PROP._WIDTH]=""))),e.hasVerticalOverflow&&this._isVerticalScrollBarHidden()&&(s.style[v.CSS_PROP._OVERFLOW_Y]="hidden");var E=this.getScrollBarWidth();if(this._setColumnWidths(E),e.hasVerticalOverflow){i.classList.add(v.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS);var T=l.querySelector("tr."+v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);null!=T&&T.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS)}e.hasHorizontalOverflow&&i.classList.add(v.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),i.classList.add(v.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS);var p=0,g=this._table._getTableElementsByTagName(l,"caption");if(g.length>0&&(p=(g=g[0]).offsetHeight,g.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._INLINE,null!=n)){var f=window.getComputedStyle(i);n.style[v.CSS_PROP._BORDER_TOP]=f[v.CSS_PROP._BORDER_TOP]}var m=0;null!=n&&(m=n.offsetHeight),s.style[v.CSS_PROP._WIDTH]=c+v.CSS_VAL._PX;var b=0;null!=a&&(b=a.offsetHeight,s.style[v.CSS_PROP._TOP]=-1*b+v.CSS_VAL._PX);var A,y=S-m-b-p-o-u;if(y>0&&(s.style[v.CSS_PROP._HEIGHT]=y+v.CSS_VAL._PX,s.style[v.CSS_PROP._MIN_HEIGHT]=y+v.CSS_VAL._PX),e.hasHorizontalOverflow){if(0===this._table._getTableBodyRows().length){var L=this._table._getTableBodyMessageCell();if(L){var R=L.offsetWidth;null!=n&&(R=Math.max(R,n.offsetWidth)),null!=a&&(R=Math.max(R,a.offsetWidth)),this._applyForcedColumnWidth(L,R)}}A=c-E+v.CSS_VAL._PX}else A=c+v.CSS_VAL._PX;null!=n&&(n.style[v.CSS_PROP._WIDTH]=A),null!=a&&(a.style[v.CSS_PROP._TOP]=y+v.CSS_VAL._PX,a.style[v.CSS_PROP._WIDTH]=A)}else{if(this._isTableColumnsWidthSet()&&this._setColumnWidths(0),o>0)i.clientHeight-o!==l.offsetHeight&&(r.style[v.CSS_PROP._BOTTOM]=0,r.style[v.CSS_PROP._POSITION]=v.CSS_VAL._ABSOLUTE)}this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._table._refreshTouchAffordanceGlassPanePosition(),this._finalizeTableDimensions(_,d)}},I.prototype._removeTableDimensionsStyling=function(){I.superclass._removeTableDimensionsStyling.call(this),this._table._getTableContainer().classList.remove(v.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS)},I.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e,t=this._table._getColumnDefs().length;for(e=0;e<t;e++){var o=this._table._getTableHeaderColumn(e);null!=o&&(this._applyForcedColumnWidth(o,""),this._table._styleTableHeaderColumn(e,o))}this._unfreezeColumnWidths();var l=this._table._getTableBodyRows();if(l.length>0)for(e=0;e<t;e++){var i;if(null!=this._forcedWidthColumns&&!1!==this._forcedWidthColumns[e])for(var n=0;n<l.length;n++)null!==(i=this._table._getTableBodyCell(n,e,null))&&(this._applyForcedColumnWidth(i,""),this._table._styleTableBodyCell(e,i));else null!=(i=this._table._getTableBodyCell(0,e,null))&&(this._applyForcedColumnWidth(i,""),this._table._styleTableBodyCell(e,i))}for(e=0;e<t;e++){var s=this._table._getTableFooterCell(e);null!=s&&(this._applyForcedColumnWidth(s,""),this._table._styleTableFooterCell(e,s))}var a=this._table._getTableBodyMessageCell();a&&this._applyForcedColumnWidth(a,"")};
|
|
54
|
+
const I=function(e){I.superclass.constructor.call(this,e)};h.Object.createSubclass(I,D,"TableLegacyLayoutManager"),I.prototype.handleAfterRowsProcessed=function(e){this._freezeColumnWidths(e)},I.prototype._handleScrollerScrollLeft=function(e){I.superclass._handleScrollerScrollLeft.call(this,e);var t=this._table._getTableHeaderRow();t&&c.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&c.setScrollLeft(o.parentNode,e)},I.prototype.registerScrollListeners=function(){I.superclass.registerScrollListeners.call(this);var e=this._table._getTableHeaderRow();if(null!=e){var t=e.parentNode;null==this._headerScrollEventListener&&(this._headerScrollEventListener=function(e){var t=this._table._getElementScrollLeft(e.target);this._table._scrollLeft!==t&&this._table._setScrollX(t)}.bind(this)),t.removeEventListener("scroll",this._headerScrollEventListener),t.addEventListener("scroll",this._headerScrollEventListener,!1)}var o=this._table._getTableFooterRow();if(null!=o){var l=o.parentNode;null==this._footerScrollEventListener&&(this._footerScrollEventListener=function(e){var t=this._table._getElementScrollLeft(e.target);this._table._scrollLeft!==t&&this._table._setScrollX(t)}.bind(this)),l.removeEventListener("scroll",this._footerScrollEventListener),l.addEventListener("scroll",this._footerScrollEventListener,!1)}},I.prototype.unregisterScrollListeners=function(){I.superclass.unregisterScrollListeners.call(this);var e=this._table._getTableHeaderRow();null!=e&&null!=this._headerScrollEventListener&&e.parentNode.removeEventListener("scroll",this._headerScrollEventListener);var t=this._table._getTableFooterRow();null!=t&&null!=this._footerScrollEventListener&&t.parentNode.removeEventListener("scroll",this._footerScrollEventListener)},I.prototype._restoreScrollLeft=function(e){c.setScrollLeft(this.getScroller(),e);var t=this._table._getTableHeaderRow();t&&c.setScrollLeft(t.parentNode,e);var o=this._table._getTableFooterRow();o&&c.setScrollLeft(o.parentNode,e)},I.prototype.getScroller=function(){return this._table._getTableBody()},I.prototype.getRowTopOverflowDiff=function(e){var t=this.getScroller(),o=e.getBoundingClientRect();return t.getBoundingClientRect().top-o.top+t.clientTop},I.prototype.getRowBottomOverflowDiff=function(e){var t=this.getScroller(),o=e.getBoundingClientRect(),l=t.getBoundingClientRect();return o.bottom-l.bottom+(t.offsetHeight-t.clientHeight-t.clientTop)},I.prototype._freezeColumnWidths=function(e){var t=this._table._getColumnDefs().length;this._frozenWidthRows||(this._frozenWidthRows=[]);for(var o=[],l=0;l<t;l++){var i=this._table._getTableBodyCell(0,l,null);if(null!=i){var n=parseFloat(i.style[v.CSS_PROP._MIN_WIDTH]);isNaN(n)?o.push(null):o.push(n)}else o.push(null)}for(var s=e.childNodes,a=0;a<s.length;a++)if("TR"===s[a].nodeName){for(var r=s[a],_=this._table._getTableBodyCells(null,r),d=0;d<_.length;d++){var h=o[d];isNaN(h)||this._applyForcedColumnWidth(_[d],h)}this._frozenWidthRows.push(r)}},I.prototype._unfreezeColumnWidths=function(){if(this._frozenWidthRows)for(var e=0;e<this._frozenWidthRows.length;e++)for(var t=this._table._getTableBodyCells(null,this._frozenWidthRows[e]),o=0;o<t.length;o++){var l=t[o];this._applyForcedColumnWidth(l,""),this._table._styleTableBodyCell(o,l)}this._frozenWidthRows=[]},I.prototype._setColumnWidths=function(e){var t,o,l,i,n=[],s=[],a=[],r=[],_=this._table._getColumnDefs().length;for(t=0;t<_;t++)if(!1!==this._forcedWidthColumns[t])n[t]=null,a[t]=null,r[t]=null;else{if(null!=(o=this._table._getTableHeaderColumn(t))){n[t]=this._getForcedColumnWidth(o,window.getComputedStyle(o));var d=this._table._getTableElementsByClassName(o,v.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS);d.length>0&&(s[t]=d[0].clientHeight)}null!=(l=this._table._getTableBodyCell(0,t,null))&&(a[t]=this._getForcedColumnWidth(l,window.getComputedStyle(l))),null!=(i=this._table._getTableFooterCell(t))&&(r[t]=this._getForcedColumnWidth(i,window.getComputedStyle(i)))}for(t=0;t<_;t++)o=this._table._getTableHeaderColumn(t),i=this._table._getTableFooterCell(t),!1!==this._forcedWidthColumns[t]?t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,this._forcedWidthColumns[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=i&&this._applyForcedColumnWidth(i,this._forcedWidthColumns[t]+e)):this._applyColumnHeaderHeight(o,s[t]):(t===_-1&&!this.isTableWidthConstrained()&&e>0?(null!=o&&(this._applyForcedColumnWidth(o,n[t]+e),this._applyColumnHeaderHeight(o,s[t])),null!=i&&this._applyForcedColumnWidth(i,r[t]+e)):(null!=o&&(this._applyForcedColumnWidth(o,n[t]),this._applyColumnHeaderHeight(o,s[t])),null!=i&&this._applyForcedColumnWidth(i,r[t])),null!=(l=this._table._getTableBodyCell(0,t,null))&&this._applyForcedColumnWidth(l,a[t]))},I.prototype._isTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1!==this._forcedWidthColumns[t])return!0;return!1},I.prototype._isAllTableColumnsWidthSet=function(){for(var e=this._table._getColumnDefs().length,t=0;t<e;t++)if(!1===this._forcedWidthColumns[t])return!1;return!0},I.prototype.refreshTableDimensions=function(){var e=this._getSizingState(),t=this._getTableUpdates();if(!t.has(v._UPDATE._DATA_REFRESH)&&!t.has(v._UPDATE._DATA_SORT)&&!t.has(v._UPDATE._RESIZE)&&!t.has(v._UPDATE._REFRESH)&&!t.has(v._UPDATE._COL_RESIZE)&&!t.has(v._UPDATE._COL_REORDER)&&!t.has(v._UPDATE._ROW_REFRESH)&&(!t.has(v._UPDATE._ROWS_ADDED)||e.hasVerticalOverflow)&&(!t.has(v._UPDATE._ROWS_REMOVED)||!e.hasVerticalOverflow))return this._clearTableUpdates(),void this._enableTableVisibility();var o,l=this._table._getTable(),i=this._table._getTableContainer(),n=this._table._getTableHeader(),s=this._table._getTableBody(),a=this._table._getTableFooter(),r=this._table._getTableBottomSlot(),_=null,d=null;null!=this._table._scrollTop&&this._table._scrollTop>0&&(_=this._table._scrollTop),null!=this._table._scrollLeft&&this._table._scrollLeft>0&&(d=this._table._scrollLeft),this.clearCachedDimensions(),this._removeTableDimensionsStyling(),this._table._styleTableContainer(i),this._setForcedColumnWidths(),this._verifyMinAndMaxWidths(),o=null!=r&&r.clientHeight>0&&r.style[v.CSS_PROP._DISPLAY]!==v.CSS_VAL._NONE?r.offsetHeight:0;var h=this._getTableContainerScrollableState(o);if(1===h[0]?e.hasVerticalOverflow=!0:e.hasVerticalOverflow=!1,1===h[1]?e.hasHorizontalOverflow=!0:e.hasHorizontalOverflow=!1,null!=s){var u=s.offsetHeight-s.clientHeight;if(e.hasVerticalOverflow||e.hasHorizontalOverflow){var c=i.clientWidth,S=i.clientHeight,C=this._getDefaultScrollBarSize();C>0&&(e.hasHorizontalOverflow||this._isVerticalScrollBarHidden()?e.hasVerticalOverflow||(l.style[v.CSS_PROP._HEIGHT]=S+C-o+v.CSS_VAL._PX,i.clientHeight<S+C?(S=i.clientHeight,l.style[v.CSS_PROP._HEIGHT]=S-C-o+v.CSS_VAL._PX,S-C<l.clientHeight+o&&(e.hasVerticalOverflow=!0)):(S=i.clientHeight,l.style[v.CSS_PROP._HEIGHT]="")):(l.style[v.CSS_PROP._WIDTH]=c+C+v.CSS_VAL._PX,i.clientWidth<c+C?(c=i.clientWidth,l.style[v.CSS_PROP._WIDTH]=c-C+v.CSS_VAL._PX,c-C<l.clientWidth&&(e.hasHorizontalOverflow=!0)):(c=i.clientWidth,l.style[v.CSS_PROP._WIDTH]=""))),e.hasVerticalOverflow&&this._isVerticalScrollBarHidden()&&(s.style[v.CSS_PROP._OVERFLOW_Y]="hidden");var E=this.getScrollBarWidth();if(this._setColumnWidths(E),e.hasVerticalOverflow){i.classList.add(v.CSS_CLASSES._TABLE_SCROLL_VERTICAL_CLASS);var T=l.querySelector("tr."+v.CSS_CLASSES._TABLE_NO_DATA_CONTAINER_CLASS);null!=T&&T.classList.add(v.CSS_CLASSES._TABLE_NO_DATA_ROW_CLASS)}e.hasHorizontalOverflow&&i.classList.add(v.CSS_CLASSES._TABLE_SCROLL_HORIZONTAL_CLASS),i.classList.add(v.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS);var p=0,g=this._table._getTableElementsByTagName(l,"caption");if(g.length>0&&(p=(g=g[0]).offsetHeight,g.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._INLINE,null!=n)){var f=window.getComputedStyle(i);n.style[v.CSS_PROP._BORDER_TOP]=f[v.CSS_PROP._BORDER_TOP]}var m=0;null!=n&&(m=n.offsetHeight),s.style[v.CSS_PROP._WIDTH]=c+v.CSS_VAL._PX;var b=0;null!=a&&(b=a.offsetHeight,s.style[v.CSS_PROP._TOP]=-1*b+v.CSS_VAL._PX);var A,L=S-m-b-p-o-u;if(L>0&&(s.style[v.CSS_PROP._HEIGHT]=L+v.CSS_VAL._PX,s.style[v.CSS_PROP._MIN_HEIGHT]=L+v.CSS_VAL._PX),e.hasHorizontalOverflow){if(0===this._table._getTableBodyRows().length){var y=this._table._getTableBodyMessageCell();if(y){var R=y.offsetWidth;null!=n&&(R=Math.max(R,n.offsetWidth)),null!=a&&(R=Math.max(R,a.offsetWidth)),this._applyForcedColumnWidth(y,R)}}A=c-E+v.CSS_VAL._PX}else A=c+v.CSS_VAL._PX;null!=n&&(n.style[v.CSS_PROP._WIDTH]=A),null!=a&&(a.style[v.CSS_PROP._TOP]=L+v.CSS_VAL._PX,a.style[v.CSS_PROP._WIDTH]=A)}else{if(this._isTableColumnsWidthSet()&&this._setColumnWidths(0),o>0)i.clientHeight-o!==l.offsetHeight&&(r.style[v.CSS_PROP._BOTTOM]=0,r.style[v.CSS_PROP._POSITION]=v.CSS_VAL._ABSOLUTE)}this._table._isStatusMessageShown()&&this._table._refreshTableStatusPosition(),this._table._refreshTouchAffordanceGlassPanePosition(),this._finalizeTableDimensions(_,d)}},I.prototype._removeTableDimensionsStyling=function(){I.superclass._removeTableDimensionsStyling.call(this),this._table._getTableContainer().classList.remove(v.CSS_CLASSES._TABLE_LEGACY_SCROLL_CLASS)},I.prototype._removeHeaderColumnAndCellColumnWidths=function(){var e,t=this._table._getColumnDefs().length;for(e=0;e<t;e++){var o=this._table._getTableHeaderColumn(e);null!=o&&(this._applyForcedColumnWidth(o,""),this._table._styleTableHeaderColumn(e,o))}this._unfreezeColumnWidths();var l=this._table._getTableBodyRows();if(l.length>0)for(e=0;e<t;e++){var i;if(null!=this._forcedWidthColumns&&!1!==this._forcedWidthColumns[e])for(var n=0;n<l.length;n++)null!==(i=this._table._getTableBodyCell(n,e,null))&&(this._applyForcedColumnWidth(i,""),this._table._styleTableBodyCell(e,i));else null!=(i=this._table._getTableBodyCell(0,e,null))&&(this._applyForcedColumnWidth(i,""),this._table._styleTableBodyCell(e,i))}for(e=0;e<t;e++){var s=this._table._getTableFooterCell(e);null!=s&&(this._applyForcedColumnWidth(s,""),this._table._styleTableFooterCell(e,s))}var a=this._table._getTableBodyMessageCell();a&&this._applyForcedColumnWidth(a,"")};
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -75,7 +75,7 @@ v.prototype._createContextInfo=function(){var e=document.createElement(v.DOM_ELE
|
|
|
75
75
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
76
76
|
* @ignore
|
|
77
77
|
*/
|
|
78
|
-
v.prototype._getData=function(){if(!this._data&&null!=this.options.data){var e=this.options.data;if(h.TableDataSource&&e instanceof h.TableDataSource||this._isPagingModelTableDataSource())this._data=new h.TableDataSourceAdapter(e);else{if(!h.DataProviderFeatureChecker.isDataProvider(e)){var t=v._LOGGER_MSG._ERR_DATA_INVALID_TYPE_SUMMARY,o=v._LOGGER_MSG._ERR_DATA_INVALID_TYPE_DETAIL;throw new Error(t+"\n"+o)}e instanceof _||h.DataProviderFeatureChecker.isTreeDataProvider(e)?this._data=e:this._data=new _(e)}this._dataOption=this.options.data,this._registerDataSourceEventListeners()}return this._data},v.prototype._isPagingModelTableDataSource=function(){return!!(h.PagingTableDataSource&&this.options.data instanceof h.PagingTableDataSource)},v.prototype._registerDataSourceEventListeners=function(){var e=this._getData();if(null!=e){this._unregisterDataSourceEventListeners(),this._dataProviderEventHandlers=[],this._dataProviderEventHandlers.push({eventType:"mutate",eventHandler:this._handleDataRowMutate.bind(this)}),this._dataProviderEventHandlers.push({eventType:"refresh",eventHandler:this._handleDataRefresh.bind(this)});for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++){var l=e.addEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler);l&&(this._dataProviderEventHandlers[o].eventHandler=l)}}},v.prototype._unregisterDataSourceEventListeners=function(){var e=this._getData();if(null!=this._dataProviderEventHandlers&&null!=e)for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++)e.removeEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler)},v.prototype._handleDataRefresh=function(e){try{if(this._dataFetching)return void(this._pendingFetchStale=!0);e.detail&&void 0!==e.detail.disregardAfterKey?this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROWS_REMOVED),this._removeRowsAfterLastValidRow(e.detail.disregardAfterKey),this._hasMoreToFetch()||this._registerDomScroller(),this._animateOnFetch=!0}.bind(this)):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this))}catch(e){S.error(e)}},v.prototype._beforeDataRefresh=function(){this._clearIdleCallback(),this._adjustScrollPositionOnFetch(),this._invalidateRangeSelection(),null!=this._lastSelectedRowIdxArray&&(this._lastSelectedRowIdxArray=[]),this._initialSelectionStateValidated=!1},v.prototype._removeRowsAfterLastValidRow=function(e){var t=this._getRowIdxForRowKey(e);if(t>=0)for(var o=this._getTableBodyRows().length-1;o>t;o--)this._removeTableBodyRow(o)},v.prototype._handleDataRowMutate=function(e){this._dataFetching?this._pendingFetchStale=!0:(null!=e.detail.remove&&this._handleDataRowRemove(e.detail.remove,e.detail.add),null!=e.detail.add&&this._handleDataRowAdd(e.detail.add),null!=e.detail.update&&this._handleDataRowChange(e.detail.update))},v.prototype._handleDataRowRemove=function(e,t){try{this._executeTableBodyRowsRemove(e,t)}catch(e){S.error(e)}finally{this._clearDataWaitingState()}},v.prototype._executeTableBodyRowsRemove=function(e,t){var o=this,l=e[v._CONST_KEYS];l&&l.size>0&&this._queueTask(function(){var l=o._getRowsFromEventDetailRemove(e);if(0!==l.length){o._getLayoutManager().notifyTableUpdate(v._UPDATE._ROWS_REMOVED),l.sort(function(e,t){return t.rowIdx-e.rowIdx});var i,n,s,a=o._getCurrentRow(),r=null!=a?a.rowIndex:0,_=null!=a?a.rowKey:null,d=[],h=[],c=[],S=l.length,C=!1,E=o._getTableBodyRows();if(E.length>0){for(s=0;s<E.length;s++)d.push(s);for(s=0;s<S;s++){n=l[s].rowIdx,h.push(n);for(var T=0;T<d.length;T++)if(d[T]===n){i=o._getTableBodyRow(n),c.push(i),d.splice(T,1);break}}0===d.length&&(C=!0)}var p=o._getTableBody(),g=u.contains(p,document.activeElement),f=!1;if(C)g&&(f=!0),o._clearSelectionState();else for(s=0;s<S;s++)if(n=l[s].rowIdx,i=o._getTableBodyRow(n),g&&null!=i&&u.contains(i,document.activeElement)){f=!0,g=!1;break}if(!C)return new Promise(function(e){o._IsCustomElement()?o._animateVisibleRows(c,h,"remove").then(function(){m(),b(),e(!0)}):(m(),b(),e(!0))});o._removeAllTableBodyRows(),b()}else o._updateSelectionStateFromEventDetailRemove(e,t);function m(){for(var e=0;e<S;e++){var t=l[e].rowIdx;o._removeTableBodyRow(t)}}function b(){o._updateSelectionStateFromEventDetailRemove(e,t),o._refreshTableFooter(),0===(E=o._getTableBodyRows()).length&&o._showNoDataMessage(),null!=_&&(0===E.length||C||r>=E.length?o._setCurrentRow(null,null,!1):o._setCurrentRow({rowIndex:r,rowKey:null},null,!1)),f&&o._getTable().focus()}})},v.prototype._getRowsFromEventDetailRemove=function(e){var t=[];return e[v._CONST_KEYS].forEach(function(e){var o=this._getRowIdxForRowKey(e);if(void 0!==o){var l={key:e,index:o};t.push({row:l,rowIdx:o})}}.bind(this)),t},v.prototype._handleDataRowAdd=function(e){try{this._executeTableBodyRowsAdd(e)}catch(e){S.error(e)}finally{this._clearDataWaitingState()}},v.prototype._executeTableBodyRowsAdd=function(e){var t=e[v._CONST_KEYS];t&&t.size>0&&this._queueTask(function(){var t=this._getRowsFromEventDetailAdd(e);if(0!==t.length){this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROWS_ADDED);var
|
|
78
|
+
v.prototype._getData=function(){if(!this._data&&null!=this.options.data){var e=this.options.data;if(h.TableDataSource&&e instanceof h.TableDataSource||this._isPagingModelTableDataSource())this._data=new h.TableDataSourceAdapter(e);else{if(!h.DataProviderFeatureChecker.isDataProvider(e)){var t=v._LOGGER_MSG._ERR_DATA_INVALID_TYPE_SUMMARY,o=v._LOGGER_MSG._ERR_DATA_INVALID_TYPE_DETAIL;throw new Error(t+"\n"+o)}e instanceof _||h.DataProviderFeatureChecker.isTreeDataProvider(e)?this._data=e:this._data=new _(e)}this._dataOption=this.options.data,this._registerDataSourceEventListeners()}return this._data},v.prototype._isPagingModelTableDataSource=function(){return!!(h.PagingTableDataSource&&this.options.data instanceof h.PagingTableDataSource)},v.prototype._registerDataSourceEventListeners=function(){var e=this._getData();if(null!=e){this._unregisterDataSourceEventListeners(),this._dataProviderEventHandlers=[],this._dataProviderEventHandlers.push({eventType:"mutate",eventHandler:this._handleDataRowMutate.bind(this)}),this._dataProviderEventHandlers.push({eventType:"refresh",eventHandler:this._handleDataRefresh.bind(this)});for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++){var l=e.addEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler);l&&(this._dataProviderEventHandlers[o].eventHandler=l)}}},v.prototype._unregisterDataSourceEventListeners=function(){var e=this._getData();if(null!=this._dataProviderEventHandlers&&null!=e)for(var t=this._dataProviderEventHandlers.length,o=0;o<t;o++)e.removeEventListener(this._dataProviderEventHandlers[o].eventType,this._dataProviderEventHandlers[o].eventHandler)},v.prototype._handleDataRefresh=function(e){try{if(this._dataFetching)return void(this._pendingFetchStale=!0);e.detail&&void 0!==e.detail.disregardAfterKey?this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROWS_REMOVED),this._removeRowsAfterLastValidRow(e.detail.disregardAfterKey),this._hasMoreToFetch()||this._registerDomScroller(),this._animateOnFetch=!0}.bind(this)):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._DATA_REFRESH),this._beforeDataRefresh(),this._invokeDataFetchRows()}.bind(this))}catch(e){S.error(e)}},v.prototype._beforeDataRefresh=function(){this._clearIdleCallback(),this._adjustScrollPositionOnFetch(),this._invalidateRangeSelection(),null!=this._lastSelectedRowIdxArray&&(this._lastSelectedRowIdxArray=[]),this._initialSelectionStateValidated=!1},v.prototype._removeRowsAfterLastValidRow=function(e){var t=this._getRowIdxForRowKey(e);if(t>=0)for(var o=this._getTableBodyRows().length-1;o>t;o--)this._removeTableBodyRow(o)},v.prototype._handleDataRowMutate=function(e){this._dataFetching?this._pendingFetchStale=!0:(null!=e.detail.remove&&this._handleDataRowRemove(e.detail.remove,e.detail.add),null!=e.detail.add&&this._handleDataRowAdd(e.detail.add),null!=e.detail.update&&this._handleDataRowChange(e.detail.update))},v.prototype._handleDataRowRemove=function(e,t){try{this._executeTableBodyRowsRemove(e,t)}catch(e){S.error(e)}finally{this._clearDataWaitingState()}},v.prototype._executeTableBodyRowsRemove=function(e,t){var o=this,l=e[v._CONST_KEYS];l&&l.size>0&&this._queueTask(function(){var l=o._getRowsFromEventDetailRemove(e);if(0!==l.length){o._getLayoutManager().notifyTableUpdate(v._UPDATE._ROWS_REMOVED),l.sort(function(e,t){return t.rowIdx-e.rowIdx});var i,n,s,a=o._getCurrentRow(),r=null!=a?a.rowIndex:0,_=null!=a?a.rowKey:null,d=[],h=[],c=[],S=l.length,C=!1,E=o._getTableBodyRows();if(E.length>0){for(s=0;s<E.length;s++)d.push(s);for(s=0;s<S;s++){n=l[s].rowIdx,h.push(n);for(var T=0;T<d.length;T++)if(d[T]===n){i=o._getTableBodyRow(n),c.push(i),d.splice(T,1);break}}0===d.length&&(C=!0)}var p=o._getTableBody(),g=u.contains(p,document.activeElement),f=!1;if(C)g&&(f=!0),o._clearSelectionState();else for(s=0;s<S;s++)if(n=l[s].rowIdx,i=o._getTableBodyRow(n),g&&null!=i&&u.contains(i,document.activeElement)){f=!0,g=!1;break}if(!C)return new Promise(function(e){o._IsCustomElement()?o._animateVisibleRows(c,h,"remove").then(function(){m(),b(),e(!0)}):(m(),b(),e(!0))});o._removeAllTableBodyRows(),b()}else o._updateSelectionStateFromEventDetailRemove(e,t);function m(){for(var e=0;e<S;e++){var t=l[e].rowIdx;o._removeTableBodyRow(t)}}function b(){o._updateSelectionStateFromEventDetailRemove(e,t),o._refreshTableFooter(),0===(E=o._getTableBodyRows()).length&&o._showNoDataMessage(),null!=_&&(0===E.length||C||r>=E.length?o._setCurrentRow(null,null,!1):o._setCurrentRow({rowIndex:r,rowKey:null},null,!1)),f&&o._getTable().focus()}})},v.prototype._getRowsFromEventDetailRemove=function(e){var t=[];return e[v._CONST_KEYS].forEach(function(e){var o=this._getRowIdxForRowKey(e);if(void 0!==o){var l={key:e,index:o};t.push({row:l,rowIdx:o})}}.bind(this)),t},v.prototype._handleDataRowAdd=function(e){try{this._executeTableBodyRowsAdd(e)}catch(e){S.error(e)}finally{this._clearDataWaitingState()}},v.prototype._executeTableBodyRowsAdd=function(e){var t=e[v._CONST_KEYS];t&&t.size>0&&this._queueTask(function(){var t=this._getRowsFromEventDetailAdd(e);if(0!==t.length){var o=this._getLayoutManager();o.notifyTableUpdate(v._UPDATE._ROWS_ADDED);var l,i,n,s,a=!1,r=[],_=[],d=this._getTableBody();if(t.length>1){i=t.length;var h=!0;for(l=0;l<i;l++)0!==l&&t[l-1].rowIdx!==t[l].rowIdx-1&&(h=!1),_.push(t[l].rowIdx);if(h){for(n=document.createDocumentFragment(),i=t.length,l=0;l<i;l++)r.push(this._addSingleTableBodyRow(t[l].rowIdx,t[l].row,n,t[0].rowIdx));o.handleAfterRowsProcessed(n),null!=(s=this._getTableBodyRow(t[0].rowIdx))?d.insertBefore(n,s):d.appendChild(n,null),a=!0}}if(!a)for(i=t.length,l=0;l<i;l++){var u=t[l].rowIdx;n=document.createDocumentFragment(),r.push(this._addSingleTableBodyRow(u,t[l].row,n,u)),o.handleAfterRowsProcessed(n),null!=(s=this._getTableBodyRow(u))?d.insertBefore(n,s):d.appendChild(n,null)}return this._clearCachedDomRowData(),this._refreshTableFooter(),this._requiresDomScrollerRefresh&&this._registerDomScroller(),this._IsCustomElement()?this._animateVisibleRows(r,_,"add").then(function(){return this._afterRowsRendered(d)}.bind(this)):this._afterRowsRendered(d)}this._requiresDomScrollerRefresh&&this._registerDomScroller()}.bind(this))},v.prototype._getRowsFromEventDetailAdd=function(e){var t=[],o=!this._isLoadMoreOnScroll(),l=this._getLocalRowKeys(),i=l.length;if(!o&&0===i)return this._notifyAddOutOfViewport(),t;var n=f.getAddEventKeysResult(l,e,o),s=this._getData(),a=e[v._CONST_DATA],r=e[v._CONST_METADATA],_=[];e[v._CONST_KEYS].forEach(function(e){_.push(e)}),a instanceof Array||(a=[a]);var d=a.length;r instanceof Array||(r=[r]);var u,c=0;this._isPagingModelDataProvider()&&(c=s.getStartItemIndex()),s instanceof h.TableDataSourceAdapter&&(h.FlattenedTreeTableDataSource&&s.tableDataSource instanceof h.FlattenedTreeTableDataSource?u=s.tableDataSource:this._isPagingModelTableDataSource()&&h.FlattenedTreeTableDataSource&&s.tableDataSource.dataSource instanceof h.FlattenedTreeTableDataSource&&(u=s.tableDataSource.dataSource)),o||i+d===n.length||this._notifyAddOutOfViewport();for(var S=0;S<d;S++){var C=_[S],E=n.indexOf(C);if(-1!==E){var T;T=u&&u._getMetadata?u._getMetadata(E):r[S];var p={data:a[S],metadata:T,key:C,index:E+c};t.push({row:p,rowIdx:E})}}return t},v.prototype._notifyAddOutOfViewport=function(){this._noMoreData&&(this._animateOnFetch=!0,this._requiresDomScrollerRefresh=!0),this._noMoreData=!1},v.prototype._handleDataRowChange=function(e){try{this._executeTableBodyRowsChange(e)}catch(e){S.error(e)}finally{this._clearDataWaitingState()}},v.prototype._executeTableBodyRowsChange=function(e,t){this._queueTask(function(){var t=this._getTableBody(),o=u.contains(t,document.activeElement),l=this._getRowsFromEventDetailChange(e);if(0!==l.length){this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROW_REFRESH);for(var i=l.length,n=[],s=[],a=0;a<i;a++){var r=this._refreshTableBodyRow(l[a].rowIdx,l[a].row);r&&(n.push(r),s.push(l[a].rowIdx))}return o&&this._getTable().focus(),this._refreshTableFooter(),this._IsCustomElement()?this._animateVisibleRows(n,s,"update").then(function(){return this._finalizeBodyRowRendering(n)}.bind(this)):this._finalizeBodyRowRendering(n)}}.bind(this))},v.prototype._getRowsFromEventDetailChange=function(e){var t=e[v._CONST_DATA],o=e[v._CONST_METADATA],l=[];e[v._CONST_KEYS].forEach(function(e){l.push(e)}),t instanceof Array||(t=[t]),o instanceof Array||(o=[o]);for(var i=[],n=t.length,s=0;s<n;s++){var a=this._getRowIdxForRowKey(l[s]);if(void 0!==a){var r={data:t[s],key:l[s],index:a,metadata:o[s]};i.push({row:r,rowIdx:a})}}return i},
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -83,7 +83,7 @@ v.prototype._getData=function(){if(!this._data&&null!=this.options.data){var e=t
|
|
|
83
83
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
84
84
|
* @ignore
|
|
85
85
|
*/
|
|
86
|
-
v.prototype._clearCachedDom=function(){this._clearCachedDomRowData(),this._clearDomCache()},v.prototype._clearCachedDomRowData=function(){this._cachedDomTableBodyRows=null},v.prototype._createContextMenuContainer=function(){var e=this._GetContextMenu(),t=!!this._isTouchDevice()&&this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE;return!e&&(this._isTableSortable()||t||this._isTableColumnsResizable())&&(this._IsCustomElement()?(e=document.createElement("oj-menu")).setAttribute("data-oj-binding-provider","none"):(e=document.createElement(v.DOM_ELEMENT._UL),u(e).ojMenu()),e.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE,e.setAttribute(v.DOM_ATTR._ID,this._getTableId()+"_contextmenu"),this._getTableContainer().appendChild(e),this.option("contextMenu","#"+e.getAttribute(v.DOM_ATTR._ID),{_context:{internalSet:!0}}),this._defaultContextMenu=e),e},v.prototype._populateContextMenuItems=function(e,t){var o=!!this._isTouchDevice()&&this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE;if(!this._menuContainer)if(this._GetDefaultContextMenu()){if(this._isTableSortable()){var l=this._createContextMenuItem("sort",this._IsCustomElement());e.appendChild(l)}if(o){var i=this._createContextMenuItem("enableNonContiguousSelection",this._IsCustomElement());e.appendChild(i)}if(this._isTableColumnsResizable()){var n=this._createContextMenuItem("resize",this._IsCustomElement());e.appendChild(n)}this._menuContainer=e,this._IsCustomElement()?(e.refresh(),e.addEventListener("ojAction",t)):(u(e).ojMenu("refresh"),u(e).on("ojselect",t))}else{var s=e.querySelectorAll("[data-oj-command]");if(s.length>0){var a,r,_;for(r=0;r<s.length;r++)"OJ-OPTION"!==s[r].tagName&&0!==s[r].getElementsByTagName(v.DOM_ELEMENT._A).length||(a=s[r].getAttribute("data-oj-command").split("-"),_=this._createContextMenuItem(a[a.length-1],this._IsCustomElement()),"OJ-OPTION"===s[r].tagName?s[r].innerHTML=_.innerHTML:u(s[r]).replaceWith(_));this._menuContainer=e,u(e).data("oj-ojMenu")&&(this._IsCustomElement()?e.refresh():u(e).ojMenu("refresh")),this._IsCustomElement()?e.addEventListener("ojAction",t):u(e).on("ojselect",t)}}return e},v.prototype._createContextMenuItem=function(e,t){if("sort"===e){var o,l=this._createContextMenuListItem(e,t);return o=this._IsCustomElement()?document.createElement("oj-menu"):document.createElement(v.DOM_ELEMENT._UL),l.appendChild(o),o.appendChild(this._createContextMenuListItem("sortAsc",t)),o.appendChild(this._createContextMenuListItem("sortDsc",t)),l}return"sortAsc"===e||"sortDsc"===e||"enableNonContiguousSelection"===e||"disableNonContiguousSelection"===e?this._createContextMenuListItem(e,t):"resize"===e?(this._createContextMenuResizePopup(0),this._createContextMenuListItem(e,t)):null},v.prototype._createContextMenuListItem=function(e,t){var o=document.createElement(t?"oj-option":"li");return o.setAttribute("data-oj-command","oj-table-"+e),o.appendChild(this._createContextMenuLabel(e,t)),o},v.prototype._createContextMenuLabel=function(e,t){var o=null;"sort"===e?o=this.getTranslatedString("labelSort"):"sortAsc"===e?o=this.getTranslatedString("labelSortAsc"):"sortDsc"===e?o=this.getTranslatedString("labelSortDsc"):"enableNonContiguousSelection"===e?o=this.getTranslatedString("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"===e?o=this.getTranslatedString("labelDisableNonContiguousSelection"):"resize"===e&&(o=this.getTranslatedString("labelResize"));var l=document.createTextNode(o);if(t)return l;var i=document.createElement(v.DOM_ELEMENT._A);return i.setAttribute(v.DOM_ATTR._HREF,"#"),i.appendChild(l),i},v.prototype._createContextMenuResizePopup=function(e){e=Math.round(e);var t,o,l,i,n,s,a,r,_,d,h=this._getContextMenuResizePopup();return this._IsCustomElement()?null==h?(l=this._getTableContainer(),(h=document.createElement("oj-popup")).setAttribute("id",this._getTableId()+"_resize_popup"),h.setAttribute("data-oj-binding-provider","none"),l.appendChild(h),i=document.createElement(v.DOM_ELEMENT._DIV),n=document.createElement(v.DOM_ELEMENT._DIV),(s=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TEXT_ALIGN_END),h.appendChild(i),h.appendChild(n),h.appendChild(s),(_=document.createElement("h6")).textContent=this.getTranslatedString("labelResizePopupSpinner"),i.appendChild(_),(t=document.createElement("oj-input-number")).setAttribute("id",this._getTableId()+"_resize_popup_spinner"),(a=document.createElement("oj-button")).setAttribute("id",this._getTableId()+"_resize_popup_popupcancel"),a.style.margin="5px",a.textContent=this.getTranslatedString("labelResizePopupCancel"),(r=document.createElement("oj-button")).setAttribute("id",this._getTableId()+"_resize_popup_popupsubmit"),r.style.margin="5px",r.textContent=this.getTranslatedString("labelResizePopupSubmit"),n.appendChild(t),s.appendChild(r),s.appendChild(a),o=function(){r.disabled=!1,t.value=0,h.close()},a.addEventListener("click",o),r.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),t.max=1e3,t.min=10,t.step=1,t.value=e,t.displayOptions={messages:["notewindow"]},t.userAssistanceDensity="compact",t.validators=[new L({pattern:"^[1-9][0-9]*$",messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],t.addEventListener("validChanged",function(e){"valid"===e.detail.value?r.disabled=!1:r.disabled=!0}),d={my:"start top",at:"start bottom",collision:"flipfit"},h.setAttribute("position",JSON.stringify(d)),h.setAttribute("modality","modal"),this._cacheDomElement(this._getTableId()+"_resize_popup",h)):(t=document.getElementById(this._getTableId()+"_resize_popup_spinner")).value=e:(l=this._getTableContainer(),null==h?((h=document.createElement(v.DOM_ELEMENT._DIV)).setAttribute("id",this._getTableId()+"_resize_popup"),h.setAttribute("data-oj-context",""),l.appendChild(h),i=document.createElement(v.DOM_ELEMENT._DIV),n=document.createElement(v.DOM_ELEMENT._DIV),(s=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TEXT_ALIGN_END),h.appendChild(i),h.appendChild(n),h.appendChild(s),(_=document.createElement("h6")).textContent=this.getTranslatedString("labelResizePopupSpinner"),i.appendChild(_),(t=document.createElement(v.DOM_ELEMENT._INPUT)).setAttribute("id",this._getTableId()+"_resize_popup_spinner"),(a=document.createElement(v.DOM_ELEMENT._BUTTON)).setAttribute("id",this._getTableId()+"_resize_popup_popupcancel"),a.style.margin="5px",(r=document.createElement(v.DOM_ELEMENT._BUTTON)).setAttribute("id",this._getTableId()+"_resize_popup_popupsubmit"),r.style.margin="5px",n.appendChild(t),s.appendChild(r),s.appendChild(a),u(r).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupSubmit")}),u(a).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")}),o=function(){u(r).ojButton({disabled:!1}),u(t).ojInputNumber({value:0}),u(h).ojPopup("close")},u(r).on("click",this._handleContextMenuResizePopup.bind(this)),u(a).on("click",o),u(t).ojInputNumber({component:"ojInputNumber",max:1e4,min:10,step:1,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new L({pattern:"^[1-9][0-9]*$",messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),u(h).ojPopup({modality:"modal",position:{my:"start top",at:"start bottom",collision:"flipfit"}}),u(t).on("change",function(){u(r).ojButton({disabled:!u(t).ojInputNumber("validate")})}),this._cacheDomElement(this._getTableId()+"_resize_popup",h)):(t=document.getElementById(this._getTableId()+"_resize_popup_spinner"),u(t).ojInputNumber("option","value",e))),h},v.prototype._createInitialTable=function(e,t){var o=this._getTable();return this._createTableContainer(),this._isStickyLayoutEnabled()&&(this._createTableScroller(),this._createTableColGroup()),e||this._createTableHeader(),t||this._createTableFooter(),this._createTableBody(),this._createTableStatusMessage(),this._createTableStatusAccNotification(),this._createContextInfo(),this._createStateInfo(),this._createTableWidthContainer(),o},v.prototype._createTableBody=function(){var e=this._getTable(),t=document.createElement(v.DOM_ELEMENT._TBODY);return e.appendChild(t),this._cacheDomElement(v.CSS_CLASSES._TABLE_BODY_CLASS,t),t},v.prototype._createTableBodyCell=function(){return document.createElement(v.DOM_ELEMENT._TD)},v.prototype._createTableBodyDefaultSelector=function(e,t){var o=null;(o=document.createElement(v.DOM_ELEMENT._TD)).classList.add(v.CSS_CLASSES._TABLE_SELECTOR_CELL),this._isVerticalGridEnabled()&&o.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS);var l=document.createElement("oj-selector");return l.id="table_selector"+e,l.selectedKeys=this.options.selected.row,l.setAttribute("data-oj-binding-provider","none"),l.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),l.setAttribute("selection-mode","multiple"),l.rowKey=e,l.addEventListener("selectedKeysChanged",function(e){"internal"===e.detail.updatedFrom&&this._setSelected({row:e.detail.value,column:new y.KeySetImpl},!1,!0)}.bind(this)),o.appendChild(l),t.insertBefore(o,t.firstChild),o},v.prototype._createTableHeaderSelectorColumn=function(){var e=document.createElement(v.DOM_ELEMENT._TH);e.classList.add(v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS),this._isVerticalGridEnabled()&&e.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS);var t=document.createElement("oj-selector");return t.selectedKeys=this.options.selected.row,t.setAttribute("data-oj-binding-provider","none"),t.classList.add(v.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS),t.setAttribute("selection-mode","all"),t.addEventListener("selectedKeysChanged",function(e){"internal"===e.detail.updatedFrom&&this._setSelected({row:e.detail.value,column:new y.KeySetImpl},!1,!0)}.bind(this)),e.appendChild(t),e},v.prototype._createTableFooterSelectorCell=function(){var e=this._createTableFooterCell();return e.classList.add(v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS),this._isVerticalGridEnabled()&&e.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),e},v.prototype._createTableBodyMessageCell=function(e,t,o){var l=document.createElement(v.DOM_ELEMENT._TD);return this._isDefaultSelectorEnabled()&&(t+=1),l.setAttribute(v.DOM_ATTR._COLSPAN,t),l.classList.add(v.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS),l.appendChild(document.createTextNode(o)),e.appendChild(l),l},v.prototype._createTableBodyMessageRow=function(e,t){var o=this._getTableBody(),l=document.createElement(v.DOM_ELEMENT._TR);return l.classList.add(v.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),this._createTableBodyMessageCell(l,e,t),o.appendChild(l),l},v.prototype._createTableBodyRow=function(){return document.createElement(v.DOM_ELEMENT._TR)},v.prototype._getTouchAffordanceGlassPane=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS);return t.length>0?t[0]:null},v.prototype._createTouchAffordanceGlassPane=function(){var e=this._getTouchAffordanceGlassPane();if(!e){var t=this._getTableContainer();(e=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS),t.appendChild(e),this._refreshTouchAffordanceGlassPanePosition()}return e},v.prototype._createTableBodyRowTouchSelectionAffordance=function(e){var t=this._createTouchAffordanceGlassPane(),o=this._getTableBodyRowTouchSelectionAffordanceTop();if(!o){(o=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS),o.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var l=document.createElement(v.DOM_ELEMENT._DIV);l.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS),l.setAttribute(v.DOM_ATTR._ROLE,"button"),l.setAttribute(v.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceTop")),o.appendChild(l),t.appendChild(o)}var i=this._getTableBodyRowTouchSelectionAffordanceBottom();if(!i){(i=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS),i.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var n=document.createElement(v.DOM_ELEMENT._DIV);n.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS),n.setAttribute(v.DOM_ATTR._ROLE,"button"),n.setAttribute(v.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceBottom")),i.appendChild(n),t.appendChild(i)}this._moveTableBodyRowTouchSelectionAffordanceTop(e),this._moveTableBodyRowTouchSelectionAffordanceBottom(e)},v.prototype._createTableBottomSlot=function(){var e=this._getTableContainer(),t=document.createElement(v.DOM_ELEMENT._DIV);return t.classList.add(v.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS),e.appendChild(t),this._cacheDomElement(v.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,t),t},v.prototype._createTableContainer=function(){var e=this.OuterWrapper;return e||(e=document.createElement(v.DOM_ELEMENT._DIV),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild)),this._cacheDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS,e),e.classList.add(v.CSS_CLASSES._TABLE_CLASS),e.classList.add(v.CSS_CLASSES._TABLE_CONTAINER_CLASS),e.classList.add(v.MARKER_STYLE_CLASSES._WIDGET),e},v.prototype._createTableScroller=function(){var e=document.createElement(v.DOM_ELEMENT._DIV);return e.classList.add(v.CSS_CLASSES._TABLE_SCROLLER_CLASS),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild),e},v.prototype._createTableColGroup=function(){var e=document.createElement(v.DOM_ELEMENT._COLGROUP);e.classList.add(v.CSS_CLASSES._TABLE_COLGROUP_CLASS),this._cacheDomElement(v.CSS_CLASSES._TABLE_COLGROUP_CLASS,e);var t=this._getTableHeader();if(null!=t)return t.parentNode.insertBefore(e,t),e;var o=this._getTableBody();if(null!=o)return o.parentNode.insertBefore(e,o),e;var l=this._getTableFooter();return null!=l?(l.parentNode.insertBefore(e,l),e):(this._getTable().appendChild(e),e)},v.prototype._createTableFooter=function(){var e=this._getTable(),t=document.createElement(v.DOM_ELEMENT._TFOOT),o=document.createElement(v.DOM_ELEMENT._TR);t.appendChild(o);var l=this._getTableHeader();if(null!=l)l.parentNode.insertBefore(t,l.nextSibling);else{var i=this._getTableBody();null!=i?i.parentNode.insertBefore(t,i):e.appendChild(t)}return this._cacheDomElement(v.CSS_CLASSES._TABLE_FOOTER_CLASS,t),t},v.prototype._createTableFooterCell=function(){return document.createElement(v.DOM_ELEMENT._TD)},v.prototype._createTableHeader=function(){var e=this._getTable(),t=document.createElement(v.DOM_ELEMENT._THEAD),o=document.createElement(v.DOM_ELEMENT._TR);t.appendChild(o);var l=this._getTableFooter();if(null!=l)l.parentNode.insertBefore(t,l);else{var i=this._getTableBody();null!=i?i.parentNode.insertBefore(t,i):e.appendChild(t)}return this._cacheDomElement(v.CSS_CLASSES._TABLE_HEADER_ROW_CLASS,o),this._cacheDomElement(v.CSS_CLASSES._TABLE_HEADER_CLASS,t),t},v.prototype._createTableHeaderColumn=function(e){var t=this._getColumnDefs()[e],o=document.createElement(v.DOM_ELEMENT._TH);this._styleTableHeaderColumn(e,o,!0),o.setAttribute("abbr",t.headerText),o.setAttribute(v.DOM_ATTR._TITLE,t.headerText),this._insertTableHeaderColumn(e,o);var l={columnIndex:e,headerContext:{component:this,parentElement:o}};return t.resizable===v._OPTION_ENABLED&&o.setAttribute("data-oj-resizable",v._OPTION_ENABLED),t.sortable===v._OPTION_ENABLED?(o.setAttribute("data-oj-sortable",v._OPTION_ENABLED),this._columnHeaderSortableIconRenderer(l)):this._columnHeaderDefaultRenderer(l),o},v.prototype._createTableSelectorCol=function(){var e=document.createElement(v.DOM_ELEMENT._COL);return e.classList.add(v.CSS_CLASSES._TABLE_COL_SELECTOR_CLASS),e},v.prototype._createTableCol=function(){var e=document.createElement(v.DOM_ELEMENT._COL);return e.classList.add(v.CSS_CLASSES._TABLE_COL_CLASS),e},v.prototype._createTableHeaderColumnDragImage=function(e){var t;if(1===e.length){(t=this._getTableHeaderColumn(e[0]).cloneNode(!0)).classList.remove(v.MARKER_STYLE_CLASSES._FOCUS),t.classList.remove(v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),t.classList.remove(v.MARKER_STYLE_CLASSES._HOVER)}else{(t=document.createElement("th")).classList.add("oj-table-column-header-cell");var o=document.createElement(v.DOM_ELEMENT._DIV);o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_CLASS),t.appendChild(o);var l=document.createElement(v.DOM_ELEMENT._DIV);l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.textContent=e.length+" Items",o.appendChild(l)}return t.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_IMAGE),t.style[v.CSS_PROP._POSITION]=v.CSS_VAL._ABSOLUTE,t.style[v.CSS_PROP._TOP]="0",t.style[v.CSS_PROP._LEFT]="-999em",t.style[v.CSS_PROP._ZINDEX]="-999",document.body.appendChild(t),t},v.prototype._createTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();if(!e){var t=this._getTableContainer();e=document.createElement(v.DOM_ELEMENT._DIV),t.appendChild(e),e.classList.add(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS),this._cacheDomElement(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,e)}return e},v.prototype.createSubId=function(e){return[this._getRootElement().id,e].join(":")},v.prototype._createTableStatusMessage=function(){var e=this._getTableContainer(),t=document.createElement(v.DOM_ELEMENT._DIV);if(t.classList.add(v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),t.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE,!this._isSkeletonSupport()){var o=document.createElement(v.DOM_ELEMENT._DIV);o.classList.add(v.CSS_CLASSES._ICON_CLASS),o.classList.add(v.CSS_CLASSES._TABLE_LOADING_ICON_CLASS),o.setAttribute("aria-label",this.getTranslatedString(v._BUNDLE_KEY._MSG_FETCHING_DATA)),t.appendChild(o)}return e.appendChild(t),this._cacheDomElement(v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,t),t},v.prototype._createTableWidthContainer=function(){var e=this._getTableContainer(),t=document.createElement(v.DOM_ELEMENT._DIV);return t.classList.add(v.CSS_CLASSES._TABLE_WIDTH_CONTAINER_CLASS),e.appendChild(t),this._tableWidthContainer=t,t},v.prototype._displayDragOverIndicatorColumn=function(e,t){this._removeDragOverIndicatorColumn();var o=this._getTableHeaderRow(),l=this._getTableHeaderColumn(e),i=this._getVisibleRowIdxs();null!=l?(t?l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS):l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS),i.forEach(function(o){var l=this._getTableBodyCell(o,e);null!=l&&(t?l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS):l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS))}.bind(this))):0===this._getColumnDefs().length&&(t?o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS):o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS))},v.prototype._displayDragOverIndicatorRow=function(e,t,o,l){this._removeDragOverIndicatorRow();var i=document.createElement(v.DOM_ELEMENT._TR);i.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),"line"===o?i.classList.add("oj-table-body-row-drop-target"):null!=t&&(u(i).height(parseInt(u(t).height(),10)),l&&this._rowsDragged.forEach(function(e){e.classList.add("oj-table-row-drag-source-hide")}));var n=document.createElement(v.DOM_ELEMENT._TD),s=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(s+=1),n.setAttribute(v.DOM_ATTR._COLSPAN,s),i.appendChild(n);var a=this._getTableBodyRow(e);null!=a?a.parentNode.insertBefore(i,a):(0===this._getTableBodyRows().length&&this._hideNoDataMessage(),this._getTableBody().appendChild(i))},v.prototype._getContextMenuElement=function(){return this._menuContainer},v.prototype._getContextMenuResizePopup=function(){var e=this._getTableId()+"_resize_popup";if(!this._isCachedDomElement(e)){var t=document.getElementById(e);this._cacheDomElement(e,t)}return this._getCachedDomElement(e)},v.prototype._getElementColumnIdx=function(e){var t=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=t)return u(t.parentNode).children("."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS).index(t);var o=this._getFirstAncestor(e,"."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=o)return u(o.parentNode).children("."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS).index(o);var l=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=l?u(l.parentNode).children("."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS).index(l):null},v.prototype._getElementRowIdx=function(e){var t=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=t){var o=this._getTableBodyRows(),l=u(o).index(t);return l>-1?l:null}return null},v.prototype._getFirstAncestor=function(e,t,o){var l;if(null==e)return null;if(this._isIE()&&!Element.prototype.matches?e.msMatchesSelector(t):e.matches(t))return o&&!this._isTableOwned(e)?this._getFirstAncestor(e.parentNode,t,o):e;if(l=u(e).parents(t),o){for(var i=0;i<l.length;i++)if(this._isTableOwned(l[i]))return l[i];return null}return l.length>0?l[0]:null},v.prototype._getElementScrollLeft=function(e){return Math.abs(e.scrollLeft)},v.prototype._getTable=function(){return this.element[0]},v.prototype._getTableBody=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_BODY_CLASS,!0)},v.prototype._getTableBodyCell=function(e,t,o){var l=this._getTableBodyCells(e,o);return l&&l.length>t?l[t]:null},v.prototype._getTableBodyLogicalCells=function(e,t){var o=this._getTableBodyCells(e,t);return o?this._getColspanLogicalElements(o):null},v.prototype._getTableBodyCells=function(e,t){if(t||(t=this._getTableBodyRow(e)),!t)return null;var o=this._getTableElementsByClassName(t,v.CSS_CLASSES._TABLE_DATA_CELL_CLASS);return o.length>0?o:null},v.prototype._getTableBodyMessageCell=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS);if(t.length>0)return t[0]}return null},v.prototype._getTableBodyMessageRow=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS);if(t.length>0)return t[0]}return null},v.prototype._getTableBodyRow=function(e){var t=this._getTableBodyRows();return null!=e&&t.length>e?t[e]:null},v.prototype._getTableBodyRows=function(){if(!this._cachedDomTableBodyRows){var e=this._getTableBody();this._cachedDomTableBodyRows=null!=e?this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_CLASS):[]}return this._cachedDomTableBodyRows},v.prototype._getTableTempSkeletonRow=function(){var e=this._getTableBody();return null!=e?this._getChildElementByClassName(e,v.CSS_CLASSES._TABLE_TEMP_SKELETON_ROW_CLASS):null},v.prototype._getTableBodyRowTouchSelectionAffordanceTop=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS);return t.length>0?t[0]:null},v.prototype._getTableBodyRowTouchSelectionAffordanceBottom=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS);return t.length>0?t[0]:null},v.prototype._getTableBottomSlot=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,!0)},v.prototype._getTableContainer=function(){if(!this._isCachedDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS)){var e=this.element[0].parentNode;e.classList.contains(v.CSS_CLASSES._TABLE_SCROLLER_CLASS)?this._cacheDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS,e.parentNode):this._cacheDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS,e)}return this._getCachedDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS)},v.prototype._getTableScroller=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_SCROLLER_CLASS,!0)},v.prototype._getTableFooter=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_FOOTER_CLASS,!0)},v.prototype._getTableFooterCell=function(e){var t=this._getTableFooterCells();return null!=t&&t.length>e?t[e]:null},v.prototype._getTableFooterCells=function(){var e=this._getTableFooterRow(),t=null!=e?this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS):null;return null!=t&&t.length>0?t:null},v.prototype._getTableFooterLogicalCells=function(){var e=this._getTableFooterCells();return e?this._getColspanLogicalElements(e):null},v.prototype._getTableFooterRow=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS)},v.prototype._getTableHeader=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_HEADER_CLASS,!0)},v.prototype._getTableHeaderColumn=function(e){var t=this._getTableHeaderColumns();return t&&t.length>e&&e>=0?t[e]:null},v.prototype._getTableCol=function(e){var t=this._getTableColGroup();if(null!=t){var o=this._getTableElementsByClassName(t,v.CSS_CLASSES._TABLE_COL_CLASS);if(o.length>0)return o[e]}return null},v.prototype._getTableHeaderColumnResizeIndicator=function(){return this._getTableElementByClassName(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,!0)},v.prototype._getTableHeaderColumns=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS);if(t.length>0)return t}return null},v.prototype._getTableHeaderLogicalColumns=function(){var e=this._getTableHeaderColumns();return e?this._getColspanLogicalElements(e):null},v.prototype._getTableHeaderRow=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_HEADER_ROW_CLASS)},v.prototype._getTableColGroup=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_COLGROUP_CLASS)},v.prototype._getTableId=function(){if(!this._tableId){var e=this._IsCustomElement()?this._getTableContainer():this._getTable();this._tableId=e.getAttribute(v.DOM_ATTR._ID)}return this._tableId},v.prototype._getTableStatusMessage=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,!0)},v.prototype._getTableUID=function(){if(!this._tableUID){var e=this._getTableId();null==e&&(e=(1e32*Math.random()).toString(36)),this._tableUID=e}return this._tableUID},v.prototype._hashCode=function(e){if(null==e)return 0;"string"!==u.type(e)&&(e=e.toString());var t=0;if(0===e.length)return t;for(var o=e.length,l=0;l<o;l++){t=(t<<5)-t+e.charCodeAt(l),t&=t}return t},v.prototype._insertTableBodyCell=function(e,t,o,l,i,n,s){if(this._setTableBodyCellAttributes(e,t,o,l,i),s)return n.appendChild(i),i;if(0===l)n.insertBefore(i,n.firstChild);else{var a=this._getTableElementsByClassName(n,v.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(a.length>=l){var r=a[l-1];r.parentNode.insertBefore(i,r.nextSibling)}else n.appendChild(i)}return i},v.prototype._insertTableBodyRow=function(e,t,o,l){if(this._setTableBodyRowAttributes(o,t),null==l){var i=this._getTableBody(),n=this._getTableBodyRows();if(0===e)i.insertBefore(t,i.firstChild);else if(n.length>=e){var s=n[e-1];s.parentNode.insertBefore(t,s.nextSibling)}else i.appendChild(t)}else l.appendChild(t);this._clearCachedDomRowData()},v.prototype._insertTableFooterCell=function(e,t){var o=this._getTableFooterRow(),l=this._getTableElementsByClassName(o,v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS);if(this._setTableFooterColumnAttributes(e,t),0===e)o.insertBefore(t,o.firstChild);else if(o.length>=e){var i=l[e-1];i.parentNode.insertBefore(t,i.nextSibling)}else o.appendChild(t);return t},v.prototype._insertTableHeaderColumn=function(e,t){var o=this._getTableHeaderRow(),l=this._getTableHeaderColumns();this._setTableHeaderColumnAttributes(e,t);var i=this._getTableHeaderColumn(e);if(i)u(i).replaceWith(u(t));else if(0!==e&&l&&l.length>=e){var n=l[e-1];n.parentNode.insertBefore(t,n.nextSibling)}else o.appendChild(t)},v.prototype._moveTableBodyRowTouchSelectionAffordanceTop=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceTop();if(null!=t){null!=e?(u(t).data("rowIdx",e),u(t.children[0]).data("rowIdx",e)):e=u(t).data("rowIdx");var o=this._getTableBody(),l=this._getTableBodyRow(e).getBoundingClientRect(),i=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[v.CSS_PROP._TOP]=l.top-i.top-t.clientHeight/2+v.CSS_VAL._PX,t.style[v.CSS_PROP._LEFT]=o.clientWidth/2+v.CSS_VAL._PX}},v.prototype._moveTableBodyRowTouchSelectionAffordanceBottom=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceBottom();if(null!=t){null!=e?(u(t).data("rowIdx",e),u(t.children[0]).data("rowIdx",e)):e=u(t).data("rowIdx");var o=this._getTableBody(),l=this._getTableBodyRow(e).getBoundingClientRect(),i=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[v.CSS_PROP._TOP]=l.top-i.top+l.height-t.clientHeight/2+v.CSS_VAL._PX,t.style[v.CSS_PROP._LEFT]=o.clientWidth/2+v.CSS_VAL._PX}},v.prototype._moveTableHeaderColumn=function(e,t,o){var l=[],i=[],n=[],s=null,a=null,r=null,_=null,d=!1;t===this._getColumnDefs().length&&(t-=1,d=!0),s=this._getTableHeaderColumn(t);for(let t=0;t<e.length;t++){let o=e[t];l[t]=this._getTableHeaderColumn(o),i[t]=this._getTableFooterCell(o)}for(let o=0;o<e.length;o++)null!=l[o]&&(_=l[o].getAttribute(v.DOM_ATTR._COLSPAN),null==s||null!=_&&1!==_||(d?(s.parentNode.insertBefore(l[o],s.nextSibling),s=l[o]):s.parentNode.insertBefore(l[o],s))),null!=i[o]&&(_=i[o].getAttribute(v.DOM_ATTR._COLSPAN),null==(a=this._getTableFooterCell(t))||null!=_&&1!==_||(d?(a.parentNode.insertBefore(i[o],a.nextSibling),a=i[o]):a.parentNode.insertBefore(i[o],a)));var h=this._getTableBodyRows();for(let o=0;o<h.length;o++){for(let t=0;t<e.length;t++)n[t]=this._getTableBodyCell(o,e[t],null);r=this._getTableBodyCell(o,t,null);for(let t=0;t<e.length;t++)null!=n[t]&&(_=n[t].getAttribute(v.DOM_ATTR._COLSPAN),null==r||null!=_&&1!==_||(d?(r.parentNode.insertBefore(n[t],r.nextSibling),r=n[t]):r.parentNode.insertBefore(n[t],r)))}var c=[],S=this.options.columns.length;for(let e=0;e<S;e++)c[e]=u.extend({},{},this.options.columns[e]);var C=d?t:t-1,E=[],T=[],p=[],g=e.reverse();if(!this._columnsDestMap){this._columnsDestMap=[];for(let e=0;e<c.length;e++)this._columnsDestMap[e]=e}return g.forEach(function(e){e<=C&&(C-=1),E.unshift(c.splice(e,1)[0]),T.unshift(this._columnDefArray.splice(e,1)[0]),p.unshift(this._columnsDestMap.splice(e,1)[0])}.bind(this)),c.splice(C+1,0,...E),this._columnDefArray.splice(C+1,0,...T),this._columnsDestMap.splice(C+1,0,...p),this.option("columns",c,{_context:{writeback:!0,originalEvent:o,internalSet:!0}}),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._COL_REORDER)}.bind(this)),this._columnsDestMap},v.prototype._refreshContextMenu=function(){var e=this._menuContainer;if(e)for(var t=e.querySelectorAll("[data-oj-command]"),o=0;o<t.length;o++){var l=u(t[o]).children(v.DOM_ELEMENT._A);if(0===l.length&&"OJ-OPTION"===t[o].tagName&&(l=u(t[o])),l.length>0){var i,n=t[o].getAttribute("data-oj-command").split("-");"sort"===(n=n[n.length-1])?i=this.getTranslatedString("labelSort"):"sortAsc"===n?i=this.getTranslatedString("labelSortAsc"):"sortDsc"===n?i=this.getTranslatedString("labelSortDsc"):"resize"===n&&(i=this.getTranslatedString("labelResize")),l.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=i}}},v.prototype._removeDragOverIndicatorColumn=function(){for(var e=this._tableQuerySelectorAll(this._getTable(),"."+v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS+",."+v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS),t=e.length,o=0;o<t;o++)e[o].classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS),e[o].classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS)},v.prototype._removeDragOverIndicatorRow=function(){var e,t=this._getTableBody(),o=this._getTableElementsByClassName(t,v.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),l=o.length;for(e=0;e<l;e++)u(o[e]).remove();0===this._getTableBodyRows().length&&this._showNoDataMessage()},v.prototype._removeTableBodyRow=function(e){var t=this._getTableBodyRow(e);null!=t&&(g.subtreeDetached(t),(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(t),u(t).remove(),this._clearCachedDomRowData())},v.prototype._removeAllTableBodyRows=function(){if(this._getTableBodyRows().length>0){var e=this._getTableBody();null!=e&&(g.subtreeDetached(e),(this._hasCellTemplate||this._hasRowTemplate)&&(this._cleanTemplateNodes(e),this._hasCellTemplate=!1,this._hasRowTemplate=!1,this._registerDomEventListeners()),u(e).empty()),this._clearCachedDomRowData()}},v.prototype._removeTableBodyRowTouchSelectionAffordance=function(){for(var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS),o=0;o<t.length;o++)u(t[o]).remove()},v.prototype._removeTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();e&&(u(e).remove(),this._clearDomCache(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS))},v.prototype._setTableBodyCellAttributes=function(e,t,o,l,i){var n=i.getAttribute(v.DOM_ATTR._ID);if(!(null!=n&&n.length>0)){var s=this.options.accessibility,a=this._getColumnDefs()[l];if(null!=a){var r=null,_=this._isTableHeaderless();r=null!=s&&null!=s.rowHeader?s.rowHeader:this._getColumnDefs()[0].id;var d=null!=t?t.toString():e.toString(),h=null==o?this._hashCode(d):o,u=this._getTableId()+":"+r+"_"+h,c=this._getTableId()+":"+a.id;r===a.id?(n=u,_&&(c="")):(n=u+"_"+l,c=_?u:c+" "+u),i.setAttribute(v.DOM_ATTR._ID,n),i.getAttribute(v.DOM_ATTR._HEADERS)||i.setAttribute(v.DOM_ATTR._HEADERS,c)}}},v.prototype._setTableBodyRowAttributes=function(e,t){u(t).data("rowKey",e.key),u(t).data("rowData",e.data),u(t).data("rowMetadata",e.metadata)},v.prototype._setTableHeaderColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(v.DOM_ATTR._ID)||t.setAttribute(v.DOM_ATTR._ID,this._getTableId()+":"+o.id)},v.prototype._setTableFooterColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(v.DOM_ATTR._ID)||t.setAttribute(v.DOM_ATTR._ID,this._getTableId()+":"+o.id+":ftr")},v.prototype._setTableColumnCellsClass=function(e,t,o){var l,i=this._getTableBodyRows();if(i.length>0)if(null===e){var n=null,s=this._getTableBody();if(null!=(n=t?this._getTableElementsByTagName(s,v.DOM_ELEMENT._TD):this._getTableElementsByClassName(s,o))&&n.length>0){var a=n.length;for(l=0;l<a;l++)t?n[l].classList.add(o):n[l].classList.remove(o)}}else{var r=i.length;for(l=0;l<r;l++){var _=this._getTableBodyCell(l,e,null);t?_.classList.add(o):_.classList.remove(o)}}},v.prototype._setTableBodyMessage=function(e){var t=this._getTableBodyMessageCell();u(t).empty(),t.appendChild(document.createTextNode(e))},v.prototype._styleInitialTable=function(){var e=this._getTable(),t=this._getTableElementsByTagName(e,v.DOM_ELEMENT._THEAD);t=t.length>0?t[0]:null;var o=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TFOOT);o=o.length>0?o[0]:null;var l=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TBODY);if(l=l.length>0?l[0]:null,-1!==parseInt(this._getRootElement().getAttribute(v.DOM_ATTR._TABINDEX),10))e.setAttribute(v.DOM_ATTR._TABINDEX,"0"),this._focusable({element:e,applyHighlight:!0,setupHandlers:this._focusSetupHandlers.bind(this)});else{e.setAttribute(v.DOM_ATTR._TABINDEX,"-1");var i=function(){};this._focusSetupHandlers(i,i)}e.setAttribute(v.DOM_ATTR._ARIA_LABELLEDBY,this._getTableContainer().id),this._styleTableHeader(t),this._styleTableFooter(o),this._styleTableBody(l),this._styleTableContainer(this._getTableContainer())},v.prototype._styleTableBody=function(e){e.classList.add(v.CSS_CLASSES._TABLE_BODY_CLASS),e.setAttribute(g._OJ_CONTAINER_ATTR,this.widgetName)},v.prototype._styleTableBodyCell=function(e,t,o){var l=this._getColumnDefs()[e];!o&&t.classList.contains(v.CSS_CLASSES._TABLE_DATA_CELL_CLASS)||(t.classList.add(v.CSS_CLASSES._TABLE_DATA_CELL_CLASS),t.classList.add(v.CSS_CLASSES._TABLE_DATE_CELL_FORM_CONTROL_CLASS));var i=t.getAttribute(v.DOM_ATTR._STYLE)||{};null==l||null==l.style||!o&&i===l.style||f.applyMergedInlineStyles(t,i,l.style),null==l||null==l.className||!o&&u(t).hasClass(l.className)||u(t).addClass(l.className),!this._isVerticalGridEnabled()||!o&&t.classList.contains(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)},v.prototype._styleTableBodyRow=function(e,t){e.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,""),!t&&e.classList.contains(v.CSS_CLASSES._TABLE_DATA_ROW_CLASS)||e.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_CLASS)},v.prototype._styleTableContainer=function(e){this.options.display===v._OPTION_DISPLAY._GRID?e.classList.add(v.CSS_CLASSES._TABLE_COMPACT_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_COMPACT_CLASS);var t=this.options.editMode;null!=t&&t!==v._OPTION_EDIT_MODE._NONE?e.classList.add(v.CSS_CLASSES._TABLE_EDIT_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_EDIT_CLASS),this._isHorizontalGridEnabled()?e.classList.add(v.CSS_CLASSES._TABLE_HGRID_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_HGRID_CLASS),this._isStickyLayoutEnabled()?e.classList.add(v.CSS_CLASSES._TABLE_STICKY_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_STICKY_CLASS)},v.prototype._styleTableFooter=function(e){if(e){e.classList.add(v.CSS_CLASSES._TABLE_FOOTER_CLASS);var t=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TR)[0];t.classList.add(v.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS),t.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")}},v.prototype._styleTableFooterCell=function(e,t){var o=this._getColumnDefs()[e],l=t.getAttribute(v.DOM_ATTR._STYLE)||{};null!=o.footerStyle&&l!==o.footerStyle&&f.applyMergedInlineStyles(t,l,o.footerStyle),t.classList.contains(v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)||t.classList.add(v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS),this._isVerticalGridEnabled()&&!t.classList.contains(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)&&t.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),o.footerClassName&&u(t).addClass(o.footerClassName)},v.prototype._styleTableHeader=function(e){if(e){e.classList.add(v.CSS_CLASSES._TABLE_HEADER_CLASS),e.style[v.CSS_PROP._DISPLAY]="table-header-group";var t=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TR)[0];t.classList.add(v.CSS_CLASSES._TABLE_HEADER_ROW_CLASS),t.style[v.CSS_PROP._POSITION]=v.CSS_VAL._RELATIVE,t.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")}},v.prototype._styleTableHeaderColumn=function(e,t,o){var l=this._getColumnDefs()[e];!o&&t.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)||t.classList.add(v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS),l.sortable===v._OPTION_ENABLED&&t.classList.add(v.CSS_CLASSES._TABLE_SORT_CLASS),this._isVerticalGridEnabled()&&(!o&&t.classList.contains(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS));var i=t.getAttribute(v.DOM_ATTR._STYLE)||{};null==l.headerStyle||!o&&i===l.headerStyle||f.applyMergedInlineStyles(t,i,l.headerStyle),null==l.headerClassName||!o&&u(t).hasClass(l.headerClassName)||u(t).addClass(l.headerClassName)},v.prototype._getColspanLogicalElements=function(e){for(var t=0,o=[],l=e.length,i=0;i<l;i++){var n=e[i].getAttribute(v.DOM_ATTR._COLSPAN);if(null!=n){n=parseInt(n,10);for(var s=0;s<n;s++)o[t+s]=e[i];t+=n}else o[t]=e[i],t+=1}return o},v.prototype._isHorizontalGridEnabled=function(){if(this.options.horizontalGridVisible===v._OPTION_ENABLED)return!0;if(this.options.horizontalGridVisible===v._OPTION_AUTO){if(this.options.display===v._OPTION_DISPLAY._GRID)return!0;if("enabled"===this._getDefaultOptions().horizontalGridVisible)return!0}return!1},v.prototype._isVerticalGridEnabled=function(){return this.options.verticalGridVisible===v._OPTION_ENABLED||this.options.verticalGridVisible===v._OPTION_AUTO&&this.options.display===v._OPTION_DISPLAY._GRID},v.prototype._isFF=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},v.prototype._isIE=function(){if(void 0===this._browserIsIE){var e=navigator.userAgent;if("Microsoft Internet Explorer"===navigator.appName){var t=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e);null!=t&&(this._browserIsIE=parseFloat(t[1]))}else e.indexOf("Trident")>=0?this._browserIsIE=11:this._browserIsIE=null}return this._browserIsIE},v.prototype._isWebkit=function(){if(void 0===this._browserIsWebkit){var e=navigator.userAgent.toLowerCase();this._browserIsWebkit=/webkit/.test(e)&&!/edge/.test(e)}return this._browserIsWebkit},v.prototype._refreshTouchAffordanceGlassPanePosition=function(){var e=this._getTouchAffordanceGlassPane();if(e){var t=this._getLayoutManager().getScroller().getBoundingClientRect(),o=this._getTableContainer().getBoundingClientRect();e.style[v.CSS_PROP._TOP]=t.top-o.top+v.CSS_VAL._PX,e.style[v.CSS_PROP._BOTTOM]=t.bottom-o.bottom+v.CSS_VAL._PX,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()}},v.prototype._refreshTableStatusPosition=function(e){var t=this._getTableContainer(),o=t.clientHeight,l=this._getTableStatusMessage(),i=0,n=o,s=this._getTableHeader();if(null!=s){var a=s.offsetHeight;i=a,n-=a}var r=this._getTableFooter();null!=r&&(n-=r.offsetHeight);var _=this._getTableBottomSlot();if(null!=_&&(n-=_.offsetHeight),this._isSkeletonSupport()){var d=0,h=this._getDefaultSkeletonDimension();h.width>0&&h.height>0&&(d=Math.max(1,Math.ceil(n/h.height)));for(var u=0;u<d;u++)l.appendChild(this._createSkeletonRow());this._skeletonFadeInEndListener=function(){l.classList.remove("oj-animation-skeleton-fade-in"),l.querySelectorAll(".oj-table-skeleton-row").forEach(function(e){e.classList.add("oj-animation-skeleton")}),l.removeEventListener("animationend",this._skeletonFadeInEndListener)}.bind(this),l.addEventListener("animationend",this._skeletonFadeInEndListener),l.classList.add("oj-animation-skeleton-fade-in")}else n<=40&&(i=0,n=o);if(l.style[v.CSS_PROP._TOP]=i+v.CSS_VAL._PX,l.style[v.CSS_PROP._HEIGHT]=n+v.CSS_VAL._PX,l.style[v.CSS_PROP._WIDTH]=t.clientWidth+v.CSS_VAL._PX,e&&(l.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._INLINE,this._statusMessageShown=!0),!this._isSkeletonSupport()){var c=l.children[0];c.style[v.CSS_PROP._TOP]=(n-c.offsetHeight)/2+v.CSS_VAL._PX}},v.prototype._createSkeletonRow=function(){var e=document.createElement("div");e.className="oj-table-skeleton-row-container";var t=document.createElement("div");return t.className="oj-table-skeleton-row",e.appendChild(t),e},v.prototype._getDefaultSkeletonDimension=function(){if(null==this._defaultSkeletonDim){var e=this._getTableContainer(),t=this._createSkeletonRow();t.style.visibility="hidden",t.style.display="block",e.appendChild(t);var o={width:t.offsetWidth,height:t.offsetHeight};return e.removeChild(t),o.height>0&&o.width>0&&(this._defaultSkeletonDim=o),o}return this._defaultSkeletonDim},v.prototype._cacheDomElement=function(e,t){this._domCache||(this._domCache={}),this._domCache[e]=t},v.prototype._clearDomCache=function(e){e&&this._domCache?delete this._domCache[e]:this._domCache={}},v.prototype._getCachedDomElement=function(e){return this._domCache?this._domCache[e]:null},v.prototype._isCachedDomElement=function(e){return this._domCache||(this._domCache={}),-1!==Object.keys(this._domCache).indexOf(e)},v.prototype._getTableElementByClassName=function(e,t){if(!this._isCachedDomElement(e)){var o=this._getTableContainer();if(o)if(this._cacheDomElement(e,null),t){if(this._cacheDomElement(e,this._getChildElementByClassName(o,e)),null==this._getCachedDomElement(e)){var l=this._getTable();this._cacheDomElement(e,this._getChildElementByClassName(l,e))}}else{var i=this._getTableElementsByClassName(o,e);i.length>0&&this._cacheDomElement(e,i[0])}}return this._getCachedDomElement(e)},v.prototype._getChildElementByClassName=function(e,t){if(null!=e.childNodes&&e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++)if(null!=e.childNodes[o].classList&&e.childNodes[o].classList.contains(t))return e.childNodes[o];return null},v.prototype._getTableElementsByClassName=function(e,t,o){var l=e.getElementsByClassName(t);return this._filterTableOwnedElements(l,o?e:null)},v.prototype._getTableElementsByTagName=function(e,t,o){var l=e.getElementsByTagName(t);return this._filterTableOwnedElements(l,o?e:null)},v.prototype._tableQuerySelectorAll=function(e,t,o){var l=e.querySelectorAll(t);return this._filterTableOwnedElements(l,o?e:null)},v.prototype._filterTableOwnedElements=function(e,t){var o,l;if(t){o=t;for(var i=t.getElementsByTagName(v.DOM_ELEMENT._TABLE),n=0;n<i.length;n++)if(i[n].parentNode===t||i[n].parentNode.parentNode===t){l=i[n];break}}else o=this._getTableContainer(),l=this._getTable();return Array.prototype.filter.call(e,function(e){return this._isTableOwned(e,o,l)}.bind(this))},v.prototype._isTableOwned=function(e,t,o){var l=t||this._getTableContainer(),i=t?o:this._getTable();if(l){if(i){var n=this._getFirstAncestor(e,i.tagName);if(n===i)return!0;if(n)return!1}var s=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_CONTAINER_CLASS);if(s===l)return!0;if(s)return!1;if(!l.contains(e))return!0}return!1},v.prototype._focusSetupHandlers=function(e,t){this._setFocusInHandler(e),this._setFocusOutHandler(t)},v.prototype._getSortIconContainer=function(e){return this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS)[0]},v.prototype._getSortIcon=function(e){var t=this._getSortIconContainer(e);return null!=t?t.firstChild:null},v.prototype._getTableBodySelectorCell=function(e){if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_SELECTOR_CELL);if(t.length>0)return t[0]}return null},v.prototype._getTableSelectorColumn=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},v.prototype._getTableFooterSelectorCell=function(){var e=this._getTableFooterRow();if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},v.CSS_CLASSES={_TABLE_CONTAINER_CLASS:"oj-table-container",_TABLE_SCROLLER_CLASS:"oj-table-scroller",_TABLE_CLASS:"oj-table",_TABLE_STICKY_CLASS:"oj-table-sticky",_TABLE_STRETCH_CLASS:"oj-table-stretch",_TABLE_COMPACT_CLASS:"oj-table-grid-display",_TABLE_HGRID_CLASS:"oj-table-horizontal-grid",_TABLE_EDIT_CLASS:"oj-table-editable",_TABLE_SCROLL_VERTICAL_CLASS:"oj-table-scroll-vertical",_TABLE_SCROLL_HORIZONTAL_CLASS:"oj-table-scroll-horizontal",_TABLE_SORT_CLASS:"oj-table-sort",_TABLE_ELEMENT_CLASS:"oj-table-element",_TABLE_FOOTER_CLASS:"oj-table-footer",_TABLE_FOOTER_ROW_CLASS:"oj-table-footer-row",_TABLE_HEADER_CLASS:"oj-table-header",_TABLE_HEADER_ROW_CLASS:"oj-table-header-row",_TABLE_HEADER_SELECTOR_CLASS:"oj-table-header-selector",_TABLE_COLGROUP_CLASS:"oj-table-colgroup",_TABLE_COL_SELECTOR_CLASS:"oj-table-col-selector",_TABLE_COL_CLASS:"oj-table-col",_TABLE_BOTTOM_SLOT_CLASS:"oj-table-slot-bottom",_TABLE_SORT_ICON_CONTAINER_CLASS:"oj-table-sort-icon-container",_COLUMN_HEADER_CELL_CLASS:"oj-table-column-header-cell",_COLUMN_HEADER_SELECTOR_CELL_CLASS:"oj-table-column-header-selector-cell",_COLUMN_HEADER_DROP_EMPTY_CELL_CLASS:"oj-table-column-header-drop-empty-cell",_COLUMN_HEADER_CLASS:"oj-table-column-header",_COLUMN_HEADER_TEXT_CLASS:"oj-table-column-header-text",_COLUMN_HEADER_ASC_ICON_CLASS:"oj-table-column-header-asc-icon",_COLUMN_HEADER_DSC_ICON_CLASS:"oj-table-column-header-dsc-icon",_COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS:"oj-table-column-header-default-sort-icon",_COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:"oj-table-column-header-drag-indicator-before",_COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS:"oj-table-column-header-drag-indicator-after",_COLUMN_HEADER_DRAG_IMAGE:"oj-table-column-header-cell-drag-image",_COLUMN_HEADER_RESIZING_CLASS:"oj-table-column-header-resizing",_COLUMN_HEADER_RESIZE_INDICATOR_CLASS:"oj-table-column-header-resize-indicator",_TABLE_BODY_CLASS:"oj-table-body",_TABLE_DATA_ROW_CLASS:"oj-table-body-row",_TABLE_DATA_ROW_DRAG_INDICATOR_CLASS:"oj-table-body-row-drag-indicator",_TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS:"oj-table-touch-affordance-glass-pane",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS:"oj-table-body-row-touch-selection-affordance-top",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS:"oj-table-body-row-touch-selection-affordance-bottom",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-top-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-bottom-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS:"oj-table-body-row-touch-selection-affordance-touch-area",_TABLE_DATA_ROW_EDIT_CLASS:"oj-table-body-row-edit",_TABLE_DATA_ROW_SELECTOR_CLASS:"oj-table-body-row-selector",_TABLE_SELECTOR_CELL:"oj-table-selector-cell",_TABLE_DATA_CURRENT_ROW_CLASS:"oj-table-body-current-row",_TABLE_DATA_CELL_CLASS:"oj-table-data-cell",_TABLE_DATA_CELL_EDIT_CLASS:"oj-table-data-cell-edit",_TABLE_DATE_CELL_FORM_CONTROL_CLASS:"oj-form-control-inherit",_TABLE_VGRID_LINES_CLASS:"oj-table-vgrid-lines",_TABLE_FOOTER_CELL_CLASS:"oj-table-footer-cell",_TABLE_FOOTER_SELECTOR_CELL_CLASS:"oj-table-footer-selector-cell",_TABLE_FOOTER_DROP_EMPTY_CELL_CLASS:"oj-table-footer-drop-empty-cell",_TABLE_STATUS_ACC_NOTIFICATION_CLASS:"oj-table-status-acc-notification",_TABLE_STATUS_MESSAGE_CLASS:"oj-table-status-message",_TABLE_STATUS_MESSAGE_TEXT_CLASS:"oj-table-status-message-text",_TABLE_ACC_CONTEXT_INFO_CLASS:"oj-table-acc-context-info",_TABLE_ACC_STATE_INFO_CLASS:"oj-table-acc-state-info",_TABLE_WIDTH_CONTAINER_CLASS:"oj-table-width-container",_TABLE_LOADING_ICON_CLASS:"oj-table-loading-icon",_TABLE_BODY_MESSAGE_CLASS:"oj-table-body-message",_TABLE_BODY_MESSAGE_ROW_CLASS:"oj-table-body-message-row",_TABLE_NO_DATA_CONTAINER_CLASS:"oj-table-no-data-container",_TABLE_NO_DATA_ROW_CLASS:"oj-table-no-data-row",_TABLE_TEMP_SKELETON_ROW_CLASS:"oj-table-temp-skeleton-row",_ICON_CLASS:"oj-icon",_WIDGET_ICON_CLASS:"oj-component-icon",_HIDDEN_CONTENT_ACC_CLASS:"oj-helper-hidden-accessible",_TEXT_ALIGN_END:"oj-helper-text-align-end",_TABLE_LEGACY_SCROLL_CLASS:"oj-table-legacy-scroll"},v.CSS_PROP={_DISPLAY:"display",_VISIBILITY:"visibility",_POSITION:"position",_HEIGHT:"height",_WIDTH:"width",_TOP:"top",_BOTTOM:"bottom",_LEFT:"left",_RIGHT:"right",_PADDING_TOP:"padding-top",_PADDING_LEFT:"padding-left",_PADDING_RIGHT:"padding-right",_OVERFLOW:"overflow",_OVERFLOW_X:"overflow-x",_OVERFLOW_Y:"overflow-y",_MIN_WIDTH:"min-width",_MAX_WIDTH:"max-width",_MIN_HEIGHT:"min-height",_FLOAT:"float",_BORDER_TOP:"border-top",_BORDER_BOTTOM_WIDTH:"border-bottom-width",_BORDER_LEFT_WIDTH:"border-left-width",_BORDER_RIGHT_WIDTH:"border-right-width",_BORDER_COLOR:"border-color",_MARGIN_BOTTOM:"margin-bottom",_VERTICAL_ALIGN:"vertical-align",_CURSOR:"cursor",_ZINDEX:"z-index",_BACKGROUND_COLOR:"background-color",_BOX_SIZING:"box-sizing"},v.CSS_VAL={_NONE:"none",_BLOCK:"block",_INLINE_BLOCK:"inline-block",_RELATIVE:"relative",_ABSOLUTE:"absolute",_INLINE:"inline",_AUTO:"auto",_HIDDEN:"hidden",_SCROLL:"scroll",_VISIBLE:"visible",_LEFT:"left",_PX:"px",_MIDDLE:"middle",_MOVE:"move",_FIXED:"fixed",_TRANSPARENT:"transparent",_BORDER_BOX:"border-box"},v.DOM_ATTR={_STYLE:"style",_TABINDEX:"tabindex",_TYPE:"type",_ID:"id",_TITLE:"title",_HREF:"href",_HEADERS:"headers",_COLSPAN:"colspan",_ROLE:"role",_ARIA_LABEL:"aria-label",_ARIA_LABELLEDBY:"aria-labelledby",_ARIA_HIDDEN:"aria-hidden"},v.DOM_ELEMENT={_DIV:"div",_A:"a",_TR:"tr",_TD:"td",_TH:"th",_TABLE:"table",_TBODY:"tbody",_THEAD:"thead",_TFOOT:"tfoot",_INPUT:"input",_UL:"ul",_SPAN:"span",_BUTTON:"button",_LABEL:"label",_COLGROUP:"colgroup",_COL:"col"},v.MARKER_STYLE_CLASSES={_WIDGET:"oj-component",_ACTIVE:"oj-active",_CLICKABLE_ICON:"oj-clickable-icon-nocontext",_DISABLED:"oj-disabled",_ENABLED:"oj-enabled",_FOCUS:"oj-focus",_FOCUS_HIGHLIGHT:"oj-focus-highlight",_HOVER:"oj-hover",_SELECTED:"oj-selected",_DEFAULT:"oj-default",_WARNING:"oj-warning",_DRAGGABLE:"oj-draggable",_DRAG:"oj-drag",_HIDE_VERTICAL_SCROLLBAR:"oj-table-hide-vertical-scrollbar"},
|
|
86
|
+
v.prototype._clearCachedDom=function(){this._clearCachedDomRowData(),this._clearDomCache()},v.prototype._clearCachedDomRowData=function(){this._cachedDomTableBodyRows=null},v.prototype._createContextMenuContainer=function(){var e=this._GetContextMenu(),t=!!this._isTouchDevice()&&this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE;return!e&&(this._isTableSortable()||t||this._isTableColumnsResizable())&&(this._IsCustomElement()?(e=document.createElement("oj-menu")).setAttribute("data-oj-binding-provider","none"):(e=document.createElement(v.DOM_ELEMENT._UL),u(e).ojMenu()),e.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE,e.setAttribute(v.DOM_ATTR._ID,this._getTableId()+"_contextmenu"),this._getTableContainer().appendChild(e),this.option("contextMenu","#"+e.getAttribute(v.DOM_ATTR._ID),{_context:{internalSet:!0}}),this._defaultContextMenu=e),e},v.prototype._populateContextMenuItems=function(e,t){var o=!!this._isTouchDevice()&&this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE;if(!this._menuContainer)if(this._GetDefaultContextMenu()){if(this._isTableSortable()){var l=this._createContextMenuItem("sort",this._IsCustomElement());e.appendChild(l)}if(o){var i=this._createContextMenuItem("enableNonContiguousSelection",this._IsCustomElement());e.appendChild(i)}if(this._isTableColumnsResizable()){var n=this._createContextMenuItem("resize",this._IsCustomElement());e.appendChild(n)}this._menuContainer=e,this._IsCustomElement()?(e.refresh(),e.addEventListener("ojAction",t)):(u(e).ojMenu("refresh"),u(e).on("ojselect",t))}else{var s=e.querySelectorAll("[data-oj-command]");if(s.length>0){var a,r,_;for(r=0;r<s.length;r++)"OJ-OPTION"!==s[r].tagName&&0!==s[r].getElementsByTagName(v.DOM_ELEMENT._A).length||(a=s[r].getAttribute("data-oj-command").split("-"),_=this._createContextMenuItem(a[a.length-1],this._IsCustomElement()),"OJ-OPTION"===s[r].tagName?s[r].innerHTML=_.innerHTML:u(s[r]).replaceWith(_));this._menuContainer=e,u(e).data("oj-ojMenu")&&(this._IsCustomElement()?e.refresh():u(e).ojMenu("refresh")),this._IsCustomElement()?e.addEventListener("ojAction",t):u(e).on("ojselect",t)}}return e},v.prototype._createContextMenuItem=function(e,t){if("sort"===e){var o,l=this._createContextMenuListItem(e,t);return o=this._IsCustomElement()?document.createElement("oj-menu"):document.createElement(v.DOM_ELEMENT._UL),l.appendChild(o),o.appendChild(this._createContextMenuListItem("sortAsc",t)),o.appendChild(this._createContextMenuListItem("sortDsc",t)),l}return"sortAsc"===e||"sortDsc"===e||"enableNonContiguousSelection"===e||"disableNonContiguousSelection"===e?this._createContextMenuListItem(e,t):"resize"===e?(this._createContextMenuResizePopup(0),this._createContextMenuListItem(e,t)):null},v.prototype._createContextMenuListItem=function(e,t){var o=document.createElement(t?"oj-option":"li");return o.setAttribute("data-oj-command","oj-table-"+e),o.appendChild(this._createContextMenuLabel(e,t)),o},v.prototype._createContextMenuLabel=function(e,t){var o=null;"sort"===e?o=this.getTranslatedString("labelSort"):"sortAsc"===e?o=this.getTranslatedString("labelSortAsc"):"sortDsc"===e?o=this.getTranslatedString("labelSortDsc"):"enableNonContiguousSelection"===e?o=this.getTranslatedString("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"===e?o=this.getTranslatedString("labelDisableNonContiguousSelection"):"resize"===e&&(o=this.getTranslatedString("labelResize"));var l=document.createTextNode(o);if(t)return l;var i=document.createElement(v.DOM_ELEMENT._A);return i.setAttribute(v.DOM_ATTR._HREF,"#"),i.appendChild(l),i},v.prototype._createContextMenuResizePopup=function(e){e=Math.round(e);var t,o,l,i,n,s,a,r,_,d,h=this._getContextMenuResizePopup();return this._IsCustomElement()?null==h?(l=this._getTableContainer(),(h=document.createElement("oj-popup")).setAttribute("id",this._getTableId()+"_resize_popup"),h.setAttribute("data-oj-binding-provider","none"),l.appendChild(h),i=document.createElement(v.DOM_ELEMENT._DIV),n=document.createElement(v.DOM_ELEMENT._DIV),(s=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TEXT_ALIGN_END),h.appendChild(i),h.appendChild(n),h.appendChild(s),(_=document.createElement("h6")).textContent=this.getTranslatedString("labelResizePopupSpinner"),i.appendChild(_),(t=document.createElement("oj-input-number")).setAttribute("id",this._getTableId()+"_resize_popup_spinner"),(a=document.createElement("oj-button")).setAttribute("id",this._getTableId()+"_resize_popup_popupcancel"),a.style.margin="5px",a.textContent=this.getTranslatedString("labelResizePopupCancel"),(r=document.createElement("oj-button")).setAttribute("id",this._getTableId()+"_resize_popup_popupsubmit"),r.style.margin="5px",r.textContent=this.getTranslatedString("labelResizePopupSubmit"),n.appendChild(t),s.appendChild(r),s.appendChild(a),o=function(){r.disabled=!1,t.value=0,h.close()},a.addEventListener("click",o),r.addEventListener("click",this._handleContextMenuResizePopup.bind(this)),t.max=1e3,t.min=10,t.step=1,t.value=e,t.displayOptions={messages:["notewindow"]},t.userAssistanceDensity="compact",t.validators=[new y({pattern:"^[1-9][0-9]*$",messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})],t.addEventListener("validChanged",function(e){"valid"===e.detail.value?r.disabled=!1:r.disabled=!0}),d={my:"start top",at:"start bottom",collision:"flipfit"},h.setAttribute("position",JSON.stringify(d)),h.setAttribute("modality","modal"),this._cacheDomElement(this._getTableId()+"_resize_popup",h)):(t=document.getElementById(this._getTableId()+"_resize_popup_spinner")).value=e:(l=this._getTableContainer(),null==h?((h=document.createElement(v.DOM_ELEMENT._DIV)).setAttribute("id",this._getTableId()+"_resize_popup"),h.setAttribute("data-oj-context",""),l.appendChild(h),i=document.createElement(v.DOM_ELEMENT._DIV),n=document.createElement(v.DOM_ELEMENT._DIV),(s=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TEXT_ALIGN_END),h.appendChild(i),h.appendChild(n),h.appendChild(s),(_=document.createElement("h6")).textContent=this.getTranslatedString("labelResizePopupSpinner"),i.appendChild(_),(t=document.createElement(v.DOM_ELEMENT._INPUT)).setAttribute("id",this._getTableId()+"_resize_popup_spinner"),(a=document.createElement(v.DOM_ELEMENT._BUTTON)).setAttribute("id",this._getTableId()+"_resize_popup_popupcancel"),a.style.margin="5px",(r=document.createElement(v.DOM_ELEMENT._BUTTON)).setAttribute("id",this._getTableId()+"_resize_popup_popupsubmit"),r.style.margin="5px",n.appendChild(t),s.appendChild(r),s.appendChild(a),u(r).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupSubmit")}),u(a).ojButton({component:"ojButton",label:this.getTranslatedString("labelResizePopupCancel")}),o=function(){u(r).ojButton({disabled:!1}),u(t).ojInputNumber({value:0}),u(h).ojPopup("close")},u(r).on("click",this._handleContextMenuResizePopup.bind(this)),u(a).on("click",o),u(t).ojInputNumber({component:"ojInputNumber",max:1e4,min:10,step:1,value:e,displayOptions:{messages:["notewindow"]},userAssistanceDensity:"compact",validators:[new y({pattern:"^[1-9][0-9]*$",messageDetail:this.getTranslatedString("msgColumnResizeWidthValidation")})]}),u(h).ojPopup({modality:"modal",position:{my:"start top",at:"start bottom",collision:"flipfit"}}),u(t).on("change",function(){u(r).ojButton({disabled:!u(t).ojInputNumber("validate")})}),this._cacheDomElement(this._getTableId()+"_resize_popup",h)):(t=document.getElementById(this._getTableId()+"_resize_popup_spinner"),u(t).ojInputNumber("option","value",e))),h},v.prototype._createInitialTable=function(e,t){var o=this._getTable();return this._createTableContainer(),this._isStickyLayoutEnabled()&&(this._createTableScroller(),this._createTableColGroup()),e||this._createTableHeader(),t||this._createTableFooter(),this._createTableBody(),this._createTableStatusMessage(),this._createTableStatusAccNotification(),this._createContextInfo(),this._createStateInfo(),this._createTableWidthContainer(),o},v.prototype._createTableBody=function(){var e=this._getTable(),t=document.createElement(v.DOM_ELEMENT._TBODY);return e.appendChild(t),this._cacheDomElement(v.CSS_CLASSES._TABLE_BODY_CLASS,t),t},v.prototype._createTableBodyCell=function(){return document.createElement(v.DOM_ELEMENT._TD)},v.prototype._createTableBodyDefaultSelector=function(e,t){var o=null;(o=document.createElement(v.DOM_ELEMENT._TD)).classList.add(v.CSS_CLASSES._TABLE_SELECTOR_CELL),this._isVerticalGridEnabled()&&o.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS);var l=document.createElement("oj-selector");return l.id="table_selector"+e,l.selectedKeys=this.options.selected.row,l.setAttribute("data-oj-binding-provider","none"),l.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),l.setAttribute("selection-mode","multiple"),l.rowKey=e,l.addEventListener("selectedKeysChanged",function(e){"internal"===e.detail.updatedFrom&&this._setSelected({row:e.detail.value,column:new L.KeySetImpl},!1,!0)}.bind(this)),o.appendChild(l),t.insertBefore(o,t.firstChild),o},v.prototype._createTableHeaderSelectorColumn=function(){var e=document.createElement(v.DOM_ELEMENT._TH);e.classList.add(v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS),this._isVerticalGridEnabled()&&e.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS);var t=document.createElement("oj-selector");return t.selectedKeys=this.options.selected.row,t.setAttribute("data-oj-binding-provider","none"),t.classList.add(v.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS),t.setAttribute("selection-mode","all"),t.addEventListener("selectedKeysChanged",function(e){"internal"===e.detail.updatedFrom&&this._setSelected({row:e.detail.value,column:new L.KeySetImpl},!1,!0)}.bind(this)),e.appendChild(t),e},v.prototype._createTableFooterSelectorCell=function(){var e=this._createTableFooterCell();return e.classList.add(v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS),this._isVerticalGridEnabled()&&e.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),e},v.prototype._createTableBodyMessageCell=function(e,t,o){var l=document.createElement(v.DOM_ELEMENT._TD);return this._isDefaultSelectorEnabled()&&(t+=1),l.setAttribute(v.DOM_ATTR._COLSPAN,t),l.classList.add(v.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS),l.appendChild(document.createTextNode(o)),e.appendChild(l),l},v.prototype._createTableBodyMessageRow=function(e,t){var o=this._getTableBody(),l=document.createElement(v.DOM_ELEMENT._TR);return l.classList.add(v.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS),this._createTableBodyMessageCell(l,e,t),o.appendChild(l),l},v.prototype._createTableBodyRow=function(){return document.createElement(v.DOM_ELEMENT._TR)},v.prototype._getTouchAffordanceGlassPane=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS);return t.length>0?t[0]:null},v.prototype._createTouchAffordanceGlassPane=function(){var e=this._getTouchAffordanceGlassPane();if(!e){var t=this._getTableContainer();(e=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS),t.appendChild(e),this._refreshTouchAffordanceGlassPanePosition()}return e},v.prototype._createTableBodyRowTouchSelectionAffordance=function(e){var t=this._createTouchAffordanceGlassPane(),o=this._getTableBodyRowTouchSelectionAffordanceTop();if(!o){(o=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS),o.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var l=document.createElement(v.DOM_ELEMENT._DIV);l.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS),l.setAttribute(v.DOM_ATTR._ROLE,"button"),l.setAttribute(v.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceTop")),o.appendChild(l),t.appendChild(o)}var i=this._getTableBodyRowTouchSelectionAffordanceBottom();if(!i){(i=document.createElement(v.DOM_ELEMENT._DIV)).classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS),i.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS);var n=document.createElement(v.DOM_ELEMENT._DIV);n.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS),n.setAttribute(v.DOM_ATTR._ROLE,"button"),n.setAttribute(v.DOM_ATTR._ARIA_LABEL,this.getTranslatedString("labelAccSelectionAffordanceBottom")),i.appendChild(n),t.appendChild(i)}this._moveTableBodyRowTouchSelectionAffordanceTop(e),this._moveTableBodyRowTouchSelectionAffordanceBottom(e)},v.prototype._createTableBottomSlot=function(){var e=this._getTableContainer(),t=document.createElement(v.DOM_ELEMENT._DIV);return t.classList.add(v.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS),e.appendChild(t),this._cacheDomElement(v.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,t),t},v.prototype._createTableContainer=function(){var e=this.OuterWrapper;return e||(e=document.createElement(v.DOM_ELEMENT._DIV),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild)),this._cacheDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS,e),e.classList.add(v.CSS_CLASSES._TABLE_CLASS),e.classList.add(v.CSS_CLASSES._TABLE_CONTAINER_CLASS),e.classList.add(v.MARKER_STYLE_CLASSES._WIDGET),e},v.prototype._createTableScroller=function(){var e=document.createElement(v.DOM_ELEMENT._DIV);return e.classList.add(v.CSS_CLASSES._TABLE_SCROLLER_CLASS),this.element[0].parentNode.replaceChild(e,this.element[0]),e.insertBefore(this.element[0],e.firstChild),e},v.prototype._createTableColGroup=function(){var e=document.createElement(v.DOM_ELEMENT._COLGROUP);e.classList.add(v.CSS_CLASSES._TABLE_COLGROUP_CLASS),this._cacheDomElement(v.CSS_CLASSES._TABLE_COLGROUP_CLASS,e);var t=this._getTableHeader();if(null!=t)return t.parentNode.insertBefore(e,t),e;var o=this._getTableBody();if(null!=o)return o.parentNode.insertBefore(e,o),e;var l=this._getTableFooter();return null!=l?(l.parentNode.insertBefore(e,l),e):(this._getTable().appendChild(e),e)},v.prototype._createTableFooter=function(){var e=this._getTable(),t=document.createElement(v.DOM_ELEMENT._TFOOT),o=document.createElement(v.DOM_ELEMENT._TR);t.appendChild(o);var l=this._getTableHeader();if(null!=l)l.parentNode.insertBefore(t,l.nextSibling);else{var i=this._getTableBody();null!=i?i.parentNode.insertBefore(t,i):e.appendChild(t)}return this._cacheDomElement(v.CSS_CLASSES._TABLE_FOOTER_CLASS,t),t},v.prototype._createTableFooterCell=function(){return document.createElement(v.DOM_ELEMENT._TD)},v.prototype._createTableHeader=function(){var e=this._getTable(),t=document.createElement(v.DOM_ELEMENT._THEAD),o=document.createElement(v.DOM_ELEMENT._TR);t.appendChild(o);var l=this._getTableFooter();if(null!=l)l.parentNode.insertBefore(t,l);else{var i=this._getTableBody();null!=i?i.parentNode.insertBefore(t,i):e.appendChild(t)}return this._cacheDomElement(v.CSS_CLASSES._TABLE_HEADER_ROW_CLASS,o),this._cacheDomElement(v.CSS_CLASSES._TABLE_HEADER_CLASS,t),t},v.prototype._createTableHeaderColumn=function(e){var t=this._getColumnDefs()[e],o=document.createElement(v.DOM_ELEMENT._TH);this._styleTableHeaderColumn(e,o,!0),o.setAttribute("abbr",t.headerText),o.setAttribute(v.DOM_ATTR._TITLE,t.headerText),this._insertTableHeaderColumn(e,o);var l={columnIndex:e,headerContext:{component:this,parentElement:o}};return t.resizable===v._OPTION_ENABLED&&o.setAttribute("data-oj-resizable",v._OPTION_ENABLED),t.sortable===v._OPTION_ENABLED?(o.setAttribute("data-oj-sortable",v._OPTION_ENABLED),this._columnHeaderSortableIconRenderer(l)):this._columnHeaderDefaultRenderer(l),o},v.prototype._createTableSelectorCol=function(){var e=document.createElement(v.DOM_ELEMENT._COL);return e.classList.add(v.CSS_CLASSES._TABLE_COL_SELECTOR_CLASS),e},v.prototype._createTableCol=function(){var e=document.createElement(v.DOM_ELEMENT._COL);return e.classList.add(v.CSS_CLASSES._TABLE_COL_CLASS),e},v.prototype._createTableHeaderColumnDragImage=function(e){var t;if(1===e.length){(t=this._getTableHeaderColumn(e[0]).cloneNode(!0)).classList.remove(v.MARKER_STYLE_CLASSES._FOCUS),t.classList.remove(v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT),t.classList.remove(v.MARKER_STYLE_CLASSES._HOVER)}else{(t=document.createElement("th")).classList.add("oj-table-column-header-cell");var o=document.createElement(v.DOM_ELEMENT._DIV);o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_CLASS),t.appendChild(o);var l=document.createElement(v.DOM_ELEMENT._DIV);l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_TEXT_CLASS),l.textContent=e.length+" Items",o.appendChild(l)}return t.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_IMAGE),t.style[v.CSS_PROP._POSITION]=v.CSS_VAL._ABSOLUTE,t.style[v.CSS_PROP._TOP]="0",t.style[v.CSS_PROP._LEFT]="-999em",t.style[v.CSS_PROP._ZINDEX]="-999",document.body.appendChild(t),t},v.prototype._createTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();if(!e){var t=this._getTableContainer();e=document.createElement(v.DOM_ELEMENT._DIV),t.appendChild(e),e.classList.add(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS),this._cacheDomElement(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,e)}return e},v.prototype.createSubId=function(e){return[this._getRootElement().id,e].join(":")},v.prototype._createTableStatusMessage=function(){var e=this._getTableContainer(),t=document.createElement(v.DOM_ELEMENT._DIV);if(t.classList.add(v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS),t.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE,!this._isSkeletonSupport()){var o=document.createElement(v.DOM_ELEMENT._DIV);o.classList.add(v.CSS_CLASSES._ICON_CLASS),o.classList.add(v.CSS_CLASSES._TABLE_LOADING_ICON_CLASS),o.setAttribute("aria-label",this.getTranslatedString(v._BUNDLE_KEY._MSG_FETCHING_DATA)),t.appendChild(o)}return e.appendChild(t),this._cacheDomElement(v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,t),t},v.prototype._createTableWidthContainer=function(){var e=this._getTableContainer(),t=document.createElement(v.DOM_ELEMENT._DIV);return t.classList.add(v.CSS_CLASSES._TABLE_WIDTH_CONTAINER_CLASS),e.appendChild(t),this._tableWidthContainer=t,t},v.prototype._displayDragOverIndicatorColumn=function(e,t){this._removeDragOverIndicatorColumn();var o=this._getTableHeaderRow(),l=this._getTableHeaderColumn(e),i=this._getVisibleRowIdxs();null!=l?(t?l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS):l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS),i.forEach(function(o){var l=this._getTableBodyCell(o,e);null!=l&&(t?l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS):l.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS))}.bind(this))):0===this._getColumnDefs().length&&(t?o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS):o.classList.add(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS))},v.prototype._displayDragOverIndicatorRow=function(e,t,o,l){this._removeDragOverIndicatorRow();var i=document.createElement(v.DOM_ELEMENT._TR);i.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),"line"===o?i.classList.add("oj-table-body-row-drop-target"):null!=t&&(u(i).height(parseInt(u(t).height(),10)),l&&this._rowsDragged.forEach(function(e){e.classList.add("oj-table-row-drag-source-hide")}));var n=document.createElement(v.DOM_ELEMENT._TD),s=this._getColumnDefs().length;this._isDefaultSelectorEnabled()&&(s+=1),n.setAttribute(v.DOM_ATTR._COLSPAN,s),i.appendChild(n);var a=this._getTableBodyRow(e);null!=a?a.parentNode.insertBefore(i,a):(0===this._getTableBodyRows().length&&this._hideNoDataMessage(),this._getTableBody().appendChild(i))},v.prototype._getContextMenuElement=function(){return this._menuContainer},v.prototype._getContextMenuResizePopup=function(){var e=this._getTableId()+"_resize_popup";if(!this._isCachedDomElement(e)){var t=document.getElementById(e);this._cacheDomElement(e,t)}return this._getCachedDomElement(e)},v.prototype._getElementColumnIdx=function(e){var t=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=t)return u(t.parentNode).children("."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS).index(t);var o=this._getFirstAncestor(e,"."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=o)return u(o.parentNode).children("."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS).index(o);var l=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=l?u(l.parentNode).children("."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS).index(l):null},v.prototype._getElementRowIdx=function(e){var t=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS,!0);if(null!=t){var o=this._getTableBodyRows(),l=u(o).index(t);return l>-1?l:null}return null},v.prototype._getFirstAncestor=function(e,t,o){var l;if(null==e)return null;if(this._isIE()&&!Element.prototype.matches?e.msMatchesSelector(t):e.matches(t))return o&&!this._isTableOwned(e)?this._getFirstAncestor(e.parentNode,t,o):e;if(l=u(e).parents(t),o){for(var i=0;i<l.length;i++)if(this._isTableOwned(l[i]))return l[i];return null}return l.length>0?l[0]:null},v.prototype._getElementScrollLeft=function(e){return Math.abs(e.scrollLeft)},v.prototype._getTable=function(){return this.element[0]},v.prototype._getTableBody=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_BODY_CLASS,!0)},v.prototype._getTableBodyCell=function(e,t,o){var l=this._getTableBodyCells(e,o);return l.length>t?l[t]:null},v.prototype._getTableBodyLogicalCells=function(e,t){var o=this._getTableBodyCells(e,t);return this._getColspanLogicalElements(o)},v.prototype._getTableBodyCells=function(e,t){return t||(t=this._getTableBodyRow(e))?this._getTableElementsByClassName(t,v.CSS_CLASSES._TABLE_DATA_CELL_CLASS):[]},v.prototype._getTableBodyMessageCell=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_BODY_MESSAGE_CLASS);if(t.length>0)return t[0]}return null},v.prototype._getTableBodyMessageRow=function(){var e=this._getTableBody();if(e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_BODY_MESSAGE_ROW_CLASS);if(t.length>0)return t[0]}return null},v.prototype._getTableBodyRow=function(e){var t=this._getTableBodyRows();return null!=e&&t.length>e?t[e]:null},v.prototype._getTableBodyRows=function(){if(!this._cachedDomTableBodyRows){var e=this._getTableBody();this._cachedDomTableBodyRows=null!=e?this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_CLASS):[]}return this._cachedDomTableBodyRows},v.prototype._getTableTempSkeletonRow=function(){var e=this._getTableBody();return null!=e?this._getChildElementByClassName(e,v.CSS_CLASSES._TABLE_TEMP_SKELETON_ROW_CLASS):null},v.prototype._getTableBodyRowTouchSelectionAffordanceTop=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS);return t.length>0?t[0]:null},v.prototype._getTableBodyRowTouchSelectionAffordanceBottom=function(){var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS);return t.length>0?t[0]:null},v.prototype._getTableBottomSlot=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_BOTTOM_SLOT_CLASS,!0)},v.prototype._getTableContainer=function(){if(!this._isCachedDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS)){var e=this.element[0].parentNode;e.classList.contains(v.CSS_CLASSES._TABLE_SCROLLER_CLASS)?this._cacheDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS,e.parentNode):this._cacheDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS,e)}return this._getCachedDomElement(v.CSS_CLASSES._TABLE_CONTAINER_CLASS)},v.prototype._getTableScroller=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_SCROLLER_CLASS,!0)},v.prototype._getTableFooter=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_FOOTER_CLASS,!0)},v.prototype._getTableFooterCell=function(e){var t=this._getTableFooterCells();return null!=t&&t.length>e?t[e]:null},v.prototype._getTableFooterCells=function(){var e=this._getTableFooterRow(),t=null!=e?this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS):null;return null!=t&&t.length>0?t:null},v.prototype._getTableFooterLogicalCells=function(){var e=this._getTableFooterCells();return e?this._getColspanLogicalElements(e):null},v.prototype._getTableFooterRow=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS)},v.prototype._getTableHeader=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_HEADER_CLASS,!0)},v.prototype._getTableHeaderColumn=function(e){var t=this._getTableHeaderColumns();return t&&t.length>e&&e>=0?t[e]:null},v.prototype._getTableCol=function(e){var t=this._getTableColGroup();if(null!=t){var o=this._getTableElementsByClassName(t,v.CSS_CLASSES._TABLE_COL_CLASS);if(o.length>0)return o[e]}return null},v.prototype._getTableHeaderColumnResizeIndicator=function(){return this._getTableElementByClassName(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS,!0)},v.prototype._getTableHeaderColumns=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS);if(t.length>0)return t}return null},v.prototype._getTableHeaderLogicalColumns=function(){var e=this._getTableHeaderColumns();return e?this._getColspanLogicalElements(e):null},v.prototype._getTableHeaderRow=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_HEADER_ROW_CLASS)},v.prototype._getTableColGroup=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_COLGROUP_CLASS)},v.prototype._getTableId=function(){if(!this._tableId){var e=this._IsCustomElement()?this._getTableContainer():this._getTable();this._tableId=e.getAttribute(v.DOM_ATTR._ID)}return this._tableId},v.prototype._getTableStatusMessage=function(){return this._getTableElementByClassName(v.CSS_CLASSES._TABLE_STATUS_MESSAGE_CLASS,!0)},v.prototype._getTableUID=function(){if(!this._tableUID){var e=this._getTableId();null==e&&(e=(1e32*Math.random()).toString(36)),this._tableUID=e}return this._tableUID},v.prototype._hashCode=function(e){if(null==e)return 0;"string"!==u.type(e)&&(e=e.toString());var t=0;if(0===e.length)return t;for(var o=e.length,l=0;l<o;l++){t=(t<<5)-t+e.charCodeAt(l),t&=t}return t},v.prototype._insertTableBodyCell=function(e,t,o,l,i,n,s){if(this._setTableBodyCellAttributes(e,t,o,l,i),s)return n.appendChild(i),i;if(0===l)n.insertBefore(i,n.firstChild);else{var a=this._getTableElementsByClassName(n,v.CSS_CLASSES._TABLE_DATA_CELL_CLASS);if(a.length>=l){var r=a[l-1];r.parentNode.insertBefore(i,r.nextSibling)}else n.appendChild(i)}return i},v.prototype._insertTableBodyRow=function(e,t,o,l){if(this._setTableBodyRowAttributes(o,t),null==l){var i=this._getTableBody(),n=this._getTableBodyRows();if(0===e)i.insertBefore(t,i.firstChild);else if(n.length>=e){var s=n[e-1];s.parentNode.insertBefore(t,s.nextSibling)}else i.appendChild(t)}else l.appendChild(t);this._clearCachedDomRowData()},v.prototype._insertTableFooterCell=function(e,t){var o=this._getTableFooterRow(),l=this._getTableElementsByClassName(o,v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS);if(this._setTableFooterColumnAttributes(e,t),0===e)o.insertBefore(t,o.firstChild);else if(o.length>=e){var i=l[e-1];i.parentNode.insertBefore(t,i.nextSibling)}else o.appendChild(t);return t},v.prototype._insertTableHeaderColumn=function(e,t){var o=this._getTableHeaderRow(),l=this._getTableHeaderColumns();this._setTableHeaderColumnAttributes(e,t);var i=this._getTableHeaderColumn(e);if(i)u(i).replaceWith(u(t));else if(0!==e&&l&&l.length>=e){var n=l[e-1];n.parentNode.insertBefore(t,n.nextSibling)}else o.appendChild(t)},v.prototype._moveTableBodyRowTouchSelectionAffordanceTop=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceTop();if(null!=t){null!=e?(u(t).data("rowIdx",e),u(t.children[0]).data("rowIdx",e)):e=u(t).data("rowIdx");var o=this._getTableBody(),l=this._getTableBodyRow(e).getBoundingClientRect(),i=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[v.CSS_PROP._TOP]=l.top-i.top-t.clientHeight/2+v.CSS_VAL._PX,t.style[v.CSS_PROP._LEFT]=o.clientWidth/2+v.CSS_VAL._PX}},v.prototype._moveTableBodyRowTouchSelectionAffordanceBottom=function(e){var t=this._getTableBodyRowTouchSelectionAffordanceBottom();if(null!=t){null!=e?(u(t).data("rowIdx",e),u(t.children[0]).data("rowIdx",e)):e=u(t).data("rowIdx");var o=this._getTableBody(),l=this._getTableBodyRow(e).getBoundingClientRect(),i=this._getTouchAffordanceGlassPane().getBoundingClientRect();t.style[v.CSS_PROP._TOP]=l.top-i.top+l.height-t.clientHeight/2+v.CSS_VAL._PX,t.style[v.CSS_PROP._LEFT]=o.clientWidth/2+v.CSS_VAL._PX}},v.prototype._moveTableHeaderColumn=function(e,t,o){var l=[],i=[],n=[],s=null,a=null,r=null,_=null,d=!1;t===this._getColumnDefs().length&&(t-=1,d=!0),s=this._getTableHeaderColumn(t);for(let t=0;t<e.length;t++){let o=e[t];l[t]=this._getTableHeaderColumn(o),i[t]=this._getTableFooterCell(o)}for(let o=0;o<e.length;o++)null!=l[o]&&(_=l[o].getAttribute(v.DOM_ATTR._COLSPAN),null==s||null!=_&&1!==_||(d?(s.parentNode.insertBefore(l[o],s.nextSibling),s=l[o]):s.parentNode.insertBefore(l[o],s))),null!=i[o]&&(_=i[o].getAttribute(v.DOM_ATTR._COLSPAN),null==(a=this._getTableFooterCell(t))||null!=_&&1!==_||(d?(a.parentNode.insertBefore(i[o],a.nextSibling),a=i[o]):a.parentNode.insertBefore(i[o],a)));var h=this._getTableBodyRows();for(let o=0;o<h.length;o++){for(let t=0;t<e.length;t++)n[t]=this._getTableBodyCell(o,e[t],null);r=this._getTableBodyCell(o,t,null);for(let t=0;t<e.length;t++)null!=n[t]&&(_=n[t].getAttribute(v.DOM_ATTR._COLSPAN),null==r||null!=_&&1!==_||(d?(r.parentNode.insertBefore(n[t],r.nextSibling),r=n[t]):r.parentNode.insertBefore(n[t],r)))}var c=[],S=this.options.columns.length;for(let e=0;e<S;e++)c[e]=u.extend({},{},this.options.columns[e]);var C=d?t:t-1,E=[],T=[],p=[],g=e.reverse();if(!this._columnsDestMap){this._columnsDestMap=[];for(let e=0;e<c.length;e++)this._columnsDestMap[e]=e}return g.forEach(function(e){e<=C&&(C-=1),E.unshift(c.splice(e,1)[0]),T.unshift(this._columnDefArray.splice(e,1)[0]),p.unshift(this._columnsDestMap.splice(e,1)[0])}.bind(this)),c.splice(C+1,0,...E),this._columnDefArray.splice(C+1,0,...T),this._columnsDestMap.splice(C+1,0,...p),this.option("columns",c,{_context:{writeback:!0,originalEvent:o,internalSet:!0}}),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._COL_REORDER)}.bind(this)),this._columnsDestMap},v.prototype._refreshContextMenu=function(){var e=this._menuContainer;if(e)for(var t=e.querySelectorAll("[data-oj-command]"),o=0;o<t.length;o++){var l=u(t[o]).children(v.DOM_ELEMENT._A);if(0===l.length&&"OJ-OPTION"===t[o].tagName&&(l=u(t[o])),l.length>0){var i,n=t[o].getAttribute("data-oj-command").split("-");"sort"===(n=n[n.length-1])?i=this.getTranslatedString("labelSort"):"sortAsc"===n?i=this.getTranslatedString("labelSortAsc"):"sortDsc"===n?i=this.getTranslatedString("labelSortDsc"):"resize"===n&&(i=this.getTranslatedString("labelResize")),l.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=i}}},v.prototype._removeDragOverIndicatorColumn=function(){for(var e=this._tableQuerySelectorAll(this._getTable(),"."+v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS+",."+v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS),t=e.length,o=0;o<t;o++)e[o].classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS),e[o].classList.remove(v.CSS_CLASSES._COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS)},v.prototype._removeDragOverIndicatorRow=function(){var e,t=this._getTableBody(),o=this._getTableElementsByClassName(t,v.CSS_CLASSES._TABLE_DATA_ROW_DRAG_INDICATOR_CLASS),l=o.length;for(e=0;e<l;e++)u(o[e]).remove();0===this._getTableBodyRows().length&&this._showNoDataMessage()},v.prototype._removeTableBodyRow=function(e){var t=this._getTableBodyRow(e);null!=t&&(g.subtreeDetached(t),(this._hasCellTemplate||this._hasRowTemplate)&&this._cleanTemplateNodes(t),u(t).remove(),this._clearCachedDomRowData())},v.prototype._removeAllTableBodyRows=function(){if(this._getTableBodyRows().length>0){var e=this._getTableBody();null!=e&&(g.subtreeDetached(e),(this._hasCellTemplate||this._hasRowTemplate)&&(this._cleanTemplateNodes(e),this._hasCellTemplate=!1,this._hasRowTemplate=!1,this._registerDomEventListeners()),u(e).empty()),this._clearCachedDomRowData()}},v.prototype._removeTableBodyRowTouchSelectionAffordance=function(){for(var e=this._getTableContainer(),t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS),o=0;o<t.length;o++)u(t[o]).remove()},v.prototype._removeTableHeaderColumnResizeIndicator=function(){var e=this._getTableHeaderColumnResizeIndicator();e&&(u(e).remove(),this._clearDomCache(v.CSS_CLASSES._COLUMN_HEADER_RESIZE_INDICATOR_CLASS))},v.prototype._setTableBodyCellAttributes=function(e,t,o,l,i){var n=i.getAttribute(v.DOM_ATTR._ID);if(!(null!=n&&n.length>0)){var s=this.options.accessibility,a=this._getColumnDefs()[l];if(null!=a){var r=null,_=this._isTableHeaderless();r=null!=s&&null!=s.rowHeader?s.rowHeader:this._getColumnDefs()[0].id;var d=null!=t?t.toString():e.toString(),h=null==o?this._hashCode(d):o,u=this._getTableId()+":"+r+"_"+h,c=this._getTableId()+":"+a.id;r===a.id?(n=u,_&&(c="")):(n=u+"_"+l,c=_?u:c+" "+u),i.setAttribute(v.DOM_ATTR._ID,n),i.getAttribute(v.DOM_ATTR._HEADERS)||i.setAttribute(v.DOM_ATTR._HEADERS,c)}}},v.prototype._setTableBodyRowAttributes=function(e,t){u(t).data("rowKey",e.key),u(t).data("rowData",e.data),u(t).data("rowMetadata",e.metadata)},v.prototype._setTableHeaderColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(v.DOM_ATTR._ID)||t.setAttribute(v.DOM_ATTR._ID,this._getTableId()+":"+o.id)},v.prototype._setTableFooterColumnAttributes=function(e,t){var o=this._getColumnDefs()[e];t.getAttribute(v.DOM_ATTR._ID)||t.setAttribute(v.DOM_ATTR._ID,this._getTableId()+":"+o.id+":ftr")},v.prototype._setTableColumnCellsClass=function(e,t,o){var l,i=this._getTableBodyRows();if(i.length>0)if(null===e){var n=null,s=this._getTableBody();if(null!=(n=t?this._getTableElementsByTagName(s,v.DOM_ELEMENT._TD):this._getTableElementsByClassName(s,o))&&n.length>0){var a=n.length;for(l=0;l<a;l++)t?n[l].classList.add(o):n[l].classList.remove(o)}}else{var r=i.length;for(l=0;l<r;l++){var _=this._getTableBodyCell(l,e,null);t?_.classList.add(o):_.classList.remove(o)}}},v.prototype._setTableBodyMessage=function(e){var t=this._getTableBodyMessageCell();u(t).empty(),t.appendChild(document.createTextNode(e))},v.prototype._styleInitialTable=function(){var e=this._getTable(),t=this._getTableElementsByTagName(e,v.DOM_ELEMENT._THEAD);t=t.length>0?t[0]:null;var o=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TFOOT);o=o.length>0?o[0]:null;var l=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TBODY);if(l=l.length>0?l[0]:null,-1!==parseInt(this._getRootElement().getAttribute(v.DOM_ATTR._TABINDEX),10))e.setAttribute(v.DOM_ATTR._TABINDEX,"0"),this._focusable({element:e,applyHighlight:!0,setupHandlers:this._focusSetupHandlers.bind(this)});else{e.setAttribute(v.DOM_ATTR._TABINDEX,"-1");var i=function(){};this._focusSetupHandlers(i,i)}e.setAttribute(v.DOM_ATTR._ARIA_LABELLEDBY,this._getTableContainer().id),this._styleTableHeader(t),this._styleTableFooter(o),this._styleTableBody(l),this._styleTableContainer(this._getTableContainer())},v.prototype._styleTableBody=function(e){e.classList.add(v.CSS_CLASSES._TABLE_BODY_CLASS),e.setAttribute(g._OJ_CONTAINER_ATTR,this.widgetName)},v.prototype._styleTableBodyCell=function(e,t,o){var l=this._getColumnDefs()[e];!o&&t.classList.contains(v.CSS_CLASSES._TABLE_DATA_CELL_CLASS)||(t.classList.add(v.CSS_CLASSES._TABLE_DATA_CELL_CLASS),t.classList.add(v.CSS_CLASSES._TABLE_DATE_CELL_FORM_CONTROL_CLASS));var i=t.getAttribute(v.DOM_ATTR._STYLE)||{};null==l||null==l.style||!o&&i===l.style||f.applyMergedInlineStyles(t,i,l.style),null==l||null==l.className||!o&&u(t).hasClass(l.className)||u(t).addClass(l.className),!this._isVerticalGridEnabled()||!o&&t.classList.contains(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)},v.prototype._styleTableBodyRow=function(e,t){e.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,""),!t&&e.classList.contains(v.CSS_CLASSES._TABLE_DATA_ROW_CLASS)||e.classList.add(v.CSS_CLASSES._TABLE_DATA_ROW_CLASS)},v.prototype._styleTableContainer=function(e){this.options.display===v._OPTION_DISPLAY._GRID?e.classList.add(v.CSS_CLASSES._TABLE_COMPACT_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_COMPACT_CLASS);var t=this.options.editMode;null!=t&&t!==v._OPTION_EDIT_MODE._NONE?e.classList.add(v.CSS_CLASSES._TABLE_EDIT_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_EDIT_CLASS),this._isHorizontalGridEnabled()?e.classList.add(v.CSS_CLASSES._TABLE_HGRID_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_HGRID_CLASS),this._isStickyLayoutEnabled()?e.classList.add(v.CSS_CLASSES._TABLE_STICKY_CLASS):e.classList.remove(v.CSS_CLASSES._TABLE_STICKY_CLASS)},v.prototype._styleTableFooter=function(e){if(e){e.classList.add(v.CSS_CLASSES._TABLE_FOOTER_CLASS);var t=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TR)[0];t.classList.add(v.CSS_CLASSES._TABLE_FOOTER_ROW_CLASS),t.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")}},v.prototype._styleTableFooterCell=function(e,t){var o=this._getColumnDefs()[e],l=t.getAttribute(v.DOM_ATTR._STYLE)||{};null!=o.footerStyle&&l!==o.footerStyle&&f.applyMergedInlineStyles(t,l,o.footerStyle),t.classList.contains(v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS)||t.classList.add(v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS),this._isVerticalGridEnabled()&&!t.classList.contains(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)&&t.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS),o.footerClassName&&u(t).addClass(o.footerClassName)},v.prototype._styleTableHeader=function(e){if(e){e.classList.add(v.CSS_CLASSES._TABLE_HEADER_CLASS),e.style[v.CSS_PROP._DISPLAY]="table-header-group";var t=this._getTableElementsByTagName(e,v.DOM_ELEMENT._TR)[0];t.classList.add(v.CSS_CLASSES._TABLE_HEADER_ROW_CLASS),t.style[v.CSS_PROP._POSITION]=v.CSS_VAL._RELATIVE,t.setAttribute(C._OJ_CONTEXT_ATTRIBUTE,"")}},v.prototype._styleTableHeaderColumn=function(e,t,o){var l=this._getColumnDefs()[e];!o&&t.classList.contains(v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS)||t.classList.add(v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS),l.sortable===v._OPTION_ENABLED&&t.classList.add(v.CSS_CLASSES._TABLE_SORT_CLASS),this._isVerticalGridEnabled()&&(!o&&t.classList.contains(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS)||t.classList.add(v.CSS_CLASSES._TABLE_VGRID_LINES_CLASS));var i=t.getAttribute(v.DOM_ATTR._STYLE)||{};null==l.headerStyle||!o&&i===l.headerStyle||f.applyMergedInlineStyles(t,i,l.headerStyle),null==l.headerClassName||!o&&u(t).hasClass(l.headerClassName)||u(t).addClass(l.headerClassName)},v.prototype._getColspanLogicalElements=function(e){for(var t=0,o=[],l=e.length,i=0;i<l;i++){var n=e[i].getAttribute(v.DOM_ATTR._COLSPAN);if(null!=n){n=parseInt(n,10);for(var s=0;s<n;s++)o[t+s]=e[i];t+=n}else o[t]=e[i],t+=1}return o},v.prototype._isHorizontalGridEnabled=function(){if(this.options.horizontalGridVisible===v._OPTION_ENABLED)return!0;if(this.options.horizontalGridVisible===v._OPTION_AUTO){if(this.options.display===v._OPTION_DISPLAY._GRID)return!0;if("enabled"===this._getDefaultOptions().horizontalGridVisible)return!0}return!1},v.prototype._isVerticalGridEnabled=function(){return this.options.verticalGridVisible===v._OPTION_ENABLED||this.options.verticalGridVisible===v._OPTION_AUTO&&this.options.display===v._OPTION_DISPLAY._GRID},v.prototype._isFF=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},v.prototype._isIE=function(){if(void 0===this._browserIsIE){var e=navigator.userAgent;if("Microsoft Internet Explorer"===navigator.appName){var t=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e);null!=t&&(this._browserIsIE=parseFloat(t[1]))}else e.indexOf("Trident")>=0?this._browserIsIE=11:this._browserIsIE=null}return this._browserIsIE},v.prototype._isWebkit=function(){if(void 0===this._browserIsWebkit){var e=navigator.userAgent.toLowerCase();this._browserIsWebkit=/webkit/.test(e)&&!/edge/.test(e)}return this._browserIsWebkit},v.prototype._refreshTouchAffordanceGlassPanePosition=function(){var e=this._getTouchAffordanceGlassPane();if(e){var t=this._getLayoutManager().getScroller().getBoundingClientRect(),o=this._getTableContainer().getBoundingClientRect();e.style[v.CSS_PROP._TOP]=t.top-o.top+v.CSS_VAL._PX,e.style[v.CSS_PROP._BOTTOM]=t.bottom-o.bottom+v.CSS_VAL._PX,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()}},v.prototype._refreshTableStatusPosition=function(e){var t=this._getTableContainer(),o=t.clientHeight,l=this._getTableStatusMessage(),i=0,n=o,s=this._getTableHeader();if(null!=s){var a=s.offsetHeight;i=a,n-=a}var r=this._getTableFooter();null!=r&&(n-=r.offsetHeight);var _=this._getTableBottomSlot();if(null!=_&&(n-=_.offsetHeight),this._isSkeletonSupport()){var d=0,h=this._getDefaultSkeletonDimension();h.width>0&&h.height>0&&(d=Math.max(1,Math.ceil(n/h.height)));for(var u=0;u<d;u++)l.appendChild(this._createSkeletonRow());this._skeletonFadeInEndListener=function(){l.classList.remove("oj-animation-skeleton-fade-in"),l.querySelectorAll(".oj-table-skeleton-row").forEach(function(e){e.classList.add("oj-animation-skeleton")}),l.removeEventListener("animationend",this._skeletonFadeInEndListener)}.bind(this),l.addEventListener("animationend",this._skeletonFadeInEndListener),l.classList.add("oj-animation-skeleton-fade-in")}else n<=40&&(i=0,n=o);if(l.style[v.CSS_PROP._TOP]=i+v.CSS_VAL._PX,l.style[v.CSS_PROP._HEIGHT]=n+v.CSS_VAL._PX,l.style[v.CSS_PROP._WIDTH]=t.clientWidth+v.CSS_VAL._PX,e&&(l.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._INLINE,this._statusMessageShown=!0),!this._isSkeletonSupport()){var c=l.children[0];c.style[v.CSS_PROP._TOP]=(n-c.offsetHeight)/2+v.CSS_VAL._PX}},v.prototype._createSkeletonRow=function(){var e=document.createElement("div");e.className="oj-table-skeleton-row-container";var t=document.createElement("div");return t.className="oj-table-skeleton-row",e.appendChild(t),e},v.prototype._getDefaultSkeletonDimension=function(){if(null==this._defaultSkeletonDim){var e=this._getTableContainer(),t=this._createSkeletonRow();t.style.visibility="hidden",t.style.display="block",e.appendChild(t);var o={width:t.offsetWidth,height:t.offsetHeight};return e.removeChild(t),o.height>0&&o.width>0&&(this._defaultSkeletonDim=o),o}return this._defaultSkeletonDim},v.prototype._cacheDomElement=function(e,t){this._domCache||(this._domCache={}),this._domCache[e]=t},v.prototype._clearDomCache=function(e){e&&this._domCache?delete this._domCache[e]:this._domCache={}},v.prototype._getCachedDomElement=function(e){return this._domCache?this._domCache[e]:null},v.prototype._isCachedDomElement=function(e){return this._domCache||(this._domCache={}),-1!==Object.keys(this._domCache).indexOf(e)},v.prototype._getTableElementByClassName=function(e,t){if(!this._isCachedDomElement(e)){var o=this._getTableContainer();if(o)if(this._cacheDomElement(e,null),t){if(this._cacheDomElement(e,this._getChildElementByClassName(o,e)),null==this._getCachedDomElement(e)){var l=this._getTable();this._cacheDomElement(e,this._getChildElementByClassName(l,e))}}else{var i=this._getTableElementsByClassName(o,e);i.length>0&&this._cacheDomElement(e,i[0])}}return this._getCachedDomElement(e)},v.prototype._getChildElementByClassName=function(e,t){if(null!=e.childNodes&&e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++)if(null!=e.childNodes[o].classList&&e.childNodes[o].classList.contains(t))return e.childNodes[o];return null},v.prototype._getTableElementsByClassName=function(e,t,o){var l=e.getElementsByClassName(t);return this._filterTableOwnedElements(l,o?e:null)},v.prototype._getTableElementsByTagName=function(e,t,o){var l=e.getElementsByTagName(t);return this._filterTableOwnedElements(l,o?e:null)},v.prototype._tableQuerySelectorAll=function(e,t,o){var l=e.querySelectorAll(t);return this._filterTableOwnedElements(l,o?e:null)},v.prototype._filterTableOwnedElements=function(e,t){var o,l;if(t){o=t;for(var i=t.getElementsByTagName(v.DOM_ELEMENT._TABLE),n=0;n<i.length;n++)if(i[n].parentNode===t||i[n].parentNode.parentNode===t){l=i[n];break}}else o=this._getTableContainer(),l=this._getTable();return Array.prototype.filter.call(e,function(e){return this._isTableOwned(e,o,l)}.bind(this))},v.prototype._isTableOwned=function(e,t,o){var l=t||this._getTableContainer(),i=t?o:this._getTable();if(l){if(i){var n=this._getFirstAncestor(e,i.tagName);if(n===i)return!0;if(n)return!1}var s=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_CONTAINER_CLASS);if(s===l)return!0;if(s)return!1;if(!l.contains(e))return!0}return!1},v.prototype._focusSetupHandlers=function(e,t){this._setFocusInHandler(e),this._setFocusOutHandler(t)},v.prototype._getSortIconContainer=function(e){return this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_SORT_ICON_CONTAINER_CLASS)[0]},v.prototype._getSortIcon=function(e){var t=this._getSortIconContainer(e);return null!=t?t.firstChild:null},v.prototype._getTableBodySelectorCell=function(e){if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_SELECTOR_CELL);if(t.length>0)return t[0]}return null},v.prototype._getTableSelectorColumn=function(){var e=this._getTableHeaderRow();if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},v.prototype._getTableFooterSelectorCell=function(){var e=this._getTableFooterRow();if(null!=e){var t=this._getTableElementsByClassName(e,v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS);if(t.length>0)return t[0]}return null},v.CSS_CLASSES={_TABLE_CONTAINER_CLASS:"oj-table-container",_TABLE_SCROLLER_CLASS:"oj-table-scroller",_TABLE_CLASS:"oj-table",_TABLE_STICKY_CLASS:"oj-table-sticky",_TABLE_STRETCH_CLASS:"oj-table-stretch",_TABLE_COMPACT_CLASS:"oj-table-grid-display",_TABLE_HGRID_CLASS:"oj-table-horizontal-grid",_TABLE_EDIT_CLASS:"oj-table-editable",_TABLE_SCROLL_VERTICAL_CLASS:"oj-table-scroll-vertical",_TABLE_SCROLL_HORIZONTAL_CLASS:"oj-table-scroll-horizontal",_TABLE_SORT_CLASS:"oj-table-sort",_TABLE_ELEMENT_CLASS:"oj-table-element",_TABLE_FOOTER_CLASS:"oj-table-footer",_TABLE_FOOTER_ROW_CLASS:"oj-table-footer-row",_TABLE_HEADER_CLASS:"oj-table-header",_TABLE_HEADER_ROW_CLASS:"oj-table-header-row",_TABLE_HEADER_SELECTOR_CLASS:"oj-table-header-selector",_TABLE_COLGROUP_CLASS:"oj-table-colgroup",_TABLE_COL_SELECTOR_CLASS:"oj-table-col-selector",_TABLE_COL_CLASS:"oj-table-col",_TABLE_BOTTOM_SLOT_CLASS:"oj-table-slot-bottom",_TABLE_SORT_ICON_CONTAINER_CLASS:"oj-table-sort-icon-container",_COLUMN_HEADER_CELL_CLASS:"oj-table-column-header-cell",_COLUMN_HEADER_SELECTOR_CELL_CLASS:"oj-table-column-header-selector-cell",_COLUMN_HEADER_DROP_EMPTY_CELL_CLASS:"oj-table-column-header-drop-empty-cell",_COLUMN_HEADER_CLASS:"oj-table-column-header",_COLUMN_HEADER_TEXT_CLASS:"oj-table-column-header-text",_COLUMN_HEADER_ASC_ICON_CLASS:"oj-table-column-header-asc-icon",_COLUMN_HEADER_DSC_ICON_CLASS:"oj-table-column-header-dsc-icon",_COLUMN_HEADER_DEFAULT_SORT_ICON_CLASS:"oj-table-column-header-default-sort-icon",_COLUMN_HEADER_DRAG_INDICATOR_BEFORE_CLASS:"oj-table-column-header-drag-indicator-before",_COLUMN_HEADER_DRAG_INDICATOR_AFTER_CLASS:"oj-table-column-header-drag-indicator-after",_COLUMN_HEADER_DRAG_IMAGE:"oj-table-column-header-cell-drag-image",_COLUMN_HEADER_RESIZING_CLASS:"oj-table-column-header-resizing",_COLUMN_HEADER_RESIZE_INDICATOR_CLASS:"oj-table-column-header-resize-indicator",_TABLE_BODY_CLASS:"oj-table-body",_TABLE_DATA_ROW_CLASS:"oj-table-body-row",_TABLE_DATA_ROW_DRAG_INDICATOR_CLASS:"oj-table-body-row-drag-indicator",_TABLE_TOUCH_AFFORDANCE_GLASS_PANE_CLASS:"oj-table-touch-affordance-glass-pane",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_CLASS:"oj-table-body-row-touch-selection-affordance-top",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_CLASS:"oj-table-body-row-touch-selection-affordance-bottom",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOP_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-top-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_BOTTOM_ICON_CLASS:"oj-table-body-row-touch-selection-affordance-bottom-icon",_TABLE_DATA_ROW_TOUCH_SELECTION_AFFORDANCE_TOUCH_AREA_CLASS:"oj-table-body-row-touch-selection-affordance-touch-area",_TABLE_DATA_ROW_EDIT_CLASS:"oj-table-body-row-edit",_TABLE_DATA_ROW_SELECTOR_CLASS:"oj-table-body-row-selector",_TABLE_SELECTOR_CELL:"oj-table-selector-cell",_TABLE_DATA_CURRENT_ROW_CLASS:"oj-table-body-current-row",_TABLE_DATA_CELL_CLASS:"oj-table-data-cell",_TABLE_DATA_CELL_EDIT_CLASS:"oj-table-data-cell-edit",_TABLE_DATE_CELL_FORM_CONTROL_CLASS:"oj-form-control-inherit",_TABLE_VGRID_LINES_CLASS:"oj-table-vgrid-lines",_TABLE_FOOTER_CELL_CLASS:"oj-table-footer-cell",_TABLE_FOOTER_SELECTOR_CELL_CLASS:"oj-table-footer-selector-cell",_TABLE_FOOTER_DROP_EMPTY_CELL_CLASS:"oj-table-footer-drop-empty-cell",_TABLE_STATUS_ACC_NOTIFICATION_CLASS:"oj-table-status-acc-notification",_TABLE_STATUS_MESSAGE_CLASS:"oj-table-status-message",_TABLE_STATUS_MESSAGE_TEXT_CLASS:"oj-table-status-message-text",_TABLE_ACC_CONTEXT_INFO_CLASS:"oj-table-acc-context-info",_TABLE_ACC_STATE_INFO_CLASS:"oj-table-acc-state-info",_TABLE_WIDTH_CONTAINER_CLASS:"oj-table-width-container",_TABLE_LOADING_ICON_CLASS:"oj-table-loading-icon",_TABLE_BODY_MESSAGE_CLASS:"oj-table-body-message",_TABLE_BODY_MESSAGE_ROW_CLASS:"oj-table-body-message-row",_TABLE_NO_DATA_CONTAINER_CLASS:"oj-table-no-data-container",_TABLE_NO_DATA_ROW_CLASS:"oj-table-no-data-row",_TABLE_TEMP_SKELETON_ROW_CLASS:"oj-table-temp-skeleton-row",_ICON_CLASS:"oj-icon",_WIDGET_ICON_CLASS:"oj-component-icon",_HIDDEN_CONTENT_ACC_CLASS:"oj-helper-hidden-accessible",_TEXT_ALIGN_END:"oj-helper-text-align-end",_TABLE_LEGACY_SCROLL_CLASS:"oj-table-legacy-scroll"},v.CSS_PROP={_DISPLAY:"display",_VISIBILITY:"visibility",_POSITION:"position",_HEIGHT:"height",_WIDTH:"width",_TOP:"top",_BOTTOM:"bottom",_LEFT:"left",_RIGHT:"right",_PADDING_TOP:"padding-top",_PADDING_LEFT:"padding-left",_PADDING_RIGHT:"padding-right",_OVERFLOW:"overflow",_OVERFLOW_X:"overflow-x",_OVERFLOW_Y:"overflow-y",_MIN_WIDTH:"min-width",_MAX_WIDTH:"max-width",_MIN_HEIGHT:"min-height",_FLOAT:"float",_BORDER_TOP:"border-top",_BORDER_BOTTOM_WIDTH:"border-bottom-width",_BORDER_LEFT_WIDTH:"border-left-width",_BORDER_RIGHT_WIDTH:"border-right-width",_BORDER_COLOR:"border-color",_MARGIN_BOTTOM:"margin-bottom",_VERTICAL_ALIGN:"vertical-align",_CURSOR:"cursor",_ZINDEX:"z-index",_BACKGROUND_COLOR:"background-color",_BOX_SIZING:"box-sizing"},v.CSS_VAL={_NONE:"none",_BLOCK:"block",_INLINE_BLOCK:"inline-block",_RELATIVE:"relative",_ABSOLUTE:"absolute",_INLINE:"inline",_AUTO:"auto",_HIDDEN:"hidden",_SCROLL:"scroll",_VISIBLE:"visible",_LEFT:"left",_PX:"px",_MIDDLE:"middle",_MOVE:"move",_FIXED:"fixed",_TRANSPARENT:"transparent",_BORDER_BOX:"border-box"},v.DOM_ATTR={_STYLE:"style",_TABINDEX:"tabindex",_TYPE:"type",_ID:"id",_TITLE:"title",_HREF:"href",_HEADERS:"headers",_COLSPAN:"colspan",_ROLE:"role",_ARIA_LABEL:"aria-label",_ARIA_LABELLEDBY:"aria-labelledby",_ARIA_HIDDEN:"aria-hidden"},v.DOM_ELEMENT={_DIV:"div",_A:"a",_TR:"tr",_TD:"td",_TH:"th",_TABLE:"table",_TBODY:"tbody",_THEAD:"thead",_TFOOT:"tfoot",_INPUT:"input",_UL:"ul",_SPAN:"span",_BUTTON:"button",_LABEL:"label",_COLGROUP:"colgroup",_COL:"col"},v.MARKER_STYLE_CLASSES={_WIDGET:"oj-component",_ACTIVE:"oj-active",_CLICKABLE_ICON:"oj-clickable-icon-nocontext",_DISABLED:"oj-disabled",_ENABLED:"oj-enabled",_FOCUS:"oj-focus",_FOCUS_HIGHLIGHT:"oj-focus-highlight",_HOVER:"oj-hover",_SELECTED:"oj-selected",_DEFAULT:"oj-default",_WARNING:"oj-warning",_DRAGGABLE:"oj-draggable",_DRAG:"oj-drag",_HIDE_VERTICAL_SCROLLBAR:"oj-table-hide-vertical-scrollbar"},
|
|
87
87
|
/**
|
|
88
88
|
* @license
|
|
89
89
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -99,7 +99,7 @@ v.prototype._events={focusout:function(e){this._clearFocusoutTimeout();for(var t
|
|
|
99
99
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
100
100
|
* @ignore
|
|
101
101
|
*/
|
|
102
|
-
v.prototype._checkRowOrHeaderColumnFocus=function(e){var t=this._getFocusedRowIdx(),o=this._getFocusedHeaderColumnIdx();if(null==t&&null==o){var l=null,i=this._getCurrentRow(),n=null!=i?i.rowKey:null;if(null!=n&&(l=this._getRowIdxForRowKey(n)),null==l)if(this._isTableHeaderless())this._setRowFocus(0,!0,!0,null,e);else{var s=this._getFirstVisibleColumnIndex(0,!0);this._setHeaderColumnFocus(s,!0,!1)}else this._setRowFocus(l,!0,!0,null,e)}},v.prototype._clearFocusedRow=function(e){null!=this._getFocusedRowIdx()&&this._setRowFocus(-1,!0,e,null,null)},v.prototype._clearFocusedHeaderColumn=function(){var e=this._getFocusedHeaderColumnIdx();null!=e&&this._setHeaderColumnFocus(e,!1,!1),this._activeHeaderIndex=-1},v.prototype._clearFocusedFooterColumn=function(){var e=this._getFocusedFooterColumnIdx();null!=e&&this._setFooterColumnFocus(e,!1,!1),this._activeFooterIndex=-1},v.prototype._getFirstVisibleColumnIndex=function(e,t){var o;if(this._isTableHeaderless()){if(this._isTableFooterless())return null;o=this._getTableFooterCell.bind(this)}else o=this._getTableHeaderColumn.bind(this);var l,i=this._getColumnDefs().length,n=e;if(t)for(;n<i;){if((l=o(n))&&l.clientWidth>0)return n;n+=1}else for(;n>-1;){if((l=o(n))&&l.clientWidth>0)return n;n-=1}return null},v.prototype._getNextVisibleColumnIndex=function(e,t){var o;o=t?e+1:e-1;var l=this._getFirstVisibleColumnIndex(o,t);return null!==l?l:e},v.prototype._getCurrentRow=function(){return this._getData()?this._currentRow:null},v.prototype._getFocusedRowIdx=function(){return this._getRowIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS)[0]},v.prototype._getFocusedHeaderColumnIdx=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS+",."+v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS)[0]},v.prototype._getFocusedFooterColumnIdx=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS+",."+v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS)[0]},v.prototype._scrollRowIntoViewport=function(e){var t=this._getLayoutManager(),o=this._getTableBodyRow(e),l=u(t.getScroller()),i=t.getRowTopOverflowDiff(o),n=i>=0,s=t.getRowBottomOverflowDiff(o),a=s>=0;n&&a||(a?Math.abs(i)>Math.abs(s)?l.scrollTop(l.scrollTop()+s):l.scrollTop(l.scrollTop()-i):n&&(Math.abs(s)>Math.abs(i)?l.scrollTop(l.scrollTop()-i):l.scrollTop(l.scrollTop()+s)))},v.prototype._scrollColumnIntoViewport=function(e){var t;if(t=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e)){var o,l,i,n,s=this._getLayoutManager(),a="rtl"===this._GetReadingDirection(),r=s.getScroller(),_=u(r),d=s.getScrollBarWidth(),c=t.getBoundingClientRect(),S=r.getBoundingClientRect();if(a){l=(o=S.left-c.left+d)>=0,n=(i=c.right-S.right)>=0;var C=h.AgentUtils.getAgentInfo().browser;C!==h.AgentUtils.BROWSER.IE&&C!==h.AgentUtils.BROWSER.EDGE||(o*=-1,i*=-1)}else l=(o=S.left-c.left)>=0,n=(i=c.right-S.right+d)>=0;l&&n||(l?Math.abs(i)>Math.abs(o)?_.scrollLeft(_.scrollLeft()-o):_.scrollLeft(_.scrollLeft()+i):n&&(Math.abs(o)>Math.abs(i)?_.scrollLeft(_.scrollLeft()+i):_.scrollLeft(_.scrollLeft()-o)))}},v.prototype._setCurrentRow=function(e,t,o){var l,i,n,s,a=this._currentRow,r=null==e||null==e.rowKey&&null==e.rowIndex;if(r)n=-1,s=null!=e?e:null;else{var _=this._getData(),d=e.rowIndex,h=e.rowKey;if(null==h&&(h=this._getRowKeyForDataSourceRowIndex(d)),s={rowIndex:d=this._getDataSourceRowIndexForRowKey(h),rowKey:h},-1!==(n=this._getRowIdxForRowKey(h))&&(!_||n<-1||null===n||null===h)){if(l=v._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY,i=T.applyParameters(v._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL,{rowIdx:n}),o)throw new Error(l+"\n"+i);return S.info(l+"\n"+i),v._CURRENT_ROW_STATUS._IGNORED}}var u=this._getFocusedRowIdx(),c=!this._compareCurrentRowValues(a,s);if(c){var C;try{C=this._trigger("beforeCurrentRow",t,{currentRow:s,previousCurrentRow:a})}catch(e){return l=v._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_SUMMARY,i=T.applyParameters(v._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_DETAIL,{error:e.toString()}),S.info(l+"\n"+i),v._CURRENT_ROW_STATUS._ERROR}if(!C)return v._CURRENT_ROW_STATUS._VETOED;if(!(null==a||null==a.rowKey&&null==a.rowIndex)){var E=a.rowIndex,p=this._getRowKeyForDataSourceRowIndex(E),g=this._getRowIdxForRowKey(p);if(!1===this._setTableEditable(!1,!1,0,!0,t)){this._currentRow=a;var f=document.activeElement,m=this._getElementColumnIdx(f);return this._queueTask(function(){var e=g,t=m;null!=e&&null!=t?setTimeout(function(){this._setCellFocus(e,t)}.bind(this),0):null!=e&&setTimeout(function(){this._setRowFocus(e,!0,!1)}.bind(this),0)}.bind(this)),v._CURRENT_ROW_STATUS._IGNORED}var b=this._getTableBodyRow(g);null!=b&&b.classList.remove(v.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}if(this._currentRow=s,this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),!r){var A=this._getTableBodyRow(n);null!=A&&A.classList.add(v.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}}return!c&&u===n||null!=t||this._setRowFocus(n,!0,!1),v._CURRENT_ROW_STATUS._UPDATED},v.prototype._compareCurrentRowValues=function(e,t){if(e===t)return!0;if(null!=e&&null!=t){if(e.rowIndex===t.rowIndex&&h.KeyUtils.equals(e.rowKey,t.rowKey))return!0}else if(null==e&&null==t)return!0;return!1},v.prototype._setCellFocus=function(e,t){var o=this._getTableBodyCell(e,t);if(o){var l=f.getFocusableElementsInNode(o);if(l.length>0)return l[0].focus(),!0}return!1},v.prototype._setCellInRowFocus=function(e,t,o){if(!this._setCellFocus(e,t)){var l=this._getTableBodyCells(e);if(l)for(var i=l.length,n=0;n<i;n++){var s=n;if(o||(s=i-n-1),this._setCellFocus(e,s))return}}},v.prototype._setFocusInHandler=function(e){this._focusInHandler=e},v.prototype._setFocusOutHandler=function(e){this._focusOutHandler=e},v.prototype._setRowFocus=function(e,t,o,l,i){var n;if(-1===e)return(!o||this._setCurrentRow(null,i,!1)===v._CURRENT_ROW_STATUS._UPDATED)&&(null!=(n=this._getFocusedRowIdx())&&this._setRowFocus(n,!1,o,null,null),!0);var s=this._getTableBodyRow(e);if(!s)return!1;if(t){if(o){var a=this._getRowKeyForRowIdx(e);if(this._setCurrentRow({rowKey:a},i,!1)!==v._CURRENT_ROW_STATUS._UPDATED)return!1;null==this._accColumnIndex&&(this._accColumnIndex=0),this._updateAccStatusInfo(e,this._accColumnIndex)}null!=(n=this._getFocusedRowIdx())&&n!==e&&this._setRowFocus(n,!1,o,l,null),this._focusInHandler(u(s)),this._scrollRowIntoViewport(e),this._updateRowStateCellsClass(e,{focused:!0}),this._clearFocusedHeaderColumn(),this._clearFocusedFooterColumn(),this._setTableActionableMode(!1)}else this._focusOutHandler(u(s)),this._updateRowStateCellsClass(e,{focused:!1});return!0},v.prototype._setHeaderColumnFocus=function(e,t,o){if(!this._isTableHeaderless()&&null!=e){if(t){this._clearFocusedFooterColumn(),this._clearFocusedRow(!0);var l=this._getFocusedHeaderColumnIdx();null!==l&&l!==e&&this._setHeaderColumnFocus(l,!1,o),o||this._scrollColumnIntoViewport(e),this._activeHeaderIndex=e,this._updateAccStatusInfo(null,null,e)}this._setHeaderColumnState(e,{focused:t})}},v.prototype._setFooterColumnFocus=function(e,t,o){if(!this._isTableFooterless()&&null!=e){if(t){this._clearFocusedRow(!0),this._clearFocusedHeaderColumn();var l=this._getFocusedFooterColumnIdx();null!==l&&l!==e&&this._setFooterColumnFocus(l,!1,o),o||this._scrollColumnIntoViewport(e),this._activeFooterIndex=e,this._updateAccStatusInfo(null,null,null,e)}this._setFooterColumnState(e,{focused:t})}},v.prototype._setHeaderColumnState=function(e,t){var o;(o=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e))&&this._applyHeaderColumnState(o,e,t)},v.prototype._setFooterColumnState=function(e,t){var o;(o=-1===e?this._getTableFooterSelectorCell():this._getTableFooterCell(e))&&this._applyFooterColumnState(o,e,t)},v.prototype._applyHeaderColumnState=function(e,t,o){var l=o.focused,i=o.selected;if(null!=l&&(l?(this._focusInHandler(u(e)),t>-1&&this._showTableHeaderColumnSortIcon(t)):(this._focusOutHandler(u(e)),t>-1&&this._hideTableHeaderColumnSortIcon(t))),t>-1&&null!=i){var n=this._getTableFooterCell(t);i?(e.classList.add(v.MARKER_STYLE_CLASSES._SELECTED),null!=n&&n.classList.add(v.MARKER_STYLE_CLASSES._SELECTED)):(e.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED),null!=n&&n.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)),this._updateColumnStateCellsClass(t,i)}},v.prototype._applyFooterColumnState=function(e,t,o){var l=o.focused,i=o.selected;if(null!=l&&(l?this._focusInHandler(u(e)):this._focusOutHandler(u(e))),t>-1&&null!=i){var n=this._getTableHeaderColumn(t);i?(null!=n&&n.classList.add(v.MARKER_STYLE_CLASSES._SELECTED),e.classList.add(v.MARKER_STYLE_CLASSES._SELECTED)):(null!=n&&n.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED),e.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)),this._updateColumnStateCellsClass(t,i)}},v.prototype._updateColumnStateCellsClass=function(e,t){for(var o=this._getSelectedRowIdxs(),l=this._getTableBodyRows(),i=0;i<l.length;i++){var n=this._getTableBodyCell(i,e);if(n)if(t)n.classList.add(v.MARKER_STYLE_CLASSES._SELECTED);else{for(var s=!1,a=o.length,r=0;r<a;r++)if(i===o[r]){s=!0;break}s||n.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)}}},v.prototype._updateRowStateCellsClass=function(e,t){var o=this._getTableBodyCells(e);if(o){if(this._isDefaultSelectorEnabled()){var l=this._getTableBodyRow(e),i=this._getTableBodySelectorCell(l);o.unshift(i)}var n,s=t.focused,a=t.selected,r=t.hover,_=o.length;if(null!=r)for(n=0;n<_;n++)r?o[n].classList.add(v.MARKER_STYLE_CLASSES._HOVER):o[n].classList.remove(v.MARKER_STYLE_CLASSES._HOVER);if(null!=s)for(n=0;n<_;n++)s?this._focusInHandler(u(o[n])):this._focusOutHandler(u(o[n]));if(null!=a)for(n=0;n<_;n++)a?o[n].classList.add(v.MARKER_STYLE_CLASSES._SELECTED):o[n].classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)}},v.prototype._adjustScrollPositionOnFetch=function(){var e=null==this.options.scrollPosition?{}:this.options.scrollPosition;if(!isNaN(e.rowIndex)&&void 0!==e.rowKey){var t=this._getSelectedRowIdxs();null!=t&&t.length>0&&this._isRowSelectionEnabled()&&this._isScrollToKey()?(!isNaN(this._selectionAnchorIdx)&&t.indexOf(this._selectionAnchorIdx)>-1?e.rowKey=this._getRowKeyForRowIdx(this._selectionAnchorIdx):e.rowKey=this._getRowKeyForRowIdx(t[0]),delete e.rowIndex):(e.y=0,e.rowIndex=0,delete e.rowKey),e.x=0,e.columnKey=null,e.columnIndex=0,e.offsetX=0,e.offsetY=0,this.option("scrollPosition",e,{_context:{internalSet:!0},changed:!1})}},v.prototype._isScrollPositionAdjusted=function(){var e=this.options.scrollPosition;return null!=e&&(void 0===e.rowIndex&&null!=e.rowKey)},v.prototype._findRowElementByKey=function(e){for(var t=this._getTableBodyRows(),o=0;o<t.length;o++)if(h.KeyUtils.equals(u(t[o]).data("rowKey"),e))return t[o];return null},v.prototype._isScrollToKey=function(){var e=this.options.scrollToKey;if("never"===e)return!1;if("always"===e)return!0;var t=this.options.data;if(!h.DataProviderFeatureChecker.isDataProvider(t))return!0;if(t.getCapability){var o=t.getCapability("fetchFirst");if(o&&"immediate"===o.iterationSpeed)return!0}return!1},v.prototype._getScrollToKey=function(){var e=this.options.scrollPosition.rowKey;return e?new Promise(function(t){var o=this._validateKeyForScroll(e,!0);null==o?t(null):o.then(function(o){t(o?e:null)})}.bind(this)):Promise.resolve(null)},v.prototype._validateKeyForScroll=function(e,t){if(!this._isScrollToKey())return null;if(!t&&null!=this._findRowElementByKey(e))return Promise.resolve(!0);var o=this._getData();return o.containsKeys?new Promise(function(t){var l=new Set;l.add(e),o.containsKeys({keys:l}).then(function(e){t(e.results.size>0)},function(){t(!1)})}):null},v.prototype._syncScrollPosition=function(e,t){if(!this._IsCustomElement()||this._noDataMessageShown||!this._isScrollableX()&&!this._isScrollableY())return!0;if(null!=this._scrollPosition?e=this._scrollPosition:null==e&&(e=this.options.scrollPosition),!t&&null!=e.rowKey){var o=this._validateKeyForScroll(e.rowKey,!1);if(o){var l=this._createComponentBusyState("is validating scroll position rowKey.");o.then(function(t){t||delete e.rowKey,this._clearComponentBusyState(l),this._syncScrollPosition(e,!0)}.bind(this))}return!1}var i=this._getScrollCoordinates(e),n=i.x,s=i.y;if(isNaN(n)&&isNaN(s))return null!=this._scrollPosition&&(this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:null,internalSet:!0}}),this._scrollPosition=null),this._editRowCallback=null,!0;var a=isNaN(this._scrollTop)?0:this._scrollTop,r=isNaN(this._scrollLeft)?0:this._scrollLeft;if(!isNaN(n)&&isNaN(s)||!isNaN(n)&&s===a&&n!==r){if(!this._isScrollableX())return!0;this._setScrollX(n);var _=this.options.scrollPosition,d=this._getCurrentHorizontalScrollPosition(n);d.y=_.y,d.rowIndex=_.rowIndex,d.rowKey=_.rowKey,d.offsetY=_.offsetY,this.option("scrollPosition",d,{_context:{originalEvent:null,internalSet:!0}})}else if(s!==a){if(!this._isScrollableY())return!(!isNaN(n)&&n!==r)||(delete e.y,this._syncScrollPosition(e,t));var h=this._setScrollY(s);if(isNaN(n)||n===r||this._setScrollX(n),-1===s)return this._scrollPosition=e,h;this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}})}else e&&(null==e.rowKey||isNaN(e.rowIndex))&&this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}});return null!=this._scrollPosition&&(this._scrollPosition=null),this._editRowCallback&&(this._editRowCallback(),this._editRowCallback=null),!0},v.prototype._isScrollableX=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollWidth()-e.getClientWidth())>1},v.prototype._isScrollableY=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollHeight()-e.getClientHeight())>1},v.prototype._setScrollX=function(e){var t=this._getLayoutManager().getScroller();this._skipScrollUpdate=!0,c.setScrollLeft(t,e)},v.prototype._setScrollY=function(e){var t=this._getLayoutManager(),o=t.getScroller();this._skipScrollUpdate=!0;var l=o.scrollTop;return o.scrollTop=-1===e?t.getScrollHeight()-t.getClientHeight():e,l!==o.scrollTop&&(this._setScrollPosBusyState(),!0)},v.prototype._getScrollTopByIndex=function(e){if(0===e)return 0;if(!(this._isLoadMoreOnScroll()&&e>this.options.scrollPolicyOptions.maxCount)){var t=this._getTableBodyRows()[e];if(null!=t){if(this._isStickyLayoutEnabled()&&!this._isTableHeaderless()){var o=this._getTableHeader();if(null!=o)return t.offsetTop-o.offsetHeight}return t.offsetTop}return this._hasMoreToFetch()?-1:void 0}},v.prototype._getScrollTopByKey=function(e){var t=this._findRowElementByKey(e);if(null!=t){if(this._isStickyLayoutEnabled()&&!this._isTableHeaderless()){var o=this._getTableHeader();if(null!=o)return t.offsetTop-o.offsetHeight}return t.offsetTop}if(this._hasMoreToFetch())return-1},v.prototype._getScrollLeftByIndex=function(e){if(0===e)return 0;var t=this._getTableHeaderColumn(e);return null!=t?t.offsetLeft:void 0},v.prototype._getScrollLeftByKey=function(e){var t=this._getColumnIdxForColumnKey(e);return this._getScrollLeftByIndex(t)},v.prototype._getScrollCoordinates=function(e){var t,o,l=e.rowKey;isNaN(t)&&null!=l&&(t=this._getScrollTopByKey(l));var i=e.columnKey;isNaN(o)&&null!=i&&(o=this._getScrollLeftByKey(i));var n=e.rowIndex;isNaN(t)&&!isNaN(n)&&(t=this._getScrollTopByIndex(n));var s=e.columnIndex;isNaN(o)&&!isNaN(s)&&(o=this._getScrollLeftByIndex(s));var a=e.offsetX;!isNaN(o)&&!isNaN(a)&&o>=0&&(o+=a);var r=e.offsetY;if(!isNaN(t)&&!isNaN(r)&&t>=0&&(t+=r),isNaN(o)&&!isNaN(e.x)&&(o=Math.max(0,e.x)),isNaN(t)&&!isNaN(e.y)){var _=this._getLayoutManager();t=e.y>_.getScrollHeight()?this._hasMoreToFetch()?-1:_.getScrollHeight()-_.getClientHeight():Math.max(0,e.y)}return{x:o,y:t}},v.prototype._getCurrentHorizontalScrollPosition=function(e){var t={};t.x=void 0===e?this._scrollLeft:e;var o=this.option("scrollPosition"),l=Math.abs(o.x-t.x);if(l<1&&null!=o.columnKey&&!isNaN(o.columnIndex))return t.columnKey=o.columnKey,t.columnIndex=o.columnIndex,t.offsetX=o.offsetX+l,t;var i=this._getColumnLocations();if(i&&i.length>0){var n,s=i.length-1;for(n=0;n<i.length-1;n++)if(t.x>=i[n]&&t.x<i[n+1]){s=n;break}t.columnKey=this._getColumnDefs()[s].id,t.columnIndex=s,t.offsetX=t.x-i[s]}return t},v.prototype._getCurrentVerticalScrollPosition=function(e){var t={};t.y=void 0===e?this._scrollTop:e;var o=this._getTableBody();if(isNaN(this._rowHeight)&&o.rows.length>1&&(this._rowHeight=o.rows[1].offsetHeight),!isNaN(this._rowHeight)&&this._rowHeight>0){var l=this._findClosestElementToTop(t,e);null!=l&&(t.rowIndex=l.index,t.rowKey=this._getRowKeyForRowIdx(l.index),t.offsetY=l.offset)}return t},v.prototype._getCurrentScrollPosition=function(e,t){var o=this._getCurrentHorizontalScrollPosition(e),l=this._getCurrentVerticalScrollPosition(t);return Object.keys(l).forEach(function(e){o[e]=l[e]}),o},v.prototype._getColumnLocations=function(){if(null==this._columnOffsets){this._columnOffsets=[];var e=this._getTableHeaderColumns();if(e&&e.length>0){var t;t=e[0].offsetLeft,this._columnOffsets.push(0);for(var o=1;o<e.length;o++)this._columnOffsets.push(e[o].offsetLeft-t)}}return this._columnOffsets},v.prototype._findClosestElementToTop=function(e,t){var o,l=this._getTableBodyRows();if(0===l.length)return null;var i,n=this.option("scrollPosition");Math.abs(n.y-t)<this._rowHeight&&null!=n.rowKey&&!isNaN(n.rowIndex)&&(o=n.rowIndex),isNaN(o)&&(o=Math.floor(e.y/this._rowHeight));var s=l[o=Math.min(Math.max(o,0),l.length-1)];i=0===o?0:s.offsetTop-l[0].offsetTop;var a=e.y,r=a-i,_={index:o,elem:s,offsetTop:i,offset:r};if(Math.abs(r)<1)return _;var d=r>0;d?o+=1:o-=1;for(var h=!1;!h&&o>=0&&o<l.length;){var u=i;if(i=(s=l[o]).offsetTop,h=(r=Math.abs(a-i))<1||(d?a<=i:a>=i)){_=r<1||!d?{index:o,elem:s,offsetTop:i,offset:r}:{index:o-1,elem:l[o-1],offsetTop:u,offset:a-u};break}d?o+=1:o-=1}return _},v.prototype._handleScrollerScrollLeft=function(e){this._scrollLeft=e,this._getLayoutManager().handleScrollerScrollLeft(e)},v.prototype._handleScrollerScrollTop=function(e){this._domScroller||this._clearScrollPosBusyState(),e<0&&(e=0),this._scrollTop=e,this._scrollY=this._skipScrollUpdate?e:null,this._moveTableBodyRowTouchSelectionAffordanceTop(),this._moveTableBodyRowTouchSelectionAffordanceBottom()},v.prototype._registerDomEventListeners=function(){var e=this._getLayoutManager(),t=e.getScroller();null!=t&&(null==this._scrollEventListener&&(this._scrollEventListener=function(e){var t=this._getElementScrollLeft(e.target),o=e.target.scrollTop;t===this._scrollLeft&&o===this._scrollTop||(this._handleScrollerScrollLeft(t),this._handleScrollerScrollTop(o),this._isScrollPositionAdjusted()||(this._skipScrollUpdate||this._ticking||(window.requestAnimationFrame(function(){this._isScrollPositionAdjusted()||this._skipScrollUpdate||this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:e,internalSet:!0}}),this._ticking=!1}.bind(this)),this._ticking=!0),this._skipScrollUpdate=!1))}.bind(this)),t.removeEventListener("scroll",this._scrollEventListener),t.addEventListener("scroll",this._scrollEventListener,!1)),e.registerScrollListeners()},v.prototype._isTableActionableMode=function(){return this._tableActionableMode},v.prototype._isTableEditMode=function(){return this.options.editMode===v._OPTION_EDIT_MODE._ROW_EDIT},v.prototype._toggleTableActionableMode=function(){this._isTableActionableMode()?this._setTableActionableMode(!1):this._setTableActionableMode(!0)},v.prototype._setTableActionableMode=function(e,t){if(!(null!=this._tableActionableMode&&this._tableActionableMode===e||null==this._tableActionableMode&&!1===e))if(e){var o=null,l=null,i=this._getFocusedRowIdx();if(null!=i&&(l=o=this._getTableBodyRow(i)),null==o){var n=this._getFocusedHeaderColumnIdx();null!=n&&(o=this._getTableHeaderColumn(n),l=this._getTableHeaderRow())}if(null!=o){f.enableAllFocusableElements(l);var s=this._getTabbableElements(o);null!=s&&s.length>0&&(this._tableActionableMode=e,this._tableActionableElement=o,this._tableActionableBoundaryElement=l,this._focusOutHandler(u(o)),s[0].focus())}}else{this._tableActionableMode=!1;var a=u.contains(this._getTableBody(),document.activeElement);null!=this._tableActionableElement&&f.disableAllFocusableElements(this._tableActionableBoundaryElement),a&&!t&&(this._getTable().focus(),this._focusInHandler(u(this._tableActionableElement))),this._tableActionableElement=null,this._tableActionableBoundaryElement=null}},v.prototype._getEditableRowIdx=function(){if(null!=this._getEditableRowKey()){var e=this._getRowIdxForRowKey(this._getEditableRowKey());if(null!==e)return e}return this._editableRowIdx},v.prototype._getEditableRowKey=function(){return this._editableRowKey},v.prototype._hasEditableRow=function(){return!!this._isTableEditMode()&&null!==this._getEditableRowIdx()},v.prototype._setEditRow=function(e){if(this._isTableEditMode()){var t=e.rowKey,o=e.rowIndex;if(null!=t||o>-1){var l=this._setCurrentRow({rowKey:t,rowIndex:o},null,!1);if(l===v._CURRENT_ROW_STATUS._UPDATED)this._setTableEditable(!0,!1,0,!0,null);else if(l===v._CURRENT_ROW_STATUS._IGNORED){var i=this._scrollTop;this._syncScrollPosition({rowKey:t,rowIndex:o})||(this._editRowCallback=function(){this._scrollTop!==i&&this._setEditRow(e)}.bind(this))}}else this._setTableEditable(!1,!1,0,!0,null)}},v.prototype._setEditableRowIdx=function(e){this._editableRowKey=this._getRowKeyForRowIdx(e),this._editableRowIdx=e},v.prototype._setNextRowEditable=function(e,t){var o=this._getTableBodyRows().length,l=this._getEditableRowIdx();l>=0&&l<o-1?!1===this._setTableEditable(!1,!1,e,!0,t)?this._queueTask(function(){setTimeout(function(){this._setCellFocus(l,e)}.bind(this),0)}.bind(this)):(this._setCurrentRow({rowIndex:l+1},t,!1),this._setTableEditable(!0,!1,e,!0,t)):l===o-1&&(this._setTableEditable(!1,!1,e,!0,t),this._getTable().focus())},v.prototype._setPreviousRowEditable=function(e,t){var o=this._getEditableRowIdx();o>=1?!1===this._setTableEditable(!1,!1,e,!1,t)?this._queueTask(function(){setTimeout(function(){this._setCellFocus(o,e)}.bind(this),0)}.bind(this)):(this._setCurrentRow({rowIndex:o-1},t,!1),this._setTableEditable(!0,!1,e,!1,t)):0===o&&(this._setTableEditable(!1,!1,e,!1,t),this._getTable().focus())},v.prototype._fireEditRowChangeEvent=function(e,t){this._queueTask(function(){this.option("editRow",e,{_context:{originalEvent:t,internalSet:!0,writeback:!0}})}.bind(this))},v.prototype._setTableEditable=function(e,t,o,l,i,n){if(this._isTableEditMode()){var s=this._getCurrentRow();if(null!=s){var a,r,_,d,h=s.rowKey,u=this._getRowIdxForRowKey(h);try{if(e&&!this._hasEditableRow())a=this._getTableBodyRow(u),(r=this._getRendererContextObject(a,{row:{key:h,index:s.rowIndex},isCurrentRow:!0})).item=a["oj-table-oj-row-item"],(_=this._trigger("beforeRowEdit",i,{rowContext:r}))&&(d={rowKey:h,rowIndex:u});else{if(e||!this._hasEditableRow())return;a=this._getTableBodyRow(this._getEditableRowIdx()),h=this._getRowKeyForRowIdx(this._getEditableRowIdx()),(r=this._getRendererContextObject(a,{row:{key:h,index:this._getDataSourceRowIndexForRowKey(h)},isCurrentRow:!0})).item=a["oj-table-oj-row-item"],(_=this._trigger("beforeRowEditEnd",i,{rowContext:r,cancelEdit:t}))&&(d={rowKey:null,rowIndex:-1})}}catch(e){return!1}if(!_)return!1;d&&this._fireEditRowChangeEvent(d,i);var c=this._getEditableRowIdx();if(e?(this._setEditableRowIdx(u),this._getTable().setAttribute(v.DOM_ATTR._ARIA_LABELLEDBY,""),this._accStatus.setAttribute(v.DOM_ATTR._ARIA_LABELLEDBY,""),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROW_REFRESH),this._refreshRow(u,!0).then(function(){this._setRowFocus(u,!0,!1),this._setCellInRowFocus(u,o,l)}.bind(this))}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null),n||this._getTable().focus()),null!=c)null!=this._getTableBodyRow(c)&&this._refreshRow(c,!1)}}},
|
|
102
|
+
v.prototype._checkRowOrHeaderColumnFocus=function(e){var t=this._getFocusedRowIdx(),o=this._getFocusedHeaderColumnIdx();if(null==t&&null==o){var l=null,i=this._getCurrentRow(),n=null!=i?i.rowKey:null;if(null!=n&&(l=this._getRowIdxForRowKey(n)),null==l)if(this._isTableHeaderless())this._setRowFocus(0,!0,!0,null,e);else{var s=this._getFirstVisibleColumnIndex(0,!0);this._setHeaderColumnFocus(s,!0,!1)}else this._setRowFocus(l,!0,!0,null,e)}},v.prototype._clearFocusedRow=function(e){null!=this._getFocusedRowIdx()&&this._setRowFocus(-1,!0,e,null,null)},v.prototype._clearFocusedHeaderColumn=function(){var e=this._getFocusedHeaderColumnIdx();null!=e&&this._setHeaderColumnFocus(e,!1,!1),this._activeHeaderIndex=-1},v.prototype._clearFocusedFooterColumn=function(){var e=this._getFocusedFooterColumnIdx();null!=e&&this._setFooterColumnFocus(e,!1,!1),this._activeFooterIndex=-1},v.prototype._getFirstVisibleColumnIndex=function(e,t){var o;if(this._isTableHeaderless()){if(this._isTableFooterless())return null;o=this._getTableFooterCell.bind(this)}else o=this._getTableHeaderColumn.bind(this);var l,i=this._getColumnDefs().length,n=e;if(t)for(;n<i;){if((l=o(n))&&l.clientWidth>0)return n;n+=1}else for(;n>-1;){if((l=o(n))&&l.clientWidth>0)return n;n-=1}return null},v.prototype._getNextVisibleColumnIndex=function(e,t){var o;o=t?e+1:e-1;var l=this._getFirstVisibleColumnIndex(o,t);return null!==l?l:e},v.prototype._getCurrentRow=function(){return this._getData()?this._currentRow:null},v.prototype._getFocusedRowIdx=function(){return this._getRowIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS)[0]},v.prototype._getFocusedHeaderColumnIdx=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS+",."+v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._COLUMN_HEADER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS)[0]},v.prototype._getFocusedFooterColumnIdx=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS+",."+v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS_HIGHLIGHT+",."+v.CSS_CLASSES._TABLE_FOOTER_SELECTOR_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._FOCUS)[0]},v.prototype._scrollRowIntoViewport=function(e){var t=this._getLayoutManager(),o=this._getTableBodyRow(e),l=u(t.getScroller()),i=t.getRowTopOverflowDiff(o),n=i>=0,s=t.getRowBottomOverflowDiff(o),a=s>=0;n&&a||(a?Math.abs(i)>Math.abs(s)?l.scrollTop(l.scrollTop()+s):l.scrollTop(l.scrollTop()-i):n&&(Math.abs(s)>Math.abs(i)?l.scrollTop(l.scrollTop()-i):l.scrollTop(l.scrollTop()+s)))},v.prototype._scrollColumnIntoViewport=function(e){var t;if(t=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e)){var o,l,i,n,s=this._getLayoutManager(),a="rtl"===this._GetReadingDirection(),r=s.getScroller(),_=u(r),d=s.getScrollBarWidth(),c=t.getBoundingClientRect(),S=r.getBoundingClientRect();if(a){l=(o=S.left-c.left+d)>=0,n=(i=c.right-S.right)>=0;var C=h.AgentUtils.getAgentInfo().browser;C!==h.AgentUtils.BROWSER.IE&&C!==h.AgentUtils.BROWSER.EDGE||(o*=-1,i*=-1)}else l=(o=S.left-c.left)>=0,n=(i=c.right-S.right+d)>=0;l&&n||(l?Math.abs(i)>Math.abs(o)?_.scrollLeft(_.scrollLeft()-o):_.scrollLeft(_.scrollLeft()+i):n&&(Math.abs(o)>Math.abs(i)?_.scrollLeft(_.scrollLeft()+i):_.scrollLeft(_.scrollLeft()-o)))}},v.prototype._setCurrentRow=function(e,t,o){var l,i,n,s,a=this._currentRow,r=null==e||null==e.rowKey&&null==e.rowIndex;if(r)n=-1,s=null!=e?e:null;else{var _=this._getData(),d=e.rowIndex,h=e.rowKey;if(null==h&&(h=this._getRowKeyForDataSourceRowIndex(d)),s={rowIndex:d=this._getDataSourceRowIndexForRowKey(h),rowKey:h},-1!==(n=this._getRowIdxForRowKey(h))&&(!_||n<-1||null===n||null===h)){if(l=v._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_SUMMARY,i=T.applyParameters(v._LOGGER_MSG._ERR_CURRENTROW_UNAVAILABLE_INDEX_DETAIL,{rowIdx:n}),o)throw new Error(l+"\n"+i);return S.info(l+"\n"+i),v._CURRENT_ROW_STATUS._IGNORED}}var u=this._getFocusedRowIdx(),c=!this._compareCurrentRowValues(a,s);if(c){var C;try{C=this._trigger("beforeCurrentRow",t,{currentRow:s,previousCurrentRow:a})}catch(e){return l=v._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_SUMMARY,i=T.applyParameters(v._LOGGER_MSG._ERR_PRECURRENTROW_ERROR_DETAIL,{error:e.toString()}),S.info(l+"\n"+i),v._CURRENT_ROW_STATUS._ERROR}if(!C)return v._CURRENT_ROW_STATUS._VETOED;if(!(null==a||null==a.rowKey&&null==a.rowIndex)){var E=a.rowIndex,p=this._getRowKeyForDataSourceRowIndex(E),g=this._getRowIdxForRowKey(p);if(!1===this._setTableEditable(!1,!1,0,!0,t)){this._currentRow=a;var f=document.activeElement,m=this._getElementColumnIdx(f);return this._queueTask(function(){var e=g,t=m;null!=e&&null!=t?setTimeout(function(){this._setCellFocus(e,t)}.bind(this),0):null!=e&&setTimeout(function(){this._setRowFocus(e,!0,!1)}.bind(this),0)}.bind(this)),v._CURRENT_ROW_STATUS._IGNORED}var b=this._getTableBodyRow(g);null!=b&&b.classList.remove(v.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}if(this._currentRow=s,this.option("currentRow",this._currentRow,{_context:{writeback:!0,originalEvent:t,internalSet:!0}}),!r){var A=this._getTableBodyRow(n);null!=A&&A.classList.add(v.CSS_CLASSES._TABLE_DATA_CURRENT_ROW_CLASS)}}return!c&&u===n||null!=t||this._setRowFocus(n,!0,!1),v._CURRENT_ROW_STATUS._UPDATED},v.prototype._compareCurrentRowValues=function(e,t){if(e===t)return!0;if(null!=e&&null!=t){if(e.rowIndex===t.rowIndex&&h.KeyUtils.equals(e.rowKey,t.rowKey))return!0}else if(null==e&&null==t)return!0;return!1},v.prototype._setCellFocus=function(e,t){var o=this._getTableBodyCell(e,t);if(o){var l=f.getFocusableElementsInNode(o);if(l.length>0)return l[0].focus(),!0}return!1},v.prototype._setCellInRowFocus=function(e,t,o){if(!this._setCellFocus(e,t))for(var l=this._getTableBodyCells(e).length,i=0;i<l;i++){var n=i;if(o||(n=l-i-1),this._setCellFocus(e,n))return}},v.prototype._setFocusInHandler=function(e){this._focusInHandler=e},v.prototype._setFocusOutHandler=function(e){this._focusOutHandler=e},v.prototype._setRowFocus=function(e,t,o,l,i){var n;if(-1===e)return(!o||this._setCurrentRow(null,i,!1)===v._CURRENT_ROW_STATUS._UPDATED)&&(null!=(n=this._getFocusedRowIdx())&&this._setRowFocus(n,!1,o,null,null),!0);var s=this._getTableBodyRow(e);if(!s)return!1;if(t){if(o){var a=this._getRowKeyForRowIdx(e);if(this._setCurrentRow({rowKey:a},i,!1)!==v._CURRENT_ROW_STATUS._UPDATED)return!1;null==this._accColumnIndex&&(this._accColumnIndex=0),this._updateAccStatusInfo(e,this._accColumnIndex)}null!=(n=this._getFocusedRowIdx())&&n!==e&&this._setRowFocus(n,!1,o,l,null),this._focusInHandler(u(s)),this._scrollRowIntoViewport(e),this._updateRowStateCellsClass(e,{focused:!0}),this._clearFocusedHeaderColumn(),this._clearFocusedFooterColumn(),this._setTableActionableMode(!1)}else this._focusOutHandler(u(s)),this._updateRowStateCellsClass(e,{focused:!1});return!0},v.prototype._setHeaderColumnFocus=function(e,t,o){if(!this._isTableHeaderless()&&null!=e){if(t){this._clearFocusedFooterColumn(),this._clearFocusedRow(!0);var l=this._getFocusedHeaderColumnIdx();null!==l&&l!==e&&this._setHeaderColumnFocus(l,!1,o),o||this._scrollColumnIntoViewport(e),this._activeHeaderIndex=e,this._updateAccStatusInfo(null,null,e)}this._setHeaderColumnState(e,{focused:t})}},v.prototype._setFooterColumnFocus=function(e,t,o){if(!this._isTableFooterless()&&null!=e){if(t){this._clearFocusedRow(!0),this._clearFocusedHeaderColumn();var l=this._getFocusedFooterColumnIdx();null!==l&&l!==e&&this._setFooterColumnFocus(l,!1,o),o||this._scrollColumnIntoViewport(e),this._activeFooterIndex=e,this._updateAccStatusInfo(null,null,null,e)}this._setFooterColumnState(e,{focused:t})}},v.prototype._setHeaderColumnState=function(e,t){var o;(o=-1===e?this._getTableSelectorColumn():this._getTableHeaderColumn(e))&&this._applyHeaderColumnState(o,e,t)},v.prototype._setFooterColumnState=function(e,t){var o;(o=-1===e?this._getTableFooterSelectorCell():this._getTableFooterCell(e))&&this._applyFooterColumnState(o,e,t)},v.prototype._applyHeaderColumnState=function(e,t,o){var l=o.focused,i=o.selected;if(null!=l&&(l?(this._focusInHandler(u(e)),t>-1&&this._showTableHeaderColumnSortIcon(t)):(this._focusOutHandler(u(e)),t>-1&&this._hideTableHeaderColumnSortIcon(t))),t>-1&&null!=i){var n=this._getTableFooterCell(t);i?(e.classList.add(v.MARKER_STYLE_CLASSES._SELECTED),null!=n&&n.classList.add(v.MARKER_STYLE_CLASSES._SELECTED)):(e.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED),null!=n&&n.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)),this._updateColumnStateCellsClass(t,i)}},v.prototype._applyFooterColumnState=function(e,t,o){var l=o.focused,i=o.selected;if(null!=l&&(l?this._focusInHandler(u(e)):this._focusOutHandler(u(e))),t>-1&&null!=i){var n=this._getTableHeaderColumn(t);i?(null!=n&&n.classList.add(v.MARKER_STYLE_CLASSES._SELECTED),e.classList.add(v.MARKER_STYLE_CLASSES._SELECTED)):(null!=n&&n.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED),e.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)),this._updateColumnStateCellsClass(t,i)}},v.prototype._updateColumnStateCellsClass=function(e,t){for(var o=this._getSelectedRowIdxs(),l=this._getTableBodyRows(),i=0;i<l.length;i++){var n=this._getTableBodyCell(i,e);if(n)if(t)n.classList.add(v.MARKER_STYLE_CLASSES._SELECTED);else{for(var s=!1,a=o.length,r=0;r<a;r++)if(i===o[r]){s=!0;break}s||n.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)}}},v.prototype._updateRowStateCellsClass=function(e,t){var o=this._getTableBodyCells(e);if(0!==o.length){if(this._isDefaultSelectorEnabled()){var l=this._getTableBodyRow(e),i=this._getTableBodySelectorCell(l);o.unshift(i)}var n,s=t.focused,a=t.selected,r=t.hover,_=o.length;if(null!=r)for(n=0;n<_;n++)r?o[n].classList.add(v.MARKER_STYLE_CLASSES._HOVER):o[n].classList.remove(v.MARKER_STYLE_CLASSES._HOVER);if(null!=s)for(n=0;n<_;n++)s?this._focusInHandler(u(o[n])):this._focusOutHandler(u(o[n]));if(null!=a)for(n=0;n<_;n++)a?o[n].classList.add(v.MARKER_STYLE_CLASSES._SELECTED):o[n].classList.remove(v.MARKER_STYLE_CLASSES._SELECTED)}},v.prototype._adjustScrollPositionOnFetch=function(){var e=null==this.options.scrollPosition?{}:this.options.scrollPosition;if(!isNaN(e.rowIndex)&&void 0!==e.rowKey){var t=this._getSelectedRowIdxs();null!=t&&t.length>0&&this._isRowSelectionEnabled()&&this._isScrollToKey()?(!isNaN(this._selectionAnchorIdx)&&t.indexOf(this._selectionAnchorIdx)>-1?e.rowKey=this._getRowKeyForRowIdx(this._selectionAnchorIdx):e.rowKey=this._getRowKeyForRowIdx(t[0]),delete e.rowIndex):(e.y=0,e.rowIndex=0,delete e.rowKey),e.x=0,e.columnKey=null,e.columnIndex=0,e.offsetX=0,e.offsetY=0,this.option("scrollPosition",e,{_context:{internalSet:!0},changed:!1})}},v.prototype._isScrollPositionAdjusted=function(){var e=this.options.scrollPosition;return null!=e&&(void 0===e.rowIndex&&null!=e.rowKey)},v.prototype._findRowElementByKey=function(e){for(var t=this._getTableBodyRows(),o=0;o<t.length;o++)if(h.KeyUtils.equals(u(t[o]).data("rowKey"),e))return t[o];return null},v.prototype._isScrollToKey=function(){var e=this.options.scrollToKey;if("never"===e)return!1;if("always"===e)return!0;var t=this.options.data;if(!h.DataProviderFeatureChecker.isDataProvider(t))return!0;if(t.getCapability){var o=t.getCapability("fetchFirst");if(o&&"immediate"===o.iterationSpeed)return!0}return!1},v.prototype._getScrollToKey=function(){var e=this.options.scrollPosition.rowKey;return e?new Promise(function(t){var o=this._validateKeyForScroll(e,!0);null==o?t(null):o.then(function(o){t(o?e:null)})}.bind(this)):Promise.resolve(null)},v.prototype._validateKeyForScroll=function(e,t){if(!this._isScrollToKey())return null;if(!t&&null!=this._findRowElementByKey(e))return Promise.resolve(!0);var o=this._getData();return o.containsKeys?new Promise(function(t){var l=new Set;l.add(e),o.containsKeys({keys:l}).then(function(e){t(e.results.size>0)},function(){t(!1)})}):null},v.prototype._syncScrollPosition=function(e,t){if(!this._IsCustomElement()||this._noDataMessageShown||!this._isScrollableX()&&!this._isScrollableY())return!0;if(null!=this._scrollPosition?e=this._scrollPosition:null==e&&(e=this.options.scrollPosition),!t&&null!=e.rowKey){var o=this._validateKeyForScroll(e.rowKey,!1);if(o){var l=this._createComponentBusyState("is validating scroll position rowKey.");o.then(function(t){t||delete e.rowKey,this._clearComponentBusyState(l),this._syncScrollPosition(e,!0)}.bind(this))}return!1}var i=this._getScrollCoordinates(e),n=i.x,s=i.y;if(isNaN(n)&&isNaN(s))return null!=this._scrollPosition&&(this.option("scrollPosition",this._getCurrentScrollPosition(),{_context:{originalEvent:null,internalSet:!0}}),this._scrollPosition=null),this._editRowCallback=null,!0;var a=isNaN(this._scrollTop)?0:this._scrollTop,r=isNaN(this._scrollLeft)?0:this._scrollLeft;if(!isNaN(n)&&isNaN(s)||!isNaN(n)&&s===a&&n!==r){if(!this._isScrollableX())return!0;this._setScrollX(n);var _=this.options.scrollPosition,d=this._getCurrentHorizontalScrollPosition(n);d.y=_.y,d.rowIndex=_.rowIndex,d.rowKey=_.rowKey,d.offsetY=_.offsetY,this.option("scrollPosition",d,{_context:{originalEvent:null,internalSet:!0}})}else if(s!==a){if(!this._isScrollableY())return!(!isNaN(n)&&n!==r)||(delete e.y,this._syncScrollPosition(e,t));var h=this._setScrollY(s);if(isNaN(n)||n===r||this._setScrollX(n),-1===s)return this._scrollPosition=e,h;this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}})}else e&&(null==e.rowKey||isNaN(e.rowIndex))&&this.option("scrollPosition",this._getCurrentScrollPosition(n,s),{_context:{originalEvent:null,internalSet:!0}});return null!=this._scrollPosition&&(this._scrollPosition=null),this._editRowCallback&&(this._editRowCallback(),this._editRowCallback=null),!0},v.prototype._isScrollableX=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollWidth()-e.getClientWidth())>1},v.prototype._isScrollableY=function(){var e=this._getLayoutManager();return Math.abs(e.getScrollHeight()-e.getClientHeight())>1},v.prototype._setScrollX=function(e){var t=this._getLayoutManager().getScroller();this._skipScrollUpdate=!0,c.setScrollLeft(t,e)},v.prototype._setScrollY=function(e){var t=this._getLayoutManager(),o=t.getScroller();this._skipScrollUpdate=!0;var l=o.scrollTop;return o.scrollTop=-1===e?t.getScrollHeight()-t.getClientHeight():e,l!==o.scrollTop&&(this._setScrollPosBusyState(),!0)},v.prototype._getScrollTopByIndex=function(e){if(0===e)return 0;if(!(this._isLoadMoreOnScroll()&&e>this.options.scrollPolicyOptions.maxCount)){var t=this._getTableBodyRows()[e];if(null!=t){if(this._isStickyLayoutEnabled()&&!this._isTableHeaderless()){var o=this._getTableHeader();if(null!=o)return t.offsetTop-o.offsetHeight}return t.offsetTop}return this._hasMoreToFetch()?-1:void 0}},v.prototype._getScrollTopByKey=function(e){var t=this._findRowElementByKey(e);if(null!=t){if(this._isStickyLayoutEnabled()&&!this._isTableHeaderless()){var o=this._getTableHeader();if(null!=o)return t.offsetTop-o.offsetHeight}return t.offsetTop}if(this._hasMoreToFetch())return-1},v.prototype._getScrollLeftByIndex=function(e){if(0===e)return 0;var t=this._getTableHeaderColumn(e);return null!=t?t.offsetLeft:void 0},v.prototype._getScrollLeftByKey=function(e){var t=this._getColumnIdxForColumnKey(e);return this._getScrollLeftByIndex(t)},v.prototype._getScrollCoordinates=function(e){var t,o,l=e.rowKey;isNaN(t)&&null!=l&&(t=this._getScrollTopByKey(l));var i=e.columnKey;isNaN(o)&&null!=i&&(o=this._getScrollLeftByKey(i));var n=e.rowIndex;isNaN(t)&&!isNaN(n)&&(t=this._getScrollTopByIndex(n));var s=e.columnIndex;isNaN(o)&&!isNaN(s)&&(o=this._getScrollLeftByIndex(s));var a=e.offsetX;!isNaN(o)&&!isNaN(a)&&o>=0&&(o+=a);var r=e.offsetY;if(!isNaN(t)&&!isNaN(r)&&t>=0&&(t+=r),isNaN(o)&&!isNaN(e.x)&&(o=Math.max(0,e.x)),isNaN(t)&&!isNaN(e.y)){var _=this._getLayoutManager();t=e.y>_.getScrollHeight()?this._hasMoreToFetch()?-1:_.getScrollHeight()-_.getClientHeight():Math.max(0,e.y)}return{x:o,y:t}},v.prototype._getCurrentHorizontalScrollPosition=function(e){var t={};t.x=void 0===e?this._scrollLeft:e;var o=this.option("scrollPosition"),l=Math.abs(o.x-t.x);if(l<1&&null!=o.columnKey&&!isNaN(o.columnIndex))return t.columnKey=o.columnKey,t.columnIndex=o.columnIndex,t.offsetX=o.offsetX+l,t;var i=this._getColumnLocations();if(i&&i.length>0){var n,s=i.length-1;for(n=0;n<i.length-1;n++)if(t.x>=i[n]&&t.x<i[n+1]){s=n;break}t.columnKey=this._getColumnDefs()[s].id,t.columnIndex=s,t.offsetX=t.x-i[s]}return t},v.prototype._getCurrentVerticalScrollPosition=function(e){var t={};t.y=void 0===e?this._scrollTop:e;var o=this._getTableBody();if(isNaN(this._rowHeight)&&o.rows.length>1&&(this._rowHeight=o.rows[1].offsetHeight),!isNaN(this._rowHeight)&&this._rowHeight>0){var l=this._findClosestElementToTop(t,e);null!=l&&(t.rowIndex=l.index,t.rowKey=this._getRowKeyForRowIdx(l.index),t.offsetY=l.offset)}return t},v.prototype._getCurrentScrollPosition=function(e,t){var o=this._getCurrentHorizontalScrollPosition(e),l=this._getCurrentVerticalScrollPosition(t);return Object.keys(l).forEach(function(e){o[e]=l[e]}),o},v.prototype._getColumnLocations=function(){if(null==this._columnOffsets){this._columnOffsets=[];var e=this._getTableHeaderColumns();if(e&&e.length>0){var t;t=e[0].offsetLeft,this._columnOffsets.push(0);for(var o=1;o<e.length;o++)this._columnOffsets.push(e[o].offsetLeft-t)}}return this._columnOffsets},v.prototype._findClosestElementToTop=function(e,t){var o,l=this._getTableBodyRows();if(0===l.length)return null;var i,n=this.option("scrollPosition");Math.abs(n.y-t)<this._rowHeight&&null!=n.rowKey&&!isNaN(n.rowIndex)&&(o=n.rowIndex),isNaN(o)&&(o=Math.floor(e.y/this._rowHeight));var s=l[o=Math.min(Math.max(o,0),l.length-1)];i=0===o?0:s.offsetTop-l[0].offsetTop;var a=e.y,r=a-i,_={index:o,elem:s,offsetTop:i,offset:r};if(Math.abs(r)<1)return _;var d=r>0;d?o+=1:o-=1;for(var h=!1;!h&&o>=0&&o<l.length;){var u=i;if(i=(s=l[o]).offsetTop,h=(r=Math.abs(a-i))<1||(d?a<=i:a>=i)){_=r<1||!d?{index:o,elem:s,offsetTop:i,offset:r}:{index:o-1,elem:l[o-1],offsetTop:u,offset:a-u};break}d?o+=1:o-=1}return _},v.prototype._registerDomEventListeners=function(){this._getLayoutManager().registerScrollListeners()},v.prototype._isTableActionableMode=function(){return this._tableActionableMode},v.prototype._isTableEditMode=function(){return this.options.editMode===v._OPTION_EDIT_MODE._ROW_EDIT},v.prototype._toggleTableActionableMode=function(){this._isTableActionableMode()?this._setTableActionableMode(!1):this._setTableActionableMode(!0)},v.prototype._setTableActionableMode=function(e,t){if(!(null!=this._tableActionableMode&&this._tableActionableMode===e||null==this._tableActionableMode&&!1===e))if(e){var o=null,l=null,i=this._getFocusedRowIdx();if(null!=i&&(l=o=this._getTableBodyRow(i)),null==o){var n=this._getFocusedHeaderColumnIdx();null!=n&&(o=this._getTableHeaderColumn(n),l=this._getTableHeaderRow())}if(null!=o){f.enableAllFocusableElements(l);var s=this._getTabbableElements(o);null!=s&&s.length>0&&(this._tableActionableMode=e,this._tableActionableElement=o,this._tableActionableBoundaryElement=l,this._focusOutHandler(u(o)),s[0].focus())}}else{this._tableActionableMode=!1;var a=u.contains(this._getTableBody(),document.activeElement);null!=this._tableActionableElement&&f.disableAllFocusableElements(this._tableActionableBoundaryElement),a&&!t&&(this._getTable().focus(),this._focusInHandler(u(this._tableActionableElement))),this._tableActionableElement=null,this._tableActionableBoundaryElement=null}},v.prototype._getEditableRowIdx=function(){if(null!=this._getEditableRowKey()){var e=this._getRowIdxForRowKey(this._getEditableRowKey());if(null!==e)return e}return this._editableRowIdx},v.prototype._getEditableRowKey=function(){return this._editableRowKey},v.prototype._hasEditableRow=function(){return!!this._isTableEditMode()&&null!==this._getEditableRowIdx()},v.prototype._setEditRow=function(e){if(this._isTableEditMode()){var t=e.rowKey,o=e.rowIndex;if(null!=t||o>-1){var l=this._setCurrentRow({rowKey:t,rowIndex:o},null,!1);if(l===v._CURRENT_ROW_STATUS._UPDATED)this._setTableEditable(!0,!1,0,!0,null);else if(l===v._CURRENT_ROW_STATUS._IGNORED){var i=this._scrollTop;this._syncScrollPosition({rowKey:t,rowIndex:o})||(this._editRowCallback=function(){this._scrollTop!==i&&this._setEditRow(e)}.bind(this))}}else this._setTableEditable(!1,!1,0,!0,null)}},v.prototype._setEditableRowIdx=function(e){this._editableRowKey=this._getRowKeyForRowIdx(e),this._editableRowIdx=e},v.prototype._setNextRowEditable=function(e,t){var o=this._getTableBodyRows().length,l=this._getEditableRowIdx();l>=0&&l<o-1?!1===this._setTableEditable(!1,!1,e,!0,t)?this._queueTask(function(){setTimeout(function(){this._setCellFocus(l,e)}.bind(this),0)}.bind(this)):(this._setCurrentRow({rowIndex:l+1},t,!1),this._setTableEditable(!0,!1,e,!0,t)):l===o-1&&(this._setTableEditable(!1,!1,e,!0,t),this._getTable().focus())},v.prototype._setPreviousRowEditable=function(e,t){var o=this._getEditableRowIdx();o>=1?!1===this._setTableEditable(!1,!1,e,!1,t)?this._queueTask(function(){setTimeout(function(){this._setCellFocus(o,e)}.bind(this),0)}.bind(this)):(this._setCurrentRow({rowIndex:o-1},t,!1),this._setTableEditable(!0,!1,e,!1,t)):0===o&&(this._setTableEditable(!1,!1,e,!1,t),this._getTable().focus())},v.prototype._fireEditRowChangeEvent=function(e,t){this._queueTask(function(){this.option("editRow",e,{_context:{originalEvent:t,internalSet:!0,writeback:!0}})}.bind(this))},v.prototype._setTableEditable=function(e,t,o,l,i,n){if(this._isTableEditMode()){var s=this._getCurrentRow();if(null!=s){var a,r,_,d,h=s.rowKey,u=this._getRowIdxForRowKey(h);try{if(e&&!this._hasEditableRow())a=this._getTableBodyRow(u),(r=this._getRendererContextObject(a,{row:{key:h,index:s.rowIndex},isCurrentRow:!0})).item=a["oj-table-oj-row-item"],(_=this._trigger("beforeRowEdit",i,{rowContext:r}))&&(d={rowKey:h,rowIndex:u});else{if(e||!this._hasEditableRow())return;a=this._getTableBodyRow(this._getEditableRowIdx()),h=this._getRowKeyForRowIdx(this._getEditableRowIdx()),(r=this._getRendererContextObject(a,{row:{key:h,index:this._getDataSourceRowIndexForRowKey(h)},isCurrentRow:!0})).item=a["oj-table-oj-row-item"],(_=this._trigger("beforeRowEditEnd",i,{rowContext:r,cancelEdit:t}))&&(d={rowKey:null,rowIndex:-1})}}catch(e){return!1}if(!_)return!1;d&&this._fireEditRowChangeEvent(d,i);var c=this._getEditableRowIdx();if(e?(this._setEditableRowIdx(u),this._getTable().setAttribute(v.DOM_ATTR._ARIA_LABELLEDBY,""),this._accStatus.setAttribute(v.DOM_ATTR._ARIA_LABELLEDBY,""),this._queueTask(function(){this._getLayoutManager().notifyTableUpdate(v._UPDATE._ROW_REFRESH),this._refreshRow(u,!0).then(function(){this._setRowFocus(u,!0,!1),this._setCellInRowFocus(u,o,l)}.bind(this))}.bind(this))):(this._focusEditCell=null,this._setEditableRowIdx(null),n||this._getTable().focus()),null!=c)null!=this._getTableBodyRow(c)&&this._refreshRow(c,!1)}}},
|
|
103
103
|
/**
|
|
104
104
|
* @license
|
|
105
105
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -131,7 +131,7 @@ v.RESIZE_OFFSET=10,v.prototype._setResizeCursor=function(e){var t=this._getEvent
|
|
|
131
131
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
132
132
|
* @ignore
|
|
133
133
|
*/
|
|
134
|
-
v.prototype._getRowSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[v._CONST_ROW]},v.prototype._isRowSelectionEnabled=function(){var e=this._getRowSelectionMode();return e===v._OPTION_SELECTION_MODES._SINGLE||e===v._OPTION_SELECTION_MODES._MULTIPLE},v.prototype._getColumnSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[v._CONST_COLUMN]},v.prototype._isColumnSelectionEnabled=function(){var e=this._getColumnSelectionMode();return e===v._OPTION_SELECTION_MODES._SINGLE||e===v._OPTION_SELECTION_MODES._MULTIPLE},v.prototype._syncSelectionState=function(){var e=this.option("selected"),t=this.option("selection");this._selectionSet&&(e=this._getSelectedEquivalent(t),this._syncRangeSelection()),this._isSelectionRequiredSatisfied(e)?this._setSelected(e,this._selectionSet):this._selectFirstRowOrColumn()},v.prototype._updateSelectionStateFromEventDetailRemove=function(e,t){var o=this.option("selected"),l=o.row;l&&(e[v._CONST_KEYS].forEach(function(e){null!=t&&t[v._CONST_KEYS].has(e)||(l.isAddAll()?l.has(e)||(l=l.add([e])):l=l.delete([e]))}),o.row!==l&&(o={row:l,column:o.column},this._isSelectionRequiredSatisfied(o)?this._setSelected(o):this._selectFirstRowOrColumn()))},v.prototype._validateInitialSelectionState=function(e){var t,o,l=this.option("selection"),i=this.option("selected"),n=i.row,s=i.column;if(this._validatedSelectedRowKeyData=null,(this._selectionSet||!e&&null!=l&&0!==l.length&&n===n.clear()&&s===s.clear())&&(i=this._getSelectedEquivalent(l),t=!0),this._isSelectionRequired())if((o=this._validateSelected(i)).isLocal)this._enforceSelectionRequired(i,o.result,t);else{var a=this._createComponentBusyState("is validating selection-required keys.");o.result.then(function(e){this._enforceSelectionRequired(i,e,t),this._clearComponentBusyState(a)}.bind(this))}else t&&this._syncRangeSelection(),this._setSelected(i,t);this._initialSelectionStateValidated=!0},v.prototype._isSelectionRequired=function(){return"true"===String(this.options.selectionRequired).toLowerCase()},v.prototype._hasSelected=function(e){null==e&&(e=this.option("selected"));var t=e.row,o=e.column;return t.isAddAll()||t.values().size>0||o.isAddAll()||o.values().size>0},v.prototype._isSelectionRequiredSatisfied=function(e){return!this._isSelectionRequired()||this._hasSelected(e)},v.prototype._enforceSelectionRequired=function(e,t,o){o?this._hasSelected(t)?t.row===e.row&&t.column===e.column?(this._syncRangeSelection(),this._setSelected(t,!0)):this._setSelected(t):this._selectFirstRowOrColumn():this._hasSelected(t)?this._setSelected(t):this._selectFirstRowOrColumn()},v.prototype._selectFirstRowOrColumn=function(){var e,t;if(this._isRowSelectionEnabled()&&null!=(t=this._getRowKeyForRowIdx(0)))return e=new y.KeySetImpl([t]),void this._setSelected({row:e,column:new y.KeySetImpl});this._isColumnSelectionEnabled()&&null!=(t=this._getColumnKeyForColumnIdx(0))&&(e=new y.KeySetImpl([t]),this._setSelected({row:new y.KeySetImpl,column:e}))},v.prototype._validateSelected=function(e){var t=e.column,o=t;if(!t.isAddAll()){var l=this._getColumnKeys(),i=[];t.values().forEach(function(e){-1===l.indexOf(e)&&i.push(e)}),i.length>0&&(o=o.delete(i))}var n=e.row,s=n;if(!n.isAddAll()){var a=this._getLocalRowKeys(),r=[];if(n.values().forEach(function(e){-1===a.indexOf(e)&&r.push(e)}),r.length>0){var _=this._fetchValidRowKeyData(r);if(_)return{isLocal:!1,result:_.then(function(e){return this._validatedSelectedRowKeyData=e,e.forEach(function(e){r.splice(r.indexOf(e.key),1)}),{row:s=s.delete(r),column:o}}.bind(this))};s=s.delete(r)}}return{isLocal:!0,result:{row:s,column:o}}},v.prototype._fetchValidRowKeyData=function(e){var t=this._getData();if(t&&t.getCapability){var o=t.getCapability("fetchByKeys");if(o&&"lookup"===o.implementation)return new Promise(function(o){t.fetchByKeys({keys:new Set(e),scope:"global"}).then(function(e){var t=[];e.results.forEach(function(e,o){t.push({key:o,data:e.data})}),o(t)},function(){o([])})})}return null},v.prototype._syncRangeSelection=function(e){if(void 0===e&&(e=this.option("selection")),null!=e)for(var t=e.length,o=0;o<t;o++){var l,i,n,s,a=e[o];null!=a.startKey&&null!=a.startKey[v._CONST_ROW]?(l=a.startKey[v._CONST_ROW],i=this._getDataSourceRowIndexForRowKey(l),a.startIndex={},a.startIndex[v._CONST_ROW]=i):null!=a.startIndex&&null!=a.startIndex[v._CONST_ROW]&&(i=a.startIndex[v._CONST_ROW],null!=(l=this._getRowKeyForDataSourceRowIndex(i))&&(a.startKey={},a.startKey[v._CONST_ROW]=l)),null!=a.endKey&&null!=a.endKey[v._CONST_ROW]?(n=a.endKey[v._CONST_ROW],s=this._getDataSourceRowIndexForRowKey(n),a.endIndex={},a.endIndex[v._CONST_ROW]=s):null!=a.endIndex&&null!=a.endIndex[v._CONST_ROW]&&(s=a.endIndex[v._CONST_ROW],null!=(n=this._getRowKeyForDataSourceRowIndex(s))&&(a.endKey={},a.endKey[v._CONST_ROW]=n))}},v.prototype._processRowRangeSelection=function(e,t,o){var l,i,n,s,a,r,_=!0;if(null!=e.startKey&&null!=e.startKey[v._CONST_ROW]?(a=e.startKey[v._CONST_ROW],l=this._getDataSourceRowIndexForRowKey(a),isNaN(l)&&(_=void 0)):null!=e.startIndex&&null!=e.startIndex[v._CONST_ROW]&&(l=e.startIndex[v._CONST_ROW]),null!=e.endKey&&null!=e.endKey[v._CONST_ROW])r=e.endKey[v._CONST_ROW],null===(i=this._getDataSourceRowIndexForRowKey(r))&&this._isLoadMoreOnScroll()&&(i=this._getDataSourceLastFetchedRowIndex(),_=void 0);else if(null!=e.endIndex&&null!=e.endIndex[v._CONST_ROW]){i=e.endIndex[v._CONST_ROW];var d=this._getDataSourceLastFetchedRowIndex();this._isLoadMoreOnScroll()&&i>d&&(i=d,_=void 0)}if(void 0===l&&void 0===i)_=!1;else if(null!=l&&null!=i&&l<=i){a=this._getRowKeyForDataSourceRowIndex(l),r=this._getRowKeyForDataSourceRowIndex(i),n=this._getRowIdxForRowKey(a),s=this._getRowIdxForRowKey(r);for(var h=n;h<=s;h++){var u=this._getRowKeyForRowIdx(h);t=t.add([u])}o=o.clear()}else S.warn("Error: Cannot resolve row range in selection - \n start row key: "+a+"\n end row key: "+r+"\n start row index: "+l+"\n end row index: "+i),null!=a&&null!=r&&(t=(t=t.add([a])).add([r]),o=o.clear());return{status:_,rowKeySet:t,columnKeySet:o}},v.prototype._getDataSourceLastFetchedRowIndex=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getData(),o=0;return this._isPagingModelDataProvider()&&(o=t.getStartItemIndex()),e.length+o-1}return 0},v.prototype._processColumnRangeSelection=function(e,t,o){var l,i,n,s,a=!0;if(null!=e.startKey&&null!=e.startKey[v._CONST_COLUMN]?(l=e.startKey[v._CONST_COLUMN],n=this._getColumnIdxForColumnKey(l)):null!=e.startIndex&&null!=e.startIndex[v._CONST_COLUMN]&&(n=e.startIndex[v._CONST_COLUMN]),null!=e.endKey&&null!=e.endKey[v._CONST_COLUMN]?(i=e.endKey[v._CONST_COLUMN],s=this._getColumnIdxForColumnKey(i)):null!=e.endIndex&&null!=e.endIndex[v._CONST_COLUMN]&&(s=e.endIndex[v._CONST_COLUMN]),void 0===n&&void 0===s)a=!1;else if(null!=n&&null!=s&&!isNaN(n)&&!isNaN(s)&&n<=s){for(var r=n;r<=s;r++){var _=this._getColumnKeyForColumnIdx(r);o=o.add([_])}t=t.clear()}else S.error("Error: Cannot resolve column range in selection - \n start column key: "+l+"\n end column key: "+i+"\n start column index: "+n+"\n end column index: "+s);return{status:a,rowKeySet:t,columnKeySet:o}},v.prototype._invalidateRangeSelection=function(){var e=this.option("selection");if(null!=e)for(var t=0;t<e.length;t++){var o,l,i=e[t];if(null!=i.startKey&&(o=i.startKey[v._CONST_ROW]),null!=i.endKey&&(l=i.endKey[v._CONST_ROW]),o!==l||void 0===o){var n=this.option("selected.row"),s=this._getRowSelectionFromKeySet(n);this.option("selection",s,{_context:{writeback:!0,internalSet:!0}});break}}},v.prototype._setSelected=function(e,t){if(this._selectionSet=t,null!=e){var o,l=this.option("selected");if(this._selectionSet?f.areKeySetsEqual(l.row,e.row)&&f.areKeySetsEqual(l.column,e.column)||(o=!0):l.row===e.row&&l.column===e.column||(o=!0),o&&(this.option("selected",e,{_context:{writeback:!0,internalSet:!0}}),this._isSelectionRequired()&&this._validatedSelectedRowKeyData))for(var i=this._validatedSelectedRowKeyData.length-1;i>=0;i--){var n=this._validatedSelectedRowKeyData[i];e.row.has(n.key)||this._validatedSelectedRowKeyData.splice(i,1)}this._isDefaultSelectorEnabled()&&this._updateSelector(e.row),this._applySelected(e);var s=null,a=this._getRowSelectionFromKeySet(e.row);if(null!=a&&a.length>0){var r=a[0];null!=r.startKey&&(s=r.startKey[v._CONST_ROW])}if(this._setFirstSelectedRow(s),!t){var _=this._getSelectionEquivalent(e);this.option("selection",_,{_context:{writeback:!0,internalSet:!0}})}}},v.prototype._setFirstSelectedRow=function(e){var t=this.option("firstSelectedRow");if(!h.KeyUtils.equals(e,t.key)){var o=null;if(null!=e){var l=this.getDataForVisibleRow(this._getRowIdxForRowKey(e));if(null!=l)o=l[v._CONST_DATA];else if(this._validatedSelectedRowKeyData)for(var i=0;i<this._validatedSelectedRowKeyData.length;i++){var n=this._validatedSelectedRowKeyData[i];if(h.KeyUtils.equals(e,n.key)){o=n.data;break}}}this.option("firstSelectedRow",{key:e,data:o},{_context:{writeback:!0,internalSet:!0}})}},v.prototype._getSelectedEquivalent=function(e){var t;if(null!=e){for(var o=(t={row:new y.KeySetImpl,column:new y.KeySetImpl}).row,l=t.column,i=e.length,n=0;n<i;n++){var s=e[n];if(null==s.startKey&&null==s[v._CONST_STARTINDEX]||null==s.endKey&&null==s[v._CONST_ENDINDEX])S.error("Error: Invalid range object in selection. Both start and end objects must be specified");else{var a=this._processRowRangeSelection(s,o,l);o=a.rowKeySet,l=a.columnKeySet,!1===a.status&&(!1===(a=this._processColumnRangeSelection(s,o,l)).status&&S.error("Error: Invalid range object"),o=a.rowKeySet,l=a.columnKeySet)}}t.row===o&&t.column===l||(t={row:o,column:l})}else t={row:new y.KeySetImpl,column:new y.KeySetImpl};return t},v.prototype._getSelectionEquivalent=function(e){var t=this._getRowSelectionFromKeySet(e.row);return t.length>0||t.inverted||(t=this._getColumnSelectionFromKeySet(e.column)).length>0||t.inverted?t:[]},v.prototype._getRowSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{row:e},endKey:{row:e}},l=this._getDataSourceRowIndexForRowKey(e);!isNaN(l)&&l>=0&&(o.startIndex={row:l},o.endIndex={row:l}),t.push(o)},this),t.inverted=e.isAddAll(),t},v.prototype._getColumnSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{column:e},endKey:{column:e}},l=this._getColumnIdxForColumnKey(e);l>=0&&(o.startIndex={column:l},o.endIndex={column:l}),t.push(o)},this),t.inverted=e.isAddAll(),t},v.prototype._applySelected=function(e){var t=e.row,o=e.column;if(this._getSelectedRowIdxs().forEach(function(e){var o=this._getTableBodyRow(e);t.has(this._getRowKey(o))||(this._applyRowSelection(e,o,!1),this._setLastRowSelection(e,!1))},this),this._isRowSelectionEnabled())if(t.isAddAll()){var l=this._getTableBodyRows();l.forEach(function(e,o){t.has(this._getRowKey(e))&&this._applyRowSelection(o,e,!0)},this);var i=l.length-1,n=this._getRowKeyForRowIdx(i);this._setLastRowSelection(i,t.has(n))}else t.values().forEach(function(e){var t=this._getRowIdxForRowKey(e);null!=t&&t>=0&&(this._applyRowSelection(t,this._getTableBodyRow(t),!0),this._setLastRowSelection(t,!0))},this);if(0===this._getSelectedRowIdxs().length&&this._removeTableBodyRowTouchSelectionAffordance(),this._getSelectedHeaderColumnIdxs().forEach(function(e){o.has(this._getColumnKeyForColumnIdx(e))||this._applyColumnSelection(e,!1)},this),this._isColumnSelectionEnabled())if(o.isAddAll()){var s=this._getTableHeaderColumns();s.forEach(function(e,t){o.has(this._getColumnKeyForColumnIdx(t))&&this._applyColumnSelection(t,!0)},this);var a=s.length-1,r=this._getColumnKeyForColumnIdx(a);this._setLastHeaderColumnSelection(a,o.has(r))}else o.values().forEach(function(e){var t=this._getColumnIdxForColumnKey(e);null!=t&&t>=0&&this._applyColumnSelection(t,!0)},this)},v.prototype._applyRowSelection=function(e,t,o){if(t.classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)!==o){o?t.classList.add(v.MARKER_STYLE_CLASSES._SELECTED):t.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED);var l=this.options.dnd.drag;l&&("rows"===l||l.rows)&&(t.draggable=o,o?t.classList.add(v.MARKER_STYLE_CLASSES._DRAGGABLE):t.classList.contains(v.MARKER_STYLE_CLASSES._DRAGGABLE)&&t.classList.remove(v.MARKER_STYLE_CLASSES._DRAGGABLE))}o?this._updateRowStateCellsClass(e,{hover:!1,focused:!1,selected:!0}):this._updateRowStateCellsClass(e,{selected:!1})},v.prototype._applyColumnSelection=function(e,t){var o=this.options.dnd.reorder;if(o&&o.columns===v._OPTION_ENABLED){var l=this._getTableHeaderColumn(e),i=l.classList.contains(v.MARKER_STYLE_CLASSES._DRAGGABLE);l.draggable=t,t&&!i?l.classList.add(v.MARKER_STYLE_CLASSES._DRAGGABLE):!t&&i&&l.classList.remove(v.MARKER_STYLE_CLASSES._DRAGGABLE)}this._setHeaderColumnState(e,{selected:t})},v.prototype._setLastRowSelection=function(e,t){this._lastSelectedRowIdxArray||(this._lastSelectedRowIdxArray=[]);for(var o=this._lastSelectedRowIdxArray.length,l=0;l<o;l++)if(this._lastSelectedRowIdxArray[l]===e){this._lastSelectedRowIdxArray.splice(l,1);break}t&&this._lastSelectedRowIdxArray.push(e)},v.prototype._setLastHeaderColumnSelection=function(e,t){this._lastSelectedColumnIdxArray||(this._lastSelectedColumnIdxArray=[]);for(var o=this._lastSelectedColumnIdxArray.length,l=0;l<o;l++)if(this._lastSelectedColumnIdxArray[l]===e){this._lastSelectedColumnIdxArray.splice(l,1);break}t&&this._lastSelectedColumnIdxArray.push(e)},v.prototype._handleSelectionGesture=function(e,t,o){var l=this.option("selected"),i=l.row,n=l.column;if(t){if(n=n.clear(),this._isRowSelectionEnabled()){var s=this._getRowSelectionMode(),a=this._getRowKeyForRowIdx(e);i=i.has(a)?!o&&this._getSelectedRowIdxs().length>1&&s===v._OPTION_SELECTION_MODES._MULTIPLE?new y.KeySetImpl([a]):i.delete([a]):o&&s===v._OPTION_SELECTION_MODES._MULTIPLE?i.add([a]):new y.KeySetImpl([a])}}else if(this._isColumnSelectionEnabled()){i=i.clear();var r=this._getColumnSelectionMode();if(e>-1){var _=this._getColumnKeyForColumnIdx(e);n=n.has(_)?!o&&this._getSelectedHeaderColumnIdxs().length>1&&r===v._OPTION_SELECTION_MODES._MULTIPLE?new y.KeySetImpl([_]):n.delete([_]):o&&r===v._OPTION_SELECTION_MODES._MULTIPLE?n.add([_]):new y.KeySetImpl([_])}}l.row===i&&l.column===n||(l={row:i,column:n},this._isSelectionRequiredSatisfied(l)&&this._setSelected(l))},v.prototype._handleSelectAllGesture=function(){var e=this.option("selected"),t=e.row,o=e.column;o=o.clear(),t=t.isAddAll()?new y.KeySetImpl:new y.AllKeySetImpl,e.row===t&&e.column===o||(e={row:t,column:o},this._isSelectionRequiredSatisfied(e)&&this._setSelected(e))},v.prototype._handleMouseEnterSelection=function(e,t){if(this._isRowSelectionEnabled()){var o=this._getElementRowIdx(e);null!=this._mouseDownRowIdx&&null!=o&&this._mouseDownRowIdx!==o?(this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(this._mouseDownRowIdx,o,!0):this._selectRange(o,o,!0),o<this._mouseDownRowIdx?this._moveTableBodyRowTouchSelectionAffordanceTop(o):this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):null!=o&&o===this._mouseDownRowIdx&&(t?(this._selectRange(o,o,!0),this._moveTableBodyRowTouchSelectionAffordanceTop(o),this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):this._clearSelectedRows())}},v.prototype._selectRange=function(e,t,o){var l,i=this.option("selected"),n=i.row,s=i.column;if(o){if(s=s.clear(),this._isRowSelectionEnabled()){if(n=n.clear(),e<=t)for(l=e;l<=t;l++)n=n.add([this._getRowKeyForRowIdx(l)]);else for(l=e;l>=t;l--)n=n.add([this._getRowKeyForRowIdx(l)]);this._lastSelectedRowIdx=t}}else if(n=n.clear(),this._isColumnSelectionEnabled()){if(s=s.clear(),e<=t)for(l=e;l<=t;l++)s=s.add([this._getColumnKeyForColumnIdx(l)]);else for(l=e;l>=t;l--)s=s.add([this._getColumnKeyForColumnIdx(l)]);this._lastSelectedHeaderIdx=t}i.row===n&&i.column===s||(i={row:n,column:s},this._isSelectionRequiredSatisfied(i)&&this._setSelected(i))},v.prototype._getRowSelection=function(e){return this._getTableBodyRow(e).classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getHeaderColumnSelection=function(e){return this._getTableHeaderColumn(e).classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getFooterColumnSelection=function(e){return this._getTableFooterCell(e).classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getSelectedRowIdxs=function(){return this._getRowIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getSelectedHeaderColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getSelectedFooterColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._clearSelectedRows=function(){this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null;var e=this.option("selected.row"),t=e.clear();if(t!==e){var o={row:t,column:this.option("selected.column")};this._setSelected(o)}},v.prototype._clearSelectionState=function(){if(this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null,this._lastSelectedHeaderIdx=null,this._hasSelected()){var e={row:new y.KeySetImpl,column:new y.KeySetImpl};this._setSelected(e)}},v.prototype._updateSelector=function(e){for(var t=this._getTable(),o=t.getElementsByClassName(v.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),l=0;l<o.length;l++)o[l].selectedKeys=e;var i=t.getElementsByClassName(v.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS);i.length>0&&(i[0].selectedKeys=e)};
|
|
134
|
+
v.prototype._getRowSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[v._CONST_ROW]},v.prototype._isRowSelectionEnabled=function(){var e=this._getRowSelectionMode();return e===v._OPTION_SELECTION_MODES._SINGLE||e===v._OPTION_SELECTION_MODES._MULTIPLE},v.prototype._getColumnSelectionMode=function(){return null==this.options.selectionMode?null:this.options.selectionMode[v._CONST_COLUMN]},v.prototype._isColumnSelectionEnabled=function(){var e=this._getColumnSelectionMode();return e===v._OPTION_SELECTION_MODES._SINGLE||e===v._OPTION_SELECTION_MODES._MULTIPLE},v.prototype._syncSelectionState=function(){var e=this.option("selected"),t=this.option("selection");this._selectionSet&&(e=this._getSelectedEquivalent(t),this._syncRangeSelection()),this._isSelectionRequiredSatisfied(e)?this._setSelected(e,this._selectionSet):this._selectFirstRowOrColumn()},v.prototype._updateSelectionStateFromEventDetailRemove=function(e,t){var o=this.option("selected"),l=o.row;l&&(e[v._CONST_KEYS].forEach(function(e){null!=t&&t[v._CONST_KEYS].has(e)||(l.isAddAll()?l.has(e)||(l=l.add([e])):l=l.delete([e]))}),o.row!==l&&(o={row:l,column:o.column},this._isSelectionRequiredSatisfied(o)?this._setSelected(o):this._selectFirstRowOrColumn()))},v.prototype._validateInitialSelectionState=function(e){var t,o,l=this.option("selection"),i=this.option("selected"),n=i.row,s=i.column;if(this._validatedSelectedRowKeyData=null,(this._selectionSet||!e&&null!=l&&0!==l.length&&n===n.clear()&&s===s.clear())&&(i=this._getSelectedEquivalent(l),t=!0),this._isSelectionRequired())if((o=this._validateSelected(i)).isLocal)this._enforceSelectionRequired(i,o.result,t);else{var a=this._createComponentBusyState("is validating selection-required keys.");o.result.then(function(e){this._enforceSelectionRequired(i,e,t),this._clearComponentBusyState(a)}.bind(this))}else t&&this._syncRangeSelection(),this._setSelected(i,t);this._initialSelectionStateValidated=!0},v.prototype._isSelectionRequired=function(){return"true"===String(this.options.selectionRequired).toLowerCase()},v.prototype._hasSelected=function(e){null==e&&(e=this.option("selected"));var t=e.row,o=e.column;return t.isAddAll()||t.values().size>0||o.isAddAll()||o.values().size>0},v.prototype._isSelectionRequiredSatisfied=function(e){return!this._isSelectionRequired()||this._hasSelected(e)},v.prototype._enforceSelectionRequired=function(e,t,o){o?this._hasSelected(t)?t.row===e.row&&t.column===e.column?(this._syncRangeSelection(),this._setSelected(t,!0)):this._setSelected(t):this._selectFirstRowOrColumn():this._hasSelected(t)?this._setSelected(t):this._selectFirstRowOrColumn()},v.prototype._selectFirstRowOrColumn=function(){var e,t;if(this._isRowSelectionEnabled()&&null!=(t=this._getRowKeyForRowIdx(0)))return e=new L.KeySetImpl([t]),void this._setSelected({row:e,column:new L.KeySetImpl});this._isColumnSelectionEnabled()&&null!=(t=this._getColumnKeyForColumnIdx(0))&&(e=new L.KeySetImpl([t]),this._setSelected({row:new L.KeySetImpl,column:e}))},v.prototype._validateSelected=function(e){var t=e.column,o=t;if(!t.isAddAll()){var l=this._getColumnKeys(),i=[];t.values().forEach(function(e){-1===l.indexOf(e)&&i.push(e)}),i.length>0&&(o=o.delete(i))}var n=e.row,s=n;if(!n.isAddAll()){var a=this._getLocalRowKeys(),r=[];if(n.values().forEach(function(e){-1===a.indexOf(e)&&r.push(e)}),r.length>0){var _=this._fetchValidRowKeyData(r);if(_)return{isLocal:!1,result:_.then(function(e){return this._validatedSelectedRowKeyData=e,e.forEach(function(e){r.splice(r.indexOf(e.key),1)}),{row:s=s.delete(r),column:o}}.bind(this))};s=s.delete(r)}}return{isLocal:!0,result:{row:s,column:o}}},v.prototype._fetchValidRowKeyData=function(e){var t=this._getData();if(t&&t.getCapability){var o=t.getCapability("fetchByKeys");if(o&&"lookup"===o.implementation)return new Promise(function(o){t.fetchByKeys({keys:new Set(e),scope:"global"}).then(function(e){var t=[];e.results.forEach(function(e,o){t.push({key:o,data:e.data})}),o(t)},function(){o([])})})}return null},v.prototype._syncRangeSelection=function(e){if(void 0===e&&(e=this.option("selection")),null!=e)for(var t=e.length,o=0;o<t;o++){var l,i,n,s,a=e[o];null!=a.startKey&&null!=a.startKey[v._CONST_ROW]?(l=a.startKey[v._CONST_ROW],i=this._getDataSourceRowIndexForRowKey(l),a.startIndex={},a.startIndex[v._CONST_ROW]=i):null!=a.startIndex&&null!=a.startIndex[v._CONST_ROW]&&(i=a.startIndex[v._CONST_ROW],null!=(l=this._getRowKeyForDataSourceRowIndex(i))&&(a.startKey={},a.startKey[v._CONST_ROW]=l)),null!=a.endKey&&null!=a.endKey[v._CONST_ROW]?(n=a.endKey[v._CONST_ROW],s=this._getDataSourceRowIndexForRowKey(n),a.endIndex={},a.endIndex[v._CONST_ROW]=s):null!=a.endIndex&&null!=a.endIndex[v._CONST_ROW]&&(s=a.endIndex[v._CONST_ROW],null!=(n=this._getRowKeyForDataSourceRowIndex(s))&&(a.endKey={},a.endKey[v._CONST_ROW]=n))}},v.prototype._processRowRangeSelection=function(e,t,o){var l,i,n,s,a,r,_=!0;if(null!=e.startKey&&null!=e.startKey[v._CONST_ROW]?(a=e.startKey[v._CONST_ROW],l=this._getDataSourceRowIndexForRowKey(a),isNaN(l)&&(_=void 0)):null!=e.startIndex&&null!=e.startIndex[v._CONST_ROW]&&(l=e.startIndex[v._CONST_ROW]),null!=e.endKey&&null!=e.endKey[v._CONST_ROW])r=e.endKey[v._CONST_ROW],null===(i=this._getDataSourceRowIndexForRowKey(r))&&this._isLoadMoreOnScroll()&&(i=this._getDataSourceLastFetchedRowIndex(),_=void 0);else if(null!=e.endIndex&&null!=e.endIndex[v._CONST_ROW]){i=e.endIndex[v._CONST_ROW];var d=this._getDataSourceLastFetchedRowIndex();this._isLoadMoreOnScroll()&&i>d&&(i=d,_=void 0)}if(void 0===l&&void 0===i)_=!1;else if(null!=l&&null!=i&&l<=i){a=this._getRowKeyForDataSourceRowIndex(l),r=this._getRowKeyForDataSourceRowIndex(i),n=this._getRowIdxForRowKey(a),s=this._getRowIdxForRowKey(r);for(var h=n;h<=s;h++){var u=this._getRowKeyForRowIdx(h);t=t.add([u])}o=o.clear()}else S.warn("Error: Cannot resolve row range in selection - \n start row key: "+a+"\n end row key: "+r+"\n start row index: "+l+"\n end row index: "+i),null!=a&&null!=r&&(t=(t=t.add([a])).add([r]),o=o.clear());return{status:_,rowKeySet:t,columnKeySet:o}},v.prototype._getDataSourceLastFetchedRowIndex=function(){var e=this._getTableBodyRows();if(e.length>0){var t=this._getData(),o=0;return this._isPagingModelDataProvider()&&(o=t.getStartItemIndex()),e.length+o-1}return 0},v.prototype._processColumnRangeSelection=function(e,t,o){var l,i,n,s,a=!0;if(null!=e.startKey&&null!=e.startKey[v._CONST_COLUMN]?(l=e.startKey[v._CONST_COLUMN],n=this._getColumnIdxForColumnKey(l)):null!=e.startIndex&&null!=e.startIndex[v._CONST_COLUMN]&&(n=e.startIndex[v._CONST_COLUMN]),null!=e.endKey&&null!=e.endKey[v._CONST_COLUMN]?(i=e.endKey[v._CONST_COLUMN],s=this._getColumnIdxForColumnKey(i)):null!=e.endIndex&&null!=e.endIndex[v._CONST_COLUMN]&&(s=e.endIndex[v._CONST_COLUMN]),void 0===n&&void 0===s)a=!1;else if(null!=n&&null!=s&&!isNaN(n)&&!isNaN(s)&&n<=s){for(var r=n;r<=s;r++){var _=this._getColumnKeyForColumnIdx(r);o=o.add([_])}t=t.clear()}else S.error("Error: Cannot resolve column range in selection - \n start column key: "+l+"\n end column key: "+i+"\n start column index: "+n+"\n end column index: "+s);return{status:a,rowKeySet:t,columnKeySet:o}},v.prototype._invalidateRangeSelection=function(){var e=this.option("selection");if(null!=e)for(var t=0;t<e.length;t++){var o,l,i=e[t];if(null!=i.startKey&&(o=i.startKey[v._CONST_ROW]),null!=i.endKey&&(l=i.endKey[v._CONST_ROW]),o!==l||void 0===o){var n=this.option("selected.row"),s=this._getRowSelectionFromKeySet(n);this.option("selection",s,{_context:{writeback:!0,internalSet:!0}});break}}},v.prototype._setSelected=function(e,t){if(this._selectionSet=t,null!=e){var o,l=this.option("selected");if(this._selectionSet?f.areKeySetsEqual(l.row,e.row)&&f.areKeySetsEqual(l.column,e.column)||(o=!0):l.row===e.row&&l.column===e.column||(o=!0),o&&(this.option("selected",e,{_context:{writeback:!0,internalSet:!0}}),this._isSelectionRequired()&&this._validatedSelectedRowKeyData))for(var i=this._validatedSelectedRowKeyData.length-1;i>=0;i--){var n=this._validatedSelectedRowKeyData[i];e.row.has(n.key)||this._validatedSelectedRowKeyData.splice(i,1)}this._isDefaultSelectorEnabled()&&this._updateSelector(e.row),this._applySelected(e);var s=null,a=this._getRowSelectionFromKeySet(e.row);if(null!=a&&a.length>0){var r=a[0];null!=r.startKey&&(s=r.startKey[v._CONST_ROW])}if(this._setFirstSelectedRow(s),!t){var _=this._getSelectionEquivalent(e);this.option("selection",_,{_context:{writeback:!0,internalSet:!0}})}}},v.prototype._setFirstSelectedRow=function(e){var t=this.option("firstSelectedRow");if(!h.KeyUtils.equals(e,t.key)){var o=null;if(null!=e){var l=this.getDataForVisibleRow(this._getRowIdxForRowKey(e));if(null!=l)o=l[v._CONST_DATA];else if(this._validatedSelectedRowKeyData)for(var i=0;i<this._validatedSelectedRowKeyData.length;i++){var n=this._validatedSelectedRowKeyData[i];if(h.KeyUtils.equals(e,n.key)){o=n.data;break}}}this.option("firstSelectedRow",{key:e,data:o},{_context:{writeback:!0,internalSet:!0}})}},v.prototype._getSelectedEquivalent=function(e){var t;if(null!=e){for(var o=(t={row:new L.KeySetImpl,column:new L.KeySetImpl}).row,l=t.column,i=e.length,n=0;n<i;n++){var s=e[n];if(null==s.startKey&&null==s[v._CONST_STARTINDEX]||null==s.endKey&&null==s[v._CONST_ENDINDEX])S.error("Error: Invalid range object in selection. Both start and end objects must be specified");else{var a=this._processRowRangeSelection(s,o,l);o=a.rowKeySet,l=a.columnKeySet,!1===a.status&&(!1===(a=this._processColumnRangeSelection(s,o,l)).status&&S.error("Error: Invalid range object"),o=a.rowKeySet,l=a.columnKeySet)}}t.row===o&&t.column===l||(t={row:o,column:l})}else t={row:new L.KeySetImpl,column:new L.KeySetImpl};return t},v.prototype._getSelectionEquivalent=function(e){var t=this._getRowSelectionFromKeySet(e.row);return t.length>0||t.inverted||(t=this._getColumnSelectionFromKeySet(e.column)).length>0||t.inverted?t:[]},v.prototype._getRowSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{row:e},endKey:{row:e}},l=this._getDataSourceRowIndexForRowKey(e);!isNaN(l)&&l>=0&&(o.startIndex={row:l},o.endIndex={row:l}),t.push(o)},this),t.inverted=e.isAddAll(),t},v.prototype._getColumnSelectionFromKeySet=function(e){var t=[];return(e.isAddAll()?e.deletedValues():e.values()).forEach(function(e){var o={startKey:{column:e},endKey:{column:e}},l=this._getColumnIdxForColumnKey(e);l>=0&&(o.startIndex={column:l},o.endIndex={column:l}),t.push(o)},this),t.inverted=e.isAddAll(),t},v.prototype._applySelected=function(e){var t=e.row,o=e.column;if(this._getSelectedRowIdxs().forEach(function(e){var o=this._getTableBodyRow(e);t.has(this._getRowKey(o))||(this._applyRowSelection(e,o,!1),this._setLastRowSelection(e,!1))},this),this._isRowSelectionEnabled())if(t.isAddAll()){var l=this._getTableBodyRows();l.forEach(function(e,o){t.has(this._getRowKey(e))&&this._applyRowSelection(o,e,!0)},this);var i=l.length-1,n=this._getRowKeyForRowIdx(i);this._setLastRowSelection(i,t.has(n))}else t.values().forEach(function(e){var t=this._getRowIdxForRowKey(e);null!=t&&t>=0&&(this._applyRowSelection(t,this._getTableBodyRow(t),!0),this._setLastRowSelection(t,!0))},this);if(0===this._getSelectedRowIdxs().length&&this._removeTableBodyRowTouchSelectionAffordance(),this._getSelectedHeaderColumnIdxs().forEach(function(e){o.has(this._getColumnKeyForColumnIdx(e))||this._applyColumnSelection(e,!1)},this),this._isColumnSelectionEnabled())if(o.isAddAll()){var s=this._getTableHeaderColumns();s.forEach(function(e,t){o.has(this._getColumnKeyForColumnIdx(t))&&this._applyColumnSelection(t,!0)},this);var a=s.length-1,r=this._getColumnKeyForColumnIdx(a);this._setLastHeaderColumnSelection(a,o.has(r))}else o.values().forEach(function(e){var t=this._getColumnIdxForColumnKey(e);null!=t&&t>=0&&this._applyColumnSelection(t,!0)},this)},v.prototype._applyRowSelection=function(e,t,o){if(t.classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)!==o){o?t.classList.add(v.MARKER_STYLE_CLASSES._SELECTED):t.classList.remove(v.MARKER_STYLE_CLASSES._SELECTED);var l=this.options.dnd.drag;l&&("rows"===l||l.rows)&&(t.draggable=o,o?t.classList.add(v.MARKER_STYLE_CLASSES._DRAGGABLE):t.classList.contains(v.MARKER_STYLE_CLASSES._DRAGGABLE)&&t.classList.remove(v.MARKER_STYLE_CLASSES._DRAGGABLE))}o?this._updateRowStateCellsClass(e,{hover:!1,focused:!1,selected:!0}):this._updateRowStateCellsClass(e,{selected:!1})},v.prototype._applyColumnSelection=function(e,t){var o=this.options.dnd.reorder;if(o&&o.columns===v._OPTION_ENABLED){var l=this._getTableHeaderColumn(e),i=l.classList.contains(v.MARKER_STYLE_CLASSES._DRAGGABLE);l.draggable=t,t&&!i?l.classList.add(v.MARKER_STYLE_CLASSES._DRAGGABLE):!t&&i&&l.classList.remove(v.MARKER_STYLE_CLASSES._DRAGGABLE)}this._setHeaderColumnState(e,{selected:t})},v.prototype._setLastRowSelection=function(e,t){this._lastSelectedRowIdxArray||(this._lastSelectedRowIdxArray=[]);for(var o=this._lastSelectedRowIdxArray.length,l=0;l<o;l++)if(this._lastSelectedRowIdxArray[l]===e){this._lastSelectedRowIdxArray.splice(l,1);break}t&&this._lastSelectedRowIdxArray.push(e)},v.prototype._setLastHeaderColumnSelection=function(e,t){this._lastSelectedColumnIdxArray||(this._lastSelectedColumnIdxArray=[]);for(var o=this._lastSelectedColumnIdxArray.length,l=0;l<o;l++)if(this._lastSelectedColumnIdxArray[l]===e){this._lastSelectedColumnIdxArray.splice(l,1);break}t&&this._lastSelectedColumnIdxArray.push(e)},v.prototype._handleSelectionGesture=function(e,t,o){var l=this.option("selected"),i=l.row,n=l.column;if(t){if(n=n.clear(),this._isRowSelectionEnabled()){var s=this._getRowSelectionMode(),a=this._getRowKeyForRowIdx(e);i=i.has(a)?!o&&this._getSelectedRowIdxs().length>1&&s===v._OPTION_SELECTION_MODES._MULTIPLE?new L.KeySetImpl([a]):i.delete([a]):o&&s===v._OPTION_SELECTION_MODES._MULTIPLE?i.add([a]):new L.KeySetImpl([a])}}else if(this._isColumnSelectionEnabled()){i=i.clear();var r=this._getColumnSelectionMode();if(e>-1){var _=this._getColumnKeyForColumnIdx(e);n=n.has(_)?!o&&this._getSelectedHeaderColumnIdxs().length>1&&r===v._OPTION_SELECTION_MODES._MULTIPLE?new L.KeySetImpl([_]):n.delete([_]):o&&r===v._OPTION_SELECTION_MODES._MULTIPLE?n.add([_]):new L.KeySetImpl([_])}}l.row===i&&l.column===n||(l={row:i,column:n},this._isSelectionRequiredSatisfied(l)&&this._setSelected(l))},v.prototype._handleSelectAllGesture=function(){var e=this.option("selected"),t=e.row,o=e.column;o=o.clear(),t=t.isAddAll()?new L.KeySetImpl:new L.AllKeySetImpl,e.row===t&&e.column===o||(e={row:t,column:o},this._isSelectionRequiredSatisfied(e)&&this._setSelected(e))},v.prototype._handleMouseEnterSelection=function(e,t){if(this._isRowSelectionEnabled()){var o=this._getElementRowIdx(e);null!=this._mouseDownRowIdx&&null!=o&&this._mouseDownRowIdx!==o?(this._getRowSelectionMode()===v._OPTION_SELECTION_MODES._MULTIPLE?this._selectRange(this._mouseDownRowIdx,o,!0):this._selectRange(o,o,!0),o<this._mouseDownRowIdx?this._moveTableBodyRowTouchSelectionAffordanceTop(o):this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):null!=o&&o===this._mouseDownRowIdx&&(t?(this._selectRange(o,o,!0),this._moveTableBodyRowTouchSelectionAffordanceTop(o),this._moveTableBodyRowTouchSelectionAffordanceBottom(o)):this._clearSelectedRows())}},v.prototype._selectRange=function(e,t,o){var l,i=this.option("selected"),n=i.row,s=i.column;if(o){if(s=s.clear(),this._isRowSelectionEnabled()){if(n=n.clear(),e<=t)for(l=e;l<=t;l++)n=n.add([this._getRowKeyForRowIdx(l)]);else for(l=e;l>=t;l--)n=n.add([this._getRowKeyForRowIdx(l)]);this._lastSelectedRowIdx=t}}else if(n=n.clear(),this._isColumnSelectionEnabled()){if(s=s.clear(),e<=t)for(l=e;l<=t;l++)s=s.add([this._getColumnKeyForColumnIdx(l)]);else for(l=e;l>=t;l--)s=s.add([this._getColumnKeyForColumnIdx(l)]);this._lastSelectedHeaderIdx=t}i.row===n&&i.column===s||(i={row:n,column:s},this._isSelectionRequiredSatisfied(i)&&this._setSelected(i))},v.prototype._getRowSelection=function(e){return this._getTableBodyRow(e).classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getHeaderColumnSelection=function(e){return this._getTableHeaderColumn(e).classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getFooterColumnSelection=function(e){return this._getTableFooterCell(e).classList.contains(v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getSelectedRowIdxs=function(){return this._getRowIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_DATA_ROW_CLASS+"."+v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getSelectedHeaderColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._getSelectedFooterColumnIdxs=function(){return this._getColumnIdxsForElementsWithStyleClass("."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS+"."+v.MARKER_STYLE_CLASSES._SELECTED)},v.prototype._clearSelectedRows=function(){this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null;var e=this.option("selected.row"),t=e.clear();if(t!==e){var o={row:t,column:this.option("selected.column")};this._setSelected(o)}},v.prototype._clearSelectionState=function(){if(this._selectionAnchorIdx=null,this._lastSelectedRowIdx=null,this._lastSelectedHeaderIdx=null,this._hasSelected()){var e={row:new L.KeySetImpl,column:new L.KeySetImpl};this._setSelected(e)}},v.prototype._updateSelector=function(e){for(var t=this._getTable(),o=t.getElementsByClassName(v.CSS_CLASSES._TABLE_DATA_ROW_SELECTOR_CLASS),l=0;l<o.length;l++)o[l].selectedKeys=e;var i=t.getElementsByClassName(v.CSS_CLASSES._TABLE_HEADER_SELECTOR_CLASS);i.length>0&&(i[0].selectedKeys=e)};
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -139,7 +139,7 @@ v.prototype._getRowSelectionMode=function(){return null==this.options.selectionM
|
|
|
139
139
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
140
140
|
* @ignore
|
|
141
141
|
*/
|
|
142
|
-
const N=function(e){N.superclass.constructor.call(this,e)};h.Object.createSubclass(N,w,"TableFixedLayoutManager"),N.prototype._clearAllCache=function(){N.superclass._clearAllCache.call(this),this._columnWeights=null,this._columnMinWidths=null,this._columnMaxWidths=null},N.prototype._initializeColumnLayouts=function(){var e,t=!1;if(this._table._isDefaultSelectorEnabled()){if(null==this._selectorColWidth){t=!0;var o=this._table._getTableSelectorColumn();if(null!=o)this._selectorColWidth=o.offsetWidth;else{var l=this._table._getTableBodyRow(0),i=this._table._getTableBodySelectorCell(l);null!=i&&(this._selectorColWidth=i.offsetWidth)}}}else null!=this._selectorColWidth&&(t=!0,this._selectorColWidth=null);var n=this._table._getColumnDefs(),s=n.length;if(null==this._columnWeights)for(t=!0,this._columnWeights=[],e=0;e<s;e++){var a=parseFloat(n[e].weight);a<=1&&(a=1),this._columnWeights[e]=a}if(null==this._columnMinWidths)for(t=!0,this._columnMinWidths=[],e=0;e<s;e++){var r=this._getPixelStyleEquivalent(n[e].minWidth);this._columnMinWidths[e]=null==r||r<=0?1:r}if(null==this._columnMaxWidths)for(t=!0,this._columnMaxWidths=[],e=0;e<s;e++){var _=this._getPixelStyleEquivalent(n[e].maxWidth);this._columnMaxWidths[e]=null!=_&&_<=0?null:_}if(null==this._columnInitWidths)for(t=!0,this._resetTableElementStyling(),this._columnInitWidths=[],e=0;e<s;e++){var d=this._table._getTableHeaderColumn(e);if(null!=d)this._columnInitWidths[e]=d.offsetWidth;else{var h=this._table._getTableBodyCell(0,e,null);null!=h&&(this._columnInitWidths[e]=h.offsetWidth)}}else t&&this._resetTableElementStyling();return t},N.prototype._resetTableElementStyling=function(){this._table._getTable().style="",this._removeHeaderColumnAndCellColumnWidths()},N.prototype._removeTableDimensionsStyling=function(){},N.prototype._determineColumnWidths=function(){var e=this._table._getTableScroller().clientWidth;return this._setAllColumnWidths(e)},N.prototype._setAllColumnWidths=function(e){var t,o=this._table._getColumnDefs(),l=o.length,i=null!=this._selectorColWidth?this._selectorColWidth:0,n=i,s=0,a=[];this._appliedColumnWidths=[];var r=[];for(t=0;t<l;t++){var _=this._getPixelStyleEquivalent(o[t].width);null!=_?(r[t]=_,n+=_):(this._columnInitWidths[t]>0?(_=this._columnMinWidths[t],s+=this._columnWeights[t]):_=0,r[t]=!1),a[t]=_,i+=_}if(n<e)for(var d=!0;d;){var h=s;d=!1;var u=e-n;for(t=0;t<l;t++){if(!1===r[t])if(a[t]>0){var c=this._columnWeights[t],S=Math.floor(c/h*u),C=this._columnMinWidths[t],E=this._columnMaxWidths[t];if(null!=C&&S<C){r[t]=C,n+=C,s-=c,a[t]=C,d=!0;break}if(null!=E&&S>E){r[t]=E,n+=E,s-=c,a[t]=E,d=!0;break}a[t]=S,h-=c,u-=S}}i=e}for(t=0;t<l;t++){var T=this._table._getTableCol(t),p=a[t];T.style[v.CSS_PROP._WIDTH]=p+v.CSS_VAL._PX,0===p&&(T.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE),this._appliedColumnWidths[t]=p}return i},N.prototype._getMinWidthAutoEquivalent=function(){return 100},
|
|
142
|
+
const N=function(e){N.superclass.constructor.call(this,e)};h.Object.createSubclass(N,w,"TableFixedLayoutManager"),N.prototype._clearAllCache=function(){N.superclass._clearAllCache.call(this),this._columnWeights=null,this._columnMinWidths=null,this._columnMaxWidths=null},N.prototype._initializeColumnLayouts=function(){var e,t=!1;if(this._table._isDefaultSelectorEnabled()){if(null==this._selectorColWidth){t=!0;var o=this._table._getTableSelectorColumn();if(null!=o)this._selectorColWidth=o.offsetWidth;else{var l=this._table._getTableBodyRow(0),i=this._table._getTableBodySelectorCell(l);null!=i&&(this._selectorColWidth=i.offsetWidth)}}}else null!=this._selectorColWidth&&(t=!0,this._selectorColWidth=null);var n=this._table._getColumnDefs(),s=n.length;if(null==this._columnWeights)for(t=!0,this._columnWeights=[],e=0;e<s;e++){var a=parseFloat(n[e].weight);a<=1&&(a=1),this._columnWeights[e]=a}if(null==this._columnMinWidths)for(t=!0,this._columnMinWidths=[],e=0;e<s;e++){var r=this._getPixelStyleEquivalent(n[e].minWidth);this._columnMinWidths[e]=null==r||r<=0?1:r}if(null==this._columnMaxWidths)for(t=!0,this._columnMaxWidths=[],e=0;e<s;e++){var _=this._getPixelStyleEquivalent(n[e].maxWidth);this._columnMaxWidths[e]=null!=_&&_<=0?null:_}if(null==this._columnInitWidths)for(t=!0,this._resetTableElementStyling(),this._columnInitWidths=[],e=0;e<s;e++){var d=this._table._getTableHeaderColumn(e);if(null!=d)this._columnInitWidths[e]=d.offsetWidth;else{var h=this._table._getTableBodyCell(0,e,null);null!=h&&(this._columnInitWidths[e]=h.offsetWidth)}}else t&&this._resetTableElementStyling();return t},N.prototype._resetTableElementStyling=function(){this._table._getTable().style="",this._removeHeaderColumnAndCellColumnWidths()},N.prototype._removeTableDimensionsStyling=function(){this.unregisterScrollListeners()},N.prototype._determineColumnWidths=function(){var e=this._table._getTableScroller().clientWidth;return this._setAllColumnWidths(e)},N.prototype._setAllColumnWidths=function(e){var t,o=this._table._getColumnDefs(),l=o.length,i=null!=this._selectorColWidth?this._selectorColWidth:0,n=i,s=0,a=[];this._appliedColumnWidths=[];var r=[];for(t=0;t<l;t++){var _=this._getPixelStyleEquivalent(o[t].width);null!=_?(r[t]=_,n+=_):(this._columnInitWidths[t]>0?(_=this._columnMinWidths[t],s+=this._columnWeights[t]):_=0,r[t]=!1),a[t]=_,i+=_}if(n<e)for(var d=!0;d;){var h=s;d=!1;var u=e-n;for(t=0;t<l;t++){if(!1===r[t])if(a[t]>0){var c=this._columnWeights[t],S=Math.floor(c/h*u),C=this._columnMinWidths[t],E=this._columnMaxWidths[t];if(null!=C&&S<C){r[t]=C,n+=C,s-=c,a[t]=C,d=!0;break}if(null!=E&&S>E){r[t]=E,n+=E,s-=c,a[t]=E,d=!0;break}a[t]=S,h-=c,u-=S}}i=e}for(t=0;t<l;t++){var T=this._table._getTableCol(t),p=a[t];T.style[v.CSS_PROP._WIDTH]=p+v.CSS_VAL._PX,0===p&&(T.style[v.CSS_PROP._DISPLAY]=v.CSS_VAL._NONE),this._appliedColumnWidths[t]=p}return i},N.prototype._getMinWidthAutoEquivalent=function(){return 100},
|
|
143
143
|
/**
|
|
144
144
|
* @license
|
|
145
145
|
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
|
|
@@ -147,5 +147,5 @@ const N=function(e){N.superclass.constructor.call(this,e)};h.Object.createSubcla
|
|
|
147
147
|
* as shown at https://oss.oracle.com/licenses/upl/
|
|
148
148
|
* @ignore
|
|
149
149
|
*/
|
|
150
|
-
v.prototype.version="1.0.0",v.prototype.defaultElement="<table>",v.prototype.widgetEventPrefix="oj",v.prototype.options={accessibility:null,animateStart:null,animateEnd:null,as:"",currentRow:null,data:null,display:"list",dnd:{drag:null,drop:null,reorder:{columns:"disabled"}},editMode:"none",editRow:{rowKey:null,rowIndex:-1},emptyText:null,horizontalGridVisible:"auto",layout:"contents",rowRenderer:null,scrollToKey:"auto",scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500},scrollPosition:{x:0,y:0},firstSelectedRow:{key:null,data:null},selection:[],selected:{row:new
|
|
150
|
+
v.prototype.version="1.0.0",v.prototype.defaultElement="<table>",v.prototype.widgetEventPrefix="oj",v.prototype.options={accessibility:null,animateStart:null,animateEnd:null,as:"",currentRow:null,data:null,display:"list",dnd:{drag:null,drop:null,reorder:{columns:"disabled"}},editMode:"none",editRow:{rowKey:null,rowIndex:-1},emptyText:null,horizontalGridVisible:"auto",layout:"contents",rowRenderer:null,scrollToKey:"auto",scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500},scrollPosition:{x:0,y:0},firstSelectedRow:{key:null,data:null},selection:[],selected:{row:new L.KeySetImpl,column:new L.KeySetImpl},selectionMode:null,selectionRequired:!1,verticalGridVisible:"auto",columns:[{renderer:null,className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,footerTemplate:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerTemplate:null,headerText:null,id:null,maxWidth:null,minWidth:null,resizable:"disabled",sortable:"auto",sortProperty:null,style:null,template:null,weight:null,width:null}],columnsDefault:{renderer:null,className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,footerTemplate:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerTemplate:null,headerText:null,maxWidth:null,minWidth:"auto",resizable:"disabled",sortable:"auto",sortProperty:null,style:null,template:null,weight:1,width:null},beforeCurrentRow:null,beforeRowEdit:null,beforeRowEditEnd:null,ready:null,rowAction:null,sort:null},v.prototype.getContextByNode=function(e){var t=this.getSubIdByNode(e,!0);if(t&&"oj-table-cell"===t.subId){var o=t.rowIndex,l=this._getRowKeyForRowIdx(o);t.key=l}return t},v.prototype.getDataForVisibleRow=function(e){var t=this._getTableBodyRow(e);return null!=t?{key:u(t).data("rowKey"),data:u(t).data("rowData"),index:e}:null},v.prototype.getNodeBySubId=function(e){if(null==e)return this.element?this.element[0]:null;var t,o=e.subId;if("oj-table-cell"===o){var l=parseInt(e.rowIndex,10);return t=parseInt(e.columnIndex,10),this._getTableBodyLogicalCells(l)[t]}if("oj-table-header"===o||"oj-table-sort-ascending"===o||"oj-table-sort-descending"===o){t=e.index;var i=this._getTableHeaderLogicalColumns()[t];if(null!=i){if("oj-table-header"===o)return i;if("oj-table-sort-ascending"===o){var n=this._getTableElementsByClassName(i,v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS);if(n.length>0)return n[0]}else{var s=this._getTableElementsByClassName(i,v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS);if(s.length>0)return s[0]}}}else if("oj-table-footer"===o){t=e.index;var a=this._getTableFooterLogicalCells()[t];if(null!=a)return a}return null},v.prototype.getSubIdByNode=function(e,t){var o=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=o)return{subId:"oj-table-cell",rowIndex:this._getElementRowIdx(o),columnIndex:this._getElementColumnIdx(o)};var l=this._getFirstAncestor(e,"."+v.CSS_CLASSES._COLUMN_HEADER_ASC_ICON_CLASS,!0);if(null!=l)return{subId:t?"oj-table-header":"oj-table-sort-ascending",index:this._getElementColumnIdx(l)};var i=this._getFirstAncestor(e,"."+v.CSS_CLASSES._COLUMN_HEADER_DSC_ICON_CLASS,!0);if(null!=i)return{subId:t?"oj-table-header":"oj-table-sort-descending",index:this._getElementColumnIdx(i)};var n=this._getFirstAncestor(e,"."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if(null!=n)return{subId:"oj-table-header",index:this._getElementColumnIdx(n)};var s=this._getFirstAncestor(e,"."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);return null!=s?{subId:"oj-table-footer",index:this._getElementColumnIdx(s)}:null},v.prototype.refresh=function(){this._super(),this._refresh()},v.prototype.refreshRow=function(e){return this._refreshRow(e,!0)},v.prototype.widget=function(){var e=this._getTableContainer();return null!=e?u(e):this.element},v.prototype._ComponentCreate=function(){this._super(),this._initTemplateEngine(),this._draw(),this._registerCustomEvents(),this._on(this._events),this._isTouchDevice()&&this._registerTouchEvents(),this._registerDomEventListeners(),this._cachedOptions=u.extend(!0,{},this.options),this._setEditableRowIdx(null),f.disableDefaultBrowserStyling(this.element[0])},v.prototype._AfterCreate=function(){this._super(),this._createContextMenuContainer(),this._isInitFetch=!0},v.prototype._SetupResources=function(){this._super(),this._registerResizeListener(),this._registerDataSourceEventListeners(),this._isInitFetch?(this._initFetch(),this._isInitFetch=!1):this._queueTask(function(){return this._getLayoutManager().notifyTableUpdate(v._UPDATE._REFRESH),this._invokeDataFetchRows()}.bind(this))},v.prototype._ReleaseResources=function(){this._super(),this._cleanComponent()},v.prototype._destroy=function(){this._cleanComponent(!0)},v.prototype._NotifyAttached=function(){this._super(),this._getLayoutManager().notifyTableUpdate(v._UPDATE._RESIZE),this._hasPendingTasks()||this._syncTableSizing()},v.prototype._NotifyShown=function(){this._super(),this._getLayoutManager().notifyTableUpdate(v._UPDATE._RESIZE),this._hasPendingTasks()||this._syncTableSizing()},v.prototype._VerifyConnectedForSetup=function(){return!0},v.prototype._GetDefaultContextMenu=function(){return this._defaultContextMenu},v.prototype._NotifyContextMenuGesture=function(e,t,o){var l={};if(this._contextMenuEvent=t.originalEvent,!(this._isNodeEditable(this._contextMenuEvent.target)||this._isNodeClickable(this._contextMenuEvent.target)||"touch"===o&&this._isNodeDraggable(this._contextMenuEvent.target))){var i,n=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._TABLE_DATA_CELL_CLASS,!0);if(null!=n){var s=this._getElementColumnIdx(n);i=this._getTableHeaderColumn(s)}else i=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._COLUMN_HEADER_CELL_CLASS,!0);if("keydown"===this._contextMenuEvent.type){var a=this._getTable();if(null==i&&(i=this._getTableHeaderColumn(this._activeHeaderIndex)),this._contextMenuEvent.target===a)if(null!=i)l.position={my:"start top",at:"start bottom",of:i};else{var r=this._getFocusedRowIdx();if(r>=0){var _=this._getTableBodyRow(r);l.position={my:"start top",at:"start bottom",of:_}}else l.position={my:"start top",at:"start bottom",of:this._contextMenuEvent.target}}else l.position={my:"start top",at:"start bottom",of:this._contextMenuEvent.target}}else{var d=this._getFirstAncestor(this._contextMenuEvent.target,"."+v.CSS_CLASSES._TABLE_FOOTER_CELL_CLASS,!0);if(null==i&&null==n&&null==d)return}this._contextMenuEventHeaderColumn=i;var h=e.element?e.element[0]:e;this._populateContextMenuItems(h,this._handleContextMenuSelect.bind(this));var u=h.querySelectorAll("[data-oj-command=oj-table-sortAsc]");u.length>0&&(u=u[0],i&&i.getAttribute("data-oj-sortable")===v._OPTION_ENABLED?"OJ-OPTION"===u.nodeName?u.removeAttribute("disabled"):u.classList.remove("oj-disabled"):"OJ-OPTION"===u.nodeName?u.setAttribute("disabled","true"):u.classList.add("oj-disabled"));var c=h.querySelectorAll("[data-oj-command=oj-table-sortDsc]");c.length>0&&(c=c[0],i&&i.getAttribute("data-oj-sortable")===v._OPTION_ENABLED?"OJ-OPTION"===c.nodeName?c.removeAttribute("disabled"):c.classList.remove("oj-disabled"):"OJ-OPTION"===c.nodeName?c.setAttribute("disabled","true"):c.classList.add("oj-disabled"));var S=h.querySelectorAll("[data-oj-command=oj-table-resize]");S.length>0&&(S=S[0],i&&i.getAttribute("data-oj-resizable")===v._OPTION_ENABLED?"OJ-OPTION"===S.nodeName?S.removeAttribute("disabled"):S.classList.remove("oj-disabled"):"OJ-OPTION"===S.nodeName?S.setAttribute("disabled","true"):S.classList.add("oj-disabled")),this._OpenContextMenu(t,o,l)}},v.prototype._setOption=function(e,t){if("selection"===e)this._selectionSet=!0,this._syncRangeSelection(t),this._superApply(arguments),this._validateInitialSelectionState(!0);else if("selected"===e)this._selectionSet=!1,this._superApply(arguments),this._validateInitialSelectionState(!0);else if("currentRow"===e){var o=this._setCurrentRow(t,null,!0);o===v._CURRENT_ROW_STATUS._UPDATED&&this._superApply(arguments)}else if("scrollPosition"===e)this._syncScrollPosition(t);else if("editRow"===e)this._setEditRow(t);else{this._superApply(arguments);var l=this._isTableRefreshNeeded(e,t);l&&("columns"===e||"selectionMode"===e&&void 0!==t.row?(this._clearCachedMetadata(),this._refreshTableHeader()):"data"===e&&this._beforeDataRefresh(),this._refresh())}},v.prototype._CompareOptionValues=function(e,t,o){switch(e){case"columns":case"currentRow":return h.Object.compareValues(t,o);case"selection":return t&&void 0===t.inverted&&(t.inverted=!1),o&&void 0===o.inverted&&(o.inverted=!1),(!t||!o||t.inverted===o.inverted)&&h.Object.compareValues(t,o);case"selected":return f.areKeySetsEqual(t.row,o.row)&&f.areKeySetsEqual(t.column,o.column);default:return this._super(e,t,o)}},v.prototype._getTableDndContext=function(){return this._tableDndContext||(this._tableDndContext=new O(this)),this._tableDndContext},v.prototype._getLayoutManager=function(){return null==this._layoutManager&&(this._isStickyLayoutEnabled()?this._isFixedLayoutEnabled()?this._layoutManager=new N(this):this._layoutManager=new w(this):(this._layoutManager=new I(this),this._isFixedLayoutEnabled()&&S.error('The current theme does not support the layout="fixed" attribute setting of the <oj-table>.'))),this._layoutManager},v.prototype._clearLayoutManager=function(){null!=this._layoutManager&&this._layoutManager.unregisterListeners(),this._layoutManager=null},h.__registerWidget("oj.ojTable",u.oj.baseComponent,new v),g.setDefaultOptions({ojTable:{display:g.createDynamicPropertyGetter(function(){return(p.parseJSONFromFontFamily("oj-table-option-defaults")||{}).display})}})});
|
|
151
151
|
//# sourceMappingURL=ojtable.js.map
|