-- @/=[C]:-1
function toggle(...)
this._visible = x;
this.element.classList.toggle("hidden", !this._visible);
}
this._hidden = flag;
this._element.classList.toggle("hidden", this._hidden);
}
this._collapsed = flag;
this._element.classList.toggle("collapsed", this._collapsed);
}
this._element.classList.toggle("show-selector-arrows", !!this._selectorArrows);
}
let properties = this.propertiesToRender;
this.element.classList.toggle("no-properties", !properties.length);
this.element.classList.toggle("debug-style-locked", this._style.locked);
}
this._collapsed = flag || false;
this.element.classList.toggle(WI.Sidebar.CollapsedStyleClassName);
this._element.append(childElement);
this._element.classList.toggle("expanded", this._expandedSetting.value);
}
{
this._element.classList.toggle("expanded", shouldExpand);
this._expandedSetting.value = shouldExpand;
this._showGridButtonNavigationItem.activated = activated;
this._imageElement.classList.toggle("show-grid", activated);
}
this.element.classList.toggle("empty", !modifiedStyles.length);
if (!modifiedStyles.length) {
W.scopeOn('floor')
-- W.toggle('stringcourse', '/art/shapes/common/building_architect_modules/string_course/R_HS_A_SC_01_600x20.dae')
W.toggle('plinth', '/art/shapes/common/building_architect_modules/basement_plinth/SH_B_BP_01_300x50_test.dae')
-- W.toggle('stringcourse', '/art/shapes/common/building_architect_modules/string_course/R_HS_A_SC_01_600x20.dae')
W.toggle('plinth', '/art/shapes/common/building_architect_modules/basement_plinth/SH_B_BP_01_300x50_test.dae')
houseUp(desc, cedit.mesh, true)
this._element.classList.toggle("hidden", flag);
let allowed = WI.isNewTabWithTypeAllowed(tabClass.Type);
tabItemElement.classList.toggle(WI.NewTabContentView.DisabledStyleClassName, !allowed);
}
let force = this._input.value !== "";
this.element.classList.toggle(WI.GoToLineDialog.NonEmptyClassName, force);
}
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
}
this.element.classList.toggle("non-empty", this._inputElement.value !== "");
this.element.classList.toggle("has-results", this._treeOutline.children.length);
this.element.classList.toggle("non-empty", this._inputElement.value !== "");
this.element.classList.toggle("has-results", this._treeOutline.children.length);
}
if (this._previewImageElement)
this._previewImageElement.classList.toggle("show-grid", activated);
}
this._refreshButtonNavigationItem.enabled = !recordingActive;
this.element.classList.toggle("recording-active", recordingActive);
}
{
this._element.classList.toggle("selected", !!selected);
}
if (newRecord.usesActiveStartTime !== oldRecordUsesActiveStartTime)
this._element.classList.toggle("has-inactive-segment", newRecord.usesActiveStartTime);
} else
if (!firstRecord.usesActiveStartTime) {
this._element.classList.toggle("unfinished", barUnfinished);
var inactiveUnfinished = isNaN(barActiveStartTime) || barActiveStartTime >= graphCurrentTime;
this._element.classList.toggle("unfinished", inactiveUnfinished);
let showInactiveSegment = barActiveStartTime > barStartTime;
this._element.classList.toggle("has-inactive-segment", showInactiveSegment);
{
this.element.classList.toggle(WI.ActivateButtonNavigationItem.ActivatedStyleClassName, flag);
item[WI.NavigationBar.ForceHiddenSymbol] = hidden;
item.element.classList.toggle("force-hidden", hidden);
}
function C:toggle()
if editor.isWindowVisible(self.windowName) then
label = 'ui.menu.openRadialMenu.name',
onClick = "core_quickAccess.toggle()",
},
let hasFilter = typeof this._panel.filterDidChange === "function";
this.contentView.element.classList.toggle("has-filter-bar", hasFilter);
if (this._filterBar)
if (this._filterBar)
this.contentView.element.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterInProgressClassName, hasFilter && this._filterBar.hasActiveFilters());
this.contentView.element.classList.toggle("supports-new-rule", typeof this._panel.newRuleButtonClicked === "function");
this._panel.shown();
{
this._classToggleButton.classList.toggle("selected");
this._classListContainer.hidden = !this._classListContainer.hidden;
{
this.contentView.element.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterInProgressClassName, this._filterBar.hasActiveFilters());
vm.openXRtoggle = function() {
bngApi.engineLua(`extensions.render_openxr.toggle()`)
}
vm.toggleFPS = function() {
bngApi.engineLua('extensions.core_metrics.toggle()')
}
console.assert(typeof isIncomplete === "boolean");
this.element.classList.toggle("incomplete", isIncomplete);
}
console.assert(typeof isError === "boolean");
this.element.classList.toggle("error", isError);
}
if not OpenXR.getEnable() then
OpenXR.toggle()
logStatePending = true
if OpenXR.getEnable() then
OpenXR.toggle()
end
local function toggle()
if M.stateString == "disabled" then M.setStateUI("welcome")
itemElement.classList.add("item");
itemElement.classList.toggle("selected", i === this._selectedIndex);
itemElement.textContent = completions[i];
{
this.element.classList.toggle(WI.RadioButtonNavigationItem.ActiveStyleClassName, flag);
}
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
}
this._executionContextSelectorItem.element.classList.toggle("automatic-execution-context", this._shouldAutomaticallySelectExecutionContext);
this._executionContextSelectorItem.components = components;
{
this.element.classList.toggle("showing-log", WI.isShowingConsoleTab() || WI.isShowingSplitConsole());
}
let singleThreadShowing = WI.targets.length <= 1;
this._callStackTreeOutline.element.classList.toggle("single-thread", singleThreadShowing);
if (this._mainTargetTreeElement)
navigationItem.hidden = !visible;
settingsView.element.classList.toggle("hidden", !visible);
setting.addEventListener(WI.Setting.Event.Changed, () => {
reloadInspectorContainerElement.classList.toggle("hidden", Array.from(initialValues).every(([setting, initialValue]) => setting.value === initialValue));
});
toggle(value)
{
let matches = view.applyFilter(levels);
view.element.classList.toggle("filtered", !matches);
this.element.classList.toggle("no-matches", !hasMatch);
local function toggle()
if windowOpen[0] then
-- Verbose logging toggle (separate from debug UI)
local function setVerboseLogging(enabled)
this._recordingNavigationBar.element.classList.toggle("hidden", !this._canvas);
let hasRecordings = this._recording || (this._canvas && this._canvas.recordingCollection.size);
this.element.classList.toggle("has-recordings", hasRecordings);
if (!hasRecordings)
{
this._element.classList.toggle("indicating-progress", !!progress);
}
{
this._element.classList.toggle("active", !!active);
}
if (navigationItem instanceof WI.FilterBarButton)
navigationItem.toggle(false);
}
var filterBarButton = event.target;
filterBarButton.toggle();
}
let editingInstruments = this._timelineOverview.editingInstruments;
this.element.classList.toggle(WI.TimelineOverview.EditInstrumentsStyleClassName, editingInstruments);
function inspectedPage_node_toggleClass(className, flag) {
this.classList.toggle(className, flag);
}
let matchesName = this._nameElement.textContent.includes(filterText);
this._nameElement.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterMatchSectionClassName, !!matchesName);
let matchesValue = this._valueElement.textContent.includes(filterText);
this._valueElement.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.FilterMatchSectionClassName, !!matchesValue);
let matches = matchesName || matchesValue;
this._contentElement.classList.toggle(WI.GeneralStyleDetailsSidebarPanel.NoFilterMatchInPropertyClassName, !matches);
return matches;
this._element.classList.toggle(WI.GradientSliderKnob.SelectedClassName, selected);
this._element.classList.toggle("default-item-selected", this._defaultItem.selected);
}
this._element.classList.toggle("default-item-selected", this._defaultItem.selected);
}
element[propertyName] = this.displayLocationString(columnStyle, nameStyle, prefix);
element.classList.toggle(WI.SourceCodeLocation.DisplayLocationClassName, this.hasDifferentDisplayLocation());
} else if (this.hasDifferentDisplayLocation()) {
this._variablesTextEditor.style = this.nodeStyles.computedStyle;
this._variablesSection.element.classList.toggle("hidden", !this._variablesTextEditor.propertiesToRender.length);
if (section)
section.element.classList.toggle("hidden", !event.data.matches);
}
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this._breakpoint.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this._breakpoint.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, this._breakpoint.resolved && WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, this._breakpoint.resolved && WI.debuggerManager.breakpointsEnabled);
}
"actionMap": "Global",
"onDown": "ui_visibility.toggle()",
"order": 11,
"title": "ui.inputActions.debug.cycle_metrics.title",
"onDown": "extensions.core_metrics.toggle()",
"order": 1,
"title": "ui.inputActions.camera.enableHeadset.title",
"onDown": "if OpenXR then extensions.load('render_openxr') OpenXR.toggle() end",
"order": 70,
"title": "ui.inputActions.gameplay.toggleTraffic.title",
"onDown": "if gameplay_traffic then gameplay_traffic.toggle(true) end",
"order": 96,
"actionMap": "Global",
"onDown": "extensions.ui_console.toggle()",
"order": 16,
{
this._element.classList.toggle("selected", selected);
{
this._element.classList.toggle("disabled", disabled);
}
{
this._element.classList.toggle("default-tab", isDefaultTab);
}
let singleThreadShowing = WI.targets.length <= 1;
this._callStackTreeOutline.element.classList.toggle("single-thread", singleThreadShowing);
if (this._mainTargetTreeElement)
let empty = this._needleValue === null;
this.element.classList.toggle("empty", empty);
this._enabled = x;
this.element.classList.toggle(WI.TreeElementStatusButton.DisabledStyleClassName, !this._enabled);
}
this.element.classList.toggle("allows-time-range-selection", this._allowsTimeRangeSelection);
this.element.classList.toggle("selection-hidden", this.entireRangeSelected);
this.element.classList.toggle("both-handles-clamped", startTimeClamped && endTimeClamped);
this._leftSelectionHandleElement.classList.toggle("clamped", startTimeClamped);
this._leftSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionStartTime < this._startTime);
this._leftSelectionHandleElement.classList.toggle("clamped", startTimeClamped);
this._leftSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionStartTime < this._startTime);
this._leftSelectionHandleElement.title = formattedStartTimeText;
this._rightSelectionHandleElement.classList.toggle("clamped", endTimeClamped);
this._rightSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionEndTime > this._endTime);
this._rightSelectionHandleElement.classList.toggle("clamped", endTimeClamped);
this._rightSelectionHandleElement.classList.toggle("hidden", startTimeClamped && endTimeClamped && this._selectionEndTime > this._endTime);
this._rightSelectionHandleElement.title = formattedEndTimeText;
* $mdSidenav(componentId)
* .toggle()
* .then(function(){
toggle: function() {
return instance ? instance.toggle() : $q.reject(errorMsg);
},
* $scope.openLeftMenu = function() {
* $mdSidenav('left').toggle();
* };
local function toggle()
set(not get())
-- local key = daedata.ageo[val].key
U.toggle(ageopin,val)
if #ageopin > 2 then
if #ageopin > 2 then
U.toggle(ageopin,val)
end
--[[
U.toggle(apart,val)
if #apart>2 then
if #apart>2 then
U.toggle(apart,val)
end
if val then
U.toggle(apiece, val)
end
-- U.out.aset = {}
U.toggle(ageopin,val)
-- item.sel = false
if im.MenuItem1(win.windowDescription, nil, editor.isWindowVisible(win.windowName)) then
win:toggle()
end
this._element.classList.toggle("selected", !!this._selectedScopeBarItem);
this._selectElement.selectedIndex = this._scopeBarItems.indexOf(this._selectedScopeBarItem);
this._element.classList.toggle("selected", !!selectedScopeBarItem);
this._selectedScopeBarItem = selectedScopeBarItem || null;
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageDisabledStyleClassName, this.representedObject.disabled);
this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageResolvedStyleClassName, WI.debuggerManager.breakpointsEnabled);
}
this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1);
}
this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1);
this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1);
this.element.classList.toggle("frames", isRenderingFramesMode);
{
this.element.classList.toggle(WI.TimelineOverview.EditInstrumentsStyleClassName, this._editingInstruments);
this._timelineRuler.enabled = !this._editingInstruments;
-- keepInMemory allows instantenous reactivation at the expense of RAM consumption when traffic is disabled
local function toggle(keepInMemory)
if core_gamestate.state.state == 'freeroam' then
if ("ignitionLevel" in data && this.layers.bootscreen)
this.layers.bootscreen.toggle(data.ignitionLevel < 2);
this.update();
hide() {
this.toggle(false);
}
toggle(displayed) {
if (this.displayed == displayed)
this.element.classList.toggle("single-tab", !this._hasMoreThanOneNormalTab());
var hasMoreThanOneNormalTab = this._hasMoreThanOneNormalTab();
this.element.classList.toggle("single-tab", !hasMoreThanOneNormalTab);
function forceItemHidden(item, hidden) {
item.element.classList.toggle("hidden", !!hidden);
}
var canAdvanceBackward = this._currentIndex > 0;
this._advanceForwardArrowElement.classList.toggle(WI.DashboardContainerView.InactiveStyleClassName, !canAdvanceForward);
this._advanceBackwardArrowElement.classList.toggle(WI.DashboardContainerView.InactiveStyleClassName, !canAdvanceBackward);
this._advanceForwardArrowElement.classList.toggle(WI.DashboardContainerView.InactiveStyleClassName, !canAdvanceForward);
this._advanceBackwardArrowElement.classList.toggle(WI.DashboardContainerView.InactiveStyleClassName, !canAdvanceBackward);
}
toggle()
{
{
this._element.classList.toggle("hidden", flag);
}
if (this.didInitialLayout && !isNaN(this._index))
this._previewContainer.firstElementChild.classList.toggle("show-grid", activated);
}
let headerCell = this._headerElement.children[columnIndex];
headerCell.classList.toggle("sort-ascending", this._sortOrder === WI.Table.SortOrder.Ascending);
headerCell.classList.toggle("sort-descending", this._sortOrder === WI.Table.SortOrder.Descending);
headerCell.classList.toggle("sort-ascending", this._sortOrder === WI.Table.SortOrder.Ascending);
headerCell.classList.toggle("sort-descending", this._sortOrder === WI.Table.SortOrder.Descending);
}
let headerCell = this._headerElement.children[newColumnIndex];
headerCell.classList.toggle("sort-ascending", this._sortOrder === WI.Table.SortOrder.Ascending);
headerCell.classList.toggle("sort-descending", this._sortOrder === WI.Table.SortOrder.Descending);
headerCell.classList.toggle("sort-ascending", this._sortOrder === WI.Table.SortOrder.Ascending);
headerCell.classList.toggle("sort-descending", this._sortOrder === WI.Table.SortOrder.Descending);
} else
let headerCell = this._headerElement.children[newColumnIndex];
headerCell.classList.toggle("sort-ascending", this._sortOrder === WI.Table.SortOrder.Ascending);
headerCell.classList.toggle("sort-descending", this._sortOrder === WI.Table.SortOrder.Descending);
headerCell.classList.toggle("sort-ascending", this._sortOrder === WI.Table.SortOrder.Ascending);
headerCell.classList.toggle("sort-descending", this._sortOrder === WI.Table.SortOrder.Descending);
}
if (row)
row.classList.toggle("selected", false);
}
if (row)
row.classList.toggle("selected", true);
}
this._listElement.removeChildren();
this._listElement.classList.toggle("odd-first-zebra-stripe", !!(topHiddenRowCount % 2));
span.classList.toggle("active", this._sourcesFilter[type].has(name));
function toggleActive() {
button.classList.toggle("active", Object.values(settings).some((setting) => !!setting.value));
}
local function toggle()
M.currentMode = (M.currentMode+1) % 4
function setInvalidCharacterClassName() {
document.body.classList.toggle("show-invalid-characters", WI.settings.showInvalidCharacters.value);
}
function setWhitespaceCharacterClassName() {
document.body.classList.toggle("show-whitespace-characters", WI.settings.showWhitespaceCharacters.value);
}
document.body.classList.toggle("alt-key-pressed", WI.modifierKeys.altKey);
document.body.classList.toggle("ctrl-key-pressed", WI.modifierKeys.ctrlKey);
document.body.classList.toggle("alt-key-pressed", WI.modifierKeys.altKey);
document.body.classList.toggle("ctrl-key-pressed", WI.modifierKeys.ctrlKey);
document.body.classList.toggle("meta-key-pressed", WI.modifierKeys.metaKey);
document.body.classList.toggle("ctrl-key-pressed", WI.modifierKeys.ctrlKey);
document.body.classList.toggle("meta-key-pressed", WI.modifierKeys.metaKey);
document.body.classList.toggle("shift-key-pressed", WI.modifierKeys.shiftKey);
document.body.classList.toggle("meta-key-pressed", WI.modifierKeys.metaKey);
document.body.classList.toggle("shift-key-pressed", WI.modifierKeys.shiftKey);
this._selected = flag || false;
this.element.classList.toggle("selected", this._selected);
}
async function toggle() {
isShow.value = !isShow.value
this.representedObject.toggleDisabled(() => {
this._listItemNode.classList.toggle("disabled", !!this.representedObject.disabled);
this._disabledImageElement.title = this.representedObject.disabled ? WI.UIString("Enable Program") : WI.UIString("Disable Program");
if (this.listItemElement) {
this.listItemElement.classList.toggle("hovered", this._hovered);
this.updateSelectionArea();
this.classList.toggle(hiddenClassName, force);
}
this._statusImageElement.classList.toggle("subtree", !hasBreakpoint && hasSubtreeBreakpoints);
let disabled = this._breakpointStatus === WI.DOMTreeElement.BreakpointStatus.DisabledBreakpoint;
this._statusImageElement.classList.toggle("disabled", disabled);
}
this.element.classList.add("audit-test-group");
this.element.classList.toggle("contains-test-case", this._subobjects().some((test) => test instanceof WI.AuditTestCase || test instanceof WI.AuditTestCaseResult));
this.element.classList.toggle("contains-test-group", this._subobjects().some((test) => test instanceof WI.AuditTestGroup || test instanceof WI.AuditTestGroupResult));
this.element.classList.toggle("contains-test-case", this._subobjects().some((test) => test instanceof WI.AuditTestCase || test instanceof WI.AuditTestCaseResult));
this.element.classList.toggle("contains-test-group", this._subobjects().some((test) => test instanceof WI.AuditTestGroup || test instanceof WI.AuditTestGroupResult));
local function toggle(level)
if isEnabled() then
toggleRadialMenuMulti = function()
M.toggle()
end,
this._selected = x;
this.element.classList.toggle("selected", this._selected);
}
this._visible = true;
this.element.classList.toggle("hidden", !this._visible);
this.updateLayout();
this._visible = false;
this.element.classList.toggle("hidden", !this._visible);
}
var toggle = value ? on : off
toggle(cm.display.scroller, "dragstart", funcs.start)
toggle(cm.display.scroller, "dragenter", funcs.enter)
toggle(cm.display.scroller, "dragstart", funcs.start)
toggle(cm.display.scroller, "dragenter", funcs.enter)
toggle(cm.display.scroller, "dragover", funcs.over)
toggle(cm.display.scroller, "dragenter", funcs.enter)
toggle(cm.display.scroller, "dragover", funcs.over)
toggle(cm.display.scroller, "dragleave", funcs.leave)
toggle(cm.display.scroller, "dragover", funcs.over)
toggle(cm.display.scroller, "dragleave", funcs.leave)
toggle(cm.display.scroller, "drop", funcs.drop)
toggle(cm.display.scroller, "dragleave", funcs.leave)
toggle(cm.display.scroller, "drop", funcs.drop)
}
this.element.classList.toggle("compact", this._compact);
}
this.element.classList.toggle("large", this._large);
}
this._disclosureButtons = x;
this.element.classList.toggle("hide-disclosure-buttons", !this._disclosureButtons);
}
this._customIndent = x;
this.element.classList.toggle(WI.TreeOutline.CustomIndentStyleClassName, this._customIndent);
}
this._breakpointGutterEnabled = flag;
this.element.classList.toggle("show-gutter", this._breakpointGutterEnabled);
}
{
this._domTreeOutline.element.classList.toggle("breakpoints-disabled", !WI.debuggerManager.breakpointsEnabled);
}
this.element.classList.toggle("hovered", showHighlight);
}
local function hide() windowOpen[0] = false end
local function toggle() windowOpen[0] = not windowOpen[0] end
this._codeMirror.setOption("readOnly", readOnly);
this._codeMirror.getWrapperElement().classList.toggle("read-only", !!readOnly);
}
widget.widgetElement.classList.toggle("inline");
widget.widgetElement.classList.toggle("inline");
this._element.classList.toggle("selected");
}
this._filtered = x;
this._element.classList.toggle("filtered");
}
this.element.classList.toggle("hidden", this._collapsed);
if im.Checkbox('Enable##MotionBlur', tempBoolPtr) then
mb:toggle()
end
if im.Checkbox('Enable##Bloom', tempBoolPtr) then
mb:toggle()
end
TorqueScriptLua.setVar(tsVariable, not isEnabled)
vizualiser:toggle()
elseif enable then
if (el.contains(event.target)) {
el.__popover.toggle()
}
guidanceElement.classList.add("guidance", type);
guidanceElement.classList.toggle("base", node === baseElement);
guidanceElement.style.left = guidanceMarkerLeft + "px";
el.style.setProperty(HOLD_CSS_TIME_VAR, `${data.binding.holdDelay}ms`)
el.classList.toggle(HOLD_START_CSS_CLASS, true)
clearTimeout(tmrHoldActive)
clearTimeout(tmrHoldActive)
tmrHoldActive = setTimeout(() => el.classList.toggle(HOLD_ACTIVE_CSS_CLASS, true), 0)
el.classList.toggle(HOLD_COMPLETED_CSS_CLASS, false)
tmrHoldActive = setTimeout(() => el.classList.toggle(HOLD_ACTIVE_CSS_CLASS, true), 0)
el.classList.toggle(HOLD_COMPLETED_CSS_CLASS, false)
// set default event to 'click' if allowed
el.style.removeProperty(HOLD_CSS_TIME_VAR)
el.classList.toggle(HOLD_START_CSS_CLASS, false)
el.classList.toggle(HOLD_ACTIVE_CSS_CLASS, false)
el.classList.toggle(HOLD_START_CSS_CLASS, false)
el.classList.toggle(HOLD_ACTIVE_CSS_CLASS, false)
clearTimeout(tmrHoldActive)
el.style.removeProperty(HOLD_CSS_TIME_VAR)
el.classList.toggle(HOLD_START_CSS_CLASS, false)
el.classList.toggle(HOLD_ACTIVE_CSS_CLASS, false)
el.classList.toggle(HOLD_START_CSS_CLASS, false)
el.classList.toggle(HOLD_ACTIVE_CSS_CLASS, false)
clearTimeout(tmrHoldActive)
holdDelayTimer = setTimeout(() => {
el.classList.toggle(HOLD_COMPLETED_CSS_CLASS, true)
detectedEventType = EVENT_HOLD
scope:{mdOnLayout:"&"},link:a}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function o(e){function n(t,n){var o,a,d,c,l,m;return c=e.time(function(){a=r(t,n)}),o={layoutInfo:function(){return a},map:function(t){return l=e.time(function(){var e=o.layoutInfo();d=t(e.positioning,e.rowCount)}),o},reflow:function(t){return m=e.time(function(){var e=t||i;e(d.grid,d.tiles)}),o},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:l,reflowTime:m,totalTime:c+l+m}}}}function o(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function r(e,t){function n(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var a=0,m=0;m-a=e?o():(a=l.indexOf(0,d),-1!==a&&-1!==(m=i(a+1))?d=m+1:(a=m=0,o()));return r(a,t.col,t.row),d=a+t.col,{col:a,row:c}}function o(){d=0,c++,r(0,e,-1)}function r(e,t,n){for(var o=e;e+t>o;o++)l[o]=Math.max(l[o]+n,0)}function i(e){var t;for(t=e;tn;n++)t.push(0);return t}var d=0,c=0,l=a();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:c+Math.max.apply(Math,l)}}var i=o;return n.animateWith=function(e){i=t.isFunction(e)?e:o},n}function r(e){function n(n,o,r,i){o.attr("role","listitem");var a=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],r,t.bind(i,i.invalidateLayout));i.invalidateTiles(),n.$on("$destroy",function(){a(),i.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&i.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:" ",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}function i(){return{template:" ",transclude:!0}}t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",r).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",o),e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],n.$inject=["$mdUtil"],n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},o.$inject=["$mdUtil"],r.$inject=["$mdMedia"]}(),function(){function e(e,t,n){function o(o,r,i){function a(){var e=r.parent();return e.attr("aria-label")||e.text()?!0:e.parent().attr("aria-label")||e.parent().text()?!0:!1}function d(){function t(){return!o.fontIcon&&!o.fontSet&&!i.hasOwnProperty("class")}o.svgIcon||o.svgSrc||(o.fontIcon&&r.addClass("md-font "+o.fontIcon),o.fontSet&&r.addClass(e.fontSet(o.fontSet)),t()&&r.addClass(e.fontSet()))}t(r),d();var c=i.alt||o.fontIcon||o.svgIcon||r.text(),l=i.$normalize(i.$attr.mdSvgIcon||i.$attr.mdSvgSrc||"");i["aria-label"]||(""==c||a()?r.text()||n.expect(r,"aria-hidden","true"):(n.expect(r,"aria-label",c),n.expect(r,"role","img"))),l&&i.$observe(l,function(t){r.empty(),t&&e(t).then(function(e){r.append(e)})})}return{scope:{fontSet:"@mdFontSet",fontIcon:"@mdFontIcon",svgIcon:"@mdSvgIcon",svgSrc:"@mdSvgSrc"},restrict:"E",link:o}}t.module("material.components.icon",["material.core"]).directive("mdIcon",e),e.$inject=["$mdIcon","$mdTheming","$mdAria"]}(),function(){function e(){}function n(e,t){this.url=e,this.viewBoxSize=t||r.defaultViewBoxSize}function o(e,n,o,r,i){function a(e){return e=e||"",E[e]?o.when(E[e].clone()):v.test(e)?s(e).then(c(e)):(-1==e.indexOf(":")&&(e="$default:"+e),l(e)["catch"](m)["catch"](u)["catch"](p).then(c(e)))}function d(n){var o=t.isUndefined(n)||!(n&&n.length);if(o)return e.defaultFontSet;var r=n;return t.forEach(e.fontSets,function(e){e.alias==n&&(r=e.fontSet||r)}),r}function c(t){return function(n){return E[t]=f(n)?n:new h(n,e[t]),E[t].clone()}}function l(t){var n=e[t];return n?s(n.url).then(function(e){return new h(e,n)}):o.reject(t)}function m(t){function n(e){var n=t.slice(t.lastIndexOf(":")+1),r=e.querySelector("#"+n);return r?new h(r,i):o.reject(t)}var r=t.substring(0,t.lastIndexOf(":"))||"$default",i=e[r];return i?s(i.url).then(n):o.reject(t)}function s(e){return n.get(e,{cache:i}).then(function(e){return t.element("").append(e.data).find("svg")[0]})}function u(e){var n;return t.isString(e)&&(n="icon "+e+" not found",r.warn(n)),o.reject(n||e)}function p(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;return r.warn(n),o.reject(n)}function f(e){return t.isDefined(e.element)&&t.isDefined(e.config)}function h(e,n){"svg"!=e.tagName&&(e=t.element('