js-mvc-framework
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -19,3 +19,3 @@ const Events = { | ||
), | ||
// Object Assign Source Key | ||
// Object Assign Source Property | ||
'assignSourceProperty': ($event, $target) => new CustomEvent( | ||
@@ -30,14 +30,2 @@ `assignSourceProperty`, { | ||
), | ||
// Object Assign Source Key | ||
'assignSourcePropertyKey': ($event, $target) => { | ||
return new CustomEvent( | ||
`assignSourceProperty:${$event.key}`, { | ||
detail: { | ||
key: $event.key, | ||
val: $event.val, | ||
source: $event.source, | ||
} | ||
} | ||
) | ||
}, | ||
// Object Define Properties | ||
@@ -44,0 +32,0 @@ 'defineProperties': ($event, $target) => new CustomEvent( |
@@ -11,4 +11,5 @@ import { isDirectInstanceOf } from '../../../../../../../Utils/index.js' | ||
value: function() { | ||
const sources = [...arguments] | ||
iterateSources: | ||
for(let $source of [...arguments]) { | ||
for(let $source of sources) { | ||
iterateSourceProps: | ||
@@ -42,12 +43,2 @@ for(let [ | ||
$eventTarget, | ||
'assignSourcePropertyKey', | ||
{ | ||
key: $sourcePropKey, | ||
val: $sourcePropVal, | ||
source: $source, | ||
}, | ||
$root, | ||
) | ||
$trap.createEvent( | ||
$eventTarget, | ||
'assignSourceProperty', | ||
@@ -74,3 +65,5 @@ { | ||
'assign', | ||
{}, | ||
{ | ||
sources | ||
}, | ||
$root, | ||
@@ -77,0 +70,0 @@ ) |
@@ -56,11 +56,2 @@ import { typeOf, isDirectInstanceOf } from '../../../../../../../Utils/index.js' | ||
) | ||
$trap.createEvent( | ||
$eventTarget, | ||
'definePropertyKey', | ||
{ | ||
prop: $propertyKey, | ||
descriptor: $propertyDescriptor, | ||
}, | ||
$root, | ||
) | ||
} | ||
@@ -67,0 +58,0 @@ $trap.createEvent( |
@@ -53,10 +53,2 @@ import { typeOf, isDirectInstanceOf } from '../../../../../../../Utils/index.js' | ||
) | ||
$trap.createEvent( | ||
$eventTarget, | ||
'definePropertyKey', | ||
{ | ||
prop: propertyKey, | ||
descriptor: propertyDescriptor, | ||
}, | ||
) | ||
return $root | ||
@@ -63,0 +55,0 @@ } |
@@ -8,7 +8,10 @@ export default function SetPrototypeOf( | ||
value: function () { | ||
Object.setPrototypeOf($root) | ||
const prototype = arguments[0] | ||
Object.setPrototypeOf($root, prototype) | ||
$trap.createEvent( | ||
$eventTarget, | ||
'setPrototypeOf', | ||
{}, | ||
{ | ||
prototype | ||
}, | ||
$root | ||
@@ -15,0 +18,0 @@ ) |
import { typeOf } from '../Utils/index.js' | ||
import EventSystem from './EventSystem/index.js' | ||
import DynamicEventSystem from './DynamicEventSystem/index.js' | ||
const Settings = {} | ||
const Options = {} | ||
export default class Core extends EventSystem { | ||
export default class Core extends DynamicEventSystem { | ||
constructor($settings = Settings, $options = Options) { | ||
@@ -8,0 +8,0 @@ super($settings.events, $options.enable) |
import DynamicEventTarget from './Core/DynamicEventTarget/index.js' | ||
import EventSystem from './Core/EventSystem/index.js' | ||
import DynamicEventSystem from './Core/DynamicEventSystem/index.js' | ||
import Core from './Core/index.js' | ||
@@ -15,3 +15,3 @@ import Model from './Model/index.js' | ||
DynamicEventTarget, | ||
EventSystem, | ||
DynamicEventSystem, | ||
Core, | ||
@@ -18,0 +18,0 @@ Model, |
@@ -13,5 +13,6 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"repository": "https://github.com/thomaspatrickwelborn/mvc-framework", | ||
"version": "1.0.1", | ||
"license": "ISC", | ||
"description": "Early bird gets the wormhole. " | ||
} |
@@ -1,3 +0,17 @@ | ||
# MVC Framework | ||
Early bird gets the wormhole. | ||
> [!IMPORTANT] | ||
> Early Stage Development | ||
> [!WARNING] | ||
> Use At Own Risk | ||
> [!INFORMATION] | ||
> Interested in MVC Framework? | ||
thomas.patrick.welborn@outlook.com | ||
# | ||
MVC Framework is a Javascript implementation of the **[Presentation-Abstraction-Control (PAC) Pattern](https://en.wikipedia.org/wiki/Presentation%E2%80%93abstraction%E2%80%93control)** | ||
## Features | ||
- Dynamic Event Target (DET) ventilates Object, Array, and Map property modifier functions. | ||
- Dynamic Event System (DES) facilitates Event Target/Dynamic Event Target property assignment and ablement. | ||
- Fetch Router interfacilitates client/server endpoint calls and callbacks. | ||
## Documents | ||
### Classification | ||
- [Classification](./document/Classification/index.md) | ||
### Demonstration |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
351095
133
6357
17
114
23