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

@@ -29,22 +29,23 @@ const { register } = require("./util/serialization");
/** @typedef {import("webpack-sources").Source} Source */
/** @typedef {import("../declarations/WebpackOptions").HashFunction} HashFunction */
/** @typedef {import("../declarations/WebpackOptions").WebpackOptionsNormalized} WebpackOptions */
/** @typedef {import("./config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
/** @typedef {import("./Chunk")} Chunk */
/** @typedef {import("./ChunkGraph")} ChunkGraph */
/** @typedef {import("./Compilation")} Compilation */
/** @typedef {import("./Compilation").UnsafeCacheData} UnsafeCacheData */
/** @typedef {import("./Dependency").UpdateHashContext} UpdateHashContext */
/** @typedef {import("./DependencyTemplates")} DependencyTemplates */
/** @typedef {import("./ExportsInfo")} ExportsInfo */
/** @typedef {import("./Generator").GenerateContext} GenerateContext */
/** @typedef {import("./Generator").SourceTypes} SourceTypes */
/** @typedef {import("./Module").ModuleId} ModuleId */
/** @typedef {import("./Module").BuildCallback} BuildCallback */
/** @typedef {import("./Module").BuildInfo} BuildInfo */
/** @typedef {import("./Module").CodeGenerationContext} CodeGenerationContext */
/** @typedef {import("./Module").CodeGenerationResult} CodeGenerationResult */
/** @typedef {import("./Module").ConcatenationBailoutReasonContext} ConcatenationBailoutReasonContext */
/** @typedef {import("./Module").LibIdentOptions} LibIdentOptions */
/** @typedef {import("./Module").LibIdent} LibIdent */
/** @typedef {import("./Module").NeedBuildCallback} NeedBuildCallback */
/** @typedef {import("./Module").NeedBuildContext} NeedBuildContext */
/** @typedef {import("./Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */
@@ -53,7 +54,6 @@ const { register } = require("./util/serialization");
/** @typedef {import("./RequestShortener")} RequestShortener */
/** @typedef {import("./ResolverFactory").ResolverWithOptions} ResolverWithOptions */
/** @typedef {import("./RuntimeTemplate")} RuntimeTemplate */
/** @typedef {import("./WebpackError")} WebpackError */
/** @typedef {import("./javascript/JavascriptModulesPlugin").ChunkRenderContext} ChunkRenderContext */
/** @typedef {import("./javascript/JavascriptParser").ImportAttributes} ImportAttributes */
/** @typedef {import("./serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
@@ -88,7 +88,7 @@ const RUNTIME_REQUIREMENTS_FOR_MODULE = new Set([
const EMPTY_RUNTIME_REQUIREMENTS = new Set([]);
/**
* @param {string|string[]} variableName the variable name or path
* @param {string | string[]} variableName the variable name or path
* @param {string} type the module system
* @returns {SourceData} the generated source
*/
@@ -108,8 +108,10 @@ const getSourceForGlobalVariableExternal = (variableName, type) => {
};
};
/** @typedef {string | string[]} ModuleAndSpecifiers */
/**
* @param {string|string[]} moduleAndSpecifiers the module request
* @param {ModuleAndSpecifiers} moduleAndSpecifiers the module request
* @returns {SourceData} the generated source
*/
const getSourceForCommonJsExternal = (moduleAndSpecifiers) => {
@@ -128,7 +130,24 @@ const getSourceForCommonJsExternal = (moduleAndSpecifiers) => {
};
/**
* @param {string | string[]} moduleAndSpecifiers the module request
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @returns {InitFragment<ChunkRenderContext>} code
*/
const getExternalModuleNodeCommonjsInitFragment = (runtimeTemplate) => {
const importMetaName = runtimeTemplate.outputOptions.importMetaName;
return new InitFragment(
`import { createRequire as __WEBPACK_EXTERNAL_createRequire } from ${runtimeTemplate.renderNodePrefixForCoreModule(
"module"
)};\n${runtimeTemplate.renderConst()} __WEBPACK_EXTERNAL_createRequire_require = __WEBPACK_EXTERNAL_createRequire(${importMetaName}.url);\n`,
InitFragment.STAGE_HARMONY_IMPORTS,
0,
"external module node-commonjs"
);
};
/**
* @param {ModuleAndSpecifiers} moduleAndSpecifiers the module request
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @returns {SourceData} the generated source
*/
@@ -136,25 +155,13 @@ const getSourceForCommonJsExternalInNodeModule = (
moduleAndSpecifiers,
runtimeTemplate
) => {
const importMetaName =
/** @type {string} */
(runtimeTemplate.outputOptions.importMetaName);
// /** @type {boolean} */
// (runtimeTemplate.supportNodePrefixForCoreModules())
const chunkInitFragments = [
new InitFragment(
`import { createRequire as __WEBPACK_EXTERNAL_createRequire } from ${runtimeTemplate.renderNodePrefixForCoreModule("module")};\n`,
InitFragment.STAGE_HARMONY_IMPORTS,
0,
"external module node-commonjs"
)
getExternalModuleNodeCommonjsInitFragment(runtimeTemplate)
];
if (!Array.isArray(moduleAndSpecifiers)) {
return {
chunkInitFragments,
expression: `__WEBPACK_EXTERNAL_createRequire(${importMetaName}.url)(${JSON.stringify(
expression: `__WEBPACK_EXTERNAL_createRequire_require(${JSON.stringify(
moduleAndSpecifiers
)})`
};
@@ -162,14 +169,14 @@ const getSourceForCommonJsExternalInNodeModule = (
const moduleName = moduleAndSpecifiers[0];
return {
chunkInitFragments,
expression: `__WEBPACK_EXTERNAL_createRequire(${importMetaName}.url)(${JSON.stringify(
expression: `__WEBPACK_EXTERNAL_createRequire_require(${JSON.stringify(
moduleName
)})${propertyAccess(moduleAndSpecifiers, 1)}`
};
};
/**
* @param {string|string[]} moduleAndSpecifiers the module request
* @param {ModuleAndSpecifiers} moduleAndSpecifiers the module request
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @param {ImportDependencyMeta=} dependencyMeta the dependency meta
* @returns {SourceData} the generated source
@@ -263,7 +270,6 @@ class ModuleExternalInitFragment extends InitFragment {
}
}
const identifier = `__WEBPACK_EXTERNAL_MODULE_${ident}__`;
super(
"",
InitFragment.STAGE_HARMONY_IMPORTS,
@@ -273,8 +279,8 @@ class ModuleExternalInitFragment extends InitFragment {
this._ident = ident;
this._request = request;
this._dependencyMeta = dependencyMeta;
this._imported = imported;
this._identifier = identifier;
this._identifier = this.buildIdentifier(ident);
this._imported = this.buildImported(imported);
}
/**
@@ -337,6 +343,28 @@ class ModuleExternalInitFragment extends InitFragment {
getNamespaceIdentifier() {
return this._identifier;
}
/**
* @param {string} ident ident
* @returns {string} identifier
*/
buildIdentifier(ident) {
return `__WEBPACK_EXTERNAL_MODULE_${ident}__`;
}
/**
* @param {Imported} imported imported
* @returns {Imported} normalized imported
*/
buildImported(imported) {
if (Array.isArray(imported)) {
return imported.map(([name]) => {
const ident = `${this._ident}_${name}`;
return [name, this.buildIdentifier(ident)];
});
}
return imported;
}
}
register(
@@ -398,7 +426,7 @@ const generateModuleRemapping = (
};
/**
* @param {string|string[]} moduleAndSpecifiers the module request
* @param {ModuleAndSpecifiers} moduleAndSpecifiers the module request
* @param {ExportsInfo} exportsInfo exports info of this module
* @param {RuntimeSpec} runtime the runtime
* @param {RuntimeTemplate} runtimeTemplate the runtime template
@@ -433,21 +461,7 @@ const getSourceForModuleExternal = (
imported = [];
break;
default:
imported = [];
if (exportsInfo.isUsed(runtime) === false) {
// no used, only
}
for (const [name] of usedExports.entries()) {
let counter = 0;
let finalName = name;
if (concatenationScope) {
while (!concatenationScope.registerUsedName(finalName)) {
finalName = `${name}_${counter++}`;
}
}
imported.push([name, finalName]);
}
imported = [...usedExports.entries()];
}
}
@@ -458,7 +472,24 @@ const getSourceForModuleExternal = (
dependencyMeta,
runtimeTemplate.outputOptions.hashFunction
);
const specifiers = imported === true ? undefined : imported;
const normalizedImported = initFragment.getImported();
const specifiers =
normalizedImported === true
? undefined
: /** @type {[string, string][]} */ (
normalizedImported.map(([name, rawFinalName]) => {
let finalName = rawFinalName;
let counter = 0;
if (concatenationScope) {
while (!concatenationScope.registerUsedName(finalName)) {
finalName = `${finalName}_${counter++}`;
}
}
return [name, finalName];
})
);
const baseAccess = `${initFragment.getNamespaceIdentifier()}${propertyAccess(
moduleAndSpecifiers,
1
@@ -498,7 +529,7 @@ const getSourceForModuleExternal = (
};
/**
* @param {string|string[]} urlAndGlobal the script request
* @param {string | string[]} urlAndGlobal the script request
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @returns {SourceData} the generated source
*/
@@ -546,9 +577,9 @@ const checkExternalVariable = (variableName, request, runtimeTemplate) =>
)} }\n`;
/**
* @param {string|number} id the module id
* @param {ModuleId | string} id the module id
* @param {boolean} optional true, if the module is optional
* @param {string|string[]} request the request path
* @param {string | string[]} request the request path
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @returns {SourceData} the generated source
*/
@@ -575,7 +606,7 @@ const getSourceForAmdOrUmdExternal = (
/**
* @param {boolean} optional true, if the module is optional
* @param {string|string[]} request the request path
* @param {string | string[]} request the request path
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @returns {SourceData} the generated source
*/
@@ -596,10 +627,11 @@ const getSourceForDefaultCase = (optional, request, runtimeTemplate) => {
};
/** @typedef {Record<string, string | string[]>} RequestRecord */
/** @typedef {string | string[] | RequestRecord} ExternalModuleRequest */
class ExternalModule extends Module {
/**
* @param {string | string[] | RequestRecord} request request
* @param {ExternalModuleRequest} request request
* @param {string} type type
* @param {string} userRequest user request
* @param {DependencyMeta=} dependencyMeta dependency meta
@@ -608,7 +640,7 @@ class ExternalModule extends Module {
super(JAVASCRIPT_MODULE_TYPE_DYNAMIC, null);
// Info from Factory
/** @type {string | string[] | Record<string, string | string[]>} */
/** @type {ExternalModuleRequest} */
this.request = request;
/** @type {string} */
this.externalType = type;
@@ -638,7 +670,7 @@ class ExternalModule extends Module {
/**
* @param {LibIdentOptions} options options
* @returns {string | null} an identifier for library inclusion
* @returns {LibIdent | null} an identifier for library inclusion
*/
libIdent(options) {
return this.userRequest;
@@ -1020,9 +1052,7 @@ class ExternalModule extends Module {
scope.registerRawExport(specifier, finalName);
}
} else if (concatenationScope) {
sourceString = `${
runtimeTemplate.supportsConst() ? "const" : "var"
} ${ConcatenationScope.NAMESPACE_OBJECT_EXPORT} = ${sourceString};`;
sourceString = `${runtimeTemplate.renderConst()} ${ConcatenationScope.NAMESPACE_OBJECT_EXPORT} = ${sourceString};`;
concatenationScope.registerNamespaceExport(
ConcatenationScope.NAMESPACE_OBJECT_EXPORT
);
@@ -1126,3 +1156,5 @@ makeSerializable(ExternalModule, "webpack/lib/ExternalModule");
module.exports = ExternalModule;
module.exports.ModuleExternalInitFragment = ModuleExternalInitFragment;
module.exports.getExternalModuleNodeCommonjsInitFragment =
getExternalModuleNodeCommonjsInitFragment;