minitel-standalone
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -40,2 +40,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
}): void; | ||
get disabled(): boolean; | ||
} |
@@ -160,2 +160,6 @@ import { EventEmitter } from 'node:events'; | ||
} | ||
get disabled() { | ||
var _a; | ||
return this.attributes.disabled || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.disabled) || false; | ||
} | ||
} | ||
@@ -162,0 +166,0 @@ MinitelObject.defaultAttributes = { |
@@ -17,3 +17,2 @@ import { FocusableAttributes as FocusableIfaceAttributes, Focusable as FocusableIface } from '../abstract/focusable.js'; | ||
constructor(children: MinitelObject<import("../types.js").MinitelObjectAttributes, Record<string, any[]>>[] | undefined, attributes: Partial<FocusableAttributes>, minitel: Minitel); | ||
get disabled(): boolean; | ||
} |
@@ -30,6 +30,3 @@ import { Container } from './container.js'; | ||
} | ||
get disabled() { | ||
return this.attributes.disabled || false; | ||
} | ||
} | ||
Focusable.defaultAttributes = Object.assign(Object.assign({}, Container.defaultAttributes), { autofocus: false, disabled: false, widthAlign: 'start', heightAlign: 'start', onFocus: () => { }, onBlur: () => { } }); |
@@ -35,3 +35,2 @@ import { Focusable, FocusableAttributes } from '../abstract/focusable.js'; | ||
get focusCursorAt(): [number, number]; | ||
get disabled(): boolean; | ||
} | ||
@@ -38,0 +37,0 @@ export interface InputAttributes extends FocusableAttributes { |
@@ -208,6 +208,3 @@ import { MinitelObject } from '../abstract/minitelobject.js'; | ||
} | ||
get disabled() { | ||
return this.attributes.disabled || false; | ||
} | ||
} | ||
Input.defaultAttributes = Object.assign(Object.assign({}, MinitelObject.defaultAttributes), { fillChar: '.', width: 8, height: 1, type: 'text', autofocus: false, disabled: false, multiline: false, onFocus: () => { }, onBlur: () => { }, onChange: () => { }, onScroll: () => { } }); |
@@ -34,3 +34,2 @@ import { Focusable } from '../abstract/focusable.js'; | ||
render(attributes: ScrollableAttributes, inheritMe: Partial<ScrollableAttributes>): RichCharGrid; | ||
get disabled(): boolean; | ||
} | ||
@@ -37,0 +36,0 @@ export interface ScrollableAttributes extends ContainerAttributes { |
@@ -245,6 +245,3 @@ import { RichChar } from '../richchar.js'; | ||
} | ||
get disabled() { | ||
return this.attributes.disabled || false; | ||
} | ||
} | ||
Scrollable.defaultAttributes = Object.assign(Object.assign({}, Container.defaultAttributes), { overflowX: 'hidden', overflowY: 'auto', autofocus: false, disabled: false, scrollbarBackColor: 5, scrollbarColor: 7, blinkPeriod: 500, onScroll: () => { }, onFocus: () => { }, onBlur: () => { } }); |
{ | ||
"name": "minitel-standalone", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A standalone package for minitel components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259995
5483