Skip to content

Commit

Permalink
Fixed error handling + added j-Prompt UI component.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Jan 17, 2024
1 parent 6fe3da1 commit a185813
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion definitions/ui.js

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

8 changes: 6 additions & 2 deletions public/parts/flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,12 @@
} else
content = el.find('.content');

content.append('<summ' + 'ary class="hidden" is="is-summary" path="flow.note.' + self.id + '" config="show;html div:Thelpers.markdown(value, { element: el })"><span class="towindow exec" data-exec="?/notewindow"><i class="ti ti-window-alt"></i></span><span>@(Note)</span><div class="noscrollbar selectable markdown-tiny"></div></summ' + 'ary>');
var target = el.closest('.component').attr('is', 'is-div').attr('path', 'flow.errors.' + self.id).attr('config', '.iserror:value&&value.length__title:value?value[0].error:\'\'').tclass('isnewbie', !self.connected);
content.append('<summ' + 'ary class="hidden" path="flow.note.' + self.id + '" config="show;html div:Thelpers.markdown(value, { element: el })"><span class="towindow exec" data-exec="?/notewindow"><i class="ti ti-window-alt"></i></span><span>@(Note)</span><div class="noscrollbar selectable markdown-tiny"></div></summ' + 'ary>');
var target = el.closest('.component').attr('path', 'flow.errors.' + self.id).attr('config', '.iserror:value&&value.length;title:value?value[0].error\:\'\'').tclass('isnewbie', !self.connected);

NEWUIBIND(content.find('> summary'));
NEWUIBIND(target);

var com = flow.components.findItem('id', self.component);
if (com) {

Expand Down
10 changes: 10 additions & 0 deletions public/ui-ui-4zlbc5.min.js → public/ui-ui-vs8xu3.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion views/designer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<ui-component name="locale" config="requests:1;language:@{controller.language}"></ui-component>
<ui-component name="windows" path="common.windows" config="zindex:50"></ui-component>

<ui-component name="LAZY prompt" config="cancel:@(Cancel);submit:@(OK)"></ui-component>
<ui-component name="LAZY menu" config="style:2"></ui-component>
<ui-component name="LAZY approve" config="cancel:@(Cancel)"></ui-component>
<ui-component name="LAZY message" config="style:2"></ui-component>
Expand All @@ -27,7 +28,6 @@
<ui-component name="LAZY clipboard"></ui-component>
<ui-component name="LAZY icons" config="list:@{#}/icons-db.html"></ui-component>
<ui-component name="LAZY timepicker"></ui-component>
<ui-component name="LAZY datepicker"></ui-component>
<ui-component name="LAZY directory" config="placeholder:@(Search)"></ui-component>
<ui-component name="LAZY colorpicker"></ui-component>
<ui-component name="LAZY filereader"></ui-component>
Expand All @@ -38,6 +38,7 @@
<ui-component name="LAZY filesaver"></ui-component>

<ui-component name="edit"></ui-component>
<ui-component name="datepicker" config="today:@(Today);days:@(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);clear:@(Clear);months:@(January,February,March,April,May,Juny,July,August,September,October,November,December)"></ui-component>
<ui-component name="markdown" config="highlight:false;charts:false"></ui-component>
<ui-component name="paste"></ui-component>
<ui-component name="shortcuts"></ui-component>
Expand Down

0 comments on commit a185813

Please sign in to comment.