@aquera/nile-elements 0.0.129 → 0.0.131
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/README.md +9 -0
- package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
- package/dist/nile-dropdown/nile-dropdown.esm.js +3 -2
- package/dist/nile-error-notification/nile-error-notification.cjs.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.cjs.js.map +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.cjs.js.map +1 -1
- package/dist/nile-error-notification/nile-error-notification.css.esm.js +5 -4
- package/dist/nile-error-notification/nile-error-notification.esm.js +3 -3
- package/dist/nile-select/nile-select.css.cjs.js +1 -1
- package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.esm.js +3 -3
- package/dist/src/nile-code-editor/nile-code-editor.js +9 -7
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-dropdown/nile-dropdown.d.ts +2 -0
- package/dist/src/nile-dropdown/nile-dropdown.js +4 -0
- package/dist/src/nile-dropdown/nile-dropdown.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.css.js +4 -3
- package/dist/src/nile-error-notification/nile-error-notification.css.js.map +1 -1
- package/dist/src/nile-error-notification/nile-error-notification.d.ts +2 -0
- package/dist/src/nile-error-notification/nile-error-notification.js +11 -1
- package/dist/src/nile-error-notification/nile-error-notification.js.map +1 -1
- package/dist/src/nile-select/nile-select.css.js +3 -3
- package/dist/src/nile-select/nile-select.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-code-editor/nile-code-editor.ts +11 -8
- package/src/nile-dropdown/nile-dropdown.ts +4 -0
- package/src/nile-error-notification/nile-error-notification.css.ts +4 -3
- package/src/nile-error-notification/nile-error-notification.ts +11 -3
- package/src/nile-select/nile-select.css.ts +3 -3
- package/vscode-html-custom-data.json +30 -11
package/package.json
CHANGED
@@ -265,7 +265,7 @@ export class NileCodeEditor extends NileElement {
|
|
265
265
|
public insertBetweenCode=(text: string) => {
|
266
266
|
const transaction = this.view.state.changeByRange(range => {
|
267
267
|
const { from, to } = range;
|
268
|
-
return { changes: { from, to, insert: text }, range };
|
268
|
+
return { changes: { from:from, to, insert: text }, range };
|
269
269
|
});
|
270
270
|
this.view.dispatch(transaction);
|
271
271
|
}
|
@@ -309,7 +309,10 @@ export class NileCodeEditor extends NileElement {
|
|
309
309
|
customAutocomplete = (context: CompletionContext): CompletionResult | null => {
|
310
310
|
// Getting the valid last line, last text from the code editor
|
311
311
|
let text = context.state.doc.sliceString(0, context.pos);
|
312
|
-
const [textBeforeCursor,
|
312
|
+
const [textBeforeCursor,baseTextAfterSeperation]=this.splitStringAtLastSeparator(text.split('\n').at(-1)?.split(' ').at(-1)+'')
|
313
|
+
const textAfterSeperation=baseTextAfterSeperation.replace(/["'\[]/g, '')
|
314
|
+
|
315
|
+
const isSuggestionString=textAfterSeperation!=baseTextAfterSeperation;
|
313
316
|
|
314
317
|
if (!this.isValidPath(textBeforeCursor)) return { from: context.pos, options: [] };
|
315
318
|
if(['.', '['].includes(textBeforeCursor[textBeforeCursor.length - 1])){
|
@@ -320,7 +323,7 @@ export class NileCodeEditor extends NileElement {
|
|
320
323
|
if(textAfterSeperation){
|
321
324
|
const obj:any={}
|
322
325
|
Object.keys(resolved).forEach((key)=>{
|
323
|
-
if(key.startsWith(textAfterSeperation)){
|
326
|
+
if(key.toLowerCase().startsWith(textAfterSeperation.toLowerCase())){
|
324
327
|
obj[key]=resolved[key]
|
325
328
|
}
|
326
329
|
})
|
@@ -329,12 +332,12 @@ export class NileCodeEditor extends NileElement {
|
|
329
332
|
// If resolved is an object, provide its keys as suggestions
|
330
333
|
if (resolved && typeof resolved === 'object') {
|
331
334
|
return {
|
332
|
-
from: context.pos,
|
335
|
+
from: context.pos-textAfterSeperation.length,
|
333
336
|
options: Object.keys(resolved).map((key) => ({
|
334
337
|
label: key,
|
335
338
|
type: 'property',
|
336
339
|
info: `Key of ${path[path.length - 1]}`,
|
337
|
-
apply: key
|
340
|
+
apply: key,
|
338
341
|
boost: 999
|
339
342
|
})),
|
340
343
|
};
|
@@ -345,7 +348,7 @@ export class NileCodeEditor extends NileElement {
|
|
345
348
|
// Match for top-level object suggestions, e.g., "a"
|
346
349
|
const baseMatch: any = textBeforeCursor.match(/([a-zA-Z_$][\w$]*)$/);
|
347
350
|
if (baseMatch) {
|
348
|
-
const optionsList=Object.keys(this.customAutoCompletions).filter(key=>key.startsWith(textBeforeCursor));
|
351
|
+
const optionsList=Object.keys(this.customAutoCompletions).filter(key=>key.toLowerCase().startsWith(textBeforeCursor.toLowerCase()));
|
349
352
|
return {
|
350
353
|
from: context.pos - baseMatch[1].length,
|
351
354
|
options: optionsList.map((key) => ({
|
@@ -398,8 +401,8 @@ export class NileCodeEditor extends NileElement {
|
|
398
401
|
|
399
402
|
splitStringAtLastSeparator(input:string) {
|
400
403
|
const lastSeparatorIndex = Math.max(input.lastIndexOf('.'), input.lastIndexOf('['));
|
401
|
-
if (lastSeparatorIndex === -1) return [input, ''];
|
402
|
-
return [input.slice(0, lastSeparatorIndex + 1), input.slice(lastSeparatorIndex + 1)
|
404
|
+
if (lastSeparatorIndex === -1) return [input, ''];
|
405
|
+
return [input.slice(0, lastSeparatorIndex + 1), input.slice(lastSeparatorIndex + 1)];
|
403
406
|
}
|
404
407
|
/* #endregion */
|
405
408
|
}
|
@@ -102,6 +102,9 @@ export class NileDropdown extends NileElement {
|
|
102
102
|
/** The distance in pixels from which to offset the panel along its trigger. */
|
103
103
|
@property({ type: Number }) skidding = 0;
|
104
104
|
|
105
|
+
/** Syncs the popup's width or height to that of the anchor element. */
|
106
|
+
@property() sync: 'width' | 'height' | 'both';
|
107
|
+
|
105
108
|
/**
|
106
109
|
* Enable this option to prevent the panel from being clipped when the component is placed inside a container with
|
107
110
|
* `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.
|
@@ -407,6 +410,7 @@ export class NileDropdown extends NileElement {
|
|
407
410
|
distance=${this.distance}
|
408
411
|
skidding=${this.skidding}
|
409
412
|
strategy=${this.hoist ? 'fixed' : 'absolute'}
|
413
|
+
sync=${this.sync}
|
410
414
|
flip
|
411
415
|
shift
|
412
416
|
auto-size="both"
|
@@ -12,6 +12,7 @@ import { css } from 'lit-element';
|
|
12
12
|
*/
|
13
13
|
export const styles = css`
|
14
14
|
:host {
|
15
|
+
--indication-color: green;
|
15
16
|
}
|
16
17
|
|
17
18
|
.nile-error-notification {
|
@@ -21,12 +22,12 @@ export const styles = css`
|
|
21
22
|
font-weight: 400;
|
22
23
|
line-height: 12px;
|
23
24
|
letter-spacing: 0.2px;
|
24
|
-
border: 1px solid var(--
|
25
|
-
border-left: 6px solid var(--
|
25
|
+
border: 1px solid var(--indication-color);
|
26
|
+
border-left: 6px solid var(--indication-color);
|
26
27
|
border-radius: 4px;
|
27
28
|
padding: 8px;
|
28
29
|
background: var(--nile-colors-neutral-100);
|
29
|
-
color: var(--
|
30
|
+
color: var(--indication-color);
|
30
31
|
box-sizing: border-box;
|
31
32
|
}
|
32
33
|
|
@@ -32,8 +32,16 @@ export class NileErrorNotification extends LitElement {
|
|
32
32
|
}
|
33
33
|
|
34
34
|
// Represents the error message to be displayed to the user.
|
35
|
-
@property({ type: String, reflect: true })
|
36
|
-
|
35
|
+
@property({ type: String, reflect: true }) errorMessage: string = '';
|
36
|
+
|
37
|
+
@property({ type: String, reflect: true }) color: string = '';
|
38
|
+
|
39
|
+
connectedCallback(): void {
|
40
|
+
super.connectedCallback();
|
41
|
+
if(this.color){
|
42
|
+
this.style.setProperty('--indication-color',this.color)
|
43
|
+
}
|
44
|
+
}
|
37
45
|
|
38
46
|
/* #endregion */
|
39
47
|
|
@@ -51,7 +59,7 @@ export class NileErrorNotification extends LitElement {
|
|
51
59
|
size="14"
|
52
60
|
class="nile-error-notification__icon"
|
53
61
|
part="icon"
|
54
|
-
color="
|
62
|
+
color="var(--indication-color)"
|
55
63
|
></nile-icon>
|
56
64
|
${this.errorMessage}
|
57
65
|
</div>
|
@@ -122,7 +122,7 @@ export const styles = css`
|
|
122
122
|
font: inherit;
|
123
123
|
border: none;
|
124
124
|
background: none;
|
125
|
-
color:
|
125
|
+
color: var(--nile-colors-dark-900);
|
126
126
|
cursor: inherit;
|
127
127
|
overflow: hidden;
|
128
128
|
padding: 0;
|
@@ -136,7 +136,7 @@ export const styles = css`
|
|
136
136
|
}
|
137
137
|
|
138
138
|
.select:not(.select--disabled):hover .select__display-input {
|
139
|
-
color:
|
139
|
+
color: var(--nile-colors-dark-900);
|
140
140
|
}
|
141
141
|
|
142
142
|
.select__display-input:focus {
|
@@ -207,7 +207,7 @@ export const styles = css`
|
|
207
207
|
}
|
208
208
|
|
209
209
|
.select--standard .select__combobox:hover {
|
210
|
-
border: 1px solid
|
210
|
+
border: 1px solid var(--nile-colors-dark-900);
|
211
211
|
background: #fff;
|
212
212
|
}
|
213
213
|
|
@@ -1062,7 +1062,7 @@
|
|
1062
1062
|
},
|
1063
1063
|
{
|
1064
1064
|
"name": "nile-dropdown",
|
1065
|
-
"description": "Nile icon component.\n\nEvents:\n\n * `nile-show` {} - Emitted when the dropdown opens.\n\n * `nile-after-show` {} - Emitted after the dropdown opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the dropdown closes.\n\n * `nile-after-hide` {} - Emitted after the dropdown closes and all animations are complete.\n\nSlots:\n\n * ` ` {} - The dropdown's main content.\n\n * `trigger` {} - The dropdown's trigger, usually a `<nile-button>` element.\n\nAttributes:\n\n * `open` {`boolean`} - Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.\n\n * `disabled` {`boolean`} - Disables the dropdown so the panel will not open.\n\n * `stay-open-on-select` {`boolean`} - By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its trigger.\n\n * `noOpenOnClick` {`boolean`} - \n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its trigger.\n\n * `hoist` {`boolean`} - Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\nProperties:\n\n * `styles` - \n\n * `popup` - \n\n * `trigger` {`HTMLSlotElement`} - \n\n * `panel` {`HTMLSlotElement`} - \n\n * `open` {`boolean`} - Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.\n\n * `disabled` {`boolean`} - Disables the dropdown so the panel will not open.\n\n * `stayOpenOnSelect` {`boolean`} - By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.\n\n * `containingElement` {`HTMLElement | undefined`} - The dropdown will close when the user interacts outside of this element (e.g. clicking). Useful for composing other\ncomponents that use a dropdown internally.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its trigger.\n\n * `noOpenOnClick` {`boolean`} - \n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its trigger.\n\n * `hoist` {`boolean`} - Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
1065
|
+
"description": "Nile icon component.\n\nEvents:\n\n * `nile-show` {} - Emitted when the dropdown opens.\n\n * `nile-after-show` {} - Emitted after the dropdown opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the dropdown closes.\n\n * `nile-after-hide` {} - Emitted after the dropdown closes and all animations are complete.\n\nSlots:\n\n * ` ` {} - The dropdown's main content.\n\n * `trigger` {} - The dropdown's trigger, usually a `<nile-button>` element.\n\nAttributes:\n\n * `open` {`boolean`} - Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.\n\n * `disabled` {`boolean`} - Disables the dropdown so the panel will not open.\n\n * `stay-open-on-select` {`boolean`} - By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its trigger.\n\n * `noOpenOnClick` {`boolean`} - \n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its trigger.\n\n * `sync` {`\"width\" | \"height\" | \"both\"`} - Syncs the popup's width or height to that of the anchor element.\n\n * `hoist` {`boolean`} - Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\nProperties:\n\n * `styles` - \n\n * `popup` - \n\n * `trigger` {`HTMLSlotElement`} - \n\n * `panel` {`HTMLSlotElement`} - \n\n * `open` {`boolean`} - Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.\n\n * `disabled` {`boolean`} - Disables the dropdown so the panel will not open.\n\n * `stayOpenOnSelect` {`boolean`} - By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.\n\n * `containingElement` {`HTMLElement | undefined`} - The dropdown will close when the user interacts outside of this element (e.g. clicking). Useful for composing other\ncomponents that use a dropdown internally.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its trigger.\n\n * `noOpenOnClick` {`boolean`} - \n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its trigger.\n\n * `sync` {`\"width\" | \"height\" | \"both\"`} - Syncs the popup's width or height to that of the anchor element.\n\n * `hoist` {`boolean`} - Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
1066
1066
|
"attributes": [
|
1067
1067
|
{
|
1068
1068
|
"name": "open",
|
@@ -1134,6 +1134,21 @@
|
|
1134
1134
|
"name": "skidding",
|
1135
1135
|
"description": "`skidding` {`number`} - The distance in pixels from which to offset the panel along its trigger.\n\nProperty: skidding\n\nDefault: 0"
|
1136
1136
|
},
|
1137
|
+
{
|
1138
|
+
"name": "sync",
|
1139
|
+
"description": "`sync` {`\"width\" | \"height\" | \"both\"`} - Syncs the popup's width or height to that of the anchor element.\n\nProperty: sync",
|
1140
|
+
"values": [
|
1141
|
+
{
|
1142
|
+
"name": "width"
|
1143
|
+
},
|
1144
|
+
{
|
1145
|
+
"name": "height"
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
"name": "both"
|
1149
|
+
}
|
1150
|
+
]
|
1151
|
+
},
|
1137
1152
|
{
|
1138
1153
|
"name": "hoist",
|
1139
1154
|
"description": "`hoist` {`boolean`} - Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\nProperty: hoist\n\nDefault: false",
|
@@ -1235,11 +1250,15 @@
|
|
1235
1250
|
},
|
1236
1251
|
{
|
1237
1252
|
"name": "nile-error-notification",
|
1238
|
-
"description": "Nile icon component.\n\nAttributes:\n\n * `errorMessage` {`string`} - \n\nProperties:\n\n * `errorMessage` {`string`} - ",
|
1253
|
+
"description": "Nile icon component.\n\nAttributes:\n\n * `errorMessage` {`string`} - \n\n * `color` {`string`} - \n\nProperties:\n\n * `errorMessage` {`string`} - \n\n * `color` {`string`} - ",
|
1239
1254
|
"attributes": [
|
1240
1255
|
{
|
1241
1256
|
"name": "errorMessage",
|
1242
1257
|
"description": "`errorMessage` {`string`} - \n\nProperty: errorMessage\n\nDefault: "
|
1258
|
+
},
|
1259
|
+
{
|
1260
|
+
"name": "color",
|
1261
|
+
"description": "`color` {`string`} - \n\nProperty: color\n\nDefault: "
|
1243
1262
|
}
|
1244
1263
|
]
|
1245
1264
|
},
|
@@ -2284,7 +2303,7 @@
|
|
2284
2303
|
},
|
2285
2304
|
{
|
2286
2305
|
"name": "nile-popup",
|
2287
|
-
"description": "Nile icon component.\n\nAttributes:\n\n * `anchor` {`string | Element`} - The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a\nreference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.\n\n * `active` {`boolean`} - Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.\n\n * `strategy` {`\"absolute\" | \"fixed\"`} - Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is\nclipped, using a `fixed` position strategy can often workaround it.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its anchor.\n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its anchor.\n\n * `arrow` {`boolean`} - Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.\n\n * `arrow-placement` {`\"end\" | \"start\" | \"center\" | \"anchor\"`} - The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.\n\n * `arrow-padding` {`number`} - The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.\n\n * `flip` {`boolean`} - When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.\n\n * `flip-fallback-placements` {`string`} - If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.\n\n * `flip-fallback-strategy` {`\"best-fit\" | \"initial\"`} - When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.\n\n * `flipBoundary` {`Element | Element[]`} - The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `flip-padding` {`number`} - The amount of padding, in pixels, to exceed before the flip behavior will occur.\n\n * `shift` {`boolean`} - Moves the popup along the axis to keep it in view when clipped.\n\n * `shiftBoundary` {`Element | Element[]`} - The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `shift-padding` {`number`} - The amount of padding, in pixels, to exceed before the shift behavior will occur.\n\n * `auto-size` {`\"
|
2306
|
+
"description": "Nile icon component.\n\nAttributes:\n\n * `anchor` {`string | Element`} - The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a\nreference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.\n\n * `active` {`boolean`} - Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.\n\n * `strategy` {`\"absolute\" | \"fixed\"`} - Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is\nclipped, using a `fixed` position strategy can often workaround it.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its anchor.\n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its anchor.\n\n * `arrow` {`boolean`} - Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.\n\n * `arrow-placement` {`\"end\" | \"start\" | \"center\" | \"anchor\"`} - The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.\n\n * `arrow-padding` {`number`} - The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.\n\n * `flip` {`boolean`} - When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.\n\n * `flip-fallback-placements` {`string`} - If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.\n\n * `flip-fallback-strategy` {`\"best-fit\" | \"initial\"`} - When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.\n\n * `flipBoundary` {`Element | Element[]`} - The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `flip-padding` {`number`} - The amount of padding, in pixels, to exceed before the flip behavior will occur.\n\n * `shift` {`boolean`} - Moves the popup along the axis to keep it in view when clipped.\n\n * `shiftBoundary` {`Element | Element[]`} - The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `shift-padding` {`number`} - The amount of padding, in pixels, to exceed before the shift behavior will occur.\n\n * `auto-size` {`\"both\" | \"horizontal\" | \"vertical\"`} - When set, this will cause the popup to automatically resize itself to prevent it from overflowing.\n\n * `sync` {`\"width\" | \"height\" | \"both\"`} - Syncs the popup's width or height to that of the anchor element.\n\n * `autoSizeBoundary` {`Element | Element[]`} - The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `auto-size-padding` {`number`} - The amount of padding, in pixels, to exceed before the auto-size behavior will occur.\n\nProperties:\n\n * `styles` - \n\n * `anchorEl` {`Element | null`} - \n\n * `cleanup` {`(() => void) | undefined`} - \n\n * `popup` {`HTMLElement`} - A reference to the internal popup container. Useful for animating and styling the popup with JavaScript.\n\n * `arrowEl` {`HTMLElement`} - \n\n * `anchor` {`string | Element`} - The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a\nreference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.\n\n * `active` {`boolean`} - Activates the positioning logic and shows the popup. When this attribute is removed, the positioning logic is torn\ndown and the popup will be hidden.\n\n * `placement` {`\"top\" | \"bottom\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right\" | \"right-start\" | \"right-end\" | \"left\" | \"left-start\" | \"left-end\"`} - The preferred placement of the popup. Note that the actual placement will vary as configured to keep the\npanel inside of the viewport.\n\n * `strategy` {`\"absolute\" | \"fixed\"`} - Determines how the popup is positioned. The `absolute` strategy works well in most cases, but if overflow is\nclipped, using a `fixed` position strategy can often workaround it.\n\n * `distance` {`number`} - The distance in pixels from which to offset the panel away from its anchor.\n\n * `skidding` {`number`} - The distance in pixels from which to offset the panel along its anchor.\n\n * `arrow` {`boolean`} - Attaches an arrow to the popup. The arrow's size and color can be customized using the `--arrow-size` and\n`--arrow-color` custom properties. For additional customizations, you can also target the arrow using\n`::part(arrow)` in your stylesheet.\n\n * `arrowPlacement` {`\"end\" | \"start\" | \"center\" | \"anchor\"`} - The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.\n\n * `arrowPadding` {`number`} - The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example,\nthis will prevent it from overflowing the corners.\n\n * `flip` {`boolean`} - When set, placement of the popup will flip to the opposite site to keep it in view. You can use\n`flipFallbackPlacements` to further configure how the fallback placement is determined.\n\n * `flipFallbackPlacements` {`string`} - If the preferred placement doesn't fit, popup will be tested in these fallback placements until one fits. Must be a\nstring of any number of placements separated by a space, e.g. \"top bottom left\". If no placement fits, the flip\nfallback strategy will be used instead.\n\n * `flipFallbackStrategy` {`\"best-fit\" | \"initial\"`} - When neither the preferred placement nor the fallback placements fit, this value will be used to determine whether\nthe popup should be positioned using the best available fit based on available space or as it was initially\npreferred.\n\n * `flipBoundary` {`Element | Element[]`} - The flip boundary describes clipping element(s) that overflow will be checked relative to when flipping. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `flipPadding` {`number`} - The amount of padding, in pixels, to exceed before the flip behavior will occur.\n\n * `shift` {`boolean`} - Moves the popup along the axis to keep it in view when clipped.\n\n * `shiftBoundary` {`Element | Element[]`} - The shift boundary describes clipping element(s) that overflow will be checked relative to when shifting. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `shiftPadding` {`number`} - The amount of padding, in pixels, to exceed before the shift behavior will occur.\n\n * `autoSize` {`\"both\" | \"horizontal\" | \"vertical\"`} - When set, this will cause the popup to automatically resize itself to prevent it from overflowing.\n\n * `sync` {`\"width\" | \"height\" | \"both\"`} - Syncs the popup's width or height to that of the anchor element.\n\n * `autoSizeBoundary` {`Element | Element[]`} - The auto-size boundary describes clipping element(s) that overflow will be checked relative to when resizing. By\ndefault, the boundary includes overflow ancestors that will cause the element to be clipped. If needed, you can\nchange the boundary by passing a reference to one or more elements to this property.\n\n * `autoSizePadding` {`number`} - The amount of padding, in pixels, to exceed before the auto-size behavior will occur.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2288
2307
|
"attributes": [
|
2289
2308
|
{
|
2290
2309
|
"name": "anchor",
|
@@ -2431,31 +2450,31 @@
|
|
2431
2450
|
},
|
2432
2451
|
{
|
2433
2452
|
"name": "auto-size",
|
2434
|
-
"description": "`auto-size` {`\"
|
2453
|
+
"description": "`auto-size` {`\"both\" | \"horizontal\" | \"vertical\"`} - When set, this will cause the popup to automatically resize itself to prevent it from overflowing.\n\nProperty: autoSize",
|
2435
2454
|
"values": [
|
2436
2455
|
{
|
2437
|
-
"name": "
|
2456
|
+
"name": "both"
|
2438
2457
|
},
|
2439
2458
|
{
|
2440
|
-
"name": "
|
2459
|
+
"name": "horizontal"
|
2441
2460
|
},
|
2442
2461
|
{
|
2443
|
-
"name": "
|
2462
|
+
"name": "vertical"
|
2444
2463
|
}
|
2445
2464
|
]
|
2446
2465
|
},
|
2447
2466
|
{
|
2448
2467
|
"name": "sync",
|
2449
|
-
"description": "`sync` {`\"
|
2468
|
+
"description": "`sync` {`\"width\" | \"height\" | \"both\"`} - Syncs the popup's width or height to that of the anchor element.\n\nProperty: sync",
|
2450
2469
|
"values": [
|
2451
|
-
{
|
2452
|
-
"name": "both"
|
2453
|
-
},
|
2454
2470
|
{
|
2455
2471
|
"name": "width"
|
2456
2472
|
},
|
2457
2473
|
{
|
2458
2474
|
"name": "height"
|
2475
|
+
},
|
2476
|
+
{
|
2477
|
+
"name": "both"
|
2459
2478
|
}
|
2460
2479
|
]
|
2461
2480
|
},
|