query
stringlengths
9
14.6k
document
stringlengths
8
5.39M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Set the global required patterns
global(patterns) { this._globals.required(patterns); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "publish_global(token) {\n for (var key in this.patterns) {\n this.patterns[key].match(token);\n }\n }", "function Pattern() {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n var flag = args.pop(...
[ "0.5998476", "0.58309144", "0.56823057", "0.56630754", "0.56049955", "0.5553997", "0.5542716", "0.5537331", "0.5502213", "0.54818815", "0.54286593", "0.53966385", "0.53925145", "0.5358839", "0.531371", "0.52633", "0.52470005", "0.52278596", "0.52264434", "0.519967", "0.519735...
0.7746792
0
Create a new pattern and pass all existing global tokens into it
create_pattern() { var instance = new Pattern(); instance.required(this._instance.patterns); instance.required(this._globals.patterns); for (var key in this._globals.tokens) { instance.match(this._globals.tokens[key]); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NewExpression({node}) {\n if (!isNewRegExp(node)) {\n return;\n }\n\n let origPattern;\n\n if (node.arguments[0].type === 'StringLiteral') {\n origPattern = node.arguments[0].value;\n } else if (node.arguments[0].type === 'TemplateLiteral') {\n origPatt...
[ "0.6534318", "0.63773644", "0.6282629", "0.6074599", "0.60697585", "0.5937123", "0.5937123", "0.5893201", "0.5792382", "0.5779999", "0.57281387", "0.5640632", "0.55914825", "0.5576022", "0.5574834", "0.5508434", "0.55080664", "0.54759604", "0.54670817", "0.5461064", "0.544781...
0.76020914
0
Push a global token to all held patterns
publish_global(token) { for (var key in this.patterns) { this.patterns[key].match(token); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "push(token) {\n this.resultingTokens.push(token);\n }", "function pushTokenState() {\n tokenStates.push({\n token_type: token_type,\n token: token,\n comment: comment,\n index: index,\n c: c\n });\n }", "function push(dtl, token) {\n const len = dtl[INTERNAL].tokens.push(to...
[ "0.6755806", "0.61325043", "0.5967326", "0.58461976", "0.58171654", "0.5589862", "0.5561108", "0.5560238", "0.5539569", "0.5470017", "0.54609776", "0.53050303", "0.52451825", "0.5181919", "0.51748013", "0.51716954", "0.5169417", "0.5169417", "0.51224107", "0.5117507", "0.5108...
0.7388576
0
Return an array of completed patterns, remove them from the list
completed_patterns() { //console.log("\n------ done ------"); var count = 0; for (var key in this.patterns) { count += 1; } //console.log("Looking for complete patterns in total: " + count); var tmp = this.patterns; var rtn = []; this.patterns = {}; for (var key in tmp) { if (tmp[key]....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearPattern() {\n pattern = [];\n updateCountDisplay();\n }", "async getKeepPatterns(src) {\n if (!Array.isArray(this.info.files))\n throw new Error(`Package 'files' is not an array.`);\n\n const patterns = [];\n\n for (const pattern of constants.NEVER_IGNORE)\n patterns.push(...
[ "0.6251632", "0.59994316", "0.59964544", "0.58615565", "0.56316143", "0.55631745", "0.55617386", "0.55586505", "0.55583954", "0.55279934", "0.55049735", "0.54523915", "0.5435952", "0.538859", "0.53761446", "0.5372151", "0.53586245", "0.5352827", "0.5351646", "0.5351646", "0.5...
0.64271003
0
Using the JavaScript language, have the function StringScramble(str1,str2) take both parameters being passed and return the string true if a portion of str1 characters can be rearranged to match str2, otherwise return the string false. For example: if str1 is "rkqodlw" and str2 is "world" the output should return true....
function StringScramble(str1,str2) { for (var i = 0; i < str2.length; i++) { c = str2.charAt(i); var n = str1.indexOf(c); if (n == -1) return false; str1 = str1.substr(0, n) + str1.substr(n); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scramble(str1, str2) {\n let str1Arr = str1.split('');\n\n for (let idx = 0; idx < str2.length; idx += 1) {\n let char = str2[idx];\n if (str1Arr.includes(char)) {\n let str1ArrIndex = str1Arr.indexOf(char);\n str1Arr.splice(str1ArrIndex, 1);\n } else {\n return false;\n }\n ...
[ "0.8313522", "0.8058794", "0.8030994", "0.7977539", "0.797276", "0.7911811", "0.77885085", "0.7681225", "0.75718755", "0.7567485", "0.75123894", "0.7498898", "0.74458915", "0.7404509", "0.73655206", "0.7329768", "0.7280809", "0.7263139", "0.7196589", "0.7165988", "0.71595925"...
0.843348
0
Returns the items as an array.
_getItemsArray() { return this._items instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__.QueryList ? this._items.toArray() : this._items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toArray() {\n return this.items;\n }", "_getItemsArray() {\n return this._items instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__[\"QueryList\"] ? this._items.toArray() : this._items;\n }", "_getItemsArray() {\n return this._items instanceof _angular_core__WEBPACK_IMPORTED_MODULE...
[ "0.8128277", "0.7790988", "0.7790988", "0.7790988", "0.7790988", "0.76689845", "0.7560914", "0.72568977", "0.71913016", "0.712198", "0.7117025", "0.7066793", "0.7057061", "0.7044347", "0.7044347", "0.7044347", "0.70354", "0.70270854", "0.6982", "0.6960247", "0.69472283", "0...
0.78624225
1
Focuses the last tabbable element within the focus trap region.
focusLastTabbableElement(options) { const redirectToElement = this._getRegionBoundary('end'); if (redirectToElement) { redirectToElement.focus(options); } return !!redirectToElement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "focusLastTabbableElement() {\n const redirectToElement = this._getRegionBoundary('end');\n if (redirectToElement) {\n redirectToElement.focus();\n }\n return !!redirectToElement;\n }", "focusLastTabbableElement() {\n const redirectToElement = this._getRegionBounda...
[ "0.7127803", "0.7127803", "0.7127803", "0.7127803", "0.70323265", "0.6984161", "0.6957138", "0.6929537", "0.6879327", "0.680474", "0.6775545", "0.6740217", "0.6724881", "0.664643", "0.6628821", "0.6611724", "0.654511", "0.65378875", "0.65378875", "0.6523403", "0.6521241", "...
0.7271707
0
Executes a function when the zone is stable.
_executeOnStable(fn) { if (this._ngZone.isStable) { fn(); } else { this._ngZone.onStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.take)(1)).subscribe(fn); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_executeOnStable(fn) {\n if (this._ngZone.isStable) {\n fn();\n }\n else {\n this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__[\"take\"])(1)).subscribe(fn);\n }\n }", "_executeOnStable(fn) {\n if (this._ngZone.isStable) {\n ...
[ "0.6370291", "0.6369618", "0.6369618", "0.6369618", "0.6008332", "0.6008332", "0.6008332", "0.6008332", "0.6008332", "0.6008332", "0.6008332", "0.6008332", "0.59534395", "0.59534395", "0.59534395", "0.59534395", "0.52576214", "0.52576214", "0.52576214", "0.52576214", "0.52576...
0.63974696
0
Evaluates the given media query and returns the native MediaQueryList from which results can be retrieved. Confirms the layout engine will trigger for the selector query provided and returns the MediaQueryList for the query provided.
matchMedia(query) { if (this._platform.WEBKIT) { createEmptyStyleRule(query); } return this._matchMedia(query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MediaQueryDispatch(){if(!matchMedia){throw new Error('matchMedia not present, legacy browsers require a polyfill');}this.queries={};this.browserIsIncapable=!matchMedia('only all').matches;}", "useMediaQuery(mediaQuery) {\n if (typeof mediaQuery !== 'string')\n throw new Error('Media Qu...
[ "0.59111524", "0.5893431", "0.57527614", "0.5734005", "0.5718842", "0.57094353", "0.56994456", "0.56994456", "0.56994456", "0.56994456", "0.56994456", "0.56994456", "0.56994456", "0.56924486", "0.5691464", "0.5691464", "0.5691464", "0.5691464", "0.5691464", "0.5691464", "0.56...
0.61911845
1
Registers a specific query to be listened for.
_registerQuery(query) { // Only set up a new MediaQueryList if it is not already being listened for. if (this._queries.has(query)) { return this._queries.get(query); } const mql = this._mediaMatcher.matchMedia(query); // Create callback for match changes and add it is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_registerQuery(query) {\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query);\n }\n const mql = this._mediaMatcher.matchMedia(query);\n // Create callback for match changes an...
[ "0.65572244", "0.5799707", "0.5738749", "0.57258934", "0.57216233", "0.56594115", "0.55988586", "0.55906534", "0.55657256", "0.55412966", "0.5525901", "0.5477033", "0.5474819", "0.5474129", "0.5454008", "0.54336", "0.54067254", "0.54067254", "0.5402843", "0.5384063", "0.53560...
0.6581882
0
Split each query string into separate query strings if two queries are provided as comma separated.
function splitQueries(queries) { return queries.map(query => query.split(',')) .reduce((a1, a2) => a1.concat(a2)) .map(query => query.trim()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function splitQueries(queries) {\n return queries.map(function (query) {\n return query.split(',');\n }).reduce(function (a1, a2) {\n return a1.concat(a2);\n }).map(function (query) {\n return query.trim();\n });\n}", "function queryStringToArr (queryString) {\n\treturn queryString.split(',');\n}", ...
[ "0.73722625", "0.6217844", "0.61661804", "0.6040857", "0.58524776", "0.57887506", "0.57189596", "0.56598306", "0.5659684", "0.5659684", "0.5659684", "0.5659684", "0.5601457", "0.55889195", "0.55820364", "0.55640644", "0.5544866", "0.5544866", "0.5544866", "0.5544866", "0.5544...
0.74961793
1
Attaches content, given via a Portal, to the overlay. If the overlay is configured to have a backdrop, it will be created.
attach(portal) { let attachResult = this._portalOutlet.attach(portal); // Update the pane element with the given configuration. if (!this._host.parentElement && this._previousHostParent) { this._previousHostParent.appendChild(this._host); } if (this._positionStrategy)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "attach(portal) {\n let attachResult = this._portalOutlet.attach(portal);\n // Update the pane element with the given configuration.\n if (!this._host.parentElement && this._previousHostParent) {\n this._previousHostParent.appendChild(this._host);\n }\n if (this._positi...
[ "0.6984741", "0.6984741", "0.69652617", "0.65667427", "0.63057685", "0.63057685", "0.63057685", "0.63057685", "0.62366045", "0.62366045", "0.62366045", "0.613984", "0.613984", "0.613984", "0.6039828", "0.60070527", "0.59637076", "0.58524036", "0.58524036", "0.58524036", "0.57...
0.69866395
0
Create a DomPortalOutlet into which the overlay content can be loaded.
_createPortalOutlet(pane) { // We have to resolve the ApplicationRef later in order to allow people // to use overlay-based providers during app initialization. if (!this._appRef) { this._appRef = this._injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_3__.ApplicationRef); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_createPortalOutlet(pane) {\n // We have to resolve the ApplicationRef later in order to allow people\n // to use overlay-based providers during app initialization.\n if (!this._appRef) {\n this._appRef = this._injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__[\"ApplicationRef...
[ "0.75355476", "0.75355476", "0.75355476", "0.67855054", "0.67855054", "0.6778867", "0.6778867", "0.6778867", "0.6632188", "0.6632188", "0.6632188", "0.65295434", "0.65295434", "0.651219", "0.6472991", "0.6459171", "0.6459171", "0.6459171", "0.6459171", "0.64351743", "0.643517...
0.7623074
0
Gets the currentlyfocused element on the page while also piercing through Shadow DOM boundaries.
function _getFocusedElementPierceShadowDom() { let activeElement = typeof document !== 'undefined' && document ? document.activeElement : null; while (activeElement && activeElement.shadowRoot) { const newActiveElement = activeElement.shadowRoot.activeElement; if (newActiveElement === ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFocusElement() {\n var focused = document.activeElement;\n\n if (!focused || focused === document.body) {\n focused = null;\n } else {\n focused = document.querySelector(':focus');\n }\n\n r...
[ "0.79354244", "0.7705748", "0.7521072", "0.7521072", "0.7521072", "0.7514604", "0.7509431", "0.7507747", "0.73421293", "0.7339588", "0.7339588", "0.7339588", "0.7339588", "0.7339588", "0.7325421", "0.73224074", "0.73142534", "0.73142534", "0.73142534", "0.73142534", "0.731425...
0.7941779
0
Measures the scroll offset relative to the specified edge of the viewport. This method can be used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent about what scrollLeft means in RTL. The values returned by this method are normalized such that left and right always refer to the le...
measureScrollOffset(from) { const LEFT = 'left'; const RIGHT = 'right'; const el = this.elementRef.nativeElement; if (from == 'top') { return el.scrollTop; } if (from == 'bottom') { return el.scrollHeight - el.clientHeight - el.scrollTop; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "measureScrollOffset(from) {\n const LEFT = 'left';\n const RIGHT = 'right';\n const el = this.elementRef.nativeElement;\n if (from == 'top') {\n return el.scrollTop;\n }\n if (from == 'bottom') {\n return el.scrollHeight - el.clientHeight - el.scrollT...
[ "0.6791385", "0.6791385", "0.6791385", "0.6791385", "0.58877635", "0.5742691", "0.5673384", "0.5573957", "0.55540943", "0.55024356", "0.5463418", "0.5456729", "0.54529977", "0.54351735", "0.54351735", "0.54078436", "0.54073095", "0.5392838", "0.5392838", "0.5392838", "0.53928...
0.68156743
0
Whether the sticky value has changed since this was last called.
hasStickyChanged() { const hasStickyChanged = this._hasStickyChanged; this._hasStickyChanged = false; return hasStickyChanged; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get sticky() { return this._sticky; }", "get sticky() { return this._sticky; }", "needsUpdate() {\n return this._needsUpdate;\n }", "isDirty() {\n const { initialValue, value } = this.state;\n return !stringDefaultEquals(value, initialValue);\n }", "function observe() {\n const refPageOffse...
[ "0.6412193", "0.6412193", "0.641012", "0.63757646", "0.6358669", "0.63561493", "0.63243765", "0.6284337", "0.6166282", "0.6166282", "0.6147011", "0.6136108", "0.61275846", "0.6092716", "0.6028941", "0.6019121", "0.6004409", "0.6004409", "0.59946626", "0.59946626", "0.59869915...
0.8275823
1
Resets the dirty check for cases where the sticky state has been used without checking.
resetStickyChanged() { this._hasStickyChanged = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function unsetDirty () {\n dirty = false\n }", "function reset() {\r\n dirtyCellsByRow = [];\r\n invalidCellsByRow = [];\r\n setInvalid(false);\r\n }", "setToCleanState() {\n this.paintDirty = false;\n this.dirtyImage = false;\n this.dirt...
[ "0.7039959", "0.6307705", "0.6118348", "0.60332745", "0.6002752", "0.5969716", "0.5952635", "0.59352696", "0.5905242", "0.58982664", "0.58792067", "0.58204675", "0.58186096", "0.58165133", "0.58056325", "0.5802133", "0.5800544", "0.57884955", "0.5752286", "0.5745767", "0.5739...
0.74670964
1
Schedules the specified task to run after other scheduled tasks at the end of the current VM turn.
scheduleEnd(task) { this._createScheduleIfNeeded(); this._currentSchedule.endTasks.push(task); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scheduleTask(task) {\n taskScheduler(task);\n}", "schedule(task) {\n this._createScheduleIfNeeded();\n this._currentSchedule.tasks.push(task);\n }", "schedule(task) {\n this._createScheduleIfNeeded();\n this._currentSchedule.tasks.push(task);\n }", "function sche...
[ "0.61955076", "0.60999364", "0.60999364", "0.59876776", "0.588577", "0.56232876", "0.5592837", "0.554958", "0.5419323", "0.5291842", "0.52678096", "0.5267411", "0.5231864", "0.522786", "0.52265996", "0.5219364", "0.51423913", "0.51423913", "0.51423913", "0.51423913", "0.51423...
0.7128419
1
Returns the difference between the current columns and the columns from the last diff, or null if there is no difference.
getColumnsDiff() { return this._columnsDiffer.diff(this.columns); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "lastDiff() {\n return this.convolveTail([1, 0, -1]);\n }", "get heightDiff() {\n let { beforeHeight, afterHeight } = this\n if (beforeHeight == null || afterHeight == null) {\n return 0\n }\n return afterHeight - beforeHeight\n }", "lastCell() {\n if (this.c...
[ "0.5992491", "0.5809767", "0.5442476", "0.52331495", "0.50569403", "0.5024267", "0.502237", "0.4988327", "0.49410427", "0.49357724", "0.49316955", "0.49097684", "0.4908337", "0.48702013", "0.4866352", "0.48633832", "0.48009074", "0.4781578", "0.47746566", "0.47733074", "0.476...
0.65728366
1
Gets this row def's relevant cell template from the provided column def.
extractCellTemplate(column) { if (this instanceof CdkHeaderRowDef) { return column.headerCell.template; } if (this instanceof CdkFooterRowDef) { return column.footerCell.template; } else { return column.cell.template; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get _columnTemplate() {\n\t\tvar template = dom(this).querySelector('template');\n\t\tlet slot = dom(this).querySelector('slot');\n\t\tif (!template && slot) {\n\t\t\tlet nodes = dom(slot).getDistributedNodes();\n\t\t\ttemplate = nodes.find(node => {\n\t\t\t\treturn node.nodeName == \"TEMPLATE\"\n\t\t\t})\n\t\t}\n...
[ "0.7063865", "0.66699386", "0.66699386", "0.62340903", "0.59664273", "0.5945309", "0.58417594", "0.58417594", "0.5815606", "0.58029383", "0.57104146", "0.56854147", "0.55950713", "0.55801773", "0.554485", "0.55362105", "0.5530517", "0.5488132", "0.54753333", "0.5474299", "0.5...
0.77319735
1
Clears the sticky positioning styles from the row and its cells by resetting the `position` style, setting the zIndex to 0, and unsetting each provided sticky direction.
clearStickyPositioning(rows, stickyDirections) { const elementsToClear = []; for (const row of rows) { // If the row isn't an element (e.g. if it's an `ng-container`), // it won't have inline styles or `children` so we skip it. if (row.nodeType !== row.ELEMENT_NODE) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clearStickyPositioning(rows, stickyDirections) {\n const elementsToClear = [];\n for (const row of rows) {\n // If the row isn't an element (e.g. if it's an `ng-container`),\n // it won't have inline styles or `children` so we skip it.\n if (row.nodeType !== row.ELEME...
[ "0.6999869", "0.6599799", "0.65712196", "0.6559046", "0.6519376", "0.63970476", "0.6128888", "0.5789005", "0.570211", "0.57000387", "0.57000387", "0.57000387", "0.57000387", "0.5683154", "0.5672965", "0.5653647", "0.55974925", "0.55974925", "0.5587814", "0.5579603", "0.557160...
0.7019669
0
Applies sticky positioning to the row's cells if using the native table layout, and to the row itself otherwise.
stickRows(rowsToStick, stickyStates, position) { // Since we can't measure the rows on the server, we can't stick the rows properly. if (!this._isBrowser) { return; } // If positioning the rows to the bottom, reverse their order when evaluating the sticky // position ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "stickRows(rowsToStick, stickyStates, position) {\n // Since we can't measure the rows on the server, we can't stick the rows properly.\n if (!this._isBrowser) {\n return;\n }\n // If positioning the rows to the bottom, reverse their order when evaluating the sticky\n /...
[ "0.716586", "0.665913", "0.65824294", "0.64769447", "0.603726", "0.59080887", "0.5840387", "0.5823411", "0.58113134", "0.57976216", "0.57976216", "0.57705337", "0.5645098", "0.56436634", "0.56398314", "0.55915475", "0.5567842", "0.5478751", "0.54713356", "0.5465442", "0.54303...
0.73006153
0
When using the native table in Safari, sticky footer cells do not stick. The only way to stick footer rows is to apply sticky styling to the tfoot container. This should only be done if all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from the tfoot element.
updateStickyFooterContainer(tableElement, stickyStates) { if (!this._isNativeHtmlTable) { return; } const tfoot = tableElement.querySelector('tfoot'); // Coalesce with other sticky updates (and potentially other changes like column resize). this._coalescedStyleSchedul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateStickyFooterContainer(tableElement, stickyStates) {\n if (!this._isNativeHtmlTable) {\n return;\n }\n const tfoot = tableElement.querySelector('tfoot');\n // Coalesce with other sticky updates (and potentially other changes like column resize).\n this._scheduleSt...
[ "0.732138", "0.68998694", "0.68998694", "0.6236637", "0.6148696", "0.60788566", "0.5720392", "0.5685697", "0.56846154", "0.56249964", "0.56249964", "0.56110406", "0.5595816", "0.55074835", "0.5498917", "0.5472155", "0.5461458", "0.5402721", "0.5369626", "0.53559124", "0.53463...
0.7248361
1
Removes the sticky style on the element by removing the sticky cell CSS class, reevaluating the zIndex, removing each of the provided sticky directions, and removing the sticky position if there are no more directions.
_removeStickyStyle(element, stickyDirections) { for (const dir of stickyDirections) { element.style[dir] = ''; element.classList.remove(this._borderCellCss[dir]); } // If the element no longer has any more sticky directions, remove sticky positioning and // the st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_removeStickyStyle(element, stickyDirections) {\n for (const dir of stickyDirections) {\n element.style[dir] = '';\n }\n // If the element no longer has any more sticky directions, remove sticky positioning and\n // the sticky CSS class.\n // Short-circuit checking ele...
[ "0.8335267", "0.67268246", "0.6663099", "0.5864473", "0.5808844", "0.55604124", "0.5487181", "0.5481294", "0.5387205", "0.5373744", "0.53587323", "0.5351224", "0.5333036", "0.5290937", "0.52883", "0.5284224", "0.52556986", "0.5149727", "0.51453066", "0.5112802", "0.50889486",...
0.8342785
0
Adds the sticky styling to the element by adding the sticky style class, changing position to be sticky (and webkitsticky), setting the appropriate zIndex, and adding a sticky direction and value.
_addStickyStyle(element, dir, dirValue, isBorderElement) { element.classList.add(this._stickCellCss); if (isBorderElement) { element.classList.add(this._borderCellCss[dir]); } element.style[dir] = `${dirValue}px`; element.style.zIndex = this._getCalculatedZIndex(eleme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_addStickyStyle(element, dir, dirValue) {\n element.classList.add(this._stickCellCss);\n element.style[dir] = `${dirValue}px`;\n element.style.zIndex = this._getCalculatedZIndex(element);\n if (this._needsPositionStickyOnElement) {\n element.style.cssText += 'position: -webki...
[ "0.7785357", "0.7447919", "0.7131661", "0.688897", "0.6876993", "0.6818396", "0.6654755", "0.6637002", "0.66288775", "0.65444183", "0.6524126", "0.64584064", "0.6451324", "0.6449856", "0.64290255", "0.64285785", "0.6419209", "0.6418639", "0.6418529", "0.6407658", "0.64011484"...
0.7572748
1
Calculate what the zindex should be for the element, depending on what directions (top, bottom, left, right) have been set. It should be true that elements with a top direction should have the highest index since these are elements like a table header. If any of those elements are also sticky in another direction, then...
_getCalculatedZIndex(element) { const zIndexIncrements = { top: 100, bottom: 10, left: 1, right: 1, }; let zIndex = 0; // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3, // loses the array generic type in the `for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setZindex() {\n scope_HandleNumbers.forEach(function (handleNumber) {\n var dir = scope_Locations[handleNumber] > 50 ? -1 : 1;\n var zIndex = 3 + (scope_Handles.length + dir * handleNumber);\n scope_Handles[handleNumber].style.zIndex = zIndex;\n });\n } // Test suggested ...
[ "0.6252898", "0.6235587", "0.61827636", "0.6148351", "0.5989854", "0.5989854", "0.5989854", "0.5989854", "0.59754056", "0.5938446", "0.5789173", "0.5789173", "0.5789173", "0.57889396", "0.57889396", "0.5620875", "0.5583335", "0.5564016", "0.55312234", "0.5458352", "0.5445643"...
0.66796017
1
Determines the left and right positions of each sticky column cell, which will be the accumulation of all sticky column cell widths to the left and right, respectively. Nonsticky cells do not need to have a value set since their positions will not be applied.
_getStickyStartColumnPositions(widths, stickyStates) { const positions = []; let nextPosition = 0; for (let i = 0; i < widths.length; i++) { if (stickyStates[i]) { positions[i] = nextPosition; nextPosition += widths[i]; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getStickyEndColumnPositions(widths, stickyStates) {\n const positions = [];\n let nextPosition = 0;\n for (let i = widths.length; i > 0; i--) {\n if (stickyStates[i]) {\n positions[i] = nextPosition;\n nextPosition += widths[i];\n }\n ...
[ "0.68174183", "0.68174183", "0.63979584", "0.6360939", "0.5989815", "0.59245217", "0.5923008", "0.58831054", "0.5814784", "0.5808334", "0.5782201", "0.5782201", "0.5782201", "0.5782201", "0.57744354", "0.57687414", "0.55837494", "0.55037993", "0.54317003", "0.53314203", "0.53...
0.71126276
1
Returns an error to be thrown when two column definitions have the same name.
function getTableDuplicateColumnNameError(name) { return Error(`Duplicate column definition name provided: "${name}".`); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _checkDuplicateColumns(columns) {\n const { length } = columns;\n const columnNames = _.pluck(columns, 'name');\n\n // check for null names.\n for (let i = 0; i < columnNames.length; i++) {\n if (columnNames[i].indexOf(' ') > -1) {\n return `Column ${columnNames[i]} cannot contain any spaces.`...
[ "0.6407591", "0.617553", "0.617553", "0.58000904", "0.5785227", "0.57334095", "0.5592876", "0.55621153", "0.5466033", "0.5466033", "0.5466033", "0.5392446", "0.5389644", "0.53484404", "0.53361773", "0.53361773", "0.5329391", "0.531312", "0.53090376", "0.5288337", "0.52716005"...
0.7299318
1
Returns an error to be thrown when there are multiple rows that are missing a when function.
function getTableMultipleDefaultRowDefsError() { return Error(`There can only be one default row without a when predicate function.`); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMatSelectNonFunctionValueError() {\n return Error('`compareWith` must be a function.');\n}", "function getMatSelectNonFunctionValueError() {\n return Error('`compareWith` must be a function.');\n}", "function getMatSelectNonFunctionValueError() {\n return Error('`compareWith` must be a fun...
[ "0.53441656", "0.53441656", "0.53441656", "0.53305906", "0.5186571", "0.5186571", "0.5138806", "0.50073886", "0.50073886", "0.49180582", "0.49073625", "0.48845312", "0.48845312", "0.48732504", "0.48087648", "0.48087466", "0.4781512", "0.47811192", "0.474989", "0.474989", "0.4...
0.5920384
1
Returns an error to be thrown when there are no matching row defs for a particular set of data.
function getTableMissingMatchingRowDefError(data) { return Error(`Could not find a matching row definition for the` + `provided row data: ${JSON.stringify(data)}`); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTableMissingRowDefsError() {\n return Error('Missing definitions for header, footer, and row; ' +\n 'cannot determine which columns should be rendered.');\n}", "function getTableMissingRowDefsError() {\n return Error('Missing definitions for header, footer, and row; ' +\n 'cannot ...
[ "0.7067183", "0.7067183", "0.6258458", "0.6258458", "0.6207508", "0.6207508", "0.5504722", "0.51966363", "0.51966363", "0.51907384", "0.5144043", "0.51215196", "0.51215196", "0.51072663", "0.5055917", "0.50529975", "0.5050734", "0.4912161", "0.4883389", "0.48738864", "0.48613...
0.7642257
1
Returns an error to be thrown when there is no row definitions present in the content.
function getTableMissingRowDefsError() { return Error('Missing definitions for header, footer, and row; ' + 'cannot determine which columns should be rendered.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTableMissingMatchingRowDefError(data) {\n return Error(`Could not find a matching row definition for the` +\n `provided row data: ${JSON.stringify(data)}`);\n}", "function getTableMissingMatchingRowDefError(data) {\n return Error(`Could not find a matching row definition for the` +\n ...
[ "0.66725457", "0.66725457", "0.60682696", "0.5746903", "0.5746903", "0.5400682", "0.5388518", "0.5388518", "0.5337042", "0.5335821", "0.5335821", "0.529221", "0.529221", "0.5290179", "0.5249663", "0.5249663", "0.5222138", "0.519196", "0.5189128", "0.5189128", "0.5189128", "...
0.73795265
1
Returns an error to be thrown when the data source does not match the compatible types.
function getTableUnknownDataSourceError() { return Error(`Provided data source did not match an array, Observable, or DataSource`); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static typeCastError(fromType, toType) {\n const BinaryUtils = require('./internal/BinaryUtils');\n return new IgniteClientError(Util.format('Type \"%s\" can not be cast to %s',\n BinaryUtils.getTypeName(fromType), BinaryUtils.getTypeName(toType)));\n }", "function isDataSourceRawType...
[ "0.6007096", "0.5851322", "0.55627733", "0.5504229", "0.54640204", "0.5454222", "0.5370992", "0.5285069", "0.5223961", "0.5179278", "0.5172353", "0.5172353", "0.50196755", "0.4991734", "0.4991734", "0.4991734", "0.497913", "0.4972154", "0.4930248", "0.4911638", "0.48988828", ...
0.60887456
1
Returns an error to be thrown when the text column cannot find a parent table to inject.
function getTableTextColumnMissingParentTableError() { return Error(`Text column could not find a parent table for registration.`); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTableTextColumnMissingNameError() {\n return Error(`Table text column must have a name.`);\n}", "function getTableTextColumnMissingNameError() {\n return Error(`Table text column must have a name.`);\n}", "function getTableMissingMatchingRowDefError(data) {\n return Error(`Could not find a...
[ "0.65371263", "0.65371263", "0.50789946", "0.50789946", "0.48568103", "0.48341376", "0.47882137", "0.47882137", "0.4689401", "0.46109545", "0.4596971", "0.45764402", "0.45259765", "0.44757882", "0.44734666", "0.44666046", "0.4442188", "0.44058964", "0.4390781", "0.43856665", ...
0.7952253
1
Returns an error to be thrown when a table text column doesn't have a name.
function getTableTextColumnMissingNameError() { return Error(`Table text column must have a name.`); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTableTextColumnMissingParentTableError() {\n return Error(`Text column could not find a parent table for registration.`);\n}", "function getTableTextColumnMissingParentTableError() {\n return Error(`Text column could not find a parent table for registration.`);\n}", "function isValidColumnNam...
[ "0.67782193", "0.67782193", "0.5985534", "0.5827632", "0.5827632", "0.57157546", "0.56144404", "0.55665576", "0.5550352", "0.54882044", "0.54882044", "0.54170734", "0.541091", "0.541091", "0.5357889", "0.53443366", "0.5292821", "0.5275716", "0.5275716", "0.52698684", "0.52525...
0.85712266
1
Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when' predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each dataobject will render the first row that evaluates its when predicate to true, in the order defined in the table, or otherwise the ...
get multiTemplateDataRows() { return this._multiTemplateDataRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTableMultipleDefaultRowDefsError() {\n return Error(`There can only be one default row without a when predicate function.`);\n}", "function getTableMultipleDefaultRowDefsError() {\n return Error(`There can only be one default row without a when predicate function.`);\n}", "updateTable() {\n ...
[ "0.5408664", "0.5408664", "0.5078195", "0.498933", "0.49087948", "0.49087948", "0.4821086", "0.47885597", "0.47885597", "0.4641754", "0.45802134", "0.45365524", "0.45352018", "0.45279908", "0.45187807", "0.45117924", "0.4498375", "0.44961753", "0.44951653", "0.44575214", "0.4...
0.60826105
1
Adds a column definition that was not included as part of the content children.
addColumnDef(columnDef) { this._customColumnDefs.add(columnDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "visitColumnDefinition(ctx) {\n\t return this.visitChildren(ctx);\n\t}", "removeColumnDef(columnDef) {\n this._customColumnDefs.delete(columnDef);\n }", "removeColumnDef(columnDef) {\n this._customColumnDefs.delete(columnDef);\n }", "get columnDef() { return this._columnDef; }", "addCol...
[ "0.597433", "0.59096277", "0.59096277", "0.5699667", "0.56870544", "0.55660605", "0.54330534", "0.5429742", "0.53388375", "0.533731", "0.52774405", "0.52752477", "0.5272356", "0.5248336", "0.5232915", "0.5166381", "0.5155658", "0.5134475", "0.51083547", "0.5105695", "0.510256...
0.6192625
1
Removes a column definition that was not included as part of the content children.
removeColumnDef(columnDef) { this._customColumnDefs.delete(columnDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeColumnConstraints() {\n $('.ghx-busted-max').removeClass('ghx-busted-max'); // Red background remove\n $('.ghx-constraint').remove(); // Column header remove\n }", "function deleteCol() {\n let children = Array.from(cellsTable.children);\n children.forEach((row) => {\n row.removeChild...
[ "0.62464756", "0.619749", "0.6027475", "0.5755526", "0.5754912", "0.5627384", "0.5627384", "0.5591915", "0.5510799", "0.5445025", "0.54319566", "0.539733", "0.53946215", "0.5340919", "0.53087044", "0.528111", "0.5256572", "0.5248499", "0.52426225", "0.52365714", "0.5228281", ...
0.7404537
1
Adds a row definition that was not included as part of the content children.
addRowDef(rowDef) { this._customRowDefs.add(rowDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "appendChildRow(content, indexToInsert=0){\n if(!this.value['items']){\n this.$set(this.value, 'items', [])\n }\n const newRow = this._createNewRow(content)\n this.value.items.splice(0, 0, newRow)\n }", "removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }", "...
[ "0.56597906", "0.56562424", "0.56562424", "0.54763114", "0.54763114", "0.54312694", "0.53162384", "0.5316009", "0.5289118", "0.5289118", "0.5264036", "0.5245053", "0.52320427", "0.5225509", "0.5127747", "0.51125175", "0.50851595", "0.5081958", "0.5005981", "0.5005981", "0.500...
0.61195666
1
Removes a row definition that was not included as part of the content children.
removeRowDef(rowDef) { this._customRowDefs.delete(rowDef); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.delete(headerRowDef);\n this._headerRowDefChanged = true;\n }", "removeHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.delete(headerRowDef);\n this._headerRowDefChanged = true;\n }", "removeFooterRowDef(fo...
[ "0.65050876", "0.65050876", "0.62081647", "0.62081647", "0.62081176", "0.60361314", "0.598171", "0.59619236", "0.5959468", "0.58936316", "0.5889591", "0.58460504", "0.5783819", "0.5773488", "0.57103574", "0.57090706", "0.57062095", "0.568238", "0.56784207", "0.5677561", "0.56...
0.7483582
1
Adds a header row definition that was not included as part of the content children.
addHeaderRowDef(headerRowDef) { this._customHeaderRowDefs.add(headerRowDef); this._headerRowDefChanged = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.delete(headerRowDef);\n this._headerRowDefChanged = true;\n }", "removeHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.delete(headerRowDef);\n this._headerRowDefChanged = true;\n }", "_forceRenderHeaderRow...
[ "0.63337886", "0.63337886", "0.61712873", "0.61712873", "0.61706144", "0.59915483", "0.59544647", "0.5902134", "0.5891384", "0.5890865", "0.5832086", "0.5817425", "0.5817425", "0.57949597", "0.5719342", "0.5706542", "0.57022995", "0.5698772", "0.5682326", "0.56722784", "0.566...
0.6910792
1
Removes a header row definition that was not included as part of the content children.
removeHeaderRowDef(headerRowDef) { this._customHeaderRowDefs.delete(headerRowDef); this._headerRowDefChanged = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }", "removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }", "removeFooterRowDef(footerRowDef) {\n this._customFooterRowDefs.delete(footerRowDef);\n this._footerRowDefChanged = true;\n }", "removeFo...
[ "0.7083742", "0.7083742", "0.6304988", "0.6304988", "0.62349635", "0.59486663", "0.59109557", "0.5871745", "0.5864685", "0.5864685", "0.5835604", "0.58005244", "0.5745559", "0.57407796", "0.57328194", "0.5725179", "0.57090247", "0.569348", "0.56604534", "0.5635777", "0.563577...
0.78986555
1
Adds a footer row definition that was not included as part of the content children.
addFooterRowDef(footerRowDef) { this._customFooterRowDefs.add(footerRowDef); this._footerRowDefChanged = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_forceRenderFooterRows() {\n // Clear the footer row outlet if any content exists.\n if (this._footerRowOutlet.viewContainer.length > 0) {\n this._footerRowOutlet.viewContainer.clear();\n }\n this._footerRowDefs.forEach((def, i) => this._renderRow(this._footerRowOutlet, def, ...
[ "0.61215115", "0.61215115", "0.60791475", "0.606099", "0.606099", "0.5998225", "0.58841723", "0.58516", "0.5617139", "0.5552879", "0.5549074", "0.55466706", "0.5531004", "0.55164653", "0.5449316", "0.54294187", "0.5410304", "0.5403349", "0.53467435", "0.5339662", "0.532851", ...
0.6515659
1
Removes a footer row definition that was not included as part of the content children.
removeFooterRowDef(footerRowDef) { this._customFooterRowDefs.delete(footerRowDef); this._footerRowDefChanged = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeFooter() {\n document.getElementById('table1').deleteRow(-1);\n}", "function delFooter() {\n $(\"tfoot\").remove();\n}", "removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }", "removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }", "_forceRender...
[ "0.7020656", "0.6548259", "0.6312341", "0.6312341", "0.6070894", "0.6070894", "0.6048697", "0.58141637", "0.5799287", "0.5779303", "0.5779303", "0.5760272", "0.5752676", "0.5735472", "0.5728444", "0.5727328", "0.5667987", "0.55868906", "0.5585193", "0.5570192", "0.5558149", ...
0.7427892
1
Updates the footer sticky styles. First resets all applied styles with respect to the cells sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is automatically called when the footer row changes its displayed set of columns, or if its sticky input changes. May be called manually f...
updateStickyFooterRowStyles() { const footerRows = this._getRenderedRows(this._footerRowOutlet); const tableElement = this._elementRef.nativeElement; // Hide the tfoot element if there are no footer rows. This is necessary to satisfy // overzealous a11y checkers that fail because the `ro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateStickyColumnStyles() {\n const headerRows = this._getRenderedRows(this._headerRowOutlet);\n const dataRows = this._getRenderedRows(this._rowOutlet);\n const footerRows = this._getRenderedRows(this._footerRowOutlet);\n // Clear the left and right positioning from all columns in the...
[ "0.7170957", "0.70599866", "0.7015935", "0.70000666", "0.6263207", "0.58897734", "0.58296645", "0.5800765", "0.5779871", "0.5746239", "0.56994504", "0.5687835", "0.5679049", "0.56742215", "0.5666458", "0.562759", "0.56116265", "0.56098944", "0.55601907", "0.5536315", "0.55272...
0.7238976
1
Updates the column sticky styles. First resets all applied styles with respect to the cells sticking to the left and right. Then sticky styles are added for the left and right according to the column definitions for each cell in each row. This is automatically called when the data source provides a new set of data or w...
updateStickyColumnStyles() { const headerRows = this._getRenderedRows(this._headerRowOutlet); const dataRows = this._getRenderedRows(this._rowOutlet); const footerRows = this._getRenderedRows(this._footerRowOutlet); // For tables not using a fixed layout, the column widths may change whe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateStickyColumnStyles() {\n const headerRows = this._getRenderedRows(this._headerRowOutlet);\n const dataRows = this._getRenderedRows(this._rowOutlet);\n const footerRows = this._getRenderedRows(this._footerRowOutlet);\n // Clear the left and right positioning from all columns in the...
[ "0.85730135", "0.708377", "0.69024676", "0.6641119", "0.65401626", "0.6442425", "0.6234803", "0.6068729", "0.60185784", "0.6003375", "0.5898185", "0.582531", "0.57753277", "0.57587296", "0.5713915", "0.56997794", "0.5606716", "0.54865515", "0.5439702", "0.5398834", "0.5391649...
0.85767084
0
Get the list of RenderRow objects to render according to the current list of data and defined row definitions. If the previous list already contained a particular pair, it should be reused so that the differ equates their references.
_getAllRenderRows() { const renderRows = []; // Store the cache and create a new one. Any re-used RenderRow objects will be moved into the // new cache while unused ones can be picked up by garbage collection. const prevCachedRenderRows = this._cachedRenderRowsMap; this._cachedRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getRenderRowsForData(data, dataIndex, cache) {\n const rowDefs = this._getRowDefs(data, dataIndex);\n return rowDefs.map(rowDef => {\n const cachedRenderRows = (cache && cache.has(rowDef)) ? cache.get(rowDef) : [];\n if (cachedRenderRows.length) {\n const dataRow...
[ "0.62011343", "0.62011343", "0.5795143", "0.5677698", "0.5677698", "0.5580028", "0.549878", "0.549878", "0.54802006", "0.5472039", "0.534939", "0.53058535", "0.527091", "0.52374715", "0.5153438", "0.51515776", "0.51204896", "0.51032114", "0.5087917", "0.5082681", "0.5073147",...
0.6527766
1
Update the list of all available row definitions that can be used.
_cacheRowDefs() { this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs); this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs); this._rowDefs = mergeArrayAndSet(this._getOwnDefs(th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateTable() {\n this.grid._tableRowDef.when = !!this._enabled ? IS_NOT_INFINITE_VIRTUAL_ROW : undefined;\n this.setupInfiniteVirtualRow();\n // Once we changed the `when` predicate on the `CdkRowDef` we must:\n // 1. Update the row cache (property `rowDefs`) to reflect the new chang...
[ "0.6598803", "0.59818286", "0.5940495", "0.5854366", "0.56659395", "0.56565076", "0.56523126", "0.5650311", "0.5650311", "0.56093603", "0.55438834", "0.5479239", "0.5406315", "0.53894055", "0.53894055", "0.5370519", "0.5370352", "0.53333855", "0.53333855", "0.53333855", "0.53...
0.7047784
1
Check if the header, data, or footer rows have changed what columns they want to display or whether the sticky states have changed for the header or footer. If there is a diff, then rerender that section.
_renderUpdatedColumns() { const columnsDiffReducer = (acc, def) => acc || !!def.getColumnsDiff(); // Force re-render data rows if the list of column definitions have changed. const dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false); if (dataColumnsChanged) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_checkStickyStates() {\n const stickyCheckReducer = (acc, d) => {\n return acc || d.hasStickyChanged();\n };\n // Note that the check needs to occur for every definition since it notifies the definition\n // that it can reset its dirty state. Using another operator like `some...
[ "0.650641", "0.6499117", "0.61157525", "0.5996817", "0.59459376", "0.5636071", "0.55928963", "0.55761474", "0.55732816", "0.55732816", "0.5539559", "0.55248785", "0.55248785", "0.5499776", "0.5499235", "0.5499235", "0.5492757", "0.54881257", "0.54661185", "0.54612195", "0.542...
0.7460505
1
Switch to the provided data source by resetting the data and unsubscribing from the current render change subscription if one exists. If the data source is null, interpret this by clearing the row outlet. Otherwise start listening for new data.
_switchDataSource(dataSource) { this._data = []; if ((0,_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_1__.isDataSource)(this.dataSource)) { this.dataSource.disconnect(this); } // Stop listening for data from the previous data source. if (this._renderChangeSubscrip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_switchDataSource(dataSource) {\n this._data = [];\n if (Object(_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__[\"isDataSource\"])(this.dataSource)) {\n this.dataSource.disconnect(this);\n }\n // Stop listening for data from the previous data source.\n if (this._...
[ "0.73451823", "0.6230606", "0.61987823", "0.56290686", "0.55057365", "0.5496249", "0.5496249", "0.5496249", "0.5496249", "0.5459918", "0.5459918", "0.5413462", "0.5338842", "0.5313051", "0.5261577", "0.524899", "0.5217238", "0.5175106", "0.5160366", "0.513902", "0.5136066", ...
0.7319493
1
Gets the list of rows that have been rendered in the row outlet.
_getRenderedRows(rowOutlet) { const renderedRows = []; for (let i = 0; i < rowOutlet.viewContainer.length; i++) { const viewRef = rowOutlet.viewContainer.get(i); renderedRows.push(viewRef.rootNodes[0]); } return renderedRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getRows() {\n return this._rows.slice();\n }", "get rows() {}", "getRows(){\n \treturn this.rows;\n }", "getRows(){\n return this.rows;\n }", "_getRowsArray() {\n return this._rows instanceof QueryList ? this._rows.toArray() : this._rows;\n }", "async function getTable...
[ "0.7130028", "0.6854667", "0.6603585", "0.65635717", "0.64423525", "0.6422455", "0.6349067", "0.62918156", "0.6276451", "0.6184221", "0.6025931", "0.6025931", "0.59428376", "0.5884346", "0.5868479", "0.5792058", "0.57631713", "0.5714397", "0.569356", "0.56893814", "0.56829125...
0.7358767
1
Get the matching row definitions that should be used for this row data. If there is only one row definition, it is returned. Otherwise, find the row definitions that has a when predicate that returns true with the data. If none return true, return the default row definition.
_getRowDefs(data, dataIndex) { if (this._rowDefs.length == 1) { return [this._rowDefs[0]]; } let rowDefs = []; if (this.multiTemplateDataRows) { rowDefs = this._rowDefs.filter(def => !def.when || def.when(dataIndex, data)); } else { let...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_cacheRowDefs() {\n this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs);\n this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs);\n this._rowDefs = mergeArrayAndSet(this._getOw...
[ "0.58589333", "0.58589333", "0.5382319", "0.5382319", "0.4354403", "0.42876747", "0.41798478", "0.41792905", "0.41477472", "0.41100052", "0.4059559", "0.40556654", "0.4024169", "0.40056247", "0.40056247", "0.40056247", "0.40056247", "0.40056247", "0.40056247", "0.39797002", "...
0.616431
1
Updates the indexrelated context for each row to reflect any changes in the index of the rows, e.g. first/last/even/odd.
_updateRowIndexContext() { const viewContainer = this._rowOutlet.viewContainer; for (let renderIndex = 0, count = viewContainer.length; renderIndex < count; renderIndex++) { const viewRef = viewContainer.get(renderIndex); const context = viewRef.context; context.count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "updateIndex(newRow, newCol) {\r\n this.row = newRow;\r\n this.col = newCol;\r\n }", "_updateComputedContextProperties(context) {\n context.first = context.index === 0;\n context.last = context.index === context.count - 1;\n context.even = context.index % 2 === 0;\n context.odd ...
[ "0.619421", "0.6145572", "0.6145572", "0.6145572", "0.6145572", "0.6145572", "0.60046184", "0.5916072", "0.5877153", "0.58142203", "0.58142203", "0.58142203", "0.58142203", "0.58016104", "0.5787457", "0.575334", "0.56871325", "0.5674351", "0.5541677", "0.55122226", "0.5511146...
0.8116732
1
Adds native table sections (e.g. tbody) and moves the row outlets into them.
_applyNativeTableSections() { const documentFragment = this._document.createDocumentFragment(); const sections = [ { tag: 'thead', outlets: [this._headerRowOutlet] }, { tag: 'tbody', outlets: [this._rowOutlet, this._noDataRowOutlet] }, { tag: 'tfoot', outlets: [this._...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prepareLeaseTabRows() {\n const footerButtonsCell1 = document.createElement('td');\n footerButtonsCell1.colSpan = framework.activeTab === ArmoryTab.TAB_ON_LEASE ? 7 : 6;\n const footerButtonsCell2 = document.createElement('td');\n\n const footer = document.createElement('tr');\n footer.appe...
[ "0.6050741", "0.5932802", "0.58079666", "0.5791373", "0.5742821", "0.568338", "0.5672241", "0.56623995", "0.56548446", "0.56444097", "0.5628797", "0.5628797", "0.5628797", "0.56248695", "0.5623591", "0.55998707", "0.55914694", "0.55855525", "0.5578604", "0.55762094", "0.55662...
0.7535012
1
Forces a rerender of the data rows. Should be called in cases where there has been an input change that affects the evaluation of which rows should be rendered, e.g. toggling `multiTemplateDataRows` or adding/removing row definitions.
_forceRenderDataRows() { this._dataDiffer.diff([]); this._rowOutlet.viewContainer.clear(); this.renderRows(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "renderRows() {\n this._renderRows = this._getAllRenderRows();\n const changes = this._dataDiffer.diff(this._renderRows);\n if (!changes) {\n this._updateNoDataRow();\n return;\n }\n const viewContainer = this._rowOutlet.viewContainer;\n this._viewRepe...
[ "0.76276535", "0.72736585", "0.6665221", "0.65404713", "0.65384245", "0.6457623", "0.6393955", "0.63870144", "0.633733", "0.62334734", "0.6233106", "0.6214891", "0.6210039", "0.6199052", "0.6193774", "0.6168872", "0.6129461", "0.6127629", "0.6126258", "0.6090344", "0.6088041"...
0.7733162
1
Checks if there has been a change in sticky states since last check and applies the correct sticky styles. Since checking resets the "dirty" state, this should only be performed once during a change detection and after the inputs are settled (after content check).
_checkStickyStates() { const stickyCheckReducer = (acc, d) => { return acc || d.hasStickyChanged(); }; // Note that the check needs to occur for every definition since it notifies the definition // that it can reset its dirty state. Using another operator like `some` may shor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_checkStickyStates() {\n const stickyCheckReducer = (acc, d) => {\n return acc || d.hasStickyChanged();\n };\n // Note that the check needs to occur for every definition since it notifies the definition\n // that it can reset its dirty state. Using another operator like `some...
[ "0.73177236", "0.6701537", "0.65927374", "0.62037414", "0.6186941", "0.6186941", "0.60511243", "0.6024641", "0.599938", "0.59885585", "0.59885585", "0.59591323", "0.5934615", "0.590978", "0.5894283", "0.5853939", "0.5738335", "0.5722038", "0.5711195", "0.5643236", "0.56358236...
0.7437764
0
Creates the sticky styler that will be used for sticky rows and columns. Listens for directionality changes and provides the latest direction to the styler. Reapplies column stickiness when directionality changes.
_setupStickyStyler() { const direction = this._dir ? this._dir.value : 'ltr'; this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement, this._stickyPositioningListener); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_setupStickyStyler() {\n const direction = this._dir ? this._dir.value : 'ltr';\n this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement);\n (this._dir ? this._dir...
[ "0.7305649", "0.6261464", "0.6218247", "0.5990708", "0.59765", "0.5884982", "0.56593335", "0.5413174", "0.53687143", "0.53631616", "0.5356535", "0.53493124", "0.5340009", "0.5340009", "0.5265012", "0.5243039", "0.522828", "0.52057", "0.52049553", "0.5149448", "0.50947875", ...
0.74278206
0
Creates or removes the no data row, depending on whether any data is being shown.
_updateNoDataRow() { const noDataRow = this._customNoDataRow || this._noDataRow; if (noDataRow) { const shouldShow = this._rowOutlet.viewContainer.length === 0; if (shouldShow !== this._isShowingNoDataRow) { const container = this._noDataRowOutlet.viewContainer; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_updateNoDataRow() {\n if (this._noDataRow) {\n const shouldShow = this._rowOutlet.viewContainer.length === 0;\n if (shouldShow !== this._isShowingNoDataRow) {\n const container = this._noDataRowOutlet.viewContainer;\n shouldShow ? container.createEmbedded...
[ "0.8208446", "0.65114975", "0.64060795", "0.6388171", "0.6388171", "0.62930626", "0.6106194", "0.6106194", "0.6076055", "0.6013354", "0.6011708", "0.597645", "0.5976236", "0.5952047", "0.5892665", "0.588056", "0.588056", "0.5810407", "0.57772154", "0.57762605", "0.5775967", ...
0.81349117
1
Utility function that gets a merged list of the entries in an array and values of a Set.
function mergeArrayAndSet(array, set) { return array.concat(Array.from(set)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array(arr){\n return Array.from(new Set(arr))\n}", "unionArr(otherSet) {\n let results = this.items.values();\n \n for (var v in OtherSet) {\n if(!this.items.has(k)) {\n results.push(k);\n }\n }\n return results;\n }", "union(set) {\n const newSet = new Set();\n ...
[ "0.68857706", "0.6655683", "0.66135997", "0.66135997", "0.66135997", "0.66135997", "0.66135997", "0.6579067", "0.6579067", "0.6579067", "0.6579067", "0.6579067", "0.6579067", "0.6579067", "0.6579067", "0.65325505", "0.644996", "0.64120215", "0.6401248", "0.6386807", "0.627347...
0.7355734
1
Creates a default header text. Use the options' header text transformation function if one has been provided. Otherwise simply capitalize the column name.
_createDefaultHeaderText() { const name = this.name; if (!name && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw getTableTextColumnMissingNameError(); } if (this._options && this._options.defaultHeaderTextTransform) { return this._options.defaultHeaderTe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert_option_report_table_header(table)\n {\n var header = new_row(table, -1, [\n \"Outcome\",\n \"Odds\",\n \"My wagers\",\n \"Payout\",\n \"Scenario P/L\"\n ]);\n\n header[1].style.textAlign = \"left\";\n }", "g...
[ "0.6474919", "0.6362114", "0.6219045", "0.60975754", "0.60394704", "0.60306585", "0.60202456", "0.5952688", "0.58944166", "0.58873993", "0.58873993", "0.58873993", "0.58873993", "0.58873993", "0.58871394", "0.58871394", "0.58570874", "0.58533347", "0.58533347", "0.58533347", ...
0.7968372
1
Synchronizes the column definition name with the text column name.
_syncColumnDefName() { if (this.columnDef) { this.columnDef.name = this.name; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setColumnText(thisColumn, text) {\n if (window.location.href.includes(\"settings\")) {\n // get columndata and change to json format\n let column = localStorage.getItem(thisColumn);\n column = JSON.parse(column);\n // set columnstatus to this status\n column.columnText = text;\n // conv...
[ "0.6047277", "0.5654568", "0.5654568", "0.56128216", "0.5575998", "0.54959047", "0.5431337", "0.5382217", "0.5299203", "0.52558434", "0.52550155", "0.52550155", "0.51965857", "0.51827747", "0.51172966", "0.51172966", "0.503105", "0.50083834", "0.4971655", "0.49505", "0.493230...
0.7875827
1
Checks whether the material version matches the cdk version
_checkCdkVersionMatch() { const isEnabled = this._checksAreEnabled() && (this._sanityChecks === true || this._sanityChecks.version); if (isEnabled && VERSION.full !== _angular_cdk__WEBPACK_IMPORTED_MODULE_1__.VERSION.full) { console.warn('The Angular Material version (' + VERSION...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_checkCdkVersionMatch() {\n const isEnabled = this._checksAreEnabled() &&\n (this._sanityChecks === true || this._sanityChecks.version);\n if (isEnabled && VERSION$1.full !== _angular_cdk__WEBPACK_IMPORTED_MODULE_3__[\"VERSION\"].full) {\n console.warn('The Angular Material vers...
[ "0.7887001", "0.7887001", "0.7887001", "0.650574", "0.62852067", "0.61841726", "0.60811377", "0.60180163", "0.59604025", "0.56880015", "0.5673941", "0.564947", "0.5648382", "0.5588651", "0.55849844", "0.5551224", "0.5482439", "0.54747754", "0.5466994", "0.546624", "0.5454566"...
0.793053
0
Updates the error state based on the provided error state matcher.
updateErrorState() { const oldState = this.errorState; const parent = this._parentFormGroup || this._parentForm; const matcher = this.errorStateMatcher || this._defaultErrorStateMatcher; const control = this.ngControl ? this.ngControl.control : null; const new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mutateErrorState(fieldName, value) {\r\n const errors = this.state.errors;\r\n errors[fieldName] = value;\r\n this.setState(Object.assign(this.state, { errors: errors }));\r\n }", "[types.UPDATE_ERR](state, payload) {\n if (payload) {\n state.lastErrorCode = payload.errCode;\n state.lastEr...
[ "0.6263408", "0.6165141", "0.59974927", "0.5603652", "0.55848634", "0.5580003", "0.5532521", "0.55018777", "0.55000705", "0.5448449", "0.52900106", "0.5273176", "0.52667797", "0.52163", "0.52111626", "0.5189826", "0.518913", "0.51786613", "0.51729715", "0.51712155", "0.516600...
0.7247109
0
Fades out all currently showing nonpersistent ripple elements.
fadeOutAllNonPersistent() { this._rippleRenderer.fadeOutAllNonPersistent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fadeOutAll() {\n this._rippleRenderer.fadeOutAll();\n }", "fadeOutAll() {\n this._rippleRenderer.fadeOutAll();\n }", "fadeOutAll() {\n this._rippleRenderer.fadeOutAll();\n }", "fadeOutAll() {\n this._rippleRenderer.fadeOutAll();\n }", "fadeOutAll() {\n this._a...
[ "0.78305143", "0.78305143", "0.78305143", "0.78305143", "0.78102875", "0.78102875", "0.78102875", "0.78102875", "0.75653833", "0.66069037", "0.66069037", "0.66069037", "0.66069037", "0.63632226", "0.63632226", "0.63632226", "0.63632226", "0.63112694", "0.6248866", "0.623086", ...
0.78388506
0
The formfield appearance style.
get appearance() { return this._appearance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCfFormElementStyle(node)\n{\n\tvar flashFormProperties = \"\";\n\tvar defaultProperties = \"padding:5px;\";\n\tvar curParent = node.parentNode;\n\twhile (curParent)\n\t{\n\t\tif (curParent.tagName )\n\t\t{\n\t\t\tvar tagNameLower = curParent.tagName.toLowerCase();\n\t\t\tif( tagNameLower == \"cfformgro...
[ "0.5990908", "0.5825863", "0.55862117", "0.5553398", "0.55173314", "0.5509968", "0.54846084", "0.5422424", "0.5422424", "0.5422424", "0.53201425", "0.5315064", "0.5302752", "0.5285167", "0.5243858", "0.52400506", "0.5231493", "0.52230805", "0.52230805", "0.52230805", "0.52230...
0.67219365
0
Whether the required marker should be hidden.
get hideRequiredMarker() { return this._hideRequiredMarker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isVisible() {\n return this.googleMarker_.getMap() !== null;\n }", "function hideMarker() {\n if (this.textContent === 'Restaurants') {\n if (toggle) {\n map.removeLayer(fusionMarker);\n map.removeLayer(indianMarker);\n map.removeLayer(goldenMark...
[ "0.71285295", "0.711526", "0.7033434", "0.6899078", "0.66723686", "0.6529961", "0.6491298", "0.6466863", "0.6465516", "0.6390732", "0.63783944", "0.6341639", "0.6311759", "0.6294414", "0.6276258", "0.62596315", "0.62248665", "0.6220875", "0.6219356", "0.6180987", "0.6165698",...
0.8030898
0
Whether the floating label should always float or not.
_shouldAlwaysFloat() { return this.floatLabel === 'always' && !this._showAlwaysAnimate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_canLabelFloat() { return this.floatLabel !== 'never'; }", "get IsFloating() {\n return this.getOrElse(this._isFloating, false);\n }", "get shouldLabelFloat() {\n return this._panelOpen || !this.empty || (this._focused && !!this._placeholder);\n }", "get shouldLabelFloat() {\n retu...
[ "0.8410657", "0.77601814", "0.74609715", "0.74609715", "0.71658355", "0.7139791", "0.67908996", "0.6718326", "0.6681072", "0.64186734", "0.64186734", "0.64011186", "0.6299989", "0.6263389", "0.6173247", "0.6172297", "0.6153354", "0.6153354", "0.6153354", "0.6153354", "0.61439...
0.7781128
1
Whether the label can float or not.
_canLabelFloat() { return this.floatLabel !== 'never'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get shouldLabelFloat() {\n return this._panelOpen || !this.empty || (this._focused && !!this._placeholder);\n }", "get shouldLabelFloat() {\n return this._panelOpen || !this.empty || (this._focused && !!this._placeholder);\n }", "get shouldLabelFloat() {\n return this._panelOpen || !...
[ "0.7115685", "0.7115685", "0.6868557", "0.677884", "0.66910267", "0.65550727", "0.6384723", "0.6384723", "0.6331532", "0.6273724", "0.6273077", "0.6140652", "0.61231565", "0.60959744", "0.6076446", "0.60619", "0.6036476", "0.6021284", "0.6020956", "0.59902865", "0.59790283", ...
0.8370372
0
Text for the form field hint.
get hintLabel() { return this._hintLabel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get hint() {\n if (!this.showHint) {\n return '';\n }\n if (this._hint) {\n return this._hint;\n }\n return '';\n }", "showHint(e, message) {\n const parent = this.form.querySelector(`.field-${e}`);\n\n const hint = parent.nextElementSibling;\n\n ...
[ "0.7724145", "0.6795544", "0.6680291", "0.630613", "0.630613", "0.6297528", "0.62739176", "0.62401253", "0.6219763", "0.611924", "0.6023129", "0.60188967", "0.58397114", "0.58306193", "0.5808586", "0.5729382", "0.5724587", "0.57135075", "0.5707625", "0.5700007", "0.568327", ...
0.7210378
1
Whether the label should always float, never float or float as the user types. Note: only the legacy appearance supports the `never` option. `never` was originally added as a way to make the floating label emulate the behavior of a standard input placeholder. However the form field now supports both floating labels and...
get floatLabel() { return this.appearance !== 'legacy' && this._floatLabel === 'never' ? 'auto' : this._floatLabel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_canLabelFloat() { return this.floatLabel !== 'never'; }", "_getDefaultFloatLabelState() {\n return (this._defaults && this._defaults.floatLabel) || 'auto';\n }", "_shouldAlwaysFloat() {\n return this.floatLabel === 'always' && !this._showAlwaysAnimate;\n }", "get shouldLabelFloat() {\n ...
[ "0.7807189", "0.6620404", "0.658994", "0.6583073", "0.6583073", "0.6462089", "0.6271777", "0.60393655", "0.5717195", "0.5565024", "0.5535064", "0.54665023", "0.5359957", "0.53538203", "0.5172127", "0.5010272", "0.49976414", "0.49812979", "0.4968663", "0.49473643", "0.49055338...
0.6968179
1
Gets the id of the label element. If no label is present, returns `null`.
getLabelId() { return this._hasFloatingLabel() ? this._labelId : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getLabelId() {\n var _a;\n return ((_a = this._parentFormField) === null || _a === void 0 ? void 0 : _a.getLabelId()) || '';\n }", "function getLabel(idLabel) {\n\t\tvar retorno = null;\n\t\tvar fields = document.getElementsByTagName(\"label\");\n\t\tfor (var i = 0; i <= fields.length - 1; i++)...
[ "0.76855326", "0.73127145", "0.7247282", "0.6420535", "0.6319099", "0.6312738", "0.6262477", "0.62442863", "0.62173396", "0.6206272", "0.61999893", "0.61999893", "0.61393946", "0.6119154", "0.6119154", "0.61059505", "0.6049645", "0.60481685", "0.60481626", "0.6047193", "0.604...
0.7822542
0
Determines whether a class from the NgControl should be forwarded to the host element.
_shouldForward(prop) { const ngControl = this._control ? this._control.ngControl : null; return ngControl && ngControl[prop]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasClass(elm, cls) {\n\t var classes = elm.className.split(' ');\n\t for (var i = 0; i < classes.length; i++) {\n\t if (classes[i].toLowerCase() === cls.toLowerCase()) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t}", "function hasClass(elm, cls) {\n var classes = elm.className.spl...
[ "0.5233496", "0.5209721", "0.5182799", "0.51016766", "0.5096274", "0.5092403", "0.5091281", "0.50542825", "0.50448316", "0.5044543", "0.50280756", "0.5016492", "0.5009163", "0.4997134", "0.49919763", "0.49872544", "0.49600884", "0.49511072", "0.49312484", "0.491853", "0.48729...
0.6687921
0
Ensure that there is only one placeholder (either `placeholder` attribute on the child control or child element with the `matplaceholder` directive).
_validatePlaceholders() { if (this._control.placeholder && this._placeholderChild && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw getMatFormFieldPlaceholderConflictError(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_dirtyCheckPlaceholder() {\n var _a, _b;\n // If we're hiding the native placeholder, it should also be cleared from the DOM, otherwise\n // screen readers will read it out twice: once from the label and once from the attribute.\n // TODO: can be removed once we get rid of the `legacy` ...
[ "0.6948332", "0.6264432", "0.6208377", "0.6208377", "0.60777575", "0.6074398", "0.60659367", "0.5916296", "0.58547395", "0.5850254", "0.58439004", "0.5790008", "0.57893854", "0.57853", "0.5741029", "0.5712614", "0.5680239", "0.5680239", "0.5680239", "0.5680239", "0.5680239", ...
0.7276779
0
Does any extra processing that is required when handling the hints.
_processHints() { this._validateHints(); this._syncDescribedByIds(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "process() {\n var self = this;\n for (var i = 0; i < this.hints.length; i++) {\n try {\n this.hints[i].regex = new RegExp(this.hints[i].regex);\n } catch (e) {\n dragonFly.showStatus('danger', 'Invalid hint regex: ' + escapeHtml(this.hints[i].regex)...
[ "0.6246206", "0.6149737", "0.59203297", "0.5589843", "0.55318904", "0.5447831", "0.5442787", "0.54150414", "0.5351243", "0.53252804", "0.5323629", "0.52997077", "0.52945876", "0.52707976", "0.52475464", "0.52141273", "0.5167207", "0.5160063", "0.5156079", "0.5134166", "0.5096...
0.7555566
0
Gets the default float label state.
_getDefaultFloatLabelState() { return (this._defaults && this._defaults.floatLabel) || 'auto'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get floatLabel() {\n return this.appearance !== 'legacy' && this._floatLabel === 'never' ? 'auto' : this._floatLabel;\n }", "_canLabelFloat() { return this.floatLabel !== 'never'; }", "function getDefaultTextOpacity() {\n if (allVisible) {\n // All labels are visible if selected by the user...
[ "0.7250611", "0.6429472", "0.5690139", "0.5647275", "0.5531559", "0.55115175", "0.54439086", "0.54305965", "0.5419016", "0.5415883", "0.54143924", "0.5412814", "0.5406674", "0.5378066", "0.5331771", "0.5331771", "0.5329963", "0.52991444", "0.52326864", "0.520783", "0.51982015...
0.87072086
0
Sets the list of element IDs that describe the child control. This allows the control to update its `ariadescribedby` attribute accordingly.
_syncDescribedByIds() { if (this._control) { let ids = []; // TODO(wagnermaciel): Remove the type check when we find the root cause of this bug. if (this._control.userAriaDescribedBy && typeof this._control.userAriaDescribedBy === 'string') { i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setDescribedByIds(ids) {\n if (ids.length) {\n this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));\n }\n else {\n this._elementRef.nativeElement.removeAttribute('aria-describedby');\n }\n }", "setDescribedByIds(ids) {\n this....
[ "0.7306896", "0.6034664", "0.6034664", "0.6034664", "0.57618505", "0.57141745", "0.5646713", "0.5646713", "0.5646713", "0.5646713", "0.5646713", "0.55941737", "0.5448596", "0.5355782", "0.5278497", "0.5161531", "0.5152797", "0.51147413", "0.5112113", "0.51031274", "0.5056115"...
0.63958526
1
Throws an error if the form field's control is missing.
_validateControlChild() { if (!this._control && (typeof ngDevMode === 'undefined' || ngDevMode)) { throw getMatFormFieldMissingControlError(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "validate(control) {\n return this.required ? Validators.required(control) : null;\n }", "validate(control) {\n return this.required ? Validators.required(control) : null;\n }", "validate(control) {\n return this.required ? Validators.required(control) : null;\n }", "validate(con...
[ "0.60946244", "0.60946244", "0.60946244", "0.60946244", "0.598369", "0.58847356", "0.58646894", "0.57814986", "0.5776633", "0.5760133", "0.5760133", "0.5760133", "0.5760133", "0.5750101", "0.56640846", "0.56635886", "0.5661243", "0.5646794", "0.5634761", "0.5634761", "0.56347...
0.6932015
0
Updates the width and position of the gap in the outline. Only relevant for the outline appearance.
updateOutlineGap() { const labelEl = this._label ? this._label.nativeElement : null; if (this.appearance !== 'outline' || !labelEl || !labelEl.children.length || !labelEl.textContent.trim()) { return; } if (!this._platform.isBrowser) { // getBoundingCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function outline() {\n moveY = parseInt($(this).css(\"top\").slice(0, -2));\n moveX = parseInt($(this).css(\"left\").slice(0, -2));\n if(\n (moveX == gapX) && (moveY == (gapY - 100)) ||\n (moveX == (gapX - 100)) && (moveY == gapY) ||\n (moveX == (gapX + 100)) && (moveY == gapY) ||\n (moveX == gapX) ...
[ "0.6184939", "0.57844937", "0.57579404", "0.56142014", "0.55408466", "0.54269636", "0.54250836", "0.5408991", "0.540501", "0.54004574", "0.5375683", "0.53748894", "0.5374858", "0.53444505", "0.530525", "0.529753", "0.52892643", "0.5288054", "0.52833796", "0.5278425", "0.52440...
0.71855277
0
Gets the start end of the rect considering the current directionality.
_getStartEnd(rect) { return (this._dir && this._dir.value === 'rtl') ? rect.right : rect.left; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getEndPosition() {\n const radius = (this.tunnelWidth - 1) / 2\n if (this.direction === 'NORTH') {\n return { x: this.x + radius, y: this.y }\n } else if (this.direction === 'SOUTH') {\n return { x: this.x + radius, y: (this.y + this.height) - 1 }\n } else if (this.direction === 'EAST') {\n ...
[ "0.65662086", "0.6532523", "0.6476394", "0.6253217", "0.5961747", "0.5892038", "0.5838191", "0.57814646", "0.577613", "0.57235646", "0.5666382", "0.5642921", "0.55902916", "0.55883443", "0.55521417", "0.55521417", "0.5532039", "0.5519607", "0.55139005", "0.550836", "0.5502204...
0.7952529
0
Checks whether the form field is attached to the DOM.
_isAttachedToDOM() { const element = this._elementRef.nativeElement; if (element.getRootNode) { const rootNode = element.getRootNode(); // If the element is inside the DOM the root node will be either the document // or the closest shadow root, otherwise it'll be the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async isFieldReady(){\n let isPresent = await this.stringField.isPresent();\n let isDisplayed = await this.stringField.isDisplayed();\n return isPresent && isDisplayed;\n }", "function formFieldHasInput(fieldElement)\n{\t\n\tif(fieldElement.value == null || trim(fieldElement.value) \n\t\t== \"\"){\n\t\...
[ "0.6373404", "0.61860275", "0.6181726", "0.61780125", "0.61389637", "0.6046464", "0.6002017", "0.594801", "0.594801", "0.59278286", "0.5906202", "0.58758366", "0.5863071", "0.58593845", "0.58400476", "0.58376116", "0.5819819", "0.57696915", "0.57622373", "0.5753155", "0.57483...
0.6254851
1
The zerobased page index of the displayed list of items. Defaulted to 0.
get pageIndex() { return this._pageIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get itemIndexForLimitTop() {\n return this.isFirst ? 0 : this.offsetItems - 1;\n }", "pageIndex(itemIndex) {\n if (itemIndex > this.itemCount() - 1 || itemIndex < 0) return -1;\n return Math.floor(itemIndex / this.itemsPerPage);\n }", "get pageIndex() {\n return this._pageIndex;\n }"...
[ "0.68712246", "0.67480487", "0.6673422", "0.66063255", "0.6467484", "0.6429079", "0.63974345", "0.6357644", "0.6351262", "0.6329877", "0.63175577", "0.63043505", "0.62945926", "0.623906", "0.62325615", "0.6162617", "0.61523026", "0.61249226", "0.6031254", "0.6021363", "0.5972...
0.6955237
1
Whether to hide the page size selection UI from the user.
get hidePageSize() { return this._hidePageSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get hidePageSize() {\n return this._hidePageSize;\n }", "function showHidePages() {\n $.each(pageArray, function (index, value) {\n if (index != visiblePageIndex) {\n value.hide();\n } else {\n value.show();\n }\n });\n\n ...
[ "0.65922654", "0.6101728", "0.5916039", "0.58475155", "0.58199066", "0.58005434", "0.5784937", "0.57640785", "0.5748258", "0.57293767", "0.5715892", "0.56906956", "0.56518877", "0.56312394", "0.5619479", "0.56037277", "0.5567767", "0.5541294", "0.5529983", "0.552535", "0.5506...
0.6731942
1
Whether to show the first/last buttons UI to the user.
get showFirstLastButtons() { return this._showFirstLastButtons; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "showControls() {\n this.scrollCurrentPosition > 0\n ? this.showControlPrevious(true)\n : this.showControlPrevious(false);\n this.showControlNext(true);\n }", "function checkVisibleBtns() {\n if (currPageNum == maxPageNum && nextBtnOn) {document.querySelector('#nextbtn').style.display = \"none...
[ "0.70199555", "0.65191066", "0.6407616", "0.63843346", "0.63267905", "0.6191112", "0.61699736", "0.6161602", "0.61590075", "0.6129737", "0.61243683", "0.60924315", "0.60702527", "0.6028024", "0.6028024", "0.59744686", "0.5962411", "0.59583426", "0.5928381", "0.5915312", "0.59...
0.74803835
1
Move to the first page if not already there.
firstPage() { // hasPreviousPage being false implies at the start if (!this.hasPreviousPage()) { return; } const previousPageIndex = this.pageIndex; this.pageIndex = 0; this._emitPageEvent(previousPageIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleFirstPage() {\n if (this.firstPage() === this.currentPage()) return;\n this.handlePageChanged(this.firstPage());\n }", "setFirstPage() {\n this.setPage(1);\n }", "function firstPage() {\n currentPage = 1;\n loadList();\n}", "function firstPage() {\r\n currentPage = 1;\r\n ...
[ "0.7210404", "0.6876959", "0.67581606", "0.66123843", "0.65737915", "0.65595984", "0.64746946", "0.63953394", "0.63785857", "0.6355861", "0.6329789", "0.6316737", "0.6255445", "0.6199458", "0.6155387", "0.6128957", "0.60789824", "0.60732955", "0.6064216", "0.60616755", "0.602...
0.7516707
1
Move to the last page if not already there.
lastPage() { // hasNextPage being false implies at the end if (!this.hasNextPage()) { return; } const previousPageIndex = this.pageIndex; this.pageIndex = this.getNumberOfPages() - 1; this._emitPageEvent(previousPageIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "handleLastPage() {\n if (this.lastPage() === this.currentPage()) return;\n this.handlePageChanged(this.lastPage());\n }", "function moveSlideOnLastPage(e) {\n e = e || window.event;\n var delta = e.deltaY || e.detail || e.wheelDelta;\n var direction = \"up\";\n\n if (...
[ "0.68681026", "0.6866939", "0.68622005", "0.68226314", "0.66804695", "0.6593369", "0.6584835", "0.65088886", "0.6454926", "0.64435244", "0.6378914", "0.63274246", "0.623838", "0.61884826", "0.61878467", "0.6182", "0.6132726", "0.6070186", "0.6066582", "0.6059985", "0.6038517"...
0.71853244
1
Changes the page size so that the first item displayed on the page will still be displayed using the new page size. For example, if the page size is 10 and on the second page (items indexed 1019) then switching so that the page size is 5 will set the third page as the current page so that the 10th item will still be di...
_changePageSize(pageSize) { // Current page needs to be updated to reflect the new page size. Navigate to the page // containing the previous page's first item. const startIndex = this.pageIndex * this.pageSize; const previousPageIndex = this.pageIndex; this.pageIndex = Math.floo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ChangePageSize(data) {\n // The page size is already changed by KO. Since page size is changed hence user should be taken to first page.\n GotoFirstPage(data);\n}", "setPageSize(size){\n }", "function switchPageNumber(newPage)\r\n{\r\n\tcurrentPage = newPage;\r\n\trenderCatalogProducts();\r\n...
[ "0.7339743", "0.73184156", "0.68063456", "0.6783275", "0.673231", "0.6665792", "0.6665792", "0.66549826", "0.66301006", "0.65608585", "0.6491848", "0.6454375", "0.6454375", "0.64367026", "0.64166045", "0.6370423", "0.6370423", "0.6362106", "0.6354536", "0.6342982", "0.6323231...
0.7382412
1
Updates the list of page size options to display to the user. Includes making sure that the page size is an option and that the list is sorted.
_updateDisplayedPageSizeOptions() { if (!this._initialized) { return; } // If no page size is provided, use the first page size option or the default page size. if (!this.pageSize) { this._pageSize = this.pageSizeOptions.length != 0 ? this.pageSize...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatePagination () {\n updatePagingWidth();\n ctrl.maxTabWidth = getMaxTabWidth();\n ctrl.shouldPaginate = shouldPaginate();\n }", "function updatePagination () {\n updatePagingWidth();\n ctrl.maxTabWidth = getMaxTabWidth();\n ctrl.shouldPaginate = shouldPaginate();\n }", "functio...
[ "0.63915217", "0.63915217", "0.63915217", "0.63915217", "0.6391129", "0.6379808", "0.6359925", "0.62912315", "0.62150496", "0.5989659", "0.5965522", "0.5873581", "0.5872817", "0.58593214", "0.583543", "0.58219624", "0.5811281", "0.57371086", "0.57371086", "0.5678297", "0.5656...
0.7517822
1
Handles keyboard events while the select is closed.
_handleClosedKeydown(event) { const keyCode = event.keyCode; const isArrowKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_16__.DOWN_ARROW || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_16__.UP_ARROW || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_handleClosedKeydown(event) {\n const keyCode = event.keyCode;\n const isArrowKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__[\"DOWN_ARROW\"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__[\"UP_ARROW\"] ||\n keyCode === _angular_cdk_keycodes__WEBPA...
[ "0.71960974", "0.71960974", "0.7142858", "0.6695173", "0.66216654", "0.65325785", "0.6529177", "0.65059394", "0.64700866", "0.6463581", "0.6443982", "0.6443982", "0.6442031", "0.64354575", "0.63872904", "0.63685346", "0.634389", "0.63425255", "0.6263103", "0.62100744", "0.620...
0.7251084
0
Sets up a key manager to listen to keyboard events on the overlay panel.
_initKeyManager() { this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_17__.ActiveDescendantKeyManager(this.options) .withTypeAhead(this._typeaheadDebounceInterval) .withVerticalOrientation() .withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_initKeyManager() {\n this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__[\"ActiveDescendantKeyManager\"](this.options)\n .withTypeAhead(this._typeaheadDebounceInterval)\n .withVerticalOrientation()\n .withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr'...
[ "0.70121205", "0.70121205", "0.69661784", "0.69292337", "0.68920904", "0.6800459", "0.6737897", "0.6595696", "0.65946", "0.64606035", "0.6428867", "0.6377794", "0.63431275", "0.63214964", "0.6289215", "0.62887245", "0.62843055", "0.62632173", "0.6246668", "0.6169459", "0.6140...
0.71370065
0
Drops current option subscriptions and IDs and resets from scratch.
_resetOptions() { const changedOrDestroyed = (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.merge)(this.options.changes, this._destroy); this.optionSelectionChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.takeUntil)(changedOrDestroyed)).subscribe(event => { this._onSelect(event.source, ev...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_resetOptions() {\n const changedOrDestroyed = Object(rxjs__WEBPACK_IMPORTED_MODULE_12__[\"merge\"])(this.options.changes, this._destroy);\n this.optionSelectionChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__[\"takeUntil\"])(changedOrDestroyed)).subscribe(event => {\n this...
[ "0.71403503", "0.71403503", "0.6578812", "0.65274733", "0.64798963", "0.64375436", "0.64229774", "0.6309091", "0.62653995", "0.61953217", "0.61574095", "0.6156174", "0.611537", "0.60204417", "0.60165715", "0.59970146", "0.592376", "0.59134", "0.58938813", "0.5877544", "0.5872...
0.71585125
0
Gets the arialabelledby for the select panel.
_getPanelAriaLabelledby() { var _a; if (this.ariaLabel) { return null; } const labelId = (_a = this._parentFormField) === null || _a === void 0 ? void 0 : _a.getLabelId(); const labelExpression = (labelId ? labelId + ' ' : ''); return this.ariaLabelledby ? lab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getPanelAriaLabelledby() {\n if (this.ariaLabel) {\n return null;\n }\n const labelId = this._getLabelId();\n return this.ariaLabelledby ? labelId + ' ' + this.ariaLabelledby : labelId;\n }", "_getTriggerAriaLabelledby() {\n var _a;\n if (this.ariaLabel) {...
[ "0.7034249", "0.67196363", "0.67196363", "0.6551867", "0.61669356", "0.5591964", "0.54348016", "0.5381582", "0.5314836", "0.5273167", "0.52650964", "0.5224379", "0.51711726", "0.5120273", "0.50897896", "0.50780064", "0.50773543", "0.5030201", "0.50140566", "0.5004943", "0.497...
0.7057881
1
Gets the arialabelledby of the select component trigger.
_getTriggerAriaLabelledby() { var _a; if (this.ariaLabel) { return null; } const labelId = (_a = this._parentFormField) === null || _a === void 0 ? void 0 : _a.getLabelId(); let value = (labelId ? labelId + ' ' : '') + this._valueId; if (this.ariaLabelledby) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getTriggerAriaLabelledby() {\n if (this.ariaLabel) {\n return null;\n }\n let value = this._getLabelId() + ' ' + this._valueId;\n if (this.ariaLabelledby) {\n value += ' ' + this.ariaLabelledby;\n }\n return value;\n }", "_getPanelAriaLabelledby...
[ "0.74132067", "0.6154198", "0.6154198", "0.5989853", "0.5662854", "0.53307205", "0.52799505", "0.5264876", "0.5248611", "0.5248611", "0.5248611", "0.52401745", "0.5228735", "0.521312", "0.51369894", "0.5086201", "0.5079728", "0.50417125", "0.5011031", "0.50106806", "0.4973882...
0.7429163
1
Register function to be used by the contained MatSortables. Adds the MatSortable to the collection of MatSortables.
register(sortable) { if (typeof ngDevMode === 'undefined' || ngDevMode) { if (!sortable.id) { throw getSortHeaderMissingIdError(); } if (this.sortables.has(sortable.id)) { throw getSortDuplicateSortableIdError(sortable.id); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "attach() {\n this.draggable.on('sortable:sort', this[onSortableSort]);\n this.draggable.on('sortable:sorted', this[onSortableSorted]);\n }", "function _addListeners() {\n if (_automaticSort && _currentSort && _currentSort.getEvents()) {\n MainViewManager\n .on(_currentSort...
[ "0.5970358", "0.540074", "0.52125055", "0.514684", "0.51451164", "0.49486023", "0.4895024", "0.48802683", "0.48736045", "0.4853027", "0.4840215", "0.48372936", "0.48304558", "0.48139173", "0.479637", "0.47860533", "0.4760218", "0.47212115", "0.46788108", "0.46366632", "0.4634...
0.63196623
0
Unregister function to be used by the contained MatSortables. Removes the MatSortable from the collection of contained MatSortables.
deregister(sortable) { this.sortables.delete(sortable.id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "detach() {\n this.draggable.off('sortable:sort', this[onSortableSort]);\n this.draggable.off('sortable:sorted', this[onSortableSorted]);\n }", "function _removeListeners() {\n MainViewManager.off(\".sort\");\n }", "removeAll()\n {\n this.plugins = {};\n this.sort();\n }", ...
[ "0.64033604", "0.620568", "0.5892914", "0.5450242", "0.53116995", "0.53116995", "0.53116995", "0.53116995", "0.53116995", "0.53116995", "0.5272822", "0.52411276", "0.5187822", "0.5158289", "0.5145581", "0.5145216", "0.5116603", "0.50955063", "0.50880164", "0.50427264", "0.502...
0.73300123
0
Sets the active sort id and determines the new sort direction.
sort(sortable) { if (this.active != sortable.id) { this.active = sortable.id; this.direction = sortable.start ? sortable.start : this.start; } else { this.direction = this.getNextSortDirection(sortable); } this.sortChange.emit({ active: this.ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSortDirection(dir) {\n\t\tvar tgtSelect = this.selectTarget.getElement();\n\t\tif (tgtSelect) {\n\t\t\tvar changed = false;\n\t\t\tfor( var i = 0; i < tgtSelect.options.length; i++ ) {\n\t\t\t\tif (tgtSelect.options[i].selected) {\n\t\t\t\t\tvar orderColumn = this.getTargetItem(tgtSelect.options[i].val...
[ "0.64591587", "0.6373849", "0.62491477", "0.6136291", "0.6044487", "0.599403", "0.5973868", "0.5958266", "0.5871495", "0.5842406", "0.5753723", "0.57382125", "0.57108206", "0.5706488", "0.57021177", "0.57021177", "0.5691612", "0.5680308", "0.5680308", "0.56002593", "0.5580885...
0.7057346
0
Returns the next sort direction of the active sortable, checking for potential overrides.
getNextSortDirection(sortable) { var _a, _b, _c; if (!sortable) { return ''; } // Get the sort direction cycle with the potential sortable overrides. const disableClear = (_b = (_a = sortable === null || sortable === void 0 ? void 0 : sortable.disableClear) !== null &...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nextSortDir(sortType, current) {\n if (sortType === types_1.SortType.single) {\n if (current === types_1.SortDirection.asc) {\n return types_1.SortDirection.desc;\n }\n else {\n return types_1.SortDirection.asc;\n }\n }\n else {\n if (!curr...
[ "0.7552976", "0.75525755", "0.6250063", "0.6243115", "0.6149242", "0.6148162", "0.60537356", "0.60367405", "0.58909345", "0.5865076", "0.5865076", "0.5855691", "0.5846948", "0.58432853", "0.58432853", "0.58432853", "0.58432853", "0.58432853", "0.5818552", "0.5818552", "0.5818...
0.8148738
0
Returns the sort direction cycle to use given the provided parameters of order and clear.
function getSortDirectionCycle(start, disableClear) { let sortOrder = ['asc', 'desc']; if (start == 'desc') { sortOrder.reverse(); } if (!disableClear) { sortOrder.push(''); } return sortOrder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "toggleOrder() {\n let direction;\n if (this.get('sortingDirection') === 'asc') {\n direction = 'desc';\n } else {\n direction = 'asc';\n }\n return direction;\n }", "function getSortDirection() {\n return vm.desc ? \"up\" : \"down\";\n }", "getNextSortDirection(sorta...
[ "0.63628113", "0.5904357", "0.58193356", "0.5748004", "0.56985277", "0.5550905", "0.55133575", "0.550268", "0.5488836", "0.5488836", "0.5478794", "0.5472328", "0.54598784", "0.5451861", "0.54268134", "0.54141647", "0.538438", "0.5366064", "0.5250288", "0.52445364", "0.5240245...
0.7218799
0
Sets the animation transition view state for the arrow's position and opacity. If the `disableViewStateAnimation` flag is set to true, the `fromState` will be ignored so that no animation appears.
_setAnimationTransitionState(viewState) { this._viewState = viewState || {}; // If the animation for arrow position state (opacity/translation) should be disabled, // remove the fromState so that it jumps right to the toState. if (this._disableViewStateAnimation) { this._view...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "set animationState(value) {}", "function ArrowViewStateTransition() { }", "function animateOn() {\n _baseTransition.animateOn();\n }", "function setAnimationState(state) {\n\t\t\tif (state == \"tu\") {\n\t\t\t\tplayerTank.gotoAndStop(\"tu\");\n\t\t\t}\n\t\t\telse if (state == \"tr\") {\n\t\t\t\tplaye...
[ "0.65367407", "0.6469128", "0.575158", "0.57321984", "0.5549403", "0.54930574", "0.53922576", "0.5309146", "0.5251241", "0.5074598", "0.50585234", "0.50475055", "0.49963588", "0.4962213", "0.49598253", "0.49531725", "0.49329084", "0.49317873", "0.49295917", "0.49079618", "0.4...
0.76857823
0
Whether this MatSortHeader is currently sorted in either ascending or descending order.
_isSorted() { return this._sort.active == this.id && (this._sort.direction === 'asc' || this._sort.direction === 'desc'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "isAscendingSort() {\n return !!this._getSortAscending();\n }", "isSorted() {\n return !!this.bachVizColumn.answerColumn.sort;\n }", "isSortKey() {\n return !_$2.isUndefined(this.deprecatedUtil.getSortAcending());\n }", "get sortable() {\n return !!this._sortBy;\n }", ...
[ "0.7855388", "0.7496254", "0.6875816", "0.6560006", "0.6028202", "0.59684193", "0.5850561", "0.5777161", "0.5756871", "0.5653671", "0.56154907", "0.55912906", "0.5591141", "0.5568259", "0.555878", "0.55074257", "0.5471217", "0.54526", "0.5428629", "0.5418863", "0.53965414", ...
0.7844579
1
Returns the animation state for the arrow direction (indicator and pointers).
_getArrowDirectionState() { return `${this._isSorted() ? 'active-' : ''}${this._arrowDirection}`; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function arrow_direction(arrow) {\n switch (String(arrow)) {\n case '->':\n case '→':\n case '=>':\n case '⇒':\n case '~>':\n case '↛':\n return 'right';\n case '<-':\n case '←':\n case '<=':\n case '⇐':\n ...
[ "0.69355637", "0.6813143", "0.6741542", "0.6726974", "0.6349569", "0.60769445", "0.593399", "0.59162843", "0.59162843", "0.59162843", "0.59162843", "0.59162843", "0.5905347", "0.5891976", "0.5884021", "0.5839118", "0.58001715", "0.58001715", "0.57939637", "0.5786893", "0.5728...
0.7243633
0
Returns the arrow position state (opacity, translation).
_getArrowViewState() { const fromState = this._viewState.fromState; return (fromState ? `${fromState}-to-` : '') + this._viewState.toState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getArrowDirectionState() {\n return `${this._isSorted() ? 'active-' : ''}${this._arrowDirection}`;\n }", "function ArrowViewStateTransition() { }", "function getArrowPositionStyles(offsets,placement){var _ref2;var _splitPlacement5=splitPlacement(placement),_splitPlacement6=_slicedToArray$6(_splitPla...
[ "0.68478465", "0.62988317", "0.60600513", "0.5926565", "0.5845474", "0.5817138", "0.5802853", "0.5694193", "0.5694193", "0.5689831", "0.55824196", "0.55824196", "0.55824196", "0.55824196", "0.55824196", "0.55521095", "0.5526819", "0.54855347", "0.548446", "0.5412325", "0.5404...
0.68922246
0