@saasbase-io/core-elements 1.1.16 → 1.1.18
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.
- package/dist/components/renderers/renderElement.d.ts +1 -1
- package/dist/components/renderers/sb-otp-renderer.d.ts +15 -23
- package/dist/components/wrappers/layout/layout.d.ts +4 -5
- package/dist/index.js +361 -346
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2558 -2489
- package/dist/index.mjs.map +1 -1
- package/dist/utils/components.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TemplateResult } from '../../../node_modules/lit';
|
|
2
2
|
import { UIElement } from '../../types';
|
|
3
3
|
import { SaasBaseLayout } from '..';
|
|
4
|
-
export declare function renderElement(component: SaasBaseLayout, element: UIElement, theme?: "light" | "dark"): TemplateResult<1>;
|
|
4
|
+
export declare function renderElement(component: SaasBaseLayout, element: UIElement | string, theme?: "light" | "dark"): TemplateResult<1>;
|
|
@@ -1,31 +1,23 @@
|
|
|
1
1
|
import { LitElement } from '../../../node_modules/lit';
|
|
2
|
-
import { OTP, Style } from '../../types';
|
|
3
2
|
import { SaasBaseLayout } from '../wrappers';
|
|
4
|
-
export declare class
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export declare class SbOtp extends LitElement {
|
|
4
|
+
variant: string;
|
|
5
|
+
length: number;
|
|
6
|
+
timeout: number;
|
|
7
|
+
dataKey: string;
|
|
8
|
+
event: string;
|
|
9
|
+
resendText: string;
|
|
10
|
+
resendButtonText: string;
|
|
11
|
+
resendEvent: string;
|
|
12
|
+
id: string;
|
|
13
13
|
component: SaasBaseLayout;
|
|
14
|
-
/**
|
|
15
|
-
* Overrides the default behaviour to render into the light DOM.
|
|
16
|
-
*/
|
|
17
14
|
protected createRenderRoot(): this;
|
|
18
15
|
private patchComponentRequestUpdate;
|
|
19
16
|
connectedCallback(): void;
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* can be embedded via unsafeStatic. This is required because rtg-input-otp
|
|
26
|
-
* reads this.childNodes in its constructor; Lit's dynamic ChildPart would only
|
|
27
|
-
* deliver nodes after construction, causing them to land outside the container.
|
|
28
|
-
*/
|
|
29
|
-
private _buildOTPContentHTML;
|
|
17
|
+
private buildOTPContentHTML;
|
|
18
|
+
private handleComplete;
|
|
19
|
+
private handleFocus;
|
|
20
|
+
private handleBlur;
|
|
21
|
+
private handleResend;
|
|
30
22
|
render(): import('../../../node_modules/lit-html').TemplateResult | null;
|
|
31
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from '../../../../node_modules/lit';
|
|
2
|
-
import { RenderSpec, UIElement, ICustomizations, Button, Style, Html
|
|
1
|
+
import { LitElement, PropertyValues } from '../../../../node_modules/lit';
|
|
2
|
+
import { RenderSpec, UIElement, ICustomizations, Button, Style, Html } from '../../../types';
|
|
3
3
|
export declare class SaasBaseLayout extends LitElement {
|
|
4
4
|
renderSpec: RenderSpec | null;
|
|
5
5
|
customizations: ICustomizations | null;
|
|
@@ -14,7 +14,9 @@ export declare class SaasBaseLayout extends LitElement {
|
|
|
14
14
|
private isAnimating;
|
|
15
15
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
16
16
|
private getTheme;
|
|
17
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
17
18
|
updated(changedProperties: Map<string, unknown>): void;
|
|
19
|
+
private hydrateSbComponents;
|
|
18
20
|
/**
|
|
19
21
|
* Identify which button has submit=true
|
|
20
22
|
*/
|
|
@@ -46,9 +48,6 @@ export declare class SaasBaseLayout extends LitElement {
|
|
|
46
48
|
} | {
|
|
47
49
|
element_type: "otp";
|
|
48
50
|
id: string;
|
|
49
|
-
properties: OTP;
|
|
50
|
-
style: Style;
|
|
51
|
-
class: string;
|
|
52
51
|
}): Promise<void>;
|
|
53
52
|
findElementByKey(key: string): UIElement | null;
|
|
54
53
|
isFieldValid(key: string): boolean;
|