Feat: Dogs page.
This commit is contained in:
408
static/dist/js/main.bundle.js
vendored
408
static/dist/js/main.bundle.js
vendored
@@ -657,6 +657,7 @@ var API = /*#__PURE__*/function () {
|
||||
*/
|
||||
|
||||
// User
|
||||
// user
|
||||
}, {
|
||||
key: "loginUser",
|
||||
value: function () {
|
||||
@@ -695,7 +696,7 @@ var API = /*#__PURE__*/function () {
|
||||
dataRequest[flagUser] = users;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context3.next = 6;
|
||||
return API.request(hashSaveDogUser, 'POST', dataRequest);
|
||||
return API.request(hashSaveUserUser, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context3.abrupt("return", _context3.sent);
|
||||
case 7:
|
||||
@@ -708,22 +709,21 @@ var API = /*#__PURE__*/function () {
|
||||
return _saveUsers.apply(this, arguments);
|
||||
}
|
||||
return saveUsers;
|
||||
}() // dog
|
||||
// Command categories
|
||||
}() // company
|
||||
}, {
|
||||
key: "saveCommandCategories",
|
||||
key: "saveCompanies",
|
||||
value: function () {
|
||||
var _saveCommandCategories = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(commandCategories, formFilters, comment) {
|
||||
var _saveCompanies = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(companies, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
||||
while (1) switch (_context4.prev = _context4.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagCommandCategory] = commandCategories;
|
||||
dataRequest[flagCompany] = companies;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context4.next = 6;
|
||||
return API.request(hashSaveDogCommandCategory, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogCompany, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context4.abrupt("return", _context4.sent);
|
||||
case 7:
|
||||
@@ -732,25 +732,26 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee4);
|
||||
}));
|
||||
function saveCommandCategories(_x5, _x6, _x7) {
|
||||
return _saveCommandCategories.apply(this, arguments);
|
||||
function saveCompanies(_x5, _x6, _x7) {
|
||||
return _saveCompanies.apply(this, arguments);
|
||||
}
|
||||
return saveCommandCategories;
|
||||
}() // Commands
|
||||
return saveCompanies;
|
||||
}() // dog
|
||||
// Command categories
|
||||
}, {
|
||||
key: "saveCommands",
|
||||
key: "saveCommandCategories",
|
||||
value: function () {
|
||||
var _saveCommands = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(commands, formFilters, comment) {
|
||||
var _saveCommandCategories = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(commandCategories, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
||||
while (1) switch (_context5.prev = _context5.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagCommand] = commands;
|
||||
dataRequest[flagCommandCategory] = commandCategories;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context5.next = 6;
|
||||
return API.request(hashSaveDogCommand, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogCommandCategory, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context5.abrupt("return", _context5.sent);
|
||||
case 7:
|
||||
@@ -759,25 +760,25 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee5);
|
||||
}));
|
||||
function saveCommands(_x8, _x9, _x10) {
|
||||
return _saveCommands.apply(this, arguments);
|
||||
function saveCommandCategories(_x8, _x9, _x10) {
|
||||
return _saveCommandCategories.apply(this, arguments);
|
||||
}
|
||||
return saveCommands;
|
||||
}() // Dog Command Links
|
||||
return saveCommandCategories;
|
||||
}() // Commands
|
||||
}, {
|
||||
key: "saveDogCommandLinks",
|
||||
key: "saveCommands",
|
||||
value: function () {
|
||||
var _saveDogCommandLinks = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(dogCommandLinks, formFilters, comment) {
|
||||
var _saveCommands = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(commands, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
||||
while (1) switch (_context6.prev = _context6.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagDogCommandLink] = dogCommandLinks;
|
||||
dataRequest[flagCommand] = commands;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context6.next = 6;
|
||||
return API.request(hashSaveDogDogCommandLink, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogCommand, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context6.abrupt("return", _context6.sent);
|
||||
case 7:
|
||||
@@ -786,25 +787,25 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee6);
|
||||
}));
|
||||
function saveDogCommandLinks(_x11, _x12, _x13) {
|
||||
return _saveDogCommandLinks.apply(this, arguments);
|
||||
function saveCommands(_x11, _x12, _x13) {
|
||||
return _saveCommands.apply(this, arguments);
|
||||
}
|
||||
return saveDogCommandLinks;
|
||||
}() // Locations
|
||||
return saveCommands;
|
||||
}() // Dog Command Links
|
||||
}, {
|
||||
key: "saveLocations",
|
||||
key: "saveDogCommandLinks",
|
||||
value: function () {
|
||||
var _saveLocations = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(locations, formFilters, comment) {
|
||||
var _saveDogCommandLinks = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(dogCommandLinks, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
||||
while (1) switch (_context7.prev = _context7.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagLocation] = locations;
|
||||
dataRequest[flagDogCommandLink] = dogCommandLinks;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context7.next = 6;
|
||||
return API.request(hashSaveDogLocation, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogDogCommandLink, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context7.abrupt("return", _context7.sent);
|
||||
case 7:
|
||||
@@ -813,25 +814,25 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee7);
|
||||
}));
|
||||
function saveLocations(_x14, _x15, _x16) {
|
||||
return _saveLocations.apply(this, arguments);
|
||||
function saveDogCommandLinks(_x14, _x15, _x16) {
|
||||
return _saveDogCommandLinks.apply(this, arguments);
|
||||
}
|
||||
return saveLocations;
|
||||
}() // Button Icons
|
||||
return saveDogCommandLinks;
|
||||
}() // Locations
|
||||
}, {
|
||||
key: "saveButtonIcons",
|
||||
key: "saveLocations",
|
||||
value: function () {
|
||||
var _saveButtonIcons = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(buttonIcons, formFilters, comment) {
|
||||
var _saveLocations = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(locations, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
||||
while (1) switch (_context8.prev = _context8.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagButtonIcon] = buttonIcons;
|
||||
dataRequest[flagLocation] = locations;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context8.next = 6;
|
||||
return API.request(hashSaveDogButtonIcon, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogLocation, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context8.abrupt("return", _context8.sent);
|
||||
case 7:
|
||||
@@ -840,25 +841,25 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee8);
|
||||
}));
|
||||
function saveButtonIcons(_x17, _x18, _x19) {
|
||||
return _saveButtonIcons.apply(this, arguments);
|
||||
function saveLocations(_x17, _x18, _x19) {
|
||||
return _saveLocations.apply(this, arguments);
|
||||
}
|
||||
return saveButtonIcons;
|
||||
}() // Command Button Links
|
||||
return saveLocations;
|
||||
}() // Button Icons
|
||||
}, {
|
||||
key: "saveCommandButtonLinks",
|
||||
key: "saveButtonIcons",
|
||||
value: function () {
|
||||
var _saveCommandButtonLinks = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(links, formFilters, comment) {
|
||||
var _saveButtonIcons = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(buttonIcons, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
||||
while (1) switch (_context9.prev = _context9.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagCommandButtonLink] = links;
|
||||
dataRequest[flagButtonIcon] = buttonIcons;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context9.next = 6;
|
||||
return API.request(hashSaveDogCommandButtonLink, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogButtonIcon, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context9.abrupt("return", _context9.sent);
|
||||
case 7:
|
||||
@@ -867,25 +868,25 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee9);
|
||||
}));
|
||||
function saveCommandButtonLinks(_x20, _x21, _x22) {
|
||||
return _saveCommandButtonLinks.apply(this, arguments);
|
||||
function saveButtonIcons(_x20, _x21, _x22) {
|
||||
return _saveButtonIcons.apply(this, arguments);
|
||||
}
|
||||
return saveCommandButtonLinks;
|
||||
}() // Assessments
|
||||
return saveButtonIcons;
|
||||
}() // Command Button Links
|
||||
}, {
|
||||
key: "saveAssessments",
|
||||
key: "saveCommandButtonLinks",
|
||||
value: function () {
|
||||
var _saveAssessments = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(assessments, formFilters, comment) {
|
||||
var _saveCommandButtonLinks = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(links, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
||||
while (1) switch (_context10.prev = _context10.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagAssessment] = assessments;
|
||||
dataRequest[flagCommandButtonLink] = links;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context10.next = 6;
|
||||
return API.request(hashSaveDogAssessment, 'POST', dataRequest);
|
||||
return API.request(hashSaveDogCommandButtonLink, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context10.abrupt("return", _context10.sent);
|
||||
case 7:
|
||||
@@ -894,7 +895,34 @@ var API = /*#__PURE__*/function () {
|
||||
}
|
||||
}, _callee10);
|
||||
}));
|
||||
function saveAssessments(_x23, _x24, _x25) {
|
||||
function saveCommandButtonLinks(_x23, _x24, _x25) {
|
||||
return _saveCommandButtonLinks.apply(this, arguments);
|
||||
}
|
||||
return saveCommandButtonLinks;
|
||||
}() // Assessments
|
||||
}, {
|
||||
key: "saveAssessments",
|
||||
value: function () {
|
||||
var _saveAssessments = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(assessments, formFilters, comment) {
|
||||
var dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
||||
while (1) switch (_context11.prev = _context11.next) {
|
||||
case 0:
|
||||
dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagAssessment] = assessments;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context11.next = 6;
|
||||
return API.request(hashSaveDogAssessment, 'POST', dataRequest);
|
||||
case 6:
|
||||
return _context11.abrupt("return", _context11.sent);
|
||||
case 7:
|
||||
case "end":
|
||||
return _context11.stop();
|
||||
}
|
||||
}, _callee11);
|
||||
}));
|
||||
function saveAssessments(_x26, _x27, _x28) {
|
||||
return _saveAssessments.apply(this, arguments);
|
||||
}
|
||||
return saveAssessments;
|
||||
@@ -902,10 +930,10 @@ var API = /*#__PURE__*/function () {
|
||||
}, {
|
||||
key: "saveAssessmentsDistractionsAndResponses",
|
||||
value: function () {
|
||||
var _saveAssessmentsDistractionsAndResponses = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(assessments, formFilters, comment) {
|
||||
var _saveAssessmentsDistractionsAndResponses = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(assessments, formFilters, comment) {
|
||||
var filtersJson, dataRequest;
|
||||
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
||||
while (1) switch (_context11.prev = _context11.next) {
|
||||
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
||||
while (1) switch (_context12.prev = _context12.next) {
|
||||
case 0:
|
||||
filtersJson = DOM.convertForm2JSON(formFilters);
|
||||
filtersJson[attrIdAssessment] = null;
|
||||
@@ -913,17 +941,17 @@ var API = /*#__PURE__*/function () {
|
||||
dataRequest[flagFormFilters] = filtersJson;
|
||||
dataRequest[flagAssessment] = assessments;
|
||||
dataRequest[flagComment] = comment;
|
||||
_context11.next = 8;
|
||||
_context12.next = 8;
|
||||
return API.request(hashSaveDogAssessmentDistractionAndResponse, 'POST', dataRequest);
|
||||
case 8:
|
||||
return _context11.abrupt("return", _context11.sent);
|
||||
return _context12.abrupt("return", _context12.sent);
|
||||
case 9:
|
||||
case "end":
|
||||
return _context11.stop();
|
||||
return _context12.stop();
|
||||
}
|
||||
}, _callee11);
|
||||
}, _callee12);
|
||||
}));
|
||||
function saveAssessmentsDistractionsAndResponses(_x26, _x27, _x28) {
|
||||
function saveAssessmentsDistractionsAndResponses(_x29, _x30, _x31) {
|
||||
return _saveAssessmentsDistractionsAndResponses.apply(this, arguments);
|
||||
}
|
||||
return saveAssessmentsDistractionsAndResponses;
|
||||
@@ -6550,6 +6578,115 @@ var PageDogDogCommandLinks = /*#__PURE__*/function (_TableBasePage) {
|
||||
dog_command_links_defineProperty(PageDogDogCommandLinks, "hash", hashPageDogDogCommandLinks);
|
||||
dog_command_links_defineProperty(PageDogDogCommandLinks, "attrIdRowObject", attrIdDogCommandLink);
|
||||
|
||||
;// ./static/js/pages/dog/dogs.js
|
||||
function dogs_typeof(o) { "@babel/helpers - typeof"; return dogs_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, dogs_typeof(o); }
|
||||
function dogs_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
||||
function dogs_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, dogs_toPropertyKey(o.key), o); } }
|
||||
function dogs_createClass(e, r, t) { return r && dogs_defineProperties(e.prototype, r), t && dogs_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
||||
function dogs_callSuper(t, o, e) { return o = dogs_getPrototypeOf(o), dogs_possibleConstructorReturn(t, dogs_isNativeReflectConstruct() ? Reflect.construct(o, e || [], dogs_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
||||
function dogs_possibleConstructorReturn(t, e) { if (e && ("object" == dogs_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return dogs_assertThisInitialized(t); }
|
||||
function dogs_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
||||
function dogs_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (dogs_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
||||
function dogs_superPropGet(t, o, e, r) { var p = dogs_get(dogs_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
||||
function dogs_get() { return dogs_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = dogs_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, dogs_get.apply(null, arguments); }
|
||||
function dogs_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = dogs_getPrototypeOf(t));); return t; }
|
||||
function dogs_getPrototypeOf(t) { return dogs_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, dogs_getPrototypeOf(t); }
|
||||
function dogs_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && dogs_setPrototypeOf(t, e); }
|
||||
function dogs_setPrototypeOf(t, e) { return dogs_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, dogs_setPrototypeOf(t, e); }
|
||||
function dogs_defineProperty(e, r, t) { return (r = dogs_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
||||
function dogs_toPropertyKey(t) { var i = dogs_toPrimitive(t, "string"); return "symbol" == dogs_typeof(i) ? i : i + ""; }
|
||||
function dogs_toPrimitive(t, r) { if ("object" != dogs_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != dogs_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var PageDogDogs = /*#__PURE__*/function (_TableBasePage) {
|
||||
function PageDogDogs(router) {
|
||||
var _this;
|
||||
dogs_classCallCheck(this, PageDogDogs);
|
||||
_this = dogs_callSuper(this, PageDogDogs, [router]);
|
||||
dogs_defineProperty(_this, "callSaveTableContent", API.saveDogs);
|
||||
_this.dogMixin = new DogTableMixinPage(_this);
|
||||
return _this;
|
||||
}
|
||||
dogs_inherits(PageDogDogs, _TableBasePage);
|
||||
return dogs_createClass(PageDogDogs, [{
|
||||
key: "initialize",
|
||||
value: function initialize() {
|
||||
this.sharedInitialize();
|
||||
}
|
||||
}, {
|
||||
key: "hookupFilters",
|
||||
value: function hookupFilters() {
|
||||
this.sharedHookupFilters();
|
||||
this.hookupFilterActive();
|
||||
}
|
||||
}, {
|
||||
key: "loadRowTable",
|
||||
value: function loadRowTable(rowJson) {
|
||||
if (rowJson == null) return;
|
||||
if (_verbose) {
|
||||
utils_Utils.consoleLogIfNotProductionEnvironment("applying data row: ", rowJson);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "getJsonRow",
|
||||
value: function getJsonRow(row) {
|
||||
if (row == null) return;
|
||||
var inputName = row.querySelector('td.' + flagName + ' .' + flagName);
|
||||
var inputAppearance = row.querySelector('td.' + flagAppearance + ' .' + flagAppearance);
|
||||
var inputMassKg = row.querySelector('td.' + flagMassKg + ' .' + flagMassKg);
|
||||
var buttonActive = row.querySelector('td.' + flagActive + ' .' + flagActive);
|
||||
var jsonRow = {};
|
||||
jsonRow[attrIdDog] = row.getAttribute(attrIdDog);
|
||||
jsonRow[flagName] = DOM.getElementAttributeValueCurrent(inputName);
|
||||
jsonRow[flagAppearance] = DOM.getElementAttributeValueCurrent(inputAppearance);
|
||||
jsonRow[flagMassKg] = DOM.getElementAttributeValueCurrent(inputMassKg);
|
||||
jsonRow[flagActive] = buttonActive.classList.contains(flagDelete);
|
||||
console.log("jsonRow");
|
||||
console.log(jsonRow);
|
||||
return jsonRow;
|
||||
}
|
||||
}, {
|
||||
key: "initialiseRowNew",
|
||||
value: function initialiseRowNew(tbody, row) {}
|
||||
}, {
|
||||
key: "postInitialiseRowNewCallback",
|
||||
value: function postInitialiseRowNewCallback(tbody) {}
|
||||
}, {
|
||||
key: "hookupTableMain",
|
||||
value: function hookupTableMain() {
|
||||
dogs_superPropGet(PageDogDogs, "hookupTableMain", this, 3)([]);
|
||||
this.hookupFieldsNameTable();
|
||||
this.hookupFieldsAppearance();
|
||||
this.hookupFieldsMassKg();
|
||||
this.hookupFieldsNotesTable();
|
||||
this.hookupFieldsActive();
|
||||
}
|
||||
}, {
|
||||
key: "hookupFieldsAppearance",
|
||||
value: function hookupFieldsAppearance() {
|
||||
this.hookupChangeHandlerTableCells(flagAppearance);
|
||||
}
|
||||
}, {
|
||||
key: "hookupFieldsMassKg",
|
||||
value: function hookupFieldsMassKg() {
|
||||
this.hookupChangeHandlerTableCells(flagMassKg);
|
||||
}
|
||||
}, {
|
||||
key: "leave",
|
||||
value: function leave() {
|
||||
dogs_superPropGet(PageDogDogs, "leave", this, 3)([]);
|
||||
}
|
||||
}]);
|
||||
}(TableBasePage);
|
||||
dogs_defineProperty(PageDogDogs, "hash", hashPageDogDogs);
|
||||
dogs_defineProperty(PageDogDogs, "attrIdRowObject", attrIdDog);
|
||||
|
||||
;// ./static/js/pages/dog/locations.js
|
||||
function locations_typeof(o) { "@babel/helpers - typeof"; return locations_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, locations_typeof(o); }
|
||||
function locations_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
||||
@@ -8344,16 +8481,90 @@ function user_defineProperty(e, r, t) { return (r = user_toPropertyKey(r)) in e
|
||||
function user_toPropertyKey(t) { var i = user_toPrimitive(t, "string"); return "symbol" == user_typeof(i) ? i : i + ""; }
|
||||
function user_toPrimitive(t, r) { if ("object" != user_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != user_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
||||
|
||||
var PageUser = /*#__PURE__*/function (_BasePage) {
|
||||
|
||||
|
||||
|
||||
var PageUser = /*#__PURE__*/function (_TableBasePage) {
|
||||
function PageUser(router) {
|
||||
var _this;
|
||||
user_classCallCheck(this, PageUser);
|
||||
return user_callSuper(this, PageUser, [router]);
|
||||
_this = user_callSuper(this, PageUser, [router]);
|
||||
user_defineProperty(_this, "callSaveTableContent", API.saveUsers);
|
||||
_this.dogMixin = new DogTableMixinPage(_this);
|
||||
return _this;
|
||||
}
|
||||
user_inherits(PageUser, _BasePage);
|
||||
user_inherits(PageUser, _TableBasePage);
|
||||
return user_createClass(PageUser, [{
|
||||
key: "initialize",
|
||||
value: function initialize() {
|
||||
this.sharedInitialize();
|
||||
this.hookupTableMain();
|
||||
}
|
||||
}, {
|
||||
key: "hookupFilters",
|
||||
value: function hookupFilters() {}
|
||||
}, {
|
||||
key: "loadRowTable",
|
||||
value: function loadRowTable(rowJson) {
|
||||
if (rowJson == null) return;
|
||||
if (_verbose) {
|
||||
Utils.consoleLogIfNotProductionEnvironment("applying data row: ", rowJson);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "getTableRecords",
|
||||
value: function getTableRecords() {
|
||||
var dirtyOnly = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||
dirtyOnly = true;
|
||||
var container = document.querySelector('.' + flagCard + '.' + flagUser);
|
||||
return [this.getJsonRow(container)];
|
||||
}
|
||||
}, {
|
||||
key: "getJsonRow",
|
||||
value: function getJsonRow(container) {
|
||||
console.log("getJsonRow: ", container);
|
||||
if (container == null) return;
|
||||
var inputFirstname = container.querySelector(' #' + flagFirstname);
|
||||
var inputSurname = container.querySelector(' #' + flagSurname);
|
||||
var inputEmail = container.querySelector(' #' + flagEmail);
|
||||
var divRole = container.querySelector('.' + flagRole);
|
||||
var idUser = container.getAttribute(attrIdUser);
|
||||
var jsonRow = user_defineProperty(user_defineProperty(user_defineProperty(user_defineProperty(user_defineProperty(user_defineProperty(user_defineProperty(user_defineProperty(user_defineProperty({}, attrIdUserAuth0, null), flagEmail, null), flagIsEmailVerified, null), attrIdCompany, company[attrIdCompany]), flagIsSuperUser, null), flagCanAdminDog, null), flagCanAdminUser, null), flagCompany, null), flagRole, null);
|
||||
jsonRow[attrIdUser] = idUser;
|
||||
jsonRow[attrIdRole] = DOM.getElementAttributeValueCurrent(divRole);
|
||||
jsonRow[flagFirstname] = DOM.getElementAttributeValueCurrent(inputFirstname);
|
||||
jsonRow[flagSurname] = DOM.getElementAttributeValueCurrent(inputSurname);
|
||||
jsonRow[flagEmail] = DOM.getElementAttributeValueCurrent(inputEmail);
|
||||
return jsonRow;
|
||||
}
|
||||
}, {
|
||||
key: "initialiseRowNew",
|
||||
value: function initialiseRowNew(tbody, row) {}
|
||||
}, {
|
||||
key: "postInitialiseRowNewCallback",
|
||||
value: function postInitialiseRowNewCallback(tbody) {}
|
||||
}, {
|
||||
key: "hookupTableMain",
|
||||
value: function hookupTableMain() {
|
||||
user_superPropGet(PageUser, "hookupTableMain", this, 3)([]);
|
||||
this.hookupFieldsFirstname();
|
||||
this.hookupFieldsSurname();
|
||||
this.hookupFieldsEmail();
|
||||
}
|
||||
}, {
|
||||
key: "hookupFieldsFirstname",
|
||||
value: function hookupFieldsFirstname() {
|
||||
this.hookupChangeHandlerTableCells('.' + flagCard + '.' + flagUser + ' #' + flagFirstname);
|
||||
}
|
||||
}, {
|
||||
key: "hookupFieldsSurname",
|
||||
value: function hookupFieldsSurname() {
|
||||
this.hookupChangeHandlerTableCells('.' + flagCard + '.' + flagUser + ' #' + flagSurname);
|
||||
}
|
||||
}, {
|
||||
key: "hookupFieldsEmail",
|
||||
value: function hookupFieldsEmail() {
|
||||
this.hookupChangeHandlerTableCells('.' + flagCard + '.' + flagUser + ' #' + flagEmail);
|
||||
}
|
||||
}, {
|
||||
key: "leave",
|
||||
@@ -8361,8 +8572,9 @@ var PageUser = /*#__PURE__*/function (_BasePage) {
|
||||
user_superPropGet(PageUser, "leave", this, 3)([]);
|
||||
}
|
||||
}]);
|
||||
}(BasePage);
|
||||
}(TableBasePage);
|
||||
user_defineProperty(PageUser, "hash", hashPageUserAccount);
|
||||
user_defineProperty(PageUser, "attrIdRowObject", attrIdUser);
|
||||
|
||||
;// ./static/js/pages/user/users.js
|
||||
function users_typeof(o) { "@babel/helpers - typeof"; return users_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, users_typeof(o); }
|
||||
@@ -8493,6 +8705,45 @@ var PageUsers = /*#__PURE__*/function (_TableBasePage) {
|
||||
users_defineProperty(PageUsers, "hash", hashPageUserAccounts);
|
||||
users_defineProperty(PageUsers, "attrIdRowObject", attrIdUser);
|
||||
|
||||
;// ./static/js/pages/user/company.js
|
||||
function company_typeof(o) { "@babel/helpers - typeof"; return company_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, company_typeof(o); }
|
||||
function company_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
||||
function company_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, company_toPropertyKey(o.key), o); } }
|
||||
function company_createClass(e, r, t) { return r && company_defineProperties(e.prototype, r), t && company_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
||||
function company_callSuper(t, o, e) { return o = company_getPrototypeOf(o), company_possibleConstructorReturn(t, company_isNativeReflectConstruct() ? Reflect.construct(o, e || [], company_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
||||
function company_possibleConstructorReturn(t, e) { if (e && ("object" == company_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return company_assertThisInitialized(t); }
|
||||
function company_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
||||
function company_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (company_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
||||
function company_superPropGet(t, o, e, r) { var p = company_get(company_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
||||
function company_get() { return company_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = company_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, company_get.apply(null, arguments); }
|
||||
function company_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = company_getPrototypeOf(t));); return t; }
|
||||
function company_getPrototypeOf(t) { return company_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, company_getPrototypeOf(t); }
|
||||
function company_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && company_setPrototypeOf(t, e); }
|
||||
function company_setPrototypeOf(t, e) { return company_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, company_setPrototypeOf(t, e); }
|
||||
function company_defineProperty(e, r, t) { return (r = company_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
||||
function company_toPropertyKey(t) { var i = company_toPrimitive(t, "string"); return "symbol" == company_typeof(i) ? i : i + ""; }
|
||||
function company_toPrimitive(t, r) { if ("object" != company_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != company_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
||||
|
||||
var PageUserCompany = /*#__PURE__*/function (_BasePage) {
|
||||
function PageUserCompany(router) {
|
||||
company_classCallCheck(this, PageUserCompany);
|
||||
return company_callSuper(this, PageUserCompany, [router]);
|
||||
}
|
||||
company_inherits(PageUserCompany, _BasePage);
|
||||
return company_createClass(PageUserCompany, [{
|
||||
key: "initialize",
|
||||
value: function initialize() {
|
||||
this.sharedInitialize();
|
||||
}
|
||||
}, {
|
||||
key: "leave",
|
||||
value: function leave() {
|
||||
company_superPropGet(PageUserCompany, "leave", this, 3)([]);
|
||||
}
|
||||
}]);
|
||||
}(BasePage);
|
||||
company_defineProperty(PageUserCompany, "hash", hashPageUserCompany);
|
||||
|
||||
;// ./static/js/router.js
|
||||
function router_typeof(o) { "@babel/helpers - typeof"; return router_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, router_typeof(o); }
|
||||
function router_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
||||
@@ -8512,7 +8763,7 @@ function router_toPrimitive(t, r) { if ("object" != router_typeof(t) || !t) retu
|
||||
|
||||
|
||||
|
||||
// import PageDogDogs from './pages/dog/dogs.js';
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -8533,6 +8784,7 @@ function router_toPrimitive(t, r) { if ("object" != router_typeof(t) || !t) retu
|
||||
|
||||
|
||||
|
||||
|
||||
var Router = /*#__PURE__*/function () {
|
||||
function Router() {
|
||||
var _this = this;
|
||||
@@ -8577,7 +8829,10 @@ var Router = /*#__PURE__*/function () {
|
||||
name: 'PageDogDogCommandLinks',
|
||||
module: PageDogDogCommandLinks
|
||||
};
|
||||
// this.pages[hashPageDogDogs] = { name: 'PageDogDogs', module: PageDogDogs };
|
||||
this.pages[hashPageDogDogs] = {
|
||||
name: 'PageDogDogs',
|
||||
module: PageDogDogs
|
||||
};
|
||||
this.pages[hashPageDogLocations] = {
|
||||
name: 'PageDogLocations',
|
||||
module: PageDogLocations
|
||||
@@ -8630,6 +8885,10 @@ var Router = /*#__PURE__*/function () {
|
||||
name: 'PageUsers',
|
||||
module: PageUsers
|
||||
};
|
||||
this.pages[hashPageUserCompany] = {
|
||||
name: 'PageUserCompany',
|
||||
module: PageUserCompany
|
||||
};
|
||||
// Routes
|
||||
this.routes = {};
|
||||
// Core
|
||||
@@ -8670,7 +8929,10 @@ var Router = /*#__PURE__*/function () {
|
||||
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||
return _this.navigateToHash(hashPageDogDogCommandLinks, isPopState);
|
||||
};
|
||||
// this.routes[hashPageDogDogs] = (isPopState = false) => this.navigateToHash(hashPageDogDogs, isPopState);
|
||||
this.routes[hashPageDogDogs] = function () {
|
||||
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||
return _this.navigateToHash(hashPageDogDogs, isPopState);
|
||||
};
|
||||
this.routes[hashPageDogLocations] = function () {
|
||||
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||
return _this.navigateToHash(hashPageDogLocations, isPopState);
|
||||
@@ -8723,6 +8985,10 @@ var Router = /*#__PURE__*/function () {
|
||||
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||
return _this.navigateToHash(hashPageUserAccounts, isPopState);
|
||||
};
|
||||
this.routes[hashPageUserCompany] = function () {
|
||||
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||
return _this.navigateToHash(hashPageUserCompany, isPopState);
|
||||
};
|
||||
this.initialize();
|
||||
}
|
||||
return router_createClass(Router, [{
|
||||
|
||||
2
static/dist/js/main.bundle.js.map
vendored
2
static/dist/js/main.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
23
static/dist/js/user_company.bundle.js
vendored
Normal file
23
static/dist/js/user_company.bundle.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
|
||||
(() => {
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
})();
|
||||
|
||||
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
|
||||
(() => {
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
})();
|
||||
|
||||
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules.
|
||||
(() => {
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=user_company.bundle.js.map
|
||||
1
static/dist/js/user_company.bundle.js.map
vendored
Normal file
1
static/dist/js/user_company.bundle.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"js/user_company.bundle.js","mappings":";;;;AAAA;;;;;;ACAA;;;;;;ACAA","sources":["webpack://app/./static/css/sections/dog.css?a9d0","webpack://app/./static/css/sections/user.css","webpack://app/./static/css/pages/user/company.css?bfbb"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};"],"names":[],"sourceRoot":""}
|
||||
Reference in New Issue
Block a user