Replace entry with artifact and add entity
This commit is contained in:
78
server/static/js/materialize.js
vendored
78
server/static/js/materialize.js
vendored
@@ -1,8 +1,8 @@
|
||||
/*!
|
||||
* Materialize v1.0.0 (http://materializecss.com)
|
||||
* Copyright 2014-2017 Materialize
|
||||
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
||||
*/
|
||||
/*!
|
||||
* Materialize v1.0.0 (http://materializecss.com)
|
||||
* Copyright 2014-2017 Materialize
|
||||
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
||||
*/
|
||||
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
@@ -4771,13 +4771,13 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
M.initializeJqueryWrapper(Tooltip, 'tooltip', 'M_Tooltip');
|
||||
}
|
||||
})(cash, M.anime);
|
||||
; /*!
|
||||
* Waves v0.6.4
|
||||
* http://fian.my.id/Waves
|
||||
*
|
||||
* Copyright 2014 Alfiana E. Sibuea and other contributors
|
||||
* Released under the MIT license
|
||||
* https://github.com/fians/Waves/blob/master/LICENSE
|
||||
; /*!
|
||||
* Waves v0.6.4
|
||||
* http://fian.my.id/Waves
|
||||
*
|
||||
* Copyright 2014 Alfiana E. Sibuea and other contributors
|
||||
* Released under the MIT license
|
||||
* https://github.com/fians/Waves/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
;(function (window) {
|
||||
@@ -4987,13 +4987,13 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Disable mousedown event for 500ms during and after touch
|
||||
/**
|
||||
* Disable mousedown event for 500ms during and after touch
|
||||
*/
|
||||
var TouchHandler = {
|
||||
/* uses an integer rather than bool so there's no issues with
|
||||
* needing to clear timeouts if another touch event occurred
|
||||
* within the 500ms. Cannot mouseup between touchstart and
|
||||
/* uses an integer rather than bool so there's no issues with
|
||||
* needing to clear timeouts if another touch event occurred
|
||||
* within the 500ms. Cannot mouseup between touchstart and
|
||||
* touchend, nor in the 500ms after touchend. */
|
||||
touches: 0,
|
||||
allowEvent: function (e) {
|
||||
@@ -5018,9 +5018,9 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Delegated click handler for .waves-effect element.
|
||||
* returns null when .waves-effect element not in "click tree"
|
||||
/**
|
||||
* Delegated click handler for .waves-effect element.
|
||||
* returns null when .waves-effect element not in "click tree"
|
||||
*/
|
||||
function getWavesEffectElement(e) {
|
||||
if (TouchHandler.allowEvent(e) === false) {
|
||||
@@ -5040,8 +5040,8 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bubble the click and show effect if .waves-effect elem was found
|
||||
/**
|
||||
* Bubble the click and show effect if .waves-effect elem was found
|
||||
*/
|
||||
function showEffect(e) {
|
||||
var element = getWavesEffectElement(e);
|
||||
@@ -5077,11 +5077,11 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
document.body.addEventListener('mousedown', showEffect, false);
|
||||
};
|
||||
|
||||
/**
|
||||
* Attach Waves to an input element (or any element which doesn't
|
||||
* bubble mouseup/mousedown events).
|
||||
* Intended to be used with dynamically loaded forms/inputs, or
|
||||
* where the user doesn't want a delegated click handler.
|
||||
/**
|
||||
* Attach Waves to an input element (or any element which doesn't
|
||||
* bubble mouseup/mousedown events).
|
||||
* Intended to be used with dynamically loaded forms/inputs, or
|
||||
* where the user doesn't want a delegated click handler.
|
||||
*/
|
||||
Waves.attach = function (element) {
|
||||
//FUTURE: automatically add waves classes and allow users
|
||||
@@ -6789,11 +6789,11 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
break;
|
||||
}
|
||||
|
||||
var entry = {
|
||||
var artifact = {
|
||||
data: data[key],
|
||||
key: key
|
||||
};
|
||||
matchingData.push(entry);
|
||||
matchingData.push(artifact);
|
||||
|
||||
this.count++;
|
||||
}
|
||||
@@ -6809,12 +6809,12 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
|
||||
// Render
|
||||
for (var i = 0; i < matchingData.length; i++) {
|
||||
var _entry = matchingData[i];
|
||||
var _artifact = matchingData[i];
|
||||
var $autocompleteOption = $('<li></li>');
|
||||
if (!!_entry.data) {
|
||||
$autocompleteOption.append("<img src=\"" + _entry.data + "\" class=\"right circle\"><span>" + _entry.key + "</span>");
|
||||
if (!!_artifact.data) {
|
||||
$autocompleteOption.append("<img src=\"" + _artifact.data + "\" class=\"right circle\"><span>" + _artifact.key + "</span>");
|
||||
} else {
|
||||
$autocompleteOption.append('<span>' + _entry.key + '</span>');
|
||||
$autocompleteOption.append('<span>' + _artifact.key + '</span>');
|
||||
}
|
||||
|
||||
$(this.container).append($autocompleteOption);
|
||||
@@ -11728,9 +11728,9 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
if (placeholderOption.length) {
|
||||
placeholderOption.removeClass('selected');
|
||||
placeholderOption.find('input[type="checkbox"]').prop('checked', false);
|
||||
this._toggleEntryFromArray(placeholderOption[0].id);
|
||||
this._toggleArtifactFromArray(placeholderOption[0].id);
|
||||
}
|
||||
selected = this._toggleEntryFromArray(key);
|
||||
selected = this._toggleArtifactFromArray(key);
|
||||
} else {
|
||||
$(this.dropdownOptions).find('li').removeClass('selected');
|
||||
$(option).toggleClass('selected', selected);
|
||||
@@ -11931,14 +11931,14 @@ $jscomp.polyfill = function (e, r, p, m) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle entry from option
|
||||
* Toggle artifact from option
|
||||
* @param {String} key Option key
|
||||
* @return {Boolean} if entry was added or removed
|
||||
* @return {Boolean} if artifact was added or removed
|
||||
*/
|
||||
|
||||
}, {
|
||||
key: "_toggleEntryFromArray",
|
||||
value: function _toggleEntryFromArray(key) {
|
||||
key: "_toggleArtifactFromArray",
|
||||
value: function _toggleArtifactFromArray(key) {
|
||||
var notAdded = !this._keysSelected.hasOwnProperty(key);
|
||||
var $optionLi = $(this._valueDict[key].optionEl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user