@semantic-ui/core
Advanced tools
Comparing version 0.0.37 to 0.0.38
{ | ||
"name": "@semantic-ui/core", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"title": "Semantic UI Next", | ||
@@ -5,0 +5,0 @@ "description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.", |
@@ -8,3 +8,3 @@ import { createComponent } from '@semantic-ui/component'; | ||
const createInstance = ({tpl, settings, data, el, $}) => ({ | ||
const createInstance = ({self, settings, data, el, $}) => ({ | ||
isIconBefore() { | ||
@@ -29,6 +29,6 @@ return settings.icon && !settings.iconAfter; | ||
const onCreated = ({tpl}) => { | ||
const onCreated = ({self}) => { | ||
}; | ||
const onRendered = function({tpl}){ | ||
const onRendered = function({self}){ | ||
@@ -38,14 +38,14 @@ }; | ||
const events = { | ||
'touchstart .button'({event, tpl, $}) { | ||
'touchstart .button'({event, self, $}) { | ||
$(this).addClass('pressed'); | ||
}, | ||
'touchend .button'({event, tpl, $}) { | ||
'touchend .button'({event, self, $}) { | ||
$(this).removeClass('pressed'); | ||
}, | ||
'click .button'({event, tpl, $}) { | ||
'click .button'({event, self, $}) { | ||
$(this).blur(); | ||
}, | ||
'keydown .button'({event, tpl, $}) { | ||
'keydown .button'({event, self, $}) { | ||
let $button = $(this); | ||
if (tpl.isSubmitKey(event.keyCode)) { | ||
if (self.isSubmitKey(event.keyCode)) { | ||
$button.addClass('pressed'); | ||
@@ -58,5 +58,5 @@ event.preventDefault(); | ||
}, | ||
'keyup .button'({event, tpl, $}) { | ||
'keyup .button'({event, self, $}) { | ||
let $button = $(this); | ||
if (tpl.isSubmitKey(event.keyCode)) { | ||
if (self.isSubmitKey(event.keyCode)) { | ||
$button.removeClass('pressed'); | ||
@@ -63,0 +63,0 @@ } |
@@ -7,3 +7,3 @@ import { createComponent } from '@semantic-ui/component'; | ||
const createInstance = ({tpl, $}) => ({ | ||
const createInstance = ({self, $}) => ({ | ||
@@ -14,3 +14,3 @@ | ||
const onCreated = ({tpl, el}) => { | ||
const onCreated = ({self, el}) => { | ||
}; | ||
@@ -17,0 +17,0 @@ |
@@ -7,3 +7,3 @@ import { createComponent } from '@semantic-ui/component'; | ||
const createInstance = ({settings, tpl, $, dispatchEvent}) => ({ | ||
const createInstance = ({settings, self, $, dispatchEvent}) => ({ | ||
@@ -24,3 +24,3 @@ setValue(value) { | ||
if(activeValue !== undefined) { | ||
return activeValue == tpl.getValue(item); | ||
return activeValue == self.getValue(item); | ||
} | ||
@@ -32,3 +32,3 @@ return false; | ||
if(value !== undefined) { | ||
tpl.setValue(value); | ||
self.setValue(value); | ||
} | ||
@@ -46,4 +46,4 @@ }, | ||
const events = { | ||
'click menu-item'({tpl, data}) { | ||
tpl.setValue(data.value); | ||
'click menu-item'({self, data}) { | ||
self.setValue(data.value); | ||
} | ||
@@ -50,0 +50,0 @@ }; |
@@ -31,8 +31,8 @@ import { noop } from '@semantic-ui/utils'; | ||
const events = { | ||
'click ui-icon.close'({event, tpl}) { | ||
tpl.hide(); | ||
'click ui-icon.close'({event, self}) { | ||
self.hide(); | ||
}, | ||
'click dialog'({event, settings, data, tpl}) { | ||
'click dialog'({event, settings, data, self}) { | ||
if(settings.closeable && $(event.target).is('dialog')) { | ||
tpl.hide(); | ||
self.hide(); | ||
} | ||
@@ -39,0 +39,0 @@ } |
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
10457465