@ncino/web-components 1.1.0 → 1.2.0-preview.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.
- package/dist/assets/index-chunk10.js +1 -1
- package/dist/assets/index-chunk11.js +1 -5
- package/dist/assets/index-chunk12.js +5 -1
- package/dist/assets/index-chunk13.js +1 -1
- package/dist/assets/index-chunk14.js +1 -0
- package/dist/assets/index-chunk4.js +1 -1
- package/dist/assets/index-chunk5.js +1 -1
- package/dist/assets/index-chunk9.js +5 -1
- package/dist/assets/nCino_Avenir.woff +0 -0
- package/dist/assets/nCino_Avenir.woff2 +0 -0
- package/dist/assets/nCino_AvenirBd.woff +0 -0
- package/dist/assets/nCino_AvenirBd.woff2 +0 -0
- package/dist/assets/nCino_AvenirHv.woff +0 -0
- package/dist/assets/nCino_AvenirHv.woff2 +0 -0
- package/dist/assets/nCino_AvenirMd.woff +0 -0
- package/dist/assets/nCino_AvenirMd.woff2 +0 -0
- package/dist/components/accordion/gator/base/accordion.gator.js +7 -5
- package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
- package/dist/components/alert/gator/base/alert.gator.js +1 -1
- package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +1 -1
- package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
- package/dist/components/avatar/gator/avatar.gator.js +1 -1
- package/dist/components/badge/gator/badge.gator.js +1 -1
- package/dist/components/banner/gator/banner.gator.js +1 -1
- package/dist/components/boolean/boolean.gator.js +1 -1
- package/dist/components/boolean/index.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +1 -0
- package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +6 -0
- package/dist/components/breadcrumbs/gator/container/breadcrumbs.gator.js +7 -0
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/gator/button.gator.js +3 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/slds/button.slds.js +2 -2
- package/dist/components/button-card/gator/button-card.gator.js +1 -1
- package/dist/components/button-card/index.js +1 -1
- package/dist/components/card/gator/base/card.gator.js +1 -1
- package/dist/components/card/gator/title/card-title.gator.js +2 -2
- package/dist/components/card/index.js +1 -1
- package/dist/components/checkbox/checkbox.gator.js +5 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.gator.js +6 -6
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/combobox/base/combobox.js +1 -1
- package/dist/components/combobox/base/combobox.slds.js +1 -1
- package/dist/components/combobox/base/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/display-card/gator/display-card.gator.js +2 -2
- package/dist/components/display-card/index.js +1 -1
- package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
- package/dist/components/headline-card/index.js +1 -1
- package/dist/components/menu/base/gator/menu.gator.js +1 -1
- package/dist/components/menu/base/index.js +1 -1
- package/dist/components/menu/base/menu.js +1 -1
- package/dist/components/menu/base/slds/menu.slds.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-item/gator/menu-item.gator.js +1 -1
- package/dist/components/menu/menu-item/index.js +1 -1
- package/dist/components/modal/gator/modal.gator.js +6 -6
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/pill/pill.js +1 -1
- package/dist/components/pill/pill.slds.js +5 -5
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/radio.gator.js +4 -4
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.gator.js +6 -6
- package/dist/components/selection-box/index.js +1 -1
- package/dist/components/selection-box/selection-box.gator.js +4 -4
- package/dist/components/selection-box-group/index.js +1 -1
- package/dist/components/selection-box-group/selection-box-group.gator.js +6 -4
- package/dist/components/switch/gator/switch.gator.js +4 -4
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/text-detail/gator/text-detail.gator.js +11 -9
- package/dist/components/text-detail/index.js +1 -1
- package/dist/components/text-detail/text-detail.js +1 -1
- package/dist/components/toast/gator/toast.gator.js +1 -1
- package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
- package/dist/index.gator.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.slds.js +1 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/types/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.d.ts +19 -0
- package/dist/types/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.test.d.ts +0 -0
- package/dist/types/components/breadcrumbs/gator/container/breadcrumbs.gator.d.ts +14 -0
- package/dist/types/components/breadcrumbs/gator/container/breadcrumbs.gator.test.d.ts +0 -0
- package/dist/types/components/button/button.d.ts +2 -6
- package/dist/types/components/checkbox/checkbox.gator.d.ts +9 -9
- package/dist/types/components/checkbox-group/checkbox-group.gator.d.ts +4 -7
- package/dist/types/components/chip/chip.d.ts +2 -7
- package/dist/types/components/combobox/base/combobox.d.ts +2 -7
- package/dist/types/components/menu/base/menu.d.ts +2 -7
- package/dist/types/components/modal/gator/modal.gator.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +4 -0
- package/dist/types/components/pill/pill.d.ts +5 -0
- package/dist/types/components/pill/pill.slds.d.ts +1 -0
- package/dist/types/components/radio/radio.gator.d.ts +9 -4
- package/dist/types/components/radio-group/radio-group.gator.d.ts +2 -2
- package/dist/types/components/selection-box/selection-box.gator.d.ts +12 -6
- package/dist/types/components/selection-box-group/selection-box-group.gator.d.ts +2 -2
- package/dist/types/components/switch/gator/switch.gator.d.ts +9 -2
- package/dist/types/components/switch/switch.d.ts +2 -7
- package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +2 -0
- package/dist/types/components/text-detail/text-detail.d.ts +14 -4
- package/dist/types/utils/components/slot-placeholder/slot-placeholder.d.ts +1 -1
- package/dist/types/utils/components/testable-lit-element/testable-lit-element.d.ts +10 -0
- package/dist/types/utils/datatestid-utils.d.ts +1 -1
- package/dist/utils/components/slot-placeholder/index.js +1 -1
- package/dist/utils/components/slot-placeholder/slot-placeholder.js +2 -2
- package/dist/utils/components/testable-lit-element/testable-lit-element.js +1 -0
- package/dist/utils/datatestid-utils.js +1 -1
- package/package.json +1 -1
- package/web-types.json +200 -58
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Ref } from 'lit/directives/ref.js';
|
|
2
|
+
import { TestableLitElement } from '../../../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
3
|
+
export declare class NgcBreadcrumb extends TestableLitElement {
|
|
4
|
+
static styles: import('lit').CSSResult[];
|
|
5
|
+
current: boolean;
|
|
6
|
+
first: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
href: string;
|
|
9
|
+
crumbRef: Ref<HTMLDivElement>;
|
|
10
|
+
updated(): void;
|
|
11
|
+
render(): import('lit').TemplateResult<1>;
|
|
12
|
+
get breadcrumbClass(): "gator-breadcrumb gator-breadcrumb-current" | "gator-breadcrumb";
|
|
13
|
+
get breadcrumbSeparator(): import('lit').TemplateResult<1> | null;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'ngc-breadcrumb': NgcBreadcrumb;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NjcBreadcrumbs } from '../../breadcrumbs.ts';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The content within the button
|
|
4
|
+
*/
|
|
5
|
+
export declare class NgcBreadcrumbs extends NjcBreadcrumbs {
|
|
6
|
+
static styles: import('lit').CSSResult[];
|
|
7
|
+
render(): import('lit').TemplateResult<1>;
|
|
8
|
+
handleCrumbsSlotChange(e: Event): void;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'ngc-breadcrumbs': NgcBreadcrumbs;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
2
|
export type NJC_BUTTON_VARIANTS = null | 'primary' | 'secondary' | 'text-link' | 'icon';
|
|
3
3
|
export type NJC_BUTTON_SIZES = null | 'small' | 'medium' | 'large' | 'x-large';
|
|
4
|
-
export declare class NjcButton extends
|
|
4
|
+
export declare class NjcButton extends TestableLitElement {
|
|
5
5
|
/**
|
|
6
6
|
@property variant - The variant of the button
|
|
7
7
|
@type {NJC_BUTTON_VARIANTS}
|
|
@@ -17,10 +17,6 @@ export declare class NjcButton extends LitElement {
|
|
|
17
17
|
@type {boolean}
|
|
18
18
|
**/
|
|
19
19
|
disabled: boolean;
|
|
20
|
-
/**
|
|
21
|
-
@property dataTestid - data-testid attribute for the button
|
|
22
|
-
**/
|
|
23
|
-
dataTestid: string;
|
|
24
20
|
/**
|
|
25
21
|
@property iconName - The name of the icon to display for the icon button variant
|
|
26
22
|
**/
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NgcCheckbox extends
|
|
3
|
-
|
|
1
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
|
+
export declare class NgcCheckbox extends TestableLitElement {
|
|
3
|
+
static shadowRootOptions: {
|
|
4
|
+
delegatesFocus: boolean;
|
|
5
|
+
mode: ShadowRootMode;
|
|
6
|
+
serializable?: boolean;
|
|
7
|
+
slotAssignment?: SlotAssignmentMode;
|
|
8
|
+
};
|
|
9
|
+
constructor();
|
|
4
10
|
/**
|
|
5
11
|
* @property {string} id
|
|
6
12
|
*/
|
|
@@ -25,15 +31,9 @@ export declare class NgcCheckbox extends LitElement {
|
|
|
25
31
|
* @property {boolean} hasError - Indicates if the checkbox button should render in an error state.
|
|
26
32
|
*/
|
|
27
33
|
hasError: boolean;
|
|
28
|
-
/**
|
|
29
|
-
@property dataTestid - data-testid attribute for the button
|
|
30
|
-
@type {string}
|
|
31
|
-
**/
|
|
32
|
-
dataTestid: string;
|
|
33
34
|
private _randomId;
|
|
34
35
|
private _labelSlot;
|
|
35
36
|
render(): import('lit').TemplateResult<1>;
|
|
36
|
-
updated(): void;
|
|
37
37
|
get elementId(): string;
|
|
38
38
|
get labelContent(): string | Node;
|
|
39
39
|
handleClick(event: Event): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgcCheckbox } from '../checkbox/checkbox.gator';
|
|
2
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
3
|
/**
|
|
3
4
|
* @slot - The checkboxes within the group
|
|
4
5
|
*/
|
|
@@ -6,13 +7,8 @@ export type NGC_CHECKBOX_GROUP_OPTION = {
|
|
|
6
7
|
title: string;
|
|
7
8
|
value: string;
|
|
8
9
|
};
|
|
9
|
-
export declare class NgcCheckboxGroup extends
|
|
10
|
+
export declare class NgcCheckboxGroup extends TestableLitElement {
|
|
10
11
|
static styles: import('lit').CSSResult[];
|
|
11
|
-
/**
|
|
12
|
-
@property dataTestid - data-testid attribute for the button
|
|
13
|
-
@type {string}
|
|
14
|
-
**/
|
|
15
|
-
dataTestid: string;
|
|
16
12
|
/**
|
|
17
13
|
* @property {string} id - `id` for the checkbox group. If not provided, one will be uniquely generated.
|
|
18
14
|
*/
|
|
@@ -51,6 +47,7 @@ export declare class NgcCheckboxGroup extends LitElement {
|
|
|
51
47
|
get describedBy(): string;
|
|
52
48
|
get checkboxesFromOptions(): import('lit').TemplateResult<1>;
|
|
53
49
|
handleCheckboxSelectionChange(event: Event): void;
|
|
50
|
+
get checkboxElements(): NgcCheckbox[];
|
|
54
51
|
updated(): void;
|
|
55
52
|
}
|
|
56
53
|
declare global {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NjcChip extends
|
|
1
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
|
+
export declare class NjcChip extends TestableLitElement {
|
|
3
3
|
/**
|
|
4
4
|
@property disabled - Disables the chip. No click event is sent when disabled.
|
|
5
5
|
@type {boolean}
|
|
@@ -10,9 +10,4 @@ export declare class NjcChip extends LitElement {
|
|
|
10
10
|
@type {boolean}
|
|
11
11
|
**/
|
|
12
12
|
readonly: boolean;
|
|
13
|
-
/**
|
|
14
|
-
@property dataTestid - data-testid attribute for the button
|
|
15
|
-
@type {string}
|
|
16
|
-
**/
|
|
17
|
-
dataTestid: string;
|
|
18
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
1
|
import { NJC_COMBOBOX_OPTION } from '../combobox.types';
|
|
3
2
|
import { Ref } from 'lit/directives/ref.js';
|
|
4
|
-
|
|
3
|
+
import { TestableLitElement } from '../../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
4
|
+
export declare class NjcCombobox extends TestableLitElement {
|
|
5
5
|
options: NJC_COMBOBOX_OPTION[];
|
|
6
6
|
value: string;
|
|
7
7
|
label: string;
|
|
@@ -10,11 +10,6 @@ export declare class NjcCombobox extends LitElement {
|
|
|
10
10
|
required: boolean;
|
|
11
11
|
valid: boolean;
|
|
12
12
|
requiredErrorText: string;
|
|
13
|
-
/**
|
|
14
|
-
@description dataTestid - Value to be used for the data-testid attribute
|
|
15
|
-
@property {string}
|
|
16
|
-
*/
|
|
17
|
-
dataTestid: string;
|
|
18
13
|
displayedErrorText: string;
|
|
19
14
|
_comboboxRef: Ref<HTMLElement>;
|
|
20
15
|
selectOption(option: NJC_COMBOBOX_OPTION): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NjcMenu extends
|
|
1
|
+
import { TestableLitElement } from '../../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
|
+
export declare class NjcMenu extends TestableLitElement {
|
|
3
3
|
/**
|
|
4
4
|
* The open state of the menu
|
|
5
5
|
* @type {boolean}
|
|
@@ -10,9 +10,4 @@ export declare class NjcMenu extends LitElement {
|
|
|
10
10
|
* @type {string}
|
|
11
11
|
*/
|
|
12
12
|
menuAriaLabel: string;
|
|
13
|
-
/**
|
|
14
|
-
@description dataTestid - Value to be used for the data-testid attribute
|
|
15
|
-
@property {string}
|
|
16
|
-
*/
|
|
17
|
-
dataTestid: string;
|
|
18
13
|
}
|
|
@@ -7,6 +7,7 @@ export declare class NgcModal extends NjcModal {
|
|
|
7
7
|
get footerWarningMessageMarkup(): import('lit').TemplateResult<1> | null;
|
|
8
8
|
get footerPrimaryActionButtonMarkup(): import('lit').TemplateResult<1> | null;
|
|
9
9
|
get primaryButtonDestructiveClass(): "gator-modal-primary-button--destructive" | null;
|
|
10
|
+
get primaryButtonDescribedBy(): "gator-modal-warning-message" | null;
|
|
10
11
|
get footerSecondaryActionButtonMarkup(): import('lit').TemplateResult<1> | null;
|
|
11
12
|
get actionButtonLoaderMarkup(): import('lit').TemplateResult<1>;
|
|
12
13
|
handleKeyDown(event: KeyboardEvent): void;
|
|
@@ -27,6 +27,10 @@ export declare class NjcModal extends LitElement {
|
|
|
27
27
|
* @property {string} primaryActionText - The text of the primary action button.
|
|
28
28
|
*/
|
|
29
29
|
primaryActionText: string;
|
|
30
|
+
/**
|
|
31
|
+
* @property {string} destructiveMessageText - The text of the warning message shown on the destructive modal.
|
|
32
|
+
*/
|
|
33
|
+
destructiveMessageText: string;
|
|
30
34
|
/**
|
|
31
35
|
* @property {boolean} skeleton - Whether the modal is in the skeleton loading state.
|
|
32
36
|
*/
|
|
@@ -10,6 +10,7 @@ export declare class NjcSldsPill extends NjcPill {
|
|
|
10
10
|
get pillClasses(): string;
|
|
11
11
|
get linkHtml(): import('lit').TemplateResult<1>;
|
|
12
12
|
get labelHtml(): import('lit').TemplateResult<1>;
|
|
13
|
+
updated(): void;
|
|
13
14
|
}
|
|
14
15
|
declare global {
|
|
15
16
|
interface HTMLElementTagNameMap {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NgcRadio extends
|
|
3
|
-
|
|
1
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
|
+
export declare class NgcRadio extends TestableLitElement {
|
|
3
|
+
static shadowRootOptions: {
|
|
4
|
+
delegatesFocus: boolean;
|
|
5
|
+
mode: ShadowRootMode;
|
|
6
|
+
serializable?: boolean;
|
|
7
|
+
slotAssignment?: SlotAssignmentMode;
|
|
8
|
+
};
|
|
4
9
|
constructor();
|
|
5
10
|
/**
|
|
6
11
|
* @property {string} id - The title text for the radio button option.
|
|
@@ -27,7 +32,7 @@ export declare class NgcRadio extends LitElement {
|
|
|
27
32
|
*/
|
|
28
33
|
hasError: boolean;
|
|
29
34
|
/**
|
|
30
|
-
* @property {number} radioTabindex -
|
|
35
|
+
* @property {number} radioTabindex - The tabindex for the radio button.
|
|
31
36
|
*/
|
|
32
37
|
radioTabindex: number;
|
|
33
38
|
private _titleSlot;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
1
|
import { NgcRadio } from '../radio/radio.gator';
|
|
2
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
3
3
|
/**
|
|
4
4
|
* @slot - The radios within the group
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ export type NGC_RADIO_GROUP_OPTION = {
|
|
|
7
7
|
title: string;
|
|
8
8
|
value: string;
|
|
9
9
|
};
|
|
10
|
-
export declare class NgcRadioGroup extends
|
|
10
|
+
export declare class NgcRadioGroup extends TestableLitElement {
|
|
11
11
|
static styles: import('lit').CSSResult[];
|
|
12
12
|
/**
|
|
13
13
|
* @property {string} id - `id` for the radio group. If not provided, one will be uniquely generated.
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element';
|
|
3
|
+
export type SELECTION_BOX_TYPE = 'radio' | 'checkbox';
|
|
4
|
+
export declare class NgcSelectionBox extends TestableLitElement {
|
|
5
|
+
static shadowRootOptions: {
|
|
6
|
+
delegatesFocus: boolean;
|
|
7
|
+
mode: ShadowRootMode;
|
|
8
|
+
serializable?: boolean;
|
|
9
|
+
slotAssignment?: SlotAssignmentMode;
|
|
10
|
+
};
|
|
4
11
|
constructor();
|
|
5
12
|
/**
|
|
6
13
|
* @property {string} id - The title text for the selection-box button option.
|
|
@@ -35,9 +42,9 @@ export declare class NgcSelectionBox extends LitElement {
|
|
|
35
42
|
*/
|
|
36
43
|
hasError: boolean;
|
|
37
44
|
/**
|
|
38
|
-
* @property {
|
|
45
|
+
* @property {SELECTION_BOX_TYPE} type - Indicates if the selection-box should render as a radio or checkbox.
|
|
39
46
|
*/
|
|
40
|
-
type:
|
|
47
|
+
type: SELECTION_BOX_TYPE;
|
|
41
48
|
private _randomId;
|
|
42
49
|
private _labelFromTemplate;
|
|
43
50
|
private _generatedLabel;
|
|
@@ -54,7 +61,6 @@ export declare class NgcSelectionBox extends LitElement {
|
|
|
54
61
|
get tabindex(): number;
|
|
55
62
|
handleClick(event: Event): void;
|
|
56
63
|
handleKeyDown(event: KeyboardEvent): void;
|
|
57
|
-
focusItem(): void;
|
|
58
64
|
}
|
|
59
65
|
declare global {
|
|
60
66
|
interface HTMLElementTagNameMap {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
1
|
import { NgcSelectionBox } from '../selection-box/selection-box.gator';
|
|
2
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element';
|
|
3
3
|
export type NGC_SELECTION_BOX_GROUP_OPTION = {
|
|
4
4
|
title: string;
|
|
5
5
|
subtitle?: string;
|
|
@@ -8,7 +8,7 @@ export type NGC_SELECTION_BOX_GROUP_OPTION = {
|
|
|
8
8
|
/**
|
|
9
9
|
* @slot - The selection boxes within the group
|
|
10
10
|
*/
|
|
11
|
-
export declare class NgcSelectionBoxGroup extends
|
|
11
|
+
export declare class NgcSelectionBoxGroup extends TestableLitElement {
|
|
12
12
|
static styles: import('lit').CSSResult[];
|
|
13
13
|
/**
|
|
14
14
|
* @property {string} id - The id for the selection group. If one is not provided, a random id will be generated.
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { NjcSwitch } from '../switch.ts';
|
|
2
2
|
export declare class NgcSwitch extends NjcSwitch {
|
|
3
|
+
static shadowRootOptions: {
|
|
4
|
+
delegatesFocus: boolean;
|
|
5
|
+
mode: ShadowRootMode;
|
|
6
|
+
serializable?: boolean;
|
|
7
|
+
slotAssignment?: SlotAssignmentMode;
|
|
8
|
+
};
|
|
9
|
+
constructor();
|
|
3
10
|
static styles: import('lit').CSSResult[];
|
|
4
11
|
updated(): void;
|
|
5
12
|
render(): import('lit').TemplateResult<1>;
|
|
6
13
|
handleInputKeydown(event: KeyboardEvent): void;
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
handleInputClick(event: Event): void;
|
|
15
|
+
handleClick(): void;
|
|
9
16
|
private _toggleSwitch;
|
|
10
17
|
private _getLabelMarkup;
|
|
11
18
|
private _getInputId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NjcSwitch extends
|
|
1
|
+
import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
|
|
2
|
+
export declare class NjcSwitch extends TestableLitElement {
|
|
3
3
|
private _randomId;
|
|
4
4
|
/**
|
|
5
5
|
@description id - id for the rendered switch element
|
|
@@ -7,11 +7,6 @@ export declare class NjcSwitch extends LitElement {
|
|
|
7
7
|
*/
|
|
8
8
|
id: string;
|
|
9
9
|
getElementId(): string;
|
|
10
|
-
/**
|
|
11
|
-
@description dataTestid - Value to be used for the data-testid attribute
|
|
12
|
-
@property {string}
|
|
13
|
-
*/
|
|
14
|
-
dataTestid: string;
|
|
15
10
|
/**
|
|
16
11
|
@property disabled - Disables the switch
|
|
17
12
|
@type {boolean}
|
|
@@ -3,6 +3,8 @@ export declare class NgcTextDetail extends NjcTextDetail {
|
|
|
3
3
|
static styles: import('lit').CSSResult[];
|
|
4
4
|
render(): import('lit').TemplateResult<1>;
|
|
5
5
|
get textDetailMarkup(): import('lit').TemplateResult<1>;
|
|
6
|
+
get verticalClass(): "" | "gator-text-detail_vertical";
|
|
7
|
+
get invertTitleClass(): "" | "gator-text-detail-content_invert-title";
|
|
6
8
|
get textDetailLoadingMarkup(): import('lit').TemplateResult<1>;
|
|
7
9
|
get textDetailTitleMarkup(): import('lit').TemplateResult<1> | null;
|
|
8
10
|
get textDetailTitleIconMarkup(): import('lit').TemplateResult<1> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
export type NJC_TEXT_DETAIL_SIZES = null | '
|
|
2
|
+
export type NJC_TEXT_DETAIL_SIZES = null | 'small' | 'medium' | 'large';
|
|
3
3
|
export declare class NjcTextDetail extends LitElement {
|
|
4
4
|
/**
|
|
5
5
|
* @description The text detail title
|
|
@@ -22,8 +22,18 @@ export declare class NjcTextDetail extends LitElement {
|
|
|
22
22
|
*/
|
|
23
23
|
titleIcon: string;
|
|
24
24
|
/**
|
|
25
|
-
* @description Sets the
|
|
26
|
-
* @property {boolean}
|
|
25
|
+
* @description Sets whether the text detail shows the skeleton loader
|
|
26
|
+
* @property {boolean} skeleton
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
skeleton: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @description If true, the text detail will be displayed vertically
|
|
31
|
+
* @property {boolean} vertical
|
|
32
|
+
*/
|
|
33
|
+
vertical: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @description If true, the title and content positions will be inverted
|
|
36
|
+
* @property {boolean} invertTitle
|
|
37
|
+
*/
|
|
38
|
+
invertTitle: boolean;
|
|
29
39
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class TestableLitElement extends LitElement {
|
|
3
|
+
/**
|
|
4
|
+
@property dataTestid - Value to be used for the data-testid attribute
|
|
5
|
+
**/
|
|
6
|
+
dataTestid: string | undefined;
|
|
7
|
+
get labelDataTestid(): string | undefined;
|
|
8
|
+
get helpTextDataTestid(): string | undefined;
|
|
9
|
+
get errorMessageDataTestid(): string | undefined;
|
|
10
|
+
}
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* on the element as `${componentDataTestid}-${dataTestidAppend}`.
|
|
10
10
|
* Otherwise, removes the data-testid attribute from the element.
|
|
11
11
|
*/
|
|
12
|
-
export declare function handleDataTestid(element: any, componentDataTestid: string, dataTestidAppend: string): void;
|
|
12
|
+
export declare function handleDataTestid(element: any, componentDataTestid: string | undefined, dataTestidAppend: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{S as l}from"./slot-placeholder.js";import"../../../assets/index-chunk.js";import"../../../assets/index-chunk3.js";export{l as SlotPlaceholder};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{h as a,k as i}from"../../../assets/index-chunk.js";import{t as
|
|
1
|
+
import{h as a,k as i}from"../../../assets/index-chunk.js";import{t as v}from"../../../assets/index-chunk3.js";var f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,n=(l,e,o,s)=>{for(var r=s>1?void 0:s?h(e,o):e,t=l.length-1,d;t>=0;t--)(d=l[t])&&(r=(s?d(e,o,r):d(r))||r);return s&&r&&f(e,o,r),r};let p=class extends a{render(){return i`
|
|
2
2
|
<div style="border: 1px dashed #C3A786; border-radius: 0.5rem; padding: 1rem">
|
|
3
3
|
Swap this with your design
|
|
4
4
|
</div>
|
|
5
|
-
`}};p=
|
|
5
|
+
`}};p=n([v("slot-placeholder")],p);export{p as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as d}from"../../../assets/index-chunk.js";import{n as o}from"../../../assets/index-chunk2.js";var T=Object.defineProperty,n=(e,s,i,h)=>{for(var t=void 0,a=e.length-1,r;a>=0;a--)(r=e[a])&&(t=r(s,i,t)||t);return t&&T(s,i,t),t};class l extends d{constructor(){super(...arguments),this.dataTestid=void 0}get labelDataTestid(){return this.dataTestid?`${this.dataTestid}-label`:void 0}get helpTextDataTestid(){return this.dataTestid?`${this.dataTestid}-help-text`:void 0}get errorMessageDataTestid(){return this.dataTestid?`${this.dataTestid}-error-message`:void 0}}n([o({type:String,attribute:"data-testid"})],l.prototype,"dataTestid");export{l as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as a}from"./string-utils.js";function d(i,r,s){r&&a(r)?i==null||i.setAttribute("data-testid",`${r}-${s}`):i==null||i.removeAttribute("data-testid")}export{d as h};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
4
|
"packageManager": "pnpm@9.12.3",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.2.0-preview.1",
|
|
6
6
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|