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

@@ -8,17 +8,17 @@
const { UsageState } = require("../ExportsInfo");
const JavascriptParser = require("../javascript/JavascriptParser");
/** @typedef {import("estree").Node} AnyNode */
/** @typedef {import("../Dependency")} Dependency */
/** @typedef {import("../Dependency").GetConditionFn} GetConditionFn */
/** @typedef {import("../Module")} Module */
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @typedef {import("../ModuleGraphConnection")} ModuleGraphConnection */
/** @typedef {import("../ModuleGraphConnection").ConnectionState} ConnectionState */
/** @typedef {import("../Parser").ParserState} ParserState */
/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
/** @typedef {Map<TopLevelSymbol | null, Set<string | TopLevelSymbol> | true | undefined>} InnerGraph */
/** @typedef {Set<string | TopLevelSymbol>} InnerGraphValueSet */
/** @typedef {InnerGraphValueSet | true} InnerGraphValue */
/** @typedef {TopLevelSymbol | null} InnerGraphKey */
/** @typedef {Map<InnerGraphKey, InnerGraphValue | undefined>} InnerGraph */
/** @typedef {(value: boolean | Set<string> | undefined) => void} UsageCallback */
/**
@@ -28,7 +28,7 @@ const JavascriptParser = require("../javascript/JavascriptParser");
* @property {Map<TopLevelSymbol, Set<UsageCallback>>} usageCallbackMap
*/
/** @typedef {false|StateObject} State */
/** @typedef {false | StateObject} State */
class TopLevelSymbol {
/**
@@ -56,7 +56,7 @@ function getState(parserState) {
/**
* @param {ParserState} state parser state
* @param {TopLevelSymbol | null} symbol the symbol, or null for all symbols
* @param {string | TopLevelSymbol | true} usage usage data
* @param {Usage} usage usage data
* @returns {void}
*/
module.exports.addUsage = (state, symbol, usage) => {
@@ -75,10 +75,12 @@ module.exports.addUsage = (state, symbol, usage) => {
}
};
/** @typedef {string | TopLevelSymbol | true} Usage */
/**
* @param {JavascriptParser} parser the parser
* @param {string} name name of variable
* @param {string | TopLevelSymbol | true} usage usage data
* @param {Usage} usage usage data
* @returns {void}
*/
module.exports.addVariableUsage = (parser, name, usage) => {
@@ -115,9 +117,11 @@ module.exports.enable = (parserState) => {
});
};
/** @typedef {Set<string> | boolean} UsedByExports */
/**
* @param {Dependency} dependency the dependency
* @param {Set<string> | boolean | undefined} usedByExports usedByExports info
* @param {UsedByExports | undefined} usedByExports usedByExports info
* @param {ModuleGraph} moduleGraph moduleGraph
* @returns {null | false | GetConditionFn} function to determine if the connection is active
*/
@@ -146,7 +150,7 @@ module.exports.getDependencyUsedByExportsCondition = (
/**
* @param {ParserState} state parser state
* @returns {TopLevelSymbol|void} usage data
* @returns {TopLevelSymbol | void} usage data
*/
module.exports.getTopLevelSymbol = (state) => {
const innerGraphState = getState(state);
@@ -168,17 +172,19 @@ module.exports.inferDependencyUsage = (state) => {
}
const { innerGraph, usageCallbackMap } = innerGraphState;
/** @type {Map<InnerGraphKey, InnerGraphValueSet | undefined>} */
const processed = new Map();
// flatten graph to terminal nodes (string, undefined or true)
const nonTerminal = new Set(innerGraph.keys());
while (nonTerminal.size > 0) {
for (const key of nonTerminal) {
/** @type {Set<string|TopLevelSymbol> | true} */
/** @type {InnerGraphValue} */
let newSet = new Set();
let isTerminal = true;
const value = innerGraph.get(key);
let alreadyProcessed = processed.get(key);
if (alreadyProcessed === undefined) {
/** @type {InnerGraphValueSet} */
alreadyProcessed = new Set();
processed.set(key, alreadyProcessed);
}
@@ -254,7 +260,7 @@ module.exports.inferDependencyUsage = (state) => {
/**
* @param {Dependency} dependency the dependency
* @param {Set<string> | boolean} usedByExports usedByExports info
* @param {UsedByExports | undefined} usedByExports usedByExports info
* @param {ModuleGraph} moduleGraph moduleGraph
* @param {RuntimeSpec} runtime runtime
* @returns {boolean} false, when unused. Otherwise true