@genesislcap/foundation-ui 15.1.0 → 15.2.1

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.
@@ -348,6 +348,17 @@ export declare const baseComponents: {
348
348
  foundationTreeItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").TreeItemOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").TreeItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
349
349
  foundationTreeView: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./tree-view").TreeView>;
350
350
  foundationUrlInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./url-input").UrlInput>;
351
+ foundationVerificationCodeInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
352
+ baseName: string;
353
+ template: import("@microsoft/fast-element").ViewTemplate<import("./verification-code-input").VerificationCodeInput, any>;
354
+ styles: import("@microsoft/fast-element").ElementStyles;
355
+ shadowOptions: ShadowRootInit;
356
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
357
+ baseName: string;
358
+ template: import("@microsoft/fast-element").ViewTemplate<import("./verification-code-input").VerificationCodeInput, any>;
359
+ styles: import("@microsoft/fast-element").ElementStyles;
360
+ shadowOptions: ShadowRootInit;
361
+ }, typeof import("./verification-code-input").VerificationCodeInput>;
351
362
  foundationSectionNavigator: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
352
363
  baseName: string;
353
364
  template: import("@microsoft/fast-element").ViewTemplate<import("./section-navigator").SectionNavigator, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAwF5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAwFJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
1
+ {"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAyF5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAyFJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
@@ -102,4 +102,5 @@ export * from './utils/base-datasource';
102
102
  export * from './utils/editable-elements';
103
103
  export * from './utils/event-types';
104
104
  export { getPrefix as getDesignSystemPrefix } from './utils/dom';
105
+ export * from './verification-code-input';
105
106
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;AAExE,eAAO,MAAM,8BAA8B,yDAAuD,CAAC;AAEnG,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAA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bar';
100
100
  import type { Tooltip as TooltipWC } from './tooltip/tooltip';
101
101
  import type { TreeView as TreeViewWC } from './tree-view/tree-view';
102
102
  import type { UrlInput as UrlInputWC } from './url-input/url-input';
103
+ import type { VerificationCodeInput as VerificationCodeInputWC } from './verification-code-input/verification-code-input';
103
104
  import type { AddGroupEventDetail, AddRuleEventDetail, DelGroupEventDetail, DelRuleEventDetail, UpdateGroupEventDetail, UpdateRuleEventDetail } from '@genesislcap/expression-builder';
104
- import type { ClearOptions, DailyConfig, FileReadEventDetail, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MonthlyConfig, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail, ValueChangeEventDetail, WeeklyConfig, YearlyConfig } from '@genesislcap/foundation-ui';
105
+ import type { ClearOptions, DailyConfig, FileReadEventDetail, FileSelectedEventDetail, FilterChangedEventDetail, FilterClearedEventDetail, MonthlyConfig, MultiselectOption, OpenChangeEventDetail, SelectedOption, StepClickEventDetail, ValidationError, ValidationFailureEventDetail, ValueChangeEventDetail, VerificationCodeInputEventDetail, WeeklyConfig, YearlyConfig } from '@genesislcap/foundation-ui';
105
106
 
106
107
  /** @internal Maps a web component class to its public props only.
107
108
  * keyof T skips private/protected members, so this avoids the TS error
@@ -132,23 +133,23 @@ interface HTMLWCProps extends React.AriaAttributes {
132
133
  onInput?(e: Event): void;
133
134
  }
134
135
 
135
- export declare const AccordionItem: React.ForwardRefExoticComponent<
136
+ export declare const Accordion: React.ForwardRefExoticComponent<
136
137
  React.PropsWithChildren<
137
- Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
138
+ Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
138
139
  HTMLWCProps & {
139
140
  }
140
- > & React.RefAttributes<AccordionItemWC>
141
+ > & React.RefAttributes<AccordionWC>
141
142
  >;
142
- export type AccordionItemRef = AccordionItemWC;
143
+ export type AccordionRef = AccordionWC;
143
144
 
144
- export declare const Accordion: React.ForwardRefExoticComponent<
145
+ export declare const AccordionItem: React.ForwardRefExoticComponent<
145
146
  React.PropsWithChildren<
146
- Omit<PublicOf<AccordionWC>, 'children' | 'style'> &
147
+ Omit<PublicOf<AccordionItemWC>, 'children' | 'style'> &
147
148
  HTMLWCProps & {
148
149
  }
149
- > & React.RefAttributes<AccordionWC>
150
+ > & React.RefAttributes<AccordionItemWC>
150
151
  >;
151
- export type AccordionRef = AccordionWC;
152
+ export type AccordionItemRef = AccordionItemWC;
152
153
 
153
154
  export declare const ActionsMenu: React.ForwardRefExoticComponent<
154
155
  React.PropsWithChildren<
@@ -199,23 +200,23 @@ export declare const AnchoredRegion: React.ForwardRefExoticComponent<
199
200
  >;
200
201
  export type AnchoredRegionRef = AnchoredRegionWC;
201
202
 
202
- export declare const Avatar: React.ForwardRefExoticComponent<
203
+ export declare const Badge: React.ForwardRefExoticComponent<
203
204
  React.PropsWithChildren<
204
- Omit<PublicOf<AvatarWC>, 'children' | 'style'> &
205
+ Omit<PublicOf<BadgeWC>, 'children' | 'style'> &
205
206
  HTMLWCProps & {
206
207
  }
207
- > & React.RefAttributes<AvatarWC>
208
+ > & React.RefAttributes<BadgeWC>
208
209
  >;
209
- export type AvatarRef = AvatarWC;
210
+ export type BadgeRef = BadgeWC;
210
211
 
211
- export declare const Badge: React.ForwardRefExoticComponent<
212
+ export declare const Avatar: React.ForwardRefExoticComponent<
212
213
  React.PropsWithChildren<
213
- Omit<PublicOf<BadgeWC>, 'children' | 'style'> &
214
+ Omit<PublicOf<AvatarWC>, 'children' | 'style'> &
214
215
  HTMLWCProps & {
215
216
  }
216
- > & React.RefAttributes<BadgeWC>
217
+ > & React.RefAttributes<AvatarWC>
217
218
  >;
218
- export type BadgeRef = BadgeWC;
219
+ export type AvatarRef = AvatarWC;
219
220
 
220
221
  export declare const Banner: React.ForwardRefExoticComponent<
221
222
  React.PropsWithChildren<
@@ -1029,6 +1030,16 @@ export declare const UrlInput: React.ForwardRefExoticComponent<
1029
1030
  >;
1030
1031
  export type UrlInputRef = UrlInputWC;
1031
1032
 
1033
+ export declare const VerificationCodeInput: React.ForwardRefExoticComponent<
1034
+ React.PropsWithChildren<
1035
+ Omit<PublicOf<VerificationCodeInputWC>, 'children' | 'style'> &
1036
+ HTMLWCProps & {
1037
+ onComplete?: (event: CustomEvent<VerificationCodeInputEventDetail>) => void;
1038
+ }
1039
+ > & React.RefAttributes<VerificationCodeInputWC>
1040
+ >;
1041
+ export type VerificationCodeInputRef = VerificationCodeInputWC;
1042
+
1032
1043
  export declare const DailyRecurrence: React.ForwardRefExoticComponent<
1033
1044
  React.PropsWithChildren<
1034
1045
  Omit<PublicOf<DailyRecurrenceWC>, 'children' | 'style'> &
@@ -0,0 +1,4 @@
1
+ export * from './verification-code-input';
2
+ export * from './verification-code-input.template';
3
+ export * from './verification-code-input.styles';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,145 @@
1
+ import { FormAssociated, FoundationElement } from '@microsoft/fast-foundation';
2
+ export declare const foundationVerificationCodeInputShadowOptions: ShadowRootInit;
3
+ export declare const defaultVerificationCodeInputConfig: {};
4
+ /**
5
+ * Detail payload of the `change` and `complete` events.
6
+ * @public
7
+ */
8
+ export interface VerificationCodeInputEventDetail {
9
+ value: string;
10
+ }
11
+ declare class _VerificationCodeInput extends FoundationElement {
12
+ }
13
+ interface _VerificationCodeInput extends FormAssociated {
14
+ }
15
+ declare const VerificationCodeInput_base: typeof _VerificationCodeInput;
16
+ /**
17
+ * Multi-digit verification code input for OTP / 2FA flows.
18
+ *
19
+ * Form-associated (FAST `FormAssociated`): host `name` / `required` / `value` participate
20
+ * in native HTML form validation and submission like {@link TextField}.
21
+ *
22
+ * @public
23
+ * @tagname %%prefix%%-verification-code-input
24
+ *
25
+ * @fires change - Fired when any digit changes. detail: `VerificationCodeInputEventDetail`
26
+ * @fires complete - Fired when all digits are filled. detail: `VerificationCodeInputEventDetail`
27
+ */
28
+ export declare class VerificationCodeInput extends VerificationCodeInput_base {
29
+ /**
30
+ * Proxy element for form association when ElementInternals is unavailable.
31
+ * Initialized in the constructor (after `super()`) so it exists before attribute
32
+ * change handlers run — same pattern as FAST `FormAssociatedTextField`.
33
+ * @internal
34
+ */
35
+ proxy: HTMLInputElement;
36
+ /** Per-digit values indexed from `0` to `digits - 1`. */
37
+ values: string[];
38
+ /** Slotted label content; when empty the label is visually hidden. */
39
+ defaultSlottedNodes: any;
40
+ private readonly controlListeners;
41
+ /** Skip digit re-sync when `value` is updated from digit entry (`commitValues`). */
42
+ private syncingFromDigits;
43
+ constructor();
44
+ /**
45
+ * Optional host id used as a prefix for digit input ids (`{id}-0`, `{id}-1`, …)
46
+ * and the associated label element.
47
+ */
48
+ id: string;
49
+ /**
50
+ * Visual treatment applied to each digit field.
51
+ * @public
52
+ * @remarks
53
+ * HTML Attribute: appearance
54
+ * @defaultValue outline
55
+ */
56
+ appearance: string;
57
+ /**
58
+ * Number of single-character digit fields to render.
59
+ * @public
60
+ * @remarks
61
+ * HTML Attribute: digits
62
+ * @defaultValue 6
63
+ */
64
+ digits: number;
65
+ /**
66
+ * When true, digit fields are non-interactive.
67
+ * @public
68
+ * @remarks
69
+ * HTML Attribute: readonly
70
+ */
71
+ readOnly: boolean;
72
+ /**
73
+ * When true, focuses the first digit on connect (and after SPA route commit when hosted that way).
74
+ * @public
75
+ * @remarks
76
+ * HTML Attribute: autofocus
77
+ */
78
+ autofocus: boolean;
79
+ /**
80
+ * When true, applies the error visual state to each digit field.
81
+ * @public
82
+ * @remarks
83
+ * HTML Attribute: error
84
+ */
85
+ error: boolean;
86
+ get digitsIndexes(): number[];
87
+ get controlIdPrefix(): string;
88
+ get labelId(): string;
89
+ get hasLabel(): boolean;
90
+ getControlId(index: number): string;
91
+ /** Clears digits, emits `change`, and focuses the first field when connected. */
92
+ clear(): void;
93
+ focus(): void;
94
+ /** @internal */
95
+ valueChanged(previous: string, next: string): void;
96
+ /** @internal */
97
+ validate(anchor?: HTMLElement): void;
98
+ connectedCallback(): void;
99
+ disconnectedCallback(): void;
100
+ digitsChanged(): void;
101
+ get digitClassnames(): string;
102
+ private sanitizeCode;
103
+ private bindControlListeners;
104
+ private unbindControlListeners;
105
+ private onKeyDown;
106
+ private isBlockedCharacter;
107
+ private onInput;
108
+ private onPaste;
109
+ private handleBackspace;
110
+ private handleDelete;
111
+ private getIndexFromInput;
112
+ /** Maps a sanitized code string into per-digit `values` and syncs the DOM when connected. */
113
+ private syncDigitsFromValue;
114
+ private updateDigit;
115
+ private applyDigits;
116
+ /** Pushes digit state into the form-associated `value` and emits change / complete. */
117
+ private commitValues;
118
+ private syncFieldValues;
119
+ private syncFieldValue;
120
+ private focusDigit;
121
+ private get rootNode();
122
+ private getControlElement;
123
+ private isComplete;
124
+ private emitChange;
125
+ }
126
+ /**
127
+ * The Foundation Verification Code Input
128
+ *
129
+ * @public
130
+ * @remarks
131
+ * HTML Element: \<foundation-verification-code-input\>
132
+ */
133
+ export declare const foundationVerificationCodeInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
134
+ baseName: string;
135
+ template: import("@microsoft/fast-element").ViewTemplate<VerificationCodeInput, any>;
136
+ styles: import("@microsoft/fast-element").ElementStyles;
137
+ shadowOptions: ShadowRootInit;
138
+ }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
139
+ baseName: string;
140
+ template: import("@microsoft/fast-element").ViewTemplate<VerificationCodeInput, any>;
141
+ styles: import("@microsoft/fast-element").ElementStyles;
142
+ shadowOptions: ShadowRootInit;
143
+ }, typeof VerificationCodeInput>;
144
+ export {};
145
+ //# sourceMappingURL=verification-code-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-code-input.d.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;IACT,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAezD,gBAAgB;IACT,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI;IAyB3C,iBAAiB,IAAI,IAAI;IAczB,oBAAoB,IAAI,IAAI;IAK5B,aAAa,IAAI,IAAI;IAgBrB,IAAW,eAAe,IAAI,MAAM,CAInC;IAED,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,oBAAoB;IA2B5B,OAAO,CAAC,sBAAsB;IAS9B,OAAO,CAAC,SAAS;IA8CjB,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,OAAO;IA2Bf,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,iBAAiB;IAKzB,6FAA6F;IAC7F,OAAO,CAAC,mBAAmB;IAmB3B,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,WAAW;IAkBnB,uFAAuF;IACvF,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,UAAU;IAOlB,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,UAAU;CAGnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;gCAM1C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ElementStyles } from '@microsoft/fast-element';
2
+ export declare const foundationVerificationCodeInputStyles: ElementStyles;
3
+ //# sourceMappingURL=verification-code-input.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-code-input.styles.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/verification-code-input.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,eAAO,MAAM,qCAAqC,EAAE,aAwGnD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { VerificationCodeInput } from './verification-code-input';
2
+ export declare const foundationVerificationCodeInputTemplate: import("@microsoft/fast-element").ViewTemplate<VerificationCodeInput, any>;
3
+ //# sourceMappingURL=verification-code-input.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-code-input.template.d.ts","sourceRoot":"","sources":["../../../src/verification-code-input/verification-code-input.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,uCAAuC,4EAyDnD,CAAC"}
@@ -85,6 +85,7 @@ import { foundationTooltip } from './tooltip';
85
85
  import { foundationTreeItem } from './tree-item';
86
86
  import { foundationTreeView } from './tree-view';
87
87
  import { foundationUrlInput } from './url-input';
88
+ import { foundationVerificationCodeInput } from './verification-code-input';
88
89
  export const baseComponents = {
89
90
  foundationAccordion,
90
91
  foundationAiCriteriaSearch,
@@ -172,6 +173,7 @@ export const baseComponents = {
172
173
  foundationTreeItem,
173
174
  foundationTreeView,
174
175
  foundationUrlInput,
176
+ foundationVerificationCodeInput,
175
177
  foundationSectionNavigator,
176
178
  register(container, ...rest) {
177
179
  if (!container) {
package/dist/esm/index.js CHANGED
@@ -102,3 +102,4 @@ export * from './utils/base-datasource';
102
102
  export * from './utils/editable-elements';
103
103
  export * from './utils/event-types';
104
104
  export { getPrefix as getDesignSystemPrefix } from './utils/dom';
105
+ export * from './verification-code-input';
@@ -0,0 +1,3 @@
1
+ export * from './verification-code-input';
2
+ export * from './verification-code-input.template';
3
+ export * from './verification-code-input.styles';