You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
881 B
26 lines
881 B
4 years ago
|
// Riot.js constants that can be used accross more modules
|
||
|
|
||
|
export const
|
||
|
COMPONENTS_IMPLEMENTATION_MAP = new Map(),
|
||
|
DOM_COMPONENT_INSTANCE_PROPERTY = Symbol('riot-component'),
|
||
|
PLUGINS_SET = new Set(),
|
||
|
IS_DIRECTIVE = 'is',
|
||
|
VALUE_ATTRIBUTE = 'value',
|
||
|
MOUNT_METHOD_KEY = 'mount',
|
||
|
UPDATE_METHOD_KEY = 'update',
|
||
|
UNMOUNT_METHOD_KEY = 'unmount',
|
||
|
SHOULD_UPDATE_KEY = 'shouldUpdate',
|
||
|
ON_BEFORE_MOUNT_KEY = 'onBeforeMount',
|
||
|
ON_MOUNTED_KEY = 'onMounted',
|
||
|
ON_BEFORE_UPDATE_KEY = 'onBeforeUpdate',
|
||
|
ON_UPDATED_KEY = 'onUpdated',
|
||
|
ON_BEFORE_UNMOUNT_KEY = 'onBeforeUnmount',
|
||
|
ON_UNMOUNTED_KEY = 'onUnmounted',
|
||
|
PROPS_KEY = 'props',
|
||
|
STATE_KEY = 'state',
|
||
|
SLOTS_KEY = 'slots',
|
||
|
ROOT_KEY = 'root',
|
||
|
IS_PURE_SYMBOL = Symbol.for('pure'),
|
||
|
PARENT_KEY_SYMBOL = Symbol('parent'),
|
||
|
ATTRIBUTES_KEY_SYMBOL = Symbol('attributes'),
|
||
|
TEMPLATE_KEY_SYMBOL = Symbol('template')
|