chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Form } from '../../e2elib/lib/src/pageobjects/form.component';
import { MatrixEditorSOP } from '../../libappsop/matrixeditorsop';
import { DialogShiftPattern } from '../dialogs/dialog.shiftpattern';
 
export class FormShiftPattern extends Form {
  public meShiftPattern = new MatrixEditorShiftPattern();
 
  public constructor() {
    super('FormShiftPattern');
  }
}
 
export class MatrixEditorShiftPattern extends MatrixEditorSOP<DialogShiftPattern> {
  public static readonly title = 'Shift pattern';
 
  public constructor() {
    super('MatrixEditorShiftPatterns', 'matrixeditorContextMenuShiftPatterns', new DialogShiftPattern());
  }
}
 
// Matrix context menu items
const matrixEditorShiftPatternContextMenuItem = {
  Create: { ContextMenu: 'matrixeditorContextMenuShiftPatterns', Name: 'MenuCreate', Label: 'Create' },
  Edit: { ContextMenu: 'matrixeditorContextMenuShiftPatterns', Name: 'MenuEdit', Label: 'Edit' },
};
 
export { matrixEditorShiftPatternContextMenuItem as MatrixEditorShiftPatternContextMenuItem };
 
export const toastMatrixEditorShiftPattern = {
  valueGreaterThanMaxAllowed: (): string => 'Value is greater than the maximum allowed value',
};