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

@@ -56,29 +56,29 @@ Technically any value can be used.
* @property {number} objectTypeLookupSize
* @property {number} currentPosTypeLookup
*/
/** @typedef {TODO} Value */
/** @typedef {EXPECTED_OBJECT | string} ReferenceableItem */
/**
* @typedef {object} ObjectSerializerContext
* @property {(value: Value) => void} write
* @property {(value: EXPECTED_ANY) => void} write
* @property {(value: ReferenceableItem) => void} setCircularReference
* @property {() => ObjectSerializerSnapshot} snapshot
* @property {(snapshot: ObjectSerializerSnapshot) => void} rollback
* @property {((item: Value | (() => Value)) => void)=} writeLazy
* @property {((item: (Value | (() => Value)), obj: LazyOptions | undefined) => import("./SerializerMiddleware").LazyFunction<EXPECTED_ANY, EXPECTED_ANY, EXPECTED_ANY, LazyOptions>)=} writeSeparate
* @property {((item: EXPECTED_ANY | (() => EXPECTED_ANY)) => void)=} writeLazy
* @property {((item: (EXPECTED_ANY | (() => EXPECTED_ANY)), obj: LazyOptions | undefined) => import("./SerializerMiddleware").LazyFunction<EXPECTED_ANY, EXPECTED_ANY, EXPECTED_ANY, LazyOptions>)=} writeSeparate
*/
/**
* @typedef {object} ObjectDeserializerContext
* @property {() => Value} read
* @property {() => EXPECTED_ANY} read
* @property {(value: ReferenceableItem) => void} setCircularReference
*/
/**
* @typedef {object} ObjectSerializer
* @property {(value: Value, context: ObjectSerializerContext) => void} serialize
* @property {(context: ObjectDeserializerContext) => Value} deserialize
* @property {(value: EXPECTED_ANY, context: ObjectSerializerContext) => void} serialize
* @property {(context: ObjectDeserializerContext) => EXPECTED_ANY} deserialize
*/
/**
@@ -117,7 +117,7 @@ const setMapSize = (map, size) => {
const toHash = (buffer, hashFunction) => {
const hash = createHash(hashFunction);
hash.update(buffer);
return /** @type {string} */ (hash.digest("latin1"));
return hash.digest("latin1");
};
const ESCAPE = null;
@@ -130,7 +130,7 @@ const CURRENT_VERSION = 2;
/** @typedef {{ request?: string, name?: string | number | null, serializer?: ObjectSerializer }} SerializerConfig */
/** @typedef {{ request?: string, name?: string | number | null, serializer: ObjectSerializer }} SerializerConfigWithSerializer */
/** @type {Map<Constructor, SerializerConfig>} */
/** @type {Map<Constructor | null, SerializerConfig>} */
const serializers = new Map();
/** @type {Map<string | number, ObjectSerializer>} */
const serializerInversed = new Map();
@@ -140,6 +140,7 @@ const loadedRequests = new Set();
const NOT_SERIALIZABLE = {};
/** @type {Map<Constructor | null, ObjectSerializer>} */
const jsTypes = new Map();
jsTypes.set(Object, new PlainObjectSerializer());
@@ -335,7 +336,7 @@ class ObjectMiddleware extends SerializerMiddleware {
* @returns {SerializedType | Promise<SerializedType> | null} serialized data
*/
serialize(data, context) {
/** @type {Value[]} */
/** @type {PrimitiveSerializableType[]} */
let result = [CURRENT_VERSION];
let currentPos = 0;
/** @type {Map<ReferenceableItem, number>} */
@@ -412,7 +413,7 @@ class ObjectMiddleware extends SerializerMiddleware {
let objectTypeLookup = new Map();
const cycleStack = new Set();
/**
* @param {Value} item item to stack
* @param {ComplexSerializableType} item item to stack
* @returns {string} stack
*/
const stackToString = (item) => {
@@ -511,7 +512,7 @@ class ObjectMiddleware extends SerializerMiddleware {
};
this.extendContext(ctx);
/**
* @param {Value} item item to serialize
* @param {ComplexSerializableType} item item to serialize
*/
const process = (item) => {
if (Buffer.isBuffer(item)) {
@@ -533,7 +534,7 @@ class ObjectMiddleware extends SerializerMiddleware {
}
addReferenceable(item);
result.push(item);
result.push(/** @type {Buffer} */ (item));
} else if (item === ESCAPE) {
result.push(ESCAPE, ESCAPE_ESCAPE_VALUE);
} else if (
@@ -553,8 +554,10 @@ class ObjectMiddleware extends SerializerMiddleware {
);
}
const { request, name, serializer } =
ObjectMiddleware.getSerializerFor(item);
const { request, name, serializer } = ObjectMiddleware.getSerializerFor(
/** @type {Constructor} */
(item)
);
const key = `${request}/${name}`;
const lastIndex = objectTypeLookup.get(key);
@@ -616,9 +619,13 @@ class ObjectMiddleware extends SerializerMiddleware {
} else if (SerializerMiddleware.isLazy(item, this)) {
throw new Error("Not implemented");
} else {
const data = SerializerMiddleware.serializeLazy(item, (data) =>
this.serialize([data], context)
);
const data =
/** @type {() => PrimitiveSerializableType[] | Promise<PrimitiveSerializableType[]>} */
(
SerializerMiddleware.serializeLazy(item, (data) =>
this.serialize([data], context)
)
);
SerializerMiddleware.setLazySerializedValue(item, data);
result.push(data);
}
@@ -677,7 +684,7 @@ class ObjectMiddleware extends SerializerMiddleware {
/** @type {ReferenceableItem[]} */
let referenceable = [];
/**
* @param {Value} item referenceable item
* @param {ReferenceableItem} item referenceable item
*/
const addReferenceable = (item) => {
referenceable.push(item);
@@ -686,6 +693,7 @@ class ObjectMiddleware extends SerializerMiddleware {
let currentPosTypeLookup = 0;
/** @type {ObjectSerializer[]} */
let objectTypeLookup = [];
/** @type {ComplexSerializableType[]} */
let result = [];
/** @type {ObjectDeserializerContext} */
let ctx = {
@@ -698,6 +706,9 @@ class ObjectMiddleware extends SerializerMiddleware {
...context
};
this.extendContext(ctx);
/**
* @returns {ComplexSerializableType} deserialize value
*/
const decodeValue = () => {
const item = read();
@@ -789,7 +800,7 @@ class ObjectMiddleware extends SerializerMiddleware {
const name = !serializerEntry
? "unknown"
: !serializerEntry[1].request
? serializerEntry[0].name
? /** @type {Constructor[]} */ (serializerEntry)[0].name
: serializerEntry[1].name
? `${serializerEntry[1].request} ${serializerEntry[1].name}`
: serializerEntry[1].request;