@ncino/web-components 7.0.0-preview.5 → 7.0.0-preview.7
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/accordion/gator/base/accordion.gator.js +1 -1
- package/dist/components/accordion/gator/group/accordion-group.gator.js +1 -1
- package/dist/components/alert/gator/base/alert.gator.js +1 -1
- package/dist/components/banner/gator/banner.gator.js +1 -1
- package/dist/components/boolean/boolean.gator.js +3 -3
- package/dist/components/button/gator/button.gator.js +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +10 -8
- package/dist/components/display-card/gator/display-card.gator.js +1 -1
- package/dist/components/headline-card/gator/headline-card.gator.js +1 -1
- package/dist/components/icon/gator/icon.gator.js +1 -1
- package/dist/components/icon/gator/index.js +1 -1
- package/dist/components/icon/gator/templates/checkbox-indeterminate.js +7 -0
- package/dist/components/icon/gator/templates/index.js +1 -1
- package/dist/components/input/base/input-base.gator.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +59 -27
- package/dist/components/input/gator/help-text/help-text.gator.js +1 -1
- package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +1 -1
- package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
- package/dist/components/input/gator/input-textarea/input-textarea.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- package/dist/components/list/gator/list/list.gator.js +1 -1
- package/dist/components/list/gator/list-item/list-item.gator.js +1 -1
- package/dist/components/selection-box/selection-box.gator.js +1 -1
- package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js +1 -1
- package/dist/types/components/boolean/boolean.gator.d.ts +2 -2
- package/dist/types/components/chip/chip.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/checkbox-indeterminate.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/index.d.ts +1 -0
- package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +39 -2
- package/package.json +1 -1
- package/web-types.json +31 -4
|
@@ -7,10 +7,26 @@ export type NgcDropdownType = {
|
|
|
7
7
|
};
|
|
8
8
|
export type NgcDropdownDataType = 'country' | 'state' | 'naics' | 'phoneCodes';
|
|
9
9
|
export declare class NgcInputDropdown extends NgcInputBase {
|
|
10
|
+
static shadowRootOptions: {
|
|
11
|
+
delegatesFocus: boolean;
|
|
12
|
+
mode: ShadowRootMode;
|
|
13
|
+
serializable?: boolean;
|
|
14
|
+
slotAssignment?: SlotAssignmentMode;
|
|
15
|
+
};
|
|
10
16
|
static styles: import('lit').CSSResult[];
|
|
11
17
|
multiselect: boolean;
|
|
12
18
|
options: NgcDropdownType[];
|
|
13
19
|
autocomplete: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @property {boolean} selectAll
|
|
22
|
+
* @description When set to true, a "select all" option will be rendered in the dropdown
|
|
23
|
+
*/
|
|
24
|
+
selectAll: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @property {string} listboxHelpText
|
|
27
|
+
* @description Help text to display within the listbox
|
|
28
|
+
*/
|
|
29
|
+
listboxHelpText: string;
|
|
14
30
|
/**
|
|
15
31
|
* @property {boolean} dataType
|
|
16
32
|
* @description Can be used to have a predefined list of options rendered for you. Options should be null if using dataType
|
|
@@ -36,15 +52,26 @@ export declare class NgcInputDropdown extends NgcInputBase {
|
|
|
36
52
|
* @description The maximum number of results to show in the autocomplete dropdown
|
|
37
53
|
*/
|
|
38
54
|
maxAutocompleteResults: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* @property {boolean} wrapChips
|
|
57
|
+
* @description When in multiselect mode, this will allow the chips to wrap to new lines instead of truncating to fit on a single line
|
|
58
|
+
*/
|
|
59
|
+
wrapChips: boolean;
|
|
39
60
|
_cleanup: (() => void) | undefined;
|
|
40
61
|
private _activeDescendant;
|
|
41
62
|
_expanded: boolean;
|
|
42
63
|
_searchValue: string;
|
|
64
|
+
private _visibleChipCount;
|
|
65
|
+
private _showOverflowChip;
|
|
66
|
+
private _truncateChips;
|
|
67
|
+
private _resizeObserver;
|
|
68
|
+
private _calculationPending;
|
|
43
69
|
listboxRef: Ref<HTMLDivElement>;
|
|
44
70
|
listRef: Ref<HTMLDivElement>;
|
|
45
71
|
inputRef: Ref<HTMLInputElement>;
|
|
46
72
|
listboxMessageRef: Ref<HTMLElement>;
|
|
47
73
|
protected multiselectValueDelimiter: string;
|
|
74
|
+
disconnectedCallback(): void;
|
|
48
75
|
render(): import('lit').TemplateResult<1>;
|
|
49
76
|
get controlClasses(): {
|
|
50
77
|
'gator-cursor-pointer': boolean;
|
|
@@ -57,7 +84,7 @@ export declare class NgcInputDropdown extends NgcInputBase {
|
|
|
57
84
|
private get tabIndexForControl();
|
|
58
85
|
firstUpdated(): void;
|
|
59
86
|
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
60
|
-
get comboboxElement():
|
|
87
|
+
get comboboxElement(): HTMLElement | undefined;
|
|
61
88
|
setComboboxAriaAttributes(): void;
|
|
62
89
|
setComboboxAriaLabelledByElements(): void;
|
|
63
90
|
setMultiselectAriaLabelledbyElements(): void;
|
|
@@ -66,12 +93,21 @@ export declare class NgcInputDropdown extends NgcInputBase {
|
|
|
66
93
|
get inputMarkup(): import('lit').TemplateResult<1>;
|
|
67
94
|
get multiselectLabel(): import('lit').TemplateResult<1> | typeof nothing;
|
|
68
95
|
get multiselectSelectionsMarkup(): unknown;
|
|
69
|
-
|
|
96
|
+
get chipsMarkup(): unknown;
|
|
97
|
+
get truncatedChipsMarkup(): import('lit').TemplateResult<1>;
|
|
98
|
+
handleOverflowChipClick(): void;
|
|
99
|
+
private scheduleOverflowCalculation;
|
|
100
|
+
private calculateOverflow;
|
|
101
|
+
private setupResizeObserver;
|
|
70
102
|
removeSelection(value: string): void;
|
|
71
103
|
get fauxInputMarkup(): import('lit').TemplateResult<1>;
|
|
72
104
|
get displayedValue(): string | number | File | File[] | Date;
|
|
73
105
|
get showPlaceholder(): boolean | "";
|
|
74
106
|
get listboxMarkup(): import('lit').TemplateResult<1>;
|
|
107
|
+
get selectAllIcon(): "checkbox-indeterminate" | "checkbox-selected" | "checkbox";
|
|
108
|
+
get allSelected(): boolean;
|
|
109
|
+
selectAllOptions(): void;
|
|
110
|
+
deselectAllOptions(): void;
|
|
75
111
|
getOptionSelected(value: string): boolean;
|
|
76
112
|
get listboxMessageMarkup(): import('lit').TemplateResult<1> | null;
|
|
77
113
|
setListboxMessageAriaDescribedByElements(): void;
|
|
@@ -85,6 +121,7 @@ export declare class NgcInputDropdown extends NgcInputBase {
|
|
|
85
121
|
get selectedValues(): string[];
|
|
86
122
|
handleComboboxKeydown(e: KeyboardEvent): void;
|
|
87
123
|
toggleListbox(key: string, initial: boolean): void;
|
|
124
|
+
closeListbox(): void;
|
|
88
125
|
get endIconMarkup(): import('lit').TemplateResult<1>;
|
|
89
126
|
get clearIconButtonMarkup(): import('lit').TemplateResult<1> | null;
|
|
90
127
|
clearValue(): void;
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "7.0.0-preview.
|
|
4
|
+
"version": "7.0.0-preview.6",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -158,6 +158,10 @@
|
|
|
158
158
|
"name": "dismissible",
|
|
159
159
|
"value": { "type": "boolean", "default": "false" }
|
|
160
160
|
},
|
|
161
|
+
{
|
|
162
|
+
"name": "aria-hidden",
|
|
163
|
+
"value": { "type": "'true' | 'false'", "default": "'false'" }
|
|
164
|
+
},
|
|
161
165
|
{
|
|
162
166
|
"name": "data-testid",
|
|
163
167
|
"value": { "type": "string | undefined", "default": "undefined" }
|
|
@@ -185,6 +189,7 @@
|
|
|
185
189
|
{ "name": "hideBorder", "type": "boolean" },
|
|
186
190
|
{ "name": "startIcon", "type": "String" },
|
|
187
191
|
{ "name": "dismissible", "type": "boolean" },
|
|
192
|
+
{ "name": "ariaHidden", "type": "'true' | 'false'" },
|
|
188
193
|
{ "name": "dataTestid", "type": "string | undefined" },
|
|
189
194
|
{ "name": "labelDataTestid" },
|
|
190
195
|
{ "name": "helpTextDataTestid" },
|
|
@@ -1351,7 +1356,10 @@
|
|
|
1351
1356
|
"attributes": [
|
|
1352
1357
|
{
|
|
1353
1358
|
"name": "options",
|
|
1354
|
-
"value": {
|
|
1359
|
+
"value": {
|
|
1360
|
+
"type": "NGC_BOOLEAN_OPTION[] | undefined",
|
|
1361
|
+
"default": "[ { label: 'Yes', value: true }, { label: 'No', value: false } ]"
|
|
1362
|
+
}
|
|
1355
1363
|
},
|
|
1356
1364
|
{ "name": "for", "value": { "type": "string", "default": "''" } },
|
|
1357
1365
|
{ "name": "min", "value": { "type": "string" } },
|
|
@@ -1438,7 +1446,7 @@
|
|
|
1438
1446
|
],
|
|
1439
1447
|
"js": {
|
|
1440
1448
|
"properties": [
|
|
1441
|
-
{ "name": "options", "type": "NGC_BOOLEAN_OPTION[]" },
|
|
1449
|
+
{ "name": "options", "type": "NGC_BOOLEAN_OPTION[] | undefined" },
|
|
1442
1450
|
{ "name": "elementId" },
|
|
1443
1451
|
{ "name": "booleanClasses" },
|
|
1444
1452
|
{ "name": "booleanOptions" },
|
|
@@ -4137,6 +4145,14 @@
|
|
|
4137
4145
|
"name": "autocomplete",
|
|
4138
4146
|
"value": { "type": "boolean", "default": "false" }
|
|
4139
4147
|
},
|
|
4148
|
+
{
|
|
4149
|
+
"name": "select-all",
|
|
4150
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
"name": "listbox-help-text",
|
|
4154
|
+
"value": { "type": "string", "default": "''" }
|
|
4155
|
+
},
|
|
4140
4156
|
{ "name": "data-type", "value": { "type": "string | undefined" } },
|
|
4141
4157
|
{
|
|
4142
4158
|
"name": "country-code",
|
|
@@ -4151,6 +4167,10 @@
|
|
|
4151
4167
|
"name": "max-autocomplete-results",
|
|
4152
4168
|
"value": { "type": "number | undefined", "default": "250" }
|
|
4153
4169
|
},
|
|
4170
|
+
{
|
|
4171
|
+
"name": "wrap-chips",
|
|
4172
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4173
|
+
},
|
|
4154
4174
|
{ "name": "id", "value": { "type": "string", "default": "''" } },
|
|
4155
4175
|
{
|
|
4156
4176
|
"name": "required",
|
|
@@ -4234,6 +4254,8 @@
|
|
|
4234
4254
|
{ "name": "multiselect", "type": "boolean" },
|
|
4235
4255
|
{ "name": "options", "type": "NgcDropdownType[]" },
|
|
4236
4256
|
{ "name": "autocomplete", "type": "boolean" },
|
|
4257
|
+
{ "name": "selectAll", "type": "boolean" },
|
|
4258
|
+
{ "name": "listboxHelpText", "type": "string" },
|
|
4237
4259
|
{ "name": "dataType", "type": "string | undefined" },
|
|
4238
4260
|
{ "name": "countryCode", "type": "string | undefined" },
|
|
4239
4261
|
{ "name": "listWidth", "type": "string | undefined" },
|
|
@@ -4242,6 +4264,7 @@
|
|
|
4242
4264
|
"name": "maxAutocompleteResults",
|
|
4243
4265
|
"type": "number | undefined"
|
|
4244
4266
|
},
|
|
4267
|
+
{ "name": "wrapChips", "type": "boolean" },
|
|
4245
4268
|
{ "name": "_cleanup", "type": "(() => void) | undefined" },
|
|
4246
4269
|
{ "name": "_expanded", "type": "boolean" },
|
|
4247
4270
|
{ "name": "_searchValue", "type": "string" },
|
|
@@ -4250,14 +4273,18 @@
|
|
|
4250
4273
|
{ "name": "inputRef", "type": "Ref<HTMLInputElement>" },
|
|
4251
4274
|
{ "name": "listboxMessageRef", "type": "Ref<HTMLElement>" },
|
|
4252
4275
|
{ "name": "controlClasses" },
|
|
4253
|
-
{ "name": "comboboxElement", "type": "
|
|
4276
|
+
{ "name": "comboboxElement", "type": "HTMLElement | undefined" },
|
|
4254
4277
|
{ "name": "inputMarkup" },
|
|
4255
4278
|
{ "name": "multiselectLabel" },
|
|
4256
4279
|
{ "name": "multiselectSelectionsMarkup", "type": "unknown" },
|
|
4280
|
+
{ "name": "chipsMarkup" },
|
|
4281
|
+
{ "name": "truncatedChipsMarkup" },
|
|
4257
4282
|
{ "name": "fauxInputMarkup" },
|
|
4258
4283
|
{ "name": "displayedValue" },
|
|
4259
4284
|
{ "name": "showPlaceholder" },
|
|
4260
4285
|
{ "name": "listboxMarkup" },
|
|
4286
|
+
{ "name": "selectAllIcon" },
|
|
4287
|
+
{ "name": "allSelected" },
|
|
4261
4288
|
{ "name": "listboxMessageMarkup" },
|
|
4262
4289
|
{ "name": "resultsExceedMaxMessage" },
|
|
4263
4290
|
{ "name": "noResultsMessage" },
|