Enhance refactor commands with controller-aware Route() updates and fix code quality violations

Add semantic token highlighting for 'that' variable and comment file references in VS Code extension
Add Phone_Text_Input and Currency_Input components with formatting utilities
Implement client widgets, form standardization, and soft delete functionality
Add modal scroll lock and update documentation
Implement comprehensive modal system with form integration and validation
Fix modal component instantiation using jQuery plugin API
Implement modal system with responsive sizing, queuing, and validation support
Implement form submission with validation, error handling, and loading states
Implement country/state selectors with dynamic data loading and Bootstrap styling
Revert Rsx::Route() highlighting in Blade/PHP files
Target specific PHP scopes for Rsx::Route() highlighting in Blade
Expand injection selector for Rsx::Route() highlighting
Add custom syntax highlighting for Rsx::Route() and Rsx.Route() calls
Update jqhtml packages to v2.2.165
Add bundle path validation for common mistakes (development mode only)
Create Ajax_Select_Input widget and Rsx_Reference_Data controller
Create Country_Select_Input widget with default country support
Initialize Tom Select on Select_Input widgets
Add Tom Select bundle for enhanced select dropdowns
Implement ISO 3166 geographic data system for country/region selection
Implement widget-based form system with disabled state support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-30 06:21:56 +00:00
parent e678b987c2
commit f6ac36c632
5683 changed files with 5854736 additions and 22329 deletions

View File

@@ -31,6 +31,8 @@ const {
/** @typedef {import("./AsyncDependenciesBlock")} AsyncDependenciesBlock */
/** @typedef {import("./Chunk")} Chunk */
/** @typedef {import("./Chunk").Chunks} Chunks */
/** @typedef {import("./Chunk").Entrypoints} Entrypoints */
/** @typedef {import("./Chunk").ChunkId} ChunkId */
/** @typedef {import("./ChunkGroup")} ChunkGroup */
/** @typedef {import("./Generator").SourceTypes} SourceTypes */
@@ -79,7 +81,7 @@ class ModuleHashInfo {
const getArray = (set) => [...set];
/**
* @param {SortableSet<Chunk>} chunks the chunks
* @param {SortableChunks} chunks the chunks
* @returns {RuntimeSpecSet} runtimes
*/
const getModuleRuntimes = (chunks) => {
@@ -91,7 +93,7 @@ const getModuleRuntimes = (chunks) => {
};
/**
* @param {WeakMap<Module, Set<string>> | undefined} sourceTypesByModule sourceTypesByModule
* @param {SourceTypesByModule | undefined} sourceTypesByModule sourceTypesByModule
* @returns {(set: SortableSet<Module>) => Map<string, SortableSet<Module>>} modules by source type
*/
const modulesBySourceType = (sourceTypesByModule) => (set) => {
@@ -192,13 +194,14 @@ const isAvailableChunk = (a, b) => {
return true;
};
/** @typedef {SortableSet<Chunk>} SortableChunks */
/** @typedef {Set<Chunk>} EntryInChunks */
/** @typedef {Set<Chunk>} RuntimeInChunks */
/** @typedef {string | number} ModuleId */
class ChunkGraphModule {
constructor() {
/** @type {SortableSet<Chunk>} */
/** @type {SortableChunks} */
this.chunks = new SortableSet();
/** @type {EntryInChunks | undefined} */
this.entryInChunks = undefined;
@@ -217,13 +220,16 @@ class ChunkGraphModule {
}
}
/** @typedef {WeakMap<Module, Set<string>>} SourceTypesByModule */
/** @typedef {Map<Module, Entrypoint>} EntryModules */
class ChunkGraphChunk {
constructor() {
/** @type {SortableSet<Module>} */
this.modules = new SortableSet();
/** @type {WeakMap<Module, Set<string>> | undefined} */
/** @type {SourceTypesByModule | undefined} */
this.sourceTypesByModule = undefined;
/** @type {Map<Module, Entrypoint>} */
/** @type {EntryModules} */
this.entryModules = new Map();
/** @type {SortableSet<RuntimeModule>} */
this.runtimeModules = new SortableSet();
@@ -231,7 +237,7 @@ class ChunkGraphChunk {
this.fullHashModules = undefined;
/** @type {Set<RuntimeModule> | undefined} */
this.dependentHashModules = undefined;
/** @type {Set<string> | undefined} */
/** @type {RuntimeRequirements | undefined} */
this.runtimeRequirements = undefined;
/** @type {Set<string>} */
this.runtimeRequirementsInTree = new Set();
@@ -240,6 +246,11 @@ class ChunkGraphChunk {
}
}
/** @typedef {string | number} RuntimeId */
/** @typedef {Record<ModuleId, string>} IdToHashMap */
/** @typedef {Record<ChunkId, IdToHashMap>} ChunkModuleHashMap */
/** @typedef {Record<ChunkId, ModuleId[]>} ChunkModuleIdMap */
/** @typedef {(a: Module, b: Module) => -1 | 0 | 1} ModuleComparator */
class ChunkGraph {
@@ -265,7 +276,7 @@ class ChunkGraph {
this._blockChunkGroups = new WeakMap();
/**
* @private
* @type {Map<string, string | number>}
* @type {Map<string, RuntimeId>}
*/
this._runtimeIds = new Map();
/** @type {ModuleGraph} */
@@ -452,7 +463,7 @@ class ChunkGraph {
for (const chunk of oldCgm.entryInChunks) {
const cgc = this._getChunkGraphChunk(chunk);
const old = /** @type {Entrypoint} */ (cgc.entryModules.get(oldModule));
/** @type {Map<Module, Entrypoint>} */
/** @type {EntryModules} */
const newEntryModules = new Map();
for (const [m, cg] of cgc.entryModules) {
if (m === oldModule) {
@@ -740,16 +751,16 @@ class ChunkGraph {
* @param {Chunk} chunk the chunk
* @param {ModuleFilterPredicate} filterFn function used to filter modules
* @param {boolean} includeAllChunks all chunks or only async chunks
* @returns {Record<string|number, (string|number)[]>} chunk to module ids object
* @returns {ChunkModuleIdMap} chunk to module ids object
*/
getChunkModuleIdMap(chunk, filterFn, includeAllChunks = false) {
/** @type {Record<string|number, (string|number)[]>} */
/** @type {ChunkModuleIdMap} */
const chunkModuleIdMap = Object.create(null);
for (const asyncChunk of includeAllChunks
? chunk.getAllReferencedChunks()
: chunk.getAllAsyncChunks()) {
/** @type {(string | number)[] | undefined} */
/** @type {ModuleId[] | undefined} */
let array;
for (const module of this.getOrderedChunkModulesIterable(
asyncChunk,
@@ -774,7 +785,7 @@ class ChunkGraph {
* @param {ModuleFilterPredicate} filterFn function used to filter modules
* @param {number} hashLength length of the hash
* @param {boolean} includeAllChunks all chunks or only async chunks
* @returns {Record<string|number, Record<string|number, string>>} chunk to module id to module hash object
* @returns {ChunkModuleHashMap} chunk to module id to module hash object
*/
getChunkModuleRenderedHashMap(
chunk,
@@ -782,11 +793,9 @@ class ChunkGraph {
hashLength = 0,
includeAllChunks = false
) {
/** @type {Record<ChunkId, Record<string|number, string>>} */
/** @type {ChunkModuleHashMap} */
const chunkModuleHashMap = Object.create(null);
/** @typedef {Record<string|number, string>} IdToHashMap */
for (const asyncChunk of includeAllChunks
? chunk.getAllReferencedChunks()
: chunk.getAllAsyncChunks()) {
@@ -800,7 +809,8 @@ class ChunkGraph {
if (idToHashMap === undefined) {
idToHashMap = Object.create(null);
chunkModuleHashMap[/** @type {ChunkId} */ (asyncChunk.id)] =
/** @type {IdToHashMap} */ (idToHashMap);
/** @type {IdToHashMap} */
(idToHashMap);
}
const moduleId = this.getModuleId(module);
const hash = this.getRenderedModuleHash(module, asyncChunk.runtime);
@@ -818,7 +828,7 @@ class ChunkGraph {
/**
* @param {Chunk} chunk the chunk
* @param {ChunkFilterPredicate} filterFn function used to filter chunks
* @returns {Record<string|number, boolean>} chunk map
* @returns {Record<ChunkId, boolean>} chunk map
*/
getChunkConditionMap(chunk, filterFn) {
const map = Object.create(null);
@@ -1219,7 +1229,7 @@ class ChunkGraph {
* @returns {Iterable<Chunk>} iterable of chunks
*/
getChunkEntryDependentChunksIterable(chunk) {
/** @type {Set<Chunk>} */
/** @type {Chunks} */
const set = new Set();
for (const chunkGroup of chunk.groupsIterable) {
if (chunkGroup instanceof Entrypoint) {
@@ -1243,10 +1253,10 @@ class ChunkGraph {
* @returns {Iterable<Chunk>} iterable of chunks and include chunks from children entrypoints
*/
getRuntimeChunkDependentChunksIterable(chunk) {
/** @type {Set<Chunk>} */
/** @type {Chunks} */
const set = new Set();
/** @type {Set<Entrypoint>} */
/** @type {Entrypoints} */
const entrypoints = new Set();
for (const chunkGroup of chunk.groupsIterable) {
@@ -1423,15 +1433,15 @@ class ChunkGraph {
/**
* @param {string} runtime runtime
* @returns {string | number} the id of the runtime
* @returns {RuntimeId} the id of the runtime
*/
getRuntimeId(runtime) {
return /** @type {string | number} */ (this._runtimeIds.get(runtime));
return /** @type {RuntimeId} */ (this._runtimeIds.get(runtime));
}
/**
* @param {string} runtime runtime
* @param {string | number} id the id of the runtime
* @param {RuntimeId} id the id of the runtime
* @returns {void}
*/
setRuntimeId(runtime, id) {
@@ -1531,7 +1541,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
/**
* @param {Module} module the module
* @param {RuntimeSpec} runtime the runtime
* @param {Set<string>} items runtime requirements to be added (ownership of this Set is given to ChunkGraph when transferOwnership not false)
* @param {RuntimeRequirements} items runtime requirements to be added (ownership of this Set is given to ChunkGraph when transferOwnership not false)
* @param {boolean} transferOwnership true: transfer ownership of the items object, false: items is immutable and shared and won't be modified
* @returns {void}
*/
@@ -1565,7 +1575,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
/**
* @param {Chunk} chunk the chunk
* @param {Set<string>} items runtime requirements to be added (ownership of this Set is given to ChunkGraph)
* @param {RuntimeRequirements} items runtime requirements to be added (ownership of this Set is given to ChunkGraph)
* @returns {void}
*/
addChunkRuntimeRequirements(chunk, items) {
@@ -1660,7 +1670,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
for (const type of sourceTypes) hash.update(type);
}
this.moduleGraph.getExportsInfo(module).updateHash(hash, runtime);
return BigInt(`0x${/** @type {string} */ (hash.digest("hex"))}`);
return BigInt(`0x${hash.digest("hex")}`);
});
return graphHash;
}
@@ -1798,7 +1808,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
}
}
hash.update(graphHash);
return /** @type {string} */ (hash.digest("hex"));
return hash.digest("hex");
});
}