Added minimal functionality for Robot teaching
- Added minimal HMI - Added possibility to open and close all chamber doors
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/* Generic */
|
||||
.TcHmi_Controls_UiProvider_TcHmiKeyboard-container > a {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
// Compatibility file for non-module typescript compiles without adjustments.
|
||||
// Use the following line for modern code (needs adjustments to tsconfig.json#configOptions/paths)
|
||||
// import { TcHmiControl } from "Beckhoff.TwinCAT.HMI.Framework/index.esm.js";
|
||||
// ***************************************************************************
|
||||
|
||||
export declare class TcHmiKeyboard extends TcHmi.UiProvider.KeyboardProvider {
|
||||
static readonly providerName = "Beckhoff.TcHmiKeyboard";
|
||||
protected keyboardClassFqn: string;
|
||||
protected popupHeaderText: string;
|
||||
/**
|
||||
*
|
||||
* @param providerName Allows inheriting classes to set their own provider name.
|
||||
*/
|
||||
constructor(providerName?: string);
|
||||
protected __keyboardCtrl: TcHmiKeyboardControl | undefined;
|
||||
protected __popup: TcHmi.UiProvider.PopupProvider.HtmlElementBox<void> | undefined;
|
||||
protected __popupEventDestroyers: TcHmi.DestroyFunction[];
|
||||
protected __mutationObserver: MutationObserver | undefined;
|
||||
/** Also the marker of active keyboard */
|
||||
protected __activeTextElement: HTMLInputElement | HTMLTextAreaElement | undefined;
|
||||
/** Container for the footer view (contains keyboard and close icon) */
|
||||
protected __footerElement: HTMLDivElement | undefined;
|
||||
protected __localeChangedRegistered: boolean;
|
||||
protected __deviceHasOSK: boolean;
|
||||
refreshConfig(): void;
|
||||
open(textElement: HTMLInputElement | HTMLTextAreaElement): TcHmi.IErrorDetails;
|
||||
protected __closeViaApi(event?: Event): void;
|
||||
close(): TcHmi.IErrorDetails;
|
||||
protected __activePointerInteraction: boolean;
|
||||
protected __handlePointerInteraction(event: Event): void;
|
||||
/**
|
||||
* Returns whether the keyboard is currently being interacted with by mouse, touch or physical keyboard.
|
||||
*/
|
||||
hasActiveUserInteraction(): boolean;
|
||||
}
|
||||
declare const _TcHmiKeyboard: typeof TcHmiKeyboard;
|
||||
type tTcHmiKeyboard = TcHmiKeyboard;
|
||||
declare global {
|
||||
namespace TcHmi.Controls.UiProvider.Keyboard {
|
||||
let TcHmiKeyboard: typeof _TcHmiKeyboard;
|
||||
type TcHmiKeyboard = tTcHmiKeyboard;
|
||||
}
|
||||
}
|
||||
export {};
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Base-Dark */
|
||||
.TcHmi_Controls_UiProvider_TcHmiKeyboard-container {
|
||||
/* When keyboard on top */
|
||||
border-top: 1px solid var(--tchmi-foreground-color-1);
|
||||
/* When keyboard on bottom */
|
||||
border-bottom: 1px solid var(--tchmi-foreground-color-1);
|
||||
|
||||
background-color: var(--tchmi-background);
|
||||
}
|
||||
|
||||
.TcHmi_Controls_UiProvider_TcHmiKeyboard-container > a {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
background-image: url('close.svg');
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g stroke="#ffffff" stroke-width="1.05" fill="none" transform="translate(5, 5)">
|
||||
<line x1="0.5" y1="0.5" x2="15.5" y2="15.5" />
|
||||
<line x1="0.5" y1="15.5" x2="15.5" y2="0.5" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 383 B |
@@ -0,0 +1,14 @@
|
||||
/* Base */
|
||||
.TcHmi_Controls_UiProvider_TcHmiKeyboard-container {
|
||||
/* When keyboard on top */
|
||||
border-top: 1px solid var(--tchmi-foreground-color-1);
|
||||
/* When keyboard on bottom */
|
||||
border-bottom: 1px solid var(--tchmi-foreground-color-1);
|
||||
background-color: var(--tchmi-background);
|
||||
}
|
||||
|
||||
.TcHmi_Controls_UiProvider_TcHmiKeyboard-container > a {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
background-image: url('close.svg');
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="26px" height="26px" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g stroke="#4794DA" stroke-width="1.05" fill="none" transform="translate(5, 5)">
|
||||
<line x1="0.5" y1="0.5" x2="15.5" y2="15.5" />
|
||||
<line x1="0.5" y1="15.5" x2="15.5" y2="0.5" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 383 B |
Reference in New Issue
Block a user