next-flow-design 1.5.1 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- type Formatter = (value?: number) => string;
2
+ type Formatter = (value: number | null) => string;
3
3
  type Parser = (text: string) => number | null;
4
4
  export declare class NfInputNumberElement extends LitElement {
5
5
  static styles: CSSStyleSheet[];
@@ -18,6 +18,7 @@ export declare class NfInputNumberElement extends LitElement {
18
18
  noDecimal: boolean;
19
19
  noZero: boolean;
20
20
  noNegative: boolean;
21
+ center: boolean;
21
22
  private text;
22
23
  private setText;
23
24
  private isTyping;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 自定义装饰器:安全注册 Web Component
3
+ * 替代 Lit 原生的 @customElement
4
+ * * 功能:
5
+ * 1. 检查是否在浏览器环境 (SSR 安全)
6
+ * 2. 检查 tagName 是否已被注册 (HMR 安全)
7
+ * 3. 只有未注册时才执行 define
8
+ */
9
+ export declare const safeRegisterElement: (tagName: string) => (classOrDescriptor: any) => any;