Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmerveen committed Jul 30, 2024
1 parent b700ad8 commit 8326bb6
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,15 @@
base;
/** to render */
component = null;
properties = new Set();
uniqueEntriesByProperties = {};
propertyLabelDictionary = {};
_contents = [];
_orderBy = [];
properties = new Set();
_columnOrder = [];
_filter = '';
_selectionProperty = ''; /** must be an unique property on the element to select on. */
_selectedIds = new Set(); /** used to sync selections */
uniqueEntriesByProperties = {};
propertyLabelDictionary = {};
_templates = {}; /** html templates to use for columns and caption/tfoot */
_templateClasses = {};

Expand Down Expand Up @@ -1370,6 +1370,7 @@
contents;
component;
listType = 'ul';
commentType = ''
// currently just by adding this, it will change the iconset to database.
iconSet;
filter = { value: '', caseSensitive: false };
Expand Down Expand Up @@ -1407,8 +1408,8 @@
this.base = new BaseComponent();
/** Check if there is contents already there. */
this.setContents(this.getAttribute('contents'));

this.iconSet = this.getAttribute('icon-set') ? this.getAttribute('icon-type') : 'file';
this.commentType = this.getAttribute('comment') ?? '';
this.iconSet = this.getAttribute('icon-set') ?? 'file';
this.maxDepth = this.getAttribute('max-depth') ? parseInt(this.getAttribute('max-depth')) : -1;
this.setFilter(this.getAttribute('filter'));

Expand Down Expand Up @@ -1629,18 +1630,15 @@


createLeafText(text) {
let hasComment = typeof text === 'string' ? text.includes('(') || text.includes('[') : false;
let hasComment = typeof text === 'string' && this.commentType.length ? text.includes(this.commentType[0]) : false;

let titleText = '';
let commentText = '';

if (hasComment) {
let roundBracketIndex = text.indexOf('(');
let squareBracketIndex = text.indexOf('[');
let indexToCut = squareBracketIndex === -1 ? roundBracketIndex : squareBracketIndex;

titleText = this.convertJsonKeyToTitle(text.substring(0, indexToCut));
commentText = text.substring(indexToCut);
let commentBracketIndex = text.indexOf(this.commentType[0]);
titleText = this.convertJsonKeyToTitle(text.substring(0, commentBracketIndex));
commentText = text.substring(commentBracketIndex + 1, text.length - 1).trim();
}
else {
titleText = this.convertJsonKeyToTitle(text);
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/cdn/ibiss-v0.0.10/avian.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/cdn/ibiss-v0.0.10/flightkit.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/cdn/ibiss-v0.0.10/htmx-ibiss-ui.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/cdn/ibiss-v0.0.10/rocket.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/js/flightkit.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions documentation/public/cdn/ibiss-v0.0.10/avian.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions documentation/public/cdn/ibiss-v0.0.10/flightkit.min.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions documentation/public/cdn/ibiss-v0.0.10/rocket.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion documentation/public/js/flightkit.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@pennions/ibiss",
"version": "0.0.9",
"version": "0.0.10",
"avian_version": "0.0.2",
"flightkit_version": "0.0.9",
"flightkit_version": "0.0.10",
"htmx_plugin_version": "0.0.1",
"rocketjs_version": "0.0.1",
"description": "Frontend library of Pennions",
Expand Down

0 comments on commit 8326bb6

Please sign in to comment.