import { actionItem } from "@nuka9510/simple-custom-element/@types/component"; import { Component } from "@nuka9510/simple-custom-element"; export interface plugin { component: Component[]; action: { /** * ``` * * * ``` */ 'sub-select': actionItem[]; /** * ``` * * * * ``` */ 'check-all': actionItem[]; /** * ``` * * * * * * ``` * #data-sce-min 최소값 * optional * * #data-sce-max 최대값 * optional * * #data-sce-type \ * `A`: 숫자만 허용 \ * `B`: 소숫점 및 음수 허용 \ * `C`: #,###.# 형식으로 변환 * * #data-sce-decimals 소숫점 아래 자리 수 \ * defalut: `0` */ 'number-only': actionItem[]; /** * ``` * * * * * * ``` */ 'check': actionItem[]; } } export interface NumberOnlyElement extends HTMLInputElement { event_key_code?: KeyboardEvent['keyCode']; prev_value?: string; prev_selection?: number | null; }