Standardize settings file naming and relocate documentation files Fix code quality violations from rsx:check Reorganize user_management directory into logical subdirectories Move Quill Bundle to core and align with Tom Select pattern Simplify Site Settings page to focus on core site information Complete Phase 5: Multi-tenant authentication with login flow and site selection Add route query parameter rule and synchronize filename validation logic Fix critical bug in UpdateNpmCommand causing missing JavaScript stubs Implement filename convention rule and resolve VS Code auto-rename conflict Implement js-sanitizer RPC server to eliminate 900+ Node.js process spawns Implement RPC server architecture for JavaScript parsing WIP: Add RPC server infrastructure for JS parsing (partial implementation) Update jqhtml terminology from destroy to stop, fix datagrid DOM preservation Add JQHTML-CLASS-01 rule and fix redundant class names Improve code quality rules and resolve violations Remove legacy fatal error format in favor of unified 'fatal' error type Filter internal keys from window.rsxapp output Update button styling and comprehensive form/modal documentation Add conditional fly-in animation for modals Fix non-deterministic bundle compilation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
154 lines
4.7 KiB
JavaScript
Executable File
154 lines
4.7 KiB
JavaScript
Executable File
/**
|
|
* Auto-generated JavaScript stub for Demo_Product_Model
|
|
* DO NOT EDIT - This file is automatically regenerated
|
|
*/
|
|
|
|
class Demo_Product_Model extends Rsx_Js_Model {
|
|
static get name() {
|
|
return 'Demo_Product_Model';
|
|
}
|
|
|
|
static STATUS_AVAILABLE = 1;
|
|
static STATUS_OUT_OF_STOCK = 2;
|
|
static STATUS_DISCONTINUED = 3;
|
|
|
|
static status_id_enum_val() {
|
|
const data = {};
|
|
const order = [];
|
|
data[1] = {"constant":"STATUS_AVAILABLE","label":"Available","order":1};
|
|
order.push(1);
|
|
data[2] = {"constant":"STATUS_OUT_OF_STOCK","label":"Out of Stock","order":2};
|
|
order.push(2);
|
|
data[3] = {"constant":"STATUS_DISCONTINUED","label":"Discontinued","order":3};
|
|
order.push(3);
|
|
// Return Proxy that maintains sort order for enumeration
|
|
return new Proxy(data, {
|
|
ownKeys() {
|
|
return order.map(String);
|
|
},
|
|
getOwnPropertyDescriptor(target, prop) {
|
|
if (prop in target) {
|
|
return {
|
|
enumerable: true,
|
|
configurable: true,
|
|
value: target[prop]
|
|
};
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
static status_id_label_list() {
|
|
const values = {};
|
|
values[1] = 'Available';
|
|
values[2] = 'Out of Stock';
|
|
values[3] = 'Discontinued';
|
|
return values;
|
|
}
|
|
|
|
static status_id_enum_select() {
|
|
const fullData = this.status_id_enum_val();
|
|
const data = {};
|
|
const order = [];
|
|
|
|
// Extract labels from full data, respecting selectable flag
|
|
for (const key in fullData) {
|
|
const item = fullData[key];
|
|
if (item.selectable !== false && item.label) {
|
|
data[key] = item.label;
|
|
order.push(parseInt(key));
|
|
}
|
|
}
|
|
|
|
// Return Proxy that maintains sort order for enumeration
|
|
return new Proxy(data, {
|
|
ownKeys() {
|
|
return order.map(String);
|
|
},
|
|
getOwnPropertyDescriptor(target, prop) {
|
|
if (prop in target) {
|
|
return {
|
|
enumerable: true,
|
|
configurable: true,
|
|
value: target[prop]
|
|
};
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
static CATEGORY_ELECTRONICS = 1;
|
|
static CATEGORY_CLOTHING = 2;
|
|
static CATEGORY_BOOKS = 3;
|
|
static CATEGORY_FOOD = 4;
|
|
|
|
static category_id_enum_val() {
|
|
const data = {};
|
|
const order = [];
|
|
data[1] = {"constant":"CATEGORY_ELECTRONICS","label":"Electronics","order":1};
|
|
order.push(1);
|
|
data[2] = {"constant":"CATEGORY_CLOTHING","label":"Clothing","order":2};
|
|
order.push(2);
|
|
data[3] = {"constant":"CATEGORY_BOOKS","label":"Books","order":3};
|
|
order.push(3);
|
|
data[4] = {"constant":"CATEGORY_FOOD","label":"Food & Beverage","order":4};
|
|
order.push(4);
|
|
// Return Proxy that maintains sort order for enumeration
|
|
return new Proxy(data, {
|
|
ownKeys() {
|
|
return order.map(String);
|
|
},
|
|
getOwnPropertyDescriptor(target, prop) {
|
|
if (prop in target) {
|
|
return {
|
|
enumerable: true,
|
|
configurable: true,
|
|
value: target[prop]
|
|
};
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
static category_id_label_list() {
|
|
const values = {};
|
|
values[1] = 'Electronics';
|
|
values[2] = 'Clothing';
|
|
values[3] = 'Books';
|
|
values[4] = 'Food & Beverage';
|
|
return values;
|
|
}
|
|
|
|
static category_id_enum_select() {
|
|
const fullData = this.category_id_enum_val();
|
|
const data = {};
|
|
const order = [];
|
|
|
|
// Extract labels from full data, respecting selectable flag
|
|
for (const key in fullData) {
|
|
const item = fullData[key];
|
|
if (item.selectable !== false && item.label) {
|
|
data[key] = item.label;
|
|
order.push(parseInt(key));
|
|
}
|
|
}
|
|
|
|
// Return Proxy that maintains sort order for enumeration
|
|
return new Proxy(data, {
|
|
ownKeys() {
|
|
return order.map(String);
|
|
},
|
|
getOwnPropertyDescriptor(target, prop) {
|
|
if (prop in target) {
|
|
return {
|
|
enumerable: true,
|
|
configurable: true,
|
|
value: target[prop]
|
|
};
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|