Skip to content

Commit

Permalink
Front End Component Library Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sentivate committed May 6, 2021
1 parent cd3fb2a commit 92e8f79
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 100 deletions.
86 changes: 43 additions & 43 deletions browser/components/build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

const {
utility: {
isString
isString: isString$1
}
} = app;
const component = (config) => {
const componentName = config.name;
if (isString(componentName) && !config) {
if (isString$1(componentName) && !config) {
return new Ractive.components[componentName]();
} else if (Ractive.components[componentName]) {
return new Ractive.components[componentName](config);
Expand Down Expand Up @@ -56,16 +56,16 @@
const {
utility: {
findIndex,
hasValue,
hasValue: hasValue$1,
get,
isPlainObject,
isPlainObject: isPlainObject$1,
findItem,
assignDeep,
ensureArray,
assign,
each,
assign: assign$3,
each: each$1,
isArray,
isEmpty,
isEmpty: isEmpty$1,
sortNewest,
sortOldest,
clear,
Expand All @@ -74,23 +74,23 @@
const extendRactive = {
async afterIndex(path, indexMatch, item, indexName = 'id') {
const index = findIndex(this.get(path), indexMatch, indexName);
if (hasValue(index)) {
if (hasValue$1(index)) {
await this.splice(path, index + 1, 0, ...ensureArray(item));
} else {
await this.push(path, item);
}
},
async assign(path, mergeObject) {
const item = this.get(path);
if (hasValue(item)) {
if (hasValue$1(item)) {
assignDeep(item, mergeObject);
await this.update(path);
return item;
}
},
async beforeIndex(path, indexMatch, item, indexName = 'id') {
const index = findIndex(this.get(path), indexMatch, indexName);
if (hasValue(index)) {
if (hasValue$1(index)) {
await this.splice(path, index - 1, 0, ...ensureArray(item));
} else {
await this.push(path, item);
Expand All @@ -105,34 +105,34 @@
},
findItem(path, indexMatch, indexName = 'id') {
const item = findItem(this.get(path), indexMatch, indexName);
if (hasValue(item)) {
if (hasValue$1(item)) {
return item;
}
},
getIndex(path, indexMatch, indexName = 'id') {
const index = findIndex(this.get(path), indexMatch, indexName);
if (hasValue(index)) {
if (hasValue$1(index)) {
return index;
}
},
async mergeItem(path, indexMatch, newVal, indexName = 'id') {
const item = findItem(this.get(path), indexMatch, indexName);
if (hasValue(item)) {
if (hasValue$1(item)) {
assignDeep(item, newVal);
await this.update(path);
return item;
}
},
async removeIndex(path, indexMatch, indexName = 'id') {
const index = findIndex(this.get(path), indexMatch, indexName);
if (hasValue(index)) {
if (hasValue$1(index)) {
await this.splice(path, index, 1);
}
},
async setIndex(path, indexMatch, item, indexName = 'id', optionsArg) {
const options = optionsArg || {};
const index = findIndex(this.get(path), indexMatch, indexName);
if (hasValue(index)) {
if (hasValue$1(index)) {
const pathSuffix = (options.pathSuffix) ? `.${options.pathSuffix}` : '';
await this.set(`${path}.${index}${pathSuffix}`, item);
} else if (get('conflict', options) === 'insert') {
Expand All @@ -151,14 +151,14 @@
},
async syncCollection(path, newValArg, type = 'push', indexName = 'id') {
const oldVal = this.get(path);
if (isPlainObject(oldVal)) {
if (isPlainObject$1(oldVal)) {
assignDeep(oldVal, newValArg);
} else {
const newVal = ensureArray(newValArg);
each(newVal, (item) => {
each$1(newVal, (item) => {
const oldValItem = findItem(oldVal, item[indexName], indexName);
if (hasValue(oldValItem)) {
assign(oldValItem, item);
if (hasValue$1(oldValItem)) {
assign$3(oldValItem, item);
} else {
oldVal[type](item);
}
Expand All @@ -169,43 +169,43 @@
async toggleIndex(path, indexMatchArg, pathSuffixArg, indexName = 'id') {
let indexMatch;
const arrayCheck = isArray(indexMatchArg);
if (arrayCheck && !isEmpty(indexMatchArg)) {
if (arrayCheck && !isEmpty$1(indexMatchArg)) {
indexMatch = indexMatchArg.shift();
} else {
indexMatch = indexMatchArg;
}
const index = findIndex(this.get(path), indexMatch, indexName);
if (hasValue(index)) {
if (hasValue$1(index)) {
const pathSuffix = (pathSuffixArg) ? `.${pathSuffixArg}` : '';
await this.toggle(`${path}.${index}${pathSuffix}`);
}
if (arrayCheck && !isEmpty(indexMatchArg)) {
if (arrayCheck && !isEmpty$1(indexMatchArg)) {
await this.toggleIndex(path, indexMatchArg, pathSuffixArg, indexName);
}
},
async updateItem(path, indexMatch, react, indexName = 'id') {
const item = findItem(this.get(path), indexMatch, indexName);
if (hasValue(item)) {
if (hasValue$1(item)) {
react(item);
await this.update(path);
return item;
}
}
};
assign(Ractive.prototype, extendRactive);
assign$3(Ractive.prototype, extendRactive);

const {
utility: {
assign: assign$1,
assign: assign$2,
cnsl,
compactMapArray,
isEmpty: isEmpty$1,
isEmpty,
eachAsync,
eachObject,
eachArray,
isString: isString$1,
isPlainObject: isPlainObject$1,
hasValue: hasValue$1,
isString,
isPlainObject,
hasValue,
drop
},
} = app;
Expand All @@ -222,12 +222,12 @@
this.number = watchersRegex.push(callable) - 1;
}
start() {
if (!hasValue$1(this.number)) {
if (!hasValue(this.number)) {
this.number = watchersRegex.push(this.callable) - 1;
}
}
stop() {
if (hasValue$1(this.number)) {
if (hasValue(this.number)) {
drop(watchersRegex, this.number);
this.number = null;
}
Expand All @@ -252,12 +252,12 @@
this.number = levelObject.push(callable) - 1;
}
start() {
if (!hasValue$1(this.number)) {
if (!hasValue(this.number)) {
this.number = watchers[this.type].push(this.callable) - 1;
}
}
stop() {
if (hasValue$1(this.number)) {
if (hasValue(this.number)) {
drop(watchersRegex, this.number);
this.number = null;
}
Expand Down Expand Up @@ -296,9 +296,9 @@
};
const watch = (type, callable) => {
let method;
if (isString$1(type)) {
if (isString(type)) {
method = onString;
} else if (isPlainObject$1(type)) {
} else if (isPlainObject(type)) {
method = onCollection;
} else {
method = onRegex;
Expand Down Expand Up @@ -330,7 +330,7 @@
return item;
}
});
if (!isEmpty$1(regexSubscribers)) {
if (!isEmpty(regexSubscribers)) {
subscribers.push(...regexSubscribers);
}
if (levelObject) {
Expand All @@ -343,23 +343,23 @@
});
}
};
assign$1(app, {
assign$2(app, {
watch,
watchers,
watcherUpdate
});

const {
utility: {
each: each$1,
assign: assign$2,
each,
assign: assign$1,
}
} = app;
const headNode = document.querySelector('head');
document.querySelector('head');
const importedCssCount = {};
const importedCss = {};
const componentsWithCss = {};
assign$2(app, {
assign$1(app, {
componentsWithCss,
importedCss,
importedCssCount
Expand Down Expand Up @@ -723,7 +723,7 @@

const {
utility: {
assign: assign$3
assign
}
} = app;
const view = new Ractive({
Expand Down Expand Up @@ -754,7 +754,7 @@
},
template: `<title>{{text()}}</title>`,
});
assign$3(app, {
assign(app, {
view,
pageTitle
});
Expand Down
2 changes: 1 addition & 1 deletion browser/components/build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion browser/resources/css/uikit-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion browser/resources/css/uikit.css

Large diffs are not rendered by default.

Loading

0 comments on commit 92e8f79

Please sign in to comment.