Add comprehensive library expansion with new components and demos
- Add new libraries: ui-accessibility, ui-animations, ui-backgrounds, ui-code-display, ui-data-utils, ui-font-manager, hcl-studio - Add extensive layout components: gallery-grid, infinite-scroll-container, kanban-board, masonry, split-view, sticky-layout - Add comprehensive demo components for all new features - Update project configuration and dependencies - Expand component exports and routing structure - Add UI landing pages planning document 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
73
projects/ui-code-display/node_modules/zone.js/fesm2015/task-tracking.js
generated
vendored
Executable file
73
projects/ui-code-display/node_modules/zone.js/fesm2015/task-tracking.js
generated
vendored
Executable file
@@ -0,0 +1,73 @@
|
||||
'use strict';
|
||||
/**
|
||||
* @license Angular v<unknown>
|
||||
* (c) 2010-2025 Google LLC. https://angular.io/
|
||||
* License: MIT
|
||||
*/
|
||||
/**
|
||||
* A `TaskTrackingZoneSpec` allows one to track all outstanding Tasks.
|
||||
*
|
||||
* This is useful in tests. For example to see which tasks are preventing a test from completing
|
||||
* or an automated way of releasing all of the event listeners at the end of the test.
|
||||
*/
|
||||
class TaskTrackingZoneSpec {
|
||||
name = 'TaskTrackingZone';
|
||||
microTasks = [];
|
||||
macroTasks = [];
|
||||
eventTasks = [];
|
||||
properties = { 'TaskTrackingZone': this };
|
||||
static get() {
|
||||
return Zone.current.get('TaskTrackingZone');
|
||||
}
|
||||
getTasksFor(type) {
|
||||
switch (type) {
|
||||
case 'microTask':
|
||||
return this.microTasks;
|
||||
case 'macroTask':
|
||||
return this.macroTasks;
|
||||
case 'eventTask':
|
||||
return this.eventTasks;
|
||||
}
|
||||
throw new Error('Unknown task format: ' + type);
|
||||
}
|
||||
onScheduleTask(parentZoneDelegate, currentZone, targetZone, task) {
|
||||
task['creationLocation'] = new Error(`Task '${task.type}' from '${task.source}'.`);
|
||||
const tasks = this.getTasksFor(task.type);
|
||||
tasks.push(task);
|
||||
return parentZoneDelegate.scheduleTask(targetZone, task);
|
||||
}
|
||||
onCancelTask(parentZoneDelegate, currentZone, targetZone, task) {
|
||||
const tasks = this.getTasksFor(task.type);
|
||||
for (let i = 0; i < tasks.length; i++) {
|
||||
if (tasks[i] == task) {
|
||||
tasks.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return parentZoneDelegate.cancelTask(targetZone, task);
|
||||
}
|
||||
onInvokeTask(parentZoneDelegate, currentZone, targetZone, task, applyThis, applyArgs) {
|
||||
if (task.type === 'eventTask' || task.data?.isPeriodic)
|
||||
return parentZoneDelegate.invokeTask(targetZone, task, applyThis, applyArgs);
|
||||
const tasks = this.getTasksFor(task.type);
|
||||
for (let i = 0; i < tasks.length; i++) {
|
||||
if (tasks[i] == task) {
|
||||
tasks.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return parentZoneDelegate.invokeTask(targetZone, task, applyThis, applyArgs);
|
||||
}
|
||||
clearEvents() {
|
||||
while (this.eventTasks.length) {
|
||||
Zone.current.cancelTask(this.eventTasks[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
function patchTaskTracking(Zone) {
|
||||
// Export the class so that new instances can be created with proper
|
||||
// constructor params.
|
||||
Zone['TaskTrackingZoneSpec'] = TaskTrackingZoneSpec;
|
||||
}
|
||||
|
||||
patchTaskTracking(Zone);
|
||||
Reference in New Issue
Block a user