File

src/smart-developer-tools/abl-dojo/abl-dojo-input/abl-dojo-input.component.ts

Extends

AbstractFormChild

Implements

AfterViewInit

Metadata

Index

Properties
Methods
Inputs

Inputs

ignoreFlexboxLayout
Type : boolean
smart-help-text
Type : string | undefined

Sets the HelpText value for this form child.

smart-instance-name
Type : string

The instance name of the component

smart-object-name
Type : string

The object name of the component

Methods

executeAbl
executeAbl()

Execute the ABL code.

Returns : void
getInitialAblSource
getInitialAblSource()

Get the initial ABL source.

Returns : string
Public handleLayoutChange
handleLayoutChange(newLayout: any)

Handle the layout change.

Parameters :
Name Type Optional
newLayout any No
Returns : void
Public onFileDrop
onFileDrop(file: NgxFileDropEntry[])

Handle the file drop.

Parameters :
Name Type Optional
file NgxFileDropEntry[] No
Returns : void
Public notifyLoadingFinished
notifyLoadingFinished(objectName: string)

Notifies the parent Smart Form that this form child has finished loading

Parameters :
Name Type Optional
objectName string No
Returns : void

void

Properties

Public injector
Type : Injector
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") -                  *
* www.consultingwerk.com and other contributors as listed                *
* below. All Rights Reserved.                                            *
*                                                                        *
*  Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY        *
*   KIND, either express or implied.                                     *
*                                                                        *
*  Contributors:                                                         *
*                                                                        *
**************************************************************************

--------------------------------------------------------------------------
    File        : abl-dojo-input.component.html
    Purpose     : Template for abl dojo input.
    Author(s)   : Oana Sucigan
    Created     : Nov 27, 2020
--------------------------------------------------------------------------
-->
<div class="container-fluid h-100" #container>
  <form class="h-100 d-flex flex-column">
    <div class="mb-3" id="editor-container">
      <ngx-file-drop 
        [dropZoneLabel]="'Drop files here'" 
        (onFileDrop)="onFileDrop($event)" 
        class="h-100 d-flex"
        (onFileOver)="fileIsOver.set(true)"
        (onFileLeave)="fileIsOver.set(false)">
          <ng-template ngx-file-drop-content-tmp let-openFileSelector="openFileSelector">
              <abl-editor-codemirror 
                #editor 
                [ablSource]="ablSource()"
                (ctrlXPressed)="executeAbl()"
                [ngClass]="{'file-is-over': fileIsOver(), 'file-is-outside': !fileIsOver()}">
              </abl-editor-codemirror>
          </ng-template>  
      </ngx-file-drop>
    </div>
    <div class="mb-3" id="execute-container">
      <div class="w-100">
        <button 
          (click)="executeAbl()" 
          kendoButton>
            <i class="fa-solid fa-circle-play"></i>
            &nbsp;Execute (CTRL-X)
        </button>
        &nbsp;&nbsp;&nbsp;
        <a href="https://help.consultingwerkcloud.com/smartcomponent_library/release/" target="_blank">Class Reference</a>
      </div>
    </div>
  </form>
</div>

./abl-dojo-input.component.css

/**********************************************************************
 * Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") -              *
 * www.consultingwerk.com and other contributors as listed            *
 * below. All Rights Reserved.                                        *
 *                                                                    *
 *  Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY    *
 *   KIND, either express or implied.                                 *
 *                                                                    *
 *  Contributors:                                                     *
 *                                                                    *
 **********************************************************************/
/*------------------------------------------------------------------------
    File        : abl-dojo-input.component.css
    Purpose     : Styles for abl dojo input.
    Author(s)   : Oana Sucigan
    Created     : Nov 27, 2020
  ----------------------------------------------------------------------*/

::ng-deep .container-fluid {
  padding-inline-start: 0px !important;
  padding-inline-end: 0px !important;
}

#editor-container {
  flex: 1;
  min-height: 0px;
}

#execute-container {
  margin-bottom: 0px;
}

::ng-deep div.ngx-file-drop {
  width: 100% !important;
  height: 100% !important;
}

::ng-deep div.ngx-file-drop__drop-zone {
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  border: none !important;
}
::ng-deep div.ngx-file-drop__drop-zone--over {
  background-color: transparent !important;
}
::ng-deep div.ngx-file-drop__content {
  width: 100% !important;
  height: 100% !important;
}

/* Code Mirror */
::ng-deep abl-editor-codemirror {
  width: 100% !important;
  height: 100% !important;
}

::ng-deep abl-editor-codemirror.file-is-over {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: red !important;
  border-style: dashed !important;
}
::ng-deep abl-editor-codemirror.file-is-outside {
  border: none !important;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""