[mod] focussing
This commit is contained in:
parent
b0bd963145
commit
74e95dff54
74
lib/plankton/plankton.d.ts
vendored
74
lib/plankton/plankton.d.ts
vendored
|
|
@ -4306,6 +4306,9 @@ declare namespace lib_plankton.zoo_input {
|
|||
/**
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4353,6 +4356,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4392,6 +4399,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4439,6 +4450,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4477,6 +4492,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4533,6 +4552,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4571,6 +4594,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4617,6 +4644,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4656,6 +4687,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4702,6 +4737,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4765,6 +4804,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
|
|
@ -4809,6 +4852,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4861,6 +4908,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4905,6 +4956,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4953,6 +5008,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -4988,6 +5047,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -5021,6 +5084,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -5054,6 +5121,10 @@ declare namespace lib_plankton.zoo_input {
|
|||
* [implementation]
|
||||
*/
|
||||
hook_change(action: (() => void)): Promise<void>;
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus(): void;
|
||||
}
|
||||
}
|
||||
declare namespace lib_plankton.zoo_input {
|
||||
|
|
@ -5166,6 +5237,9 @@ declare namespace lib_plankton.zoo_form {
|
|||
/**
|
||||
*/
|
||||
input_lock(mode: boolean): Promise<void>;
|
||||
/**
|
||||
*/
|
||||
input_focus(): void;
|
||||
}
|
||||
export {};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13295,6 +13295,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_input.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_simple = class_input_simple;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -13364,6 +13370,12 @@ var lib_plankton;
|
|||
hook_change(action) {
|
||||
return this.core.hook_change(action);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.core.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_wrapped = class_input_wrapped;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -13486,6 +13498,12 @@ var lib_plankton;
|
|||
});
|
||||
await this.core.hook_change(action);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_set.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_soft = class_input_soft;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -13557,6 +13575,11 @@ var lib_plankton;
|
|||
hook_change(action) {
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_hidden = class_input_hidden;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -13711,6 +13734,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_textarea.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_textarea = class_input_textarea;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -13822,6 +13851,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_input.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_date = class_input_date;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -13941,6 +13976,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_input.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_checkbox = class_input_checkbox;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14025,6 +14066,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_select.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_selection = class_input_selection;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14137,6 +14184,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_inputs[0].focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_enumeration = class_input_enumeration;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14316,6 +14369,12 @@ var lib_plankton;
|
|||
await element.input.hook_change(action);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
lib_plankton.log.notice("plankton.zoo_input.list.focus.dummy_implementation");
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_list = class_input_list;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14427,6 +14486,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.checkboxes[0].focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_set = class_input_set;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14545,6 +14610,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_input.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_password = class_input_password;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14638,6 +14709,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.dom_element.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_switch = class_input_switch;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14820,6 +14897,12 @@ var lib_plankton;
|
|||
});
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.fields[0].input.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_group = class_input_group;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14900,6 +14983,12 @@ var lib_plankton;
|
|||
hook_change(action) {
|
||||
return this.core.hook_change(action);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.core.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_hashmap = class_input_hashmap;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -14987,6 +15076,12 @@ var lib_plankton;
|
|||
hook_change(action) {
|
||||
return this.core.hook_change(action);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.core.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_datetime = class_input_datetime;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -15097,6 +15192,12 @@ var lib_plankton;
|
|||
hook_change(action) {
|
||||
return this.core.hook_change(action);
|
||||
}
|
||||
/**
|
||||
* [implementation]
|
||||
*/
|
||||
focus() {
|
||||
this.core.focus();
|
||||
}
|
||||
}
|
||||
zoo_input.class_input_datetime_central_europe = class_input_datetime_central_europe;
|
||||
})(zoo_input = lib_plankton.zoo_input || (lib_plankton.zoo_input = {}));
|
||||
|
|
@ -15444,6 +15545,11 @@ var lib_plankton;
|
|||
input_lock(mode) {
|
||||
return this.input.lock(mode);
|
||||
}
|
||||
/**
|
||||
*/
|
||||
input_focus() {
|
||||
return this.input.focus();
|
||||
}
|
||||
}
|
||||
zoo_form.class_form = class_form;
|
||||
})(zoo_form = lib_plankton.zoo_form || (lib_plankton.zoo_form = {}));
|
||||
|
|
|
|||
|
|
@ -159,6 +159,10 @@ namespace _dali.widgets
|
|||
);
|
||||
}
|
||||
}
|
||||
// init
|
||||
{
|
||||
(target_element.querySelector(".widget-caldav-close") as HTMLElement).focus();
|
||||
}
|
||||
|
||||
return Promise.resolve<void>(undefined);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -255,6 +255,7 @@ namespace _dali.widgets
|
|||
await form.input_write(this.initial_value);
|
||||
|
||||
target_element.appendChild(dom_root);
|
||||
form.input_focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -328,6 +328,7 @@ namespace _dali.widgets
|
|||
await form.input_write(this.initial_value);
|
||||
|
||||
target_element.appendChild(dom_root);
|
||||
form.input_focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ namespace _dali.widgets
|
|||
"password": "",
|
||||
}
|
||||
);
|
||||
form.input_focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue