@saasbase-io/core-elements 1.1.18 → 1.1.20
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/_updated/index.d.ts +3 -0
- package/dist/components/renderers/_updated/sb-logo.d.ts +14 -0
- package/dist/components/renderers/_updated/sb-otp.d.ts +23 -0
- package/dist/components/renderers/_updated/sb-title.d.ts +8 -0
- package/dist/components/renderers/index.d.ts +1 -0
- package/dist/components/renderers/sb-otp-renderer.d.ts +23 -15
- package/dist/index.js +591 -562
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2161 -1942
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from '../../../../node_modules/lit';
|
|
2
|
+
import { SaasBaseLayout } from '../..';
|
|
3
|
+
export declare class SbLogo extends LitElement {
|
|
4
|
+
id: string;
|
|
5
|
+
imageUrl: string;
|
|
6
|
+
component: SaasBaseLayout;
|
|
7
|
+
private theme;
|
|
8
|
+
private observer?;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
private getTheme;
|
|
12
|
+
protected createRenderRoot(): this;
|
|
13
|
+
render(): import('../../../../node_modules/lit-html').TemplateResult<1> | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from '../../../../node_modules/lit';
|
|
2
|
+
import { SaasBaseLayout } from '../..';
|
|
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
|
+
component: SaasBaseLayout;
|
|
14
|
+
protected createRenderRoot(): this;
|
|
15
|
+
private patchComponentRequestUpdate;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
private buildOTPContentHTML;
|
|
18
|
+
private handleComplete;
|
|
19
|
+
private handleFocus;
|
|
20
|
+
private handleBlur;
|
|
21
|
+
private handleResend;
|
|
22
|
+
render(): import('../../../../node_modules/lit-html').TemplateResult | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from '../../../../node_modules/lit';
|
|
2
|
+
export declare class SbTitle extends LitElement {
|
|
3
|
+
id: string;
|
|
4
|
+
content: string;
|
|
5
|
+
component: any;
|
|
6
|
+
protected createRenderRoot(): this;
|
|
7
|
+
render(): import('../../../../node_modules/lit-html').TemplateResult<1>;
|
|
8
|
+
}
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { LitElement } from '../../../node_modules/lit';
|
|
2
|
+
import { OTP, Style } from '../../types';
|
|
2
3
|
import { SaasBaseLayout } from '../wrappers';
|
|
3
|
-
export declare class
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
id: string;
|
|
4
|
+
export declare class SbOtpRenderer extends LitElement {
|
|
5
|
+
element: {
|
|
6
|
+
element_type: "otp";
|
|
7
|
+
id: string;
|
|
8
|
+
properties: OTP;
|
|
9
|
+
style: Style;
|
|
10
|
+
class: string;
|
|
11
|
+
data_key?: string;
|
|
12
|
+
};
|
|
13
13
|
component: SaasBaseLayout;
|
|
14
|
+
/**
|
|
15
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
16
|
+
*/
|
|
14
17
|
protected createRenderRoot(): this;
|
|
15
18
|
private patchComponentRequestUpdate;
|
|
16
19
|
connectedCallback(): void;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
private _onComplete;
|
|
21
|
+
private _onFocus;
|
|
22
|
+
private _onBlur;
|
|
23
|
+
/**
|
|
24
|
+
* Builds the OTP group/separator/slot structure as a plain HTML string so it
|
|
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;
|
|
22
30
|
render(): import('../../../node_modules/lit-html').TemplateResult | null;
|
|
23
31
|
}
|