@fluxhub/fluxhub-lib 19.0.172 → 19.0.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1646,7 +1646,12 @@ class QueryService {
1646
1646
  console.error(err);
1647
1647
  if (displayError) {
1648
1648
  console.error(queryp.sql + ' ' + err.message);
1649
- if (err.message.indexOf('ORA-50012') == -1)
1649
+ const sql_lc = (queryp.sql || '').toLowerCase();
1650
+ const is_write = sql_lc.indexOf('insert') != -1 || sql_lc.indexOf('update') != -1;
1651
+ if (err.message.indexOf('ORA-50012') == -1
1652
+ && (is_write
1653
+ || (err.message.indexOf('Failed to connect') == -1
1654
+ && err.message.indexOf('Could not connect (sequence)') == -1)))
1650
1655
  this.toastr.error(queryp.sql + ' ' + err.message);
1651
1656
  }
1652
1657
  throw new Error();
@@ -1855,7 +1860,12 @@ class OdbcService {
1855
1860
  if (err) {
1856
1861
  console.error(err);
1857
1862
  if (displayError) {
1858
- this.toastr.error(queryp.sql + ' ' + err.message);
1863
+ const sql_lc = (queryp.sql || '').toLowerCase();
1864
+ const is_write = sql_lc.indexOf('insert') != -1 || sql_lc.indexOf('update') != -1;
1865
+ if (is_write
1866
+ || (err.message.indexOf('Failed to connect') == -1
1867
+ && err.message.indexOf('Could not connect (sequence)') == -1))
1868
+ this.toastr.error(queryp.sql + ' ' + err.message);
1859
1869
  }
1860
1870
  throw new Error();
1861
1871
  }
@@ -11176,14 +11186,15 @@ class FHFormToolBarComponent {
11176
11186
  </button>
11177
11187
  </div>
11178
11188
  </div>
11179
- `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
11189
+ `, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i9$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i9$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i9$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] });
11180
11190
  }
11181
11191
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHFormToolBarComponent, decorators: [{
11182
11192
  type: Component,
11183
11193
  args: [{ selector: 'FHFormToolBar', imports: [
11184
11194
  TranslateModule,
11185
11195
  MatButtonModule,
11186
- MatIconModule
11196
+ MatIconModule,
11197
+ FlexLayoutModule
11187
11198
  ], template: `
11188
11199
  <div fxLayout="row" fxLayoutGap="5px">
11189
11200
  <div
@@ -15039,7 +15050,12 @@ class WkfService {
15039
15050
  if (err) {
15040
15051
  console.error(err);
15041
15052
  if (displayError) {
15042
- this.toastr.error(err.message);
15053
+ const sql_lc = (queryp.sql || '').toLowerCase();
15054
+ const is_write = sql_lc.indexOf('insert') != -1 || sql_lc.indexOf('update') != -1;
15055
+ if (is_write
15056
+ || (err.message.indexOf('Failed to connect') == -1
15057
+ && err.message.indexOf('Could not connect (sequence)') == -1))
15058
+ this.toastr.error(err.message);
15043
15059
  }
15044
15060
  throw new Error();
15045
15061
  }
@@ -16682,6 +16698,7 @@ class FHWinAskBigTextComponent {
16682
16698
  (beforeClose)="onBeforeClose($event)">
16683
16699
 
16684
16700
  <div dialog-content>
16701
+ <div style="padding: 5px;">
16685
16702
  <FHTextArea
16686
16703
  [label]="label"
16687
16704
  [rows]="15"
@@ -16690,6 +16707,7 @@ class FHWinAskBigTextComponent {
16690
16707
  [required]="min_chars!=0?true:false">
16691
16708
  </FHTextArea>
16692
16709
  </div>
16710
+ </div>
16693
16711
  </fh-dialog-base>
16694
16712
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DialogBaseComponent, selector: "fh-dialog-base", inputs: ["title", "buttons", "showCloseButton", "canValidate", "buttonsAlignment"], outputs: ["buttonClick", "beforeClose"] }, { kind: "component", type: FHTextAreaComponent, selector: "FHTextArea", inputs: ["hidden", "label", "enabled", "required", "rows", "error"], outputs: ["change", "focusout", "focusin"] }] });
16695
16713
  }
@@ -16707,6 +16725,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
16707
16725
  (beforeClose)="onBeforeClose($event)">
16708
16726
 
16709
16727
  <div dialog-content>
16728
+ <div style="padding: 5px;">
16710
16729
  <FHTextArea
16711
16730
  [label]="label"
16712
16731
  [rows]="15"
@@ -16715,6 +16734,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
16715
16734
  [required]="min_chars!=0?true:false">
16716
16735
  </FHTextArea>
16717
16736
  </div>
16737
+ </div>
16718
16738
  </fh-dialog-base>
16719
16739
  ` }]
16720
16740
  }], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: i3$1.ToastrService, decorators: [{
@@ -34086,7 +34106,12 @@ class QueryOpenService {
34086
34106
  console.error(err);
34087
34107
  if (displayError) {
34088
34108
  console.error(queryp.sql + ' ' + err.message);
34089
- if (err.message.indexOf('ORA-50012') == -1)
34109
+ const sql_lc = (queryp.sql || '').toLowerCase();
34110
+ const is_write = sql_lc.indexOf('insert') != -1 || sql_lc.indexOf('update') != -1;
34111
+ if (err.message.indexOf('ORA-50012') == -1
34112
+ && (is_write
34113
+ || (err.message.indexOf('Failed to connect') == -1
34114
+ && err.message.indexOf('Could not connect (sequence)') == -1)))
34090
34115
  this.toastr.error(queryp.sql + ' ' + err.message);
34091
34116
  }
34092
34117
  throw new Error();