@aquera/nile-elements 1.2.8-beta-1.1 → 1.2.8-beta-1.3
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 +5 -0
- package/demo/index.html +33 -93
- package/demo/nxtgen.css +0 -6
- package/demo/variables.css +0 -4
- package/dist/index.js +411 -699
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +46 -234
- package/dist/nile-calendar/nile-calendar.esm.js +106 -220
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +32 -18
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +3 -3
- package/dist/src/nile-calendar/nile-calendar.css.js +44 -232
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +0 -15
- package/dist/src/nile-calendar/nile-calendar.js +101 -340
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +30 -16
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.js +19 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
- package/dist/src/version.js +2 -2
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.css.ts +44 -232
- package/src/nile-calendar/nile-calendar.ts +115 -369
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +30 -16
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -0
- package/src/nile-virtual-select/nile-virtual-select.ts +26 -2
- package/vscode-html-custom-data.json +27 -47
|
@@ -13,9 +13,9 @@ export const styles = css`
|
|
|
13
13
|
|
|
14
14
|
.rte-container {
|
|
15
15
|
width: 100%;
|
|
16
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
17
|
-
border-radius: var(--nile-radius-radius-xl);
|
|
18
|
-
background: var(--nile-colors-white-base);
|
|
16
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-neutral));
|
|
17
|
+
border-radius: var(--nile-radius-radius-xl, var(--ng-radius-md));
|
|
18
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -25,8 +25,8 @@ export const styles = css`
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
gap: 6px;
|
|
27
27
|
padding: 8px;
|
|
28
|
-
border-bottom: 1px solid var(--nile-colors-neutral-400);
|
|
29
|
-
background: var(--nile-colors-white-base);
|
|
28
|
+
border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-neutral));
|
|
29
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
30
30
|
border-radius: 8px 8px 0 0;
|
|
31
31
|
|
|
32
32
|
width: 100%;
|
|
@@ -38,14 +38,14 @@ export const styles = css`
|
|
|
38
38
|
min-height: 160px;
|
|
39
39
|
width: 100%;
|
|
40
40
|
padding: 12px;
|
|
41
|
-
background: var(--nile-colors-white-base);
|
|
41
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
42
42
|
border-radius: 0 0 8px 8px;
|
|
43
43
|
outline: none;
|
|
44
44
|
tab-size: 4;
|
|
45
45
|
-moz-tab-size: 4;
|
|
46
46
|
word-break: break-word;
|
|
47
47
|
box-sizing: border-box;
|
|
48
|
-
border-radius: var(--nile-radius-radius-xl);
|
|
48
|
+
border-radius: var(--nile-radius-radius-xl, var(--ng-radius-md));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
|
|
@@ -54,9 +54,9 @@ nile-rte-preview {
|
|
|
54
54
|
width: 100%;
|
|
55
55
|
margin-top: 16px;
|
|
56
56
|
padding: 12px;
|
|
57
|
-
border: 1px dashed var(--nile-colors-neutral-400);
|
|
58
|
-
border-radius: var(--nile-radius-radius-xl);
|
|
59
|
-
background: var(--nile-colors-white-base);
|
|
57
|
+
border: 1px dashed var(--nile-colors-neutral-400, var(--ng-colors-border-neutral));
|
|
58
|
+
border-radius: var(--nile-radius-radius-xl, var(--ng-radius-md));
|
|
59
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
60
60
|
box-sizing: border-box;
|
|
61
61
|
word-wrap: break-word;
|
|
62
62
|
}
|
|
@@ -72,9 +72,9 @@ nile-rte-preview {
|
|
|
72
72
|
|
|
73
73
|
nile-rte-toolbar-item > button,
|
|
74
74
|
nile-rte-toolbar button {
|
|
75
|
-
border: 1px solid var(--nile-colors-neutral-400);
|
|
76
|
-
background: var(--nile-colors-white-base);
|
|
77
|
-
border-radius: var(--nile-radius-radius-lg);
|
|
75
|
+
border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-neutral));
|
|
76
|
+
background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
77
|
+
border-radius: var(--nile-radius-radius-lg, var(--ng-radius-md));
|
|
78
78
|
cursor: pointer;
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -115,6 +115,7 @@ nile-rte-preview {
|
|
|
115
115
|
nile-rte-preview.single-line {
|
|
116
116
|
min-height: 50px;
|
|
117
117
|
max-height: 50px;
|
|
118
|
+
line-height: 1.2;
|
|
118
119
|
padding: 0px 12px 0px 12px;
|
|
119
120
|
overflow-x: auto;
|
|
120
121
|
white-space: nowrap;
|
|
@@ -126,7 +127,7 @@ nile-rte-preview {
|
|
|
126
127
|
display: inline-block;
|
|
127
128
|
height: 24px;
|
|
128
129
|
width: 1px;
|
|
129
|
-
background: var(--nile-colors-neutral-400);
|
|
130
|
+
background: var(--nile-colors-neutral-400, var(--ng-colors-border-neutral));
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.editor ul,
|
|
@@ -140,13 +141,26 @@ nile-rte-preview {
|
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
nile-rte-toolbar-item nile-button[data-active]::part(base) {
|
|
143
|
-
background-color: var(--nile-colors-primary-400);
|
|
144
|
+
background-color: var(--nile-colors-primary-400, var(--ng-componentcolors-utility-blue-400));
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
nile-rte-toolbar-item nile-button[data-active]::part(base):hover {
|
|
147
|
-
background-color: var(--nile-colors-primary-500);
|
|
148
|
+
background-color: var(--nile-colors-primary-500, var(--ng-componentcolors-utility-blue-500));
|
|
148
149
|
}
|
|
149
150
|
|
|
151
|
+
.editor.empty::before {
|
|
152
|
+
content: attr(data-placeholder);
|
|
153
|
+
color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary));
|
|
154
|
+
position: absolute;
|
|
155
|
+
font-family: var(var(--nile-font-family-sans-serif), var(--ng-font-family-body));
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
user-select: none;
|
|
158
|
+
padding-top: 16px;
|
|
159
|
+
opacity: 0.7;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
150
164
|
|
|
151
165
|
|
|
152
166
|
`;
|
|
@@ -51,6 +51,8 @@ export class NileRichTextEditor extends LitElement {
|
|
|
51
51
|
@property({ type: Boolean, attribute: true, reflect: true }) noStyles = false;
|
|
52
52
|
@property({ type: Boolean, attribute: 'singlelineeditor', reflect: true }) singleLineEditor =
|
|
53
53
|
false;
|
|
54
|
+
@property({ type: String }) placeholder = '';
|
|
55
|
+
|
|
54
56
|
|
|
55
57
|
@property({
|
|
56
58
|
attribute: 'mentions',
|
|
@@ -113,6 +115,10 @@ export class NileRichTextEditor extends LitElement {
|
|
|
113
115
|
super.connectedCallback();
|
|
114
116
|
this.injectCss(styles.cssText);
|
|
115
117
|
this.ensureStructure();
|
|
118
|
+
if (this.placeholder && this.editorEl) {
|
|
119
|
+
this.editorEl.dataset.placeholder = this.placeholder;
|
|
120
|
+
}
|
|
121
|
+
|
|
116
122
|
|
|
117
123
|
if (this.value && !this.editorEl.innerHTML.trim()) {
|
|
118
124
|
this.editorEl.innerHTML = this.value;
|
|
@@ -216,6 +222,10 @@ export class NileRichTextEditor extends LitElement {
|
|
|
216
222
|
editor.setAttribute('contenteditable', 'true');
|
|
217
223
|
this.editorEl = editor;
|
|
218
224
|
}
|
|
225
|
+
if (this.placeholder) {
|
|
226
|
+
this.editorEl.dataset.placeholder = this.placeholder;
|
|
227
|
+
}
|
|
228
|
+
|
|
219
229
|
if (!this.editorEl.innerHTML.trim()) {
|
|
220
230
|
this.editorEl.innerHTML = '<p><br></p>';
|
|
221
231
|
}
|
|
@@ -781,6 +791,8 @@ export class NileRichTextEditor extends LitElement {
|
|
|
781
791
|
private updateContent() {
|
|
782
792
|
if (!this.editorEl) return;
|
|
783
793
|
this.ensureAtLeastOneParagraph();
|
|
794
|
+
const isEmpty = (this.editorEl.textContent ?? '').trim() === '';
|
|
795
|
+
this.editorEl.classList.toggle('empty', isEmpty);
|
|
784
796
|
const clone = this.editorEl.cloneNode(true) as HTMLElement;
|
|
785
797
|
|
|
786
798
|
if (!this.noStyles) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
9
|
LitElement,
|
|
10
10
|
html,
|
|
11
11
|
} from 'lit';
|
|
@@ -1003,8 +1003,9 @@ export class NileVirtualSelect extends NileElement implements NileFormControl {
|
|
|
1003
1003
|
@watch('open', { waitUntilFirstUpdate: true })
|
|
1004
1004
|
async handleOpenChange(): Promise<void> {
|
|
1005
1005
|
if (this.open && !this.disabled) {
|
|
1006
|
-
await this.handleOpen();
|
|
1007
1006
|
this.showListbox = true;
|
|
1007
|
+
await this.updateComplete;
|
|
1008
|
+
await this.handleOpen();
|
|
1008
1009
|
|
|
1009
1010
|
if (this.portal) {
|
|
1010
1011
|
this.portalManager.setupPortalAppend();
|
|
@@ -1025,7 +1026,24 @@ export class NileVirtualSelect extends NileElement implements NileFormControl {
|
|
|
1025
1026
|
this.showNoResults = !this.data?.length;
|
|
1026
1027
|
|
|
1027
1028
|
await stopAnimations(this);
|
|
1029
|
+
|
|
1030
|
+
// Hide popup initially to prevent flickering during positioning calculation
|
|
1031
|
+
// This allows content to be measured while invisible
|
|
1032
|
+
if (this.popup?.popup) {
|
|
1033
|
+
this.popup.popup.style.visibility = 'hidden';
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1028
1036
|
this.popup.active = true;
|
|
1037
|
+
|
|
1038
|
+
// Wait for positioning to complete before showing the popup
|
|
1039
|
+
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
1040
|
+
// Wait for next frame to allow Floating UI to calculate position
|
|
1041
|
+
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
1042
|
+
|
|
1043
|
+
// Show popup after positioning is calculated
|
|
1044
|
+
if (this.popup?.popup) {
|
|
1045
|
+
this.popup.popup.style.visibility = '';
|
|
1046
|
+
}
|
|
1029
1047
|
|
|
1030
1048
|
const { keyframes, options } = getAnimation(this, 'select.show', {
|
|
1031
1049
|
dir: 'ltr',
|
|
@@ -1060,6 +1078,11 @@ export class NileVirtualSelect extends NileElement implements NileFormControl {
|
|
|
1060
1078
|
});
|
|
1061
1079
|
await animateTo(this.popup.popup, keyframes, options);
|
|
1062
1080
|
this.popup.active = false;
|
|
1081
|
+
|
|
1082
|
+
// Reset visibility style when closing
|
|
1083
|
+
if (this.popup?.popup) {
|
|
1084
|
+
this.popup.popup.style.visibility = '';
|
|
1085
|
+
}
|
|
1063
1086
|
|
|
1064
1087
|
this.searchValue = '';
|
|
1065
1088
|
|
|
@@ -1630,3 +1653,4 @@ declare global {
|
|
|
1630
1653
|
'nile-virtual-select': NileVirtualSelect;
|
|
1631
1654
|
}
|
|
1632
1655
|
}
|
|
1656
|
+
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
},
|
|
555
555
|
{
|
|
556
556
|
"name": "nile-calendar",
|
|
557
|
-
"description": "Nile icon component.\n\nAttributes:\n\n * `value` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hide-duration-fields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\
|
|
557
|
+
"description": "Nile icon component.\n\nAttributes:\n\n * `value` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hide-duration-fields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\nProperties:\n\n * `valueAttribute` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hideDurationFields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\n * `startDate` {`Date | null`} - \n\n * `endDate` {`Date | null`} - \n\n * `isSelectingStart` {`boolean`} - \n\n * `hideInput` {`Boolean`} - \n\n * `value` {`Date | null`} - \n\n * `currentMonth` {`number`} - \n\n * `currentYear` {`number`} - \n\n * `allowedDatesLocal` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
|
558
558
|
"attributes": [
|
|
559
559
|
{
|
|
560
560
|
"name": "value",
|
|
@@ -630,30 +630,6 @@
|
|
|
630
630
|
"name": "showManualInputs",
|
|
631
631
|
"description": "`showManualInputs` {`boolean`} - \n\nProperty: showManualInputs\n\nDefault: false",
|
|
632
632
|
"valueSet": "v"
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
"name": "startYear",
|
|
636
|
-
"description": "`startYear` {`number | undefined`} - \n\nProperty: startYear",
|
|
637
|
-
"values": []
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"name": "endYear",
|
|
641
|
-
"description": "`endYear` {`number | undefined`} - \n\nProperty: endYear",
|
|
642
|
-
"values": []
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"name": "showMonthDropdown",
|
|
646
|
-
"description": "`showMonthDropdown` {`boolean`} - \n\nProperty: showMonthDropdown\n\nDefault: false",
|
|
647
|
-
"valueSet": "v"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"name": "showYearDropdown",
|
|
651
|
-
"description": "`showYearDropdown` {`boolean`} - \n\nProperty: showYearDropdown\n\nDefault: false",
|
|
652
|
-
"valueSet": "v"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"name": "dateFormat",
|
|
656
|
-
"description": "`dateFormat` {`string`} - \n\nProperty: dateFormat\n\nDefault: MM/DD/YYYY"
|
|
657
633
|
}
|
|
658
634
|
]
|
|
659
635
|
},
|
|
@@ -1716,7 +1692,7 @@
|
|
|
1716
1692
|
},
|
|
1717
1693
|
{
|
|
1718
1694
|
"name": "nile-format-date",
|
|
1719
|
-
"description": "Nile format-date component.\n\nAttributes:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"
|
|
1695
|
+
"description": "Nile format-date component.\n\nAttributes:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the weekday.\n\n * `era` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the era.\n\n * `year` {`\"numeric\" | \"2-digit\"`} - The format for displaying the year.\n\n * `month` {`\"narrow\" | \"short\" | \"long\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\n * `day` {`\"numeric\" | \"2-digit\"`} - The format for displaying the day.\n\n * `hour` {`\"numeric\" | \"2-digit\"`} - The format for displaying the hour.\n\n * `minute` {`\"numeric\" | \"2-digit\"`} - The format for displaying the minute.\n\n * `second` {`\"numeric\" | \"2-digit\"`} - The format for displaying the second.\n\n * `time-zone-name` {`\"short\" | \"long\"`} - The format for displaying the time.\n\n * `time-zone` {`string`} - The time zone to express the time in.\n\n * `hour-format` {`\"auto\" | \"12\" | \"24\"`} - The format for displaying the hour.\n\n * `date-separator` {`\"-\" | \"/\"`} - The separator for the date format.\n\nProperties:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the weekday.\n\n * `era` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the era.\n\n * `year` {`\"numeric\" | \"2-digit\"`} - The format for displaying the year.\n\n * `month` {`\"narrow\" | \"short\" | \"long\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\n * `day` {`\"numeric\" | \"2-digit\"`} - The format for displaying the day.\n\n * `hour` {`\"numeric\" | \"2-digit\"`} - The format for displaying the hour.\n\n * `minute` {`\"numeric\" | \"2-digit\"`} - The format for displaying the minute.\n\n * `second` {`\"numeric\" | \"2-digit\"`} - The format for displaying the second.\n\n * `timeZoneName` {`\"short\" | \"long\"`} - The format for displaying the time.\n\n * `timeZone` {`string`} - The time zone to express the time in.\n\n * `hourFormat` {`\"auto\" | \"12\" | \"24\"`} - The format for displaying the hour.\n\n * `dateSeparator` {`\"-\" | \"/\"`} - The separator for the date format.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
|
1720
1696
|
"attributes": [
|
|
1721
1697
|
{
|
|
1722
1698
|
"name": "date",
|
|
@@ -1725,31 +1701,31 @@
|
|
|
1725
1701
|
},
|
|
1726
1702
|
{
|
|
1727
1703
|
"name": "weekday",
|
|
1728
|
-
"description": "`weekday` {`\"
|
|
1704
|
+
"description": "`weekday` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the weekday.\n\nProperty: weekday",
|
|
1729
1705
|
"values": [
|
|
1730
|
-
{
|
|
1731
|
-
"name": "long"
|
|
1732
|
-
},
|
|
1733
1706
|
{
|
|
1734
1707
|
"name": "narrow"
|
|
1735
1708
|
},
|
|
1736
1709
|
{
|
|
1737
1710
|
"name": "short"
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"name": "long"
|
|
1738
1714
|
}
|
|
1739
1715
|
]
|
|
1740
1716
|
},
|
|
1741
1717
|
{
|
|
1742
1718
|
"name": "era",
|
|
1743
|
-
"description": "`era` {`\"
|
|
1719
|
+
"description": "`era` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the era.\n\nProperty: era",
|
|
1744
1720
|
"values": [
|
|
1745
|
-
{
|
|
1746
|
-
"name": "long"
|
|
1747
|
-
},
|
|
1748
1721
|
{
|
|
1749
1722
|
"name": "narrow"
|
|
1750
1723
|
},
|
|
1751
1724
|
{
|
|
1752
1725
|
"name": "short"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "long"
|
|
1753
1729
|
}
|
|
1754
1730
|
]
|
|
1755
1731
|
},
|
|
@@ -1767,17 +1743,17 @@
|
|
|
1767
1743
|
},
|
|
1768
1744
|
{
|
|
1769
1745
|
"name": "month",
|
|
1770
|
-
"description": "`month` {`\"
|
|
1746
|
+
"description": "`month` {`\"narrow\" | \"short\" | \"long\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\nProperty: month",
|
|
1771
1747
|
"values": [
|
|
1772
|
-
{
|
|
1773
|
-
"name": "long"
|
|
1774
|
-
},
|
|
1775
1748
|
{
|
|
1776
1749
|
"name": "narrow"
|
|
1777
1750
|
},
|
|
1778
1751
|
{
|
|
1779
1752
|
"name": "short"
|
|
1780
1753
|
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "long"
|
|
1756
|
+
},
|
|
1781
1757
|
{
|
|
1782
1758
|
"name": "numeric"
|
|
1783
1759
|
},
|
|
@@ -1836,13 +1812,13 @@
|
|
|
1836
1812
|
},
|
|
1837
1813
|
{
|
|
1838
1814
|
"name": "time-zone-name",
|
|
1839
|
-
"description": "`time-zone-name` {`\"
|
|
1815
|
+
"description": "`time-zone-name` {`\"short\" | \"long\"`} - The format for displaying the time.\n\nProperty: timeZoneName",
|
|
1840
1816
|
"values": [
|
|
1841
1817
|
{
|
|
1842
|
-
"name": "
|
|
1818
|
+
"name": "short"
|
|
1843
1819
|
},
|
|
1844
1820
|
{
|
|
1845
|
-
"name": "
|
|
1821
|
+
"name": "long"
|
|
1846
1822
|
}
|
|
1847
1823
|
]
|
|
1848
1824
|
},
|
|
@@ -2626,7 +2602,7 @@
|
|
|
2626
2602
|
},
|
|
2627
2603
|
{
|
|
2628
2604
|
"name": "nile-lite-tooltip",
|
|
2629
|
-
"description": "Nile lite-tooltip component.\n\nSupports wrapper, sibling (for), and singleton modes.\nAligns with Tippy.js props and Nile design system.\n\nEvents:\n\n * `nile-show` {`CustomEvent<{ instance: Instance<Props>; target: ReferenceElement<Props>; }>`} - \n\n * `nile-toggle` {`CustomEvent<{ open: boolean; instance: Instance<Props>; target: ReferenceElement<Props>; }>`} - \n\n * `nile-hide` {`CustomEvent<{ instance: Instance<Props>; target: ReferenceElement<Props>; }>`} - \n\nAttributes:\n\n * `for` {`string | null`} - ID of the target element (for sibling mode)\n\n * `content` {`string`} - Tooltip content text or HTML\n\n * `size` {`\"small\" | \"large\"`} - Tooltip size (applies CSS class)\n\n * `duration` {`string | number | [number, number]`} - Animation duration for show/hide (ms). Can be a single value or [show, hide].\n\n * `interactive` {`boolean`} - Interactive mode\n\n * `placement` {`\"left\" | \"right\" | \"top\" | \"top-start\" | \"top-end\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left-start\" | \"left-end\" | \"auto\" | \"auto-start\" | \"auto-end\"`} - Placement of the tooltip\n\n * `disabled` {`boolean`} - \n\n * `distance` {`number`} - \n\n * `skidding` {`number`} - \n\n * `open` {`boolean`} - \n\n * `trigger` {`string`} - \n\n * `allowHTML` {`boolean`} - \n\n * `followCursor` {`boolean | \"false\" | \"true\" | \"initial\" | \"horizontal\" | \"vertical\"`} - \n\n * `arrow` {`\"small\" | \"none\" | \"
|
|
2605
|
+
"description": "Nile lite-tooltip component.\n\nSupports wrapper, sibling (for), and singleton modes.\nAligns with Tippy.js props and Nile design system.\n\nEvents:\n\n * `nile-show` {`CustomEvent<{ instance: Instance<Props>; target: ReferenceElement<Props>; }>`} - \n\n * `nile-toggle` {`CustomEvent<{ open: boolean; instance: Instance<Props>; target: ReferenceElement<Props>; }>`} - \n\n * `nile-hide` {`CustomEvent<{ instance: Instance<Props>; target: ReferenceElement<Props>; }>`} - \n\nAttributes:\n\n * `for` {`string | null`} - ID of the target element (for sibling mode)\n\n * `content` {`string`} - Tooltip content text or HTML\n\n * `size` {`\"small\" | \"large\"`} - Tooltip size (applies CSS class)\n\n * `duration` {`string | number | [number, number]`} - Animation duration for show/hide (ms). Can be a single value or [show, hide].\n\n * `interactive` {`boolean`} - Interactive mode\n\n * `placement` {`\"left\" | \"right\" | \"top\" | \"top-start\" | \"top-end\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left-start\" | \"left-end\" | \"auto\" | \"auto-start\" | \"auto-end\"`} - Placement of the tooltip\n\n * `disabled` {`boolean`} - \n\n * `distance` {`number`} - \n\n * `skidding` {`number`} - \n\n * `open` {`boolean`} - \n\n * `trigger` {`string`} - \n\n * `allowHTML` {`boolean`} - \n\n * `followCursor` {`boolean | \"false\" | \"true\" | \"initial\" | \"horizontal\" | \"vertical\"`} - \n\n * `arrow` {`\"small\" | \"none\" | \"large\" | \"narrow\" | \"default\" | \"round\" | \"wide\"`} - \n\n * `singleton` {`boolean`} - \n\n * `delay` {`number | [number, number]`} - Not added in Doc\n\n * `maxWidth` {`string | number`} - \n\n * `zIndex` {`number`} - \n\n * `hideOnClick` {`boolean | \"toggle\"`} - \n\n * `inertia` {`boolean`} - \n\n * `interactiveBorder` {`number`} - \n\nProperties:\n\n * `for` {`string | null`} - ID of the target element (for sibling mode)\n\n * `content` {`string`} - Tooltip content text or HTML\n\n * `size` {`\"small\" | \"large\"`} - Tooltip size (applies CSS class)\n\n * `duration` {`string | number | [number, number]`} - Animation duration for show/hide (ms). Can be a single value or [show, hide].\n\n * `interactive` {`boolean`} - Interactive mode\n\n * `placement` {`\"left\" | \"right\" | \"top\" | \"top-start\" | \"top-end\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left-start\" | \"left-end\" | \"auto\" | \"auto-start\" | \"auto-end\"`} - Placement of the tooltip\n\n * `disabled` {`boolean`} - \n\n * `distance` {`number`} - \n\n * `skidding` {`number`} - \n\n * `open` {`boolean`} - \n\n * `trigger` {`string`} - \n\n * `allowHTML` {`boolean`} - \n\n * `followCursor` {`boolean | \"false\" | \"true\" | \"initial\" | \"horizontal\" | \"vertical\"`} - \n\n * `arrow` {`\"small\" | \"none\" | \"large\" | \"narrow\" | \"default\" | \"round\" | \"wide\"`} - \n\n * `singleton` {`boolean`} - \n\n * `delay` {`number | [number, number]`} - Not added in Doc\n\n * `maxWidth` {`string | number`} - \n\n * `zIndex` {`number`} - \n\n * `hideOnClick` {`boolean | \"toggle\"`} - \n\n * `inertia` {`boolean`} - \n\n * `interactiveBorder` {`number`} - \n\n * `tooltipInstances` {`Instance<Props>[] | undefined`} - \n\n * `singleInstance` {`Instance<Props> | undefined`} - \n\n * `singletonInstance` {`Instance<Props> | undefined`} - \n\n * `targetEl` {`HTMLElement | null | undefined`} - \n\n * `generatedId` {`string | undefined`} - \n\n * `prevDescribedby` {`string | null | undefined`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
|
2630
2606
|
"attributes": [
|
|
2631
2607
|
{
|
|
2632
2608
|
"name": "for",
|
|
@@ -2760,7 +2736,7 @@
|
|
|
2760
2736
|
},
|
|
2761
2737
|
{
|
|
2762
2738
|
"name": "arrow",
|
|
2763
|
-
"description": "`arrow` {`\"small\" | \"none\" | \"
|
|
2739
|
+
"description": "`arrow` {`\"small\" | \"none\" | \"large\" | \"narrow\" | \"default\" | \"round\" | \"wide\"`} - \n\nProperty: arrow\n\nDefault: default",
|
|
2764
2740
|
"values": [
|
|
2765
2741
|
{
|
|
2766
2742
|
"name": "small"
|
|
@@ -2768,15 +2744,15 @@
|
|
|
2768
2744
|
{
|
|
2769
2745
|
"name": "none"
|
|
2770
2746
|
},
|
|
2771
|
-
{
|
|
2772
|
-
"name": "default"
|
|
2773
|
-
},
|
|
2774
2747
|
{
|
|
2775
2748
|
"name": "large"
|
|
2776
2749
|
},
|
|
2777
2750
|
{
|
|
2778
2751
|
"name": "narrow"
|
|
2779
2752
|
},
|
|
2753
|
+
{
|
|
2754
|
+
"name": "default"
|
|
2755
|
+
},
|
|
2780
2756
|
{
|
|
2781
2757
|
"name": "round"
|
|
2782
2758
|
},
|
|
@@ -3490,7 +3466,7 @@
|
|
|
3490
3466
|
},
|
|
3491
3467
|
{
|
|
3492
3468
|
"name": "nile-rich-text-editor",
|
|
3493
|
-
"description": "Events:\n\n * `nile-change` {`CustomEvent<{ content: string; mention: any; }>`} - \n\nAttributes:\n\n * `value` {`string`} - \n\n * `noStyles` {`boolean`} - \n\n * `singlelineeditor` {`boolean`} - \n\n * `mentions` - \n\nProperties:\n\n * `value` {`string`} - \n\n * `noStyles` {`boolean`} - \n\n * `singleLineEditor` {`boolean`} - \n\n * `mentions` - \n\n * `content` {`string`} - \n\n * `editorEl` {`HTMLElement`} - \n\n * `previewEl` {`HTMLElement | null`} - \n\n * `toolbarEl` {`HTMLElement | null`} - \n\n * `lastRange` {`Range | null`} - \n\n * `buttonMap` {`Map<string, HTMLElement[]>`} - \n\n * `headingSelect` {`HTMLSelectElement | null`} - \n\n * `fontSelect` {`HTMLSelectElement | null`} - \n\n * `colorInput` {`HTMLInputElement | null`} - \n\n * `bgColorInput` {`HTMLInputElement | null`} - \n\n * `colorSwatchEl` {`HTMLElement | null`} - \n\n * `bgSwatchEl` {`HTMLElement | null`} - \n\n * `containerEl` {`HTMLElement | null`} - \n\n * `mentionsEl` {`HTMLElement | null`} - \n\n * `onEditorKeydown` - \n\n * `onSelectionChange` - ",
|
|
3469
|
+
"description": "Events:\n\n * `nile-change` {`CustomEvent<{ content: string; mention: any; }>`} - \n\nAttributes:\n\n * `value` {`string`} - \n\n * `noStyles` {`boolean`} - \n\n * `singlelineeditor` {`boolean`} - \n\n * `placeholder` {`string`} - \n\n * `mentions` - \n\nProperties:\n\n * `value` {`string`} - \n\n * `noStyles` {`boolean`} - \n\n * `singleLineEditor` {`boolean`} - \n\n * `placeholder` {`string`} - \n\n * `mentions` - \n\n * `content` {`string`} - \n\n * `editorEl` {`HTMLElement`} - \n\n * `previewEl` {`HTMLElement | null`} - \n\n * `toolbarEl` {`HTMLElement | null`} - \n\n * `lastRange` {`Range | null`} - \n\n * `buttonMap` {`Map<string, HTMLElement[]>`} - \n\n * `headingSelect` {`HTMLSelectElement | null`} - \n\n * `fontSelect` {`HTMLSelectElement | null`} - \n\n * `colorInput` {`HTMLInputElement | null`} - \n\n * `bgColorInput` {`HTMLInputElement | null`} - \n\n * `colorSwatchEl` {`HTMLElement | null`} - \n\n * `bgSwatchEl` {`HTMLElement | null`} - \n\n * `containerEl` {`HTMLElement | null`} - \n\n * `mentionsEl` {`HTMLElement | null`} - \n\n * `onEditorKeydown` - \n\n * `onSelectionChange` - ",
|
|
3494
3470
|
"attributes": [
|
|
3495
3471
|
{
|
|
3496
3472
|
"name": "value",
|
|
@@ -3506,6 +3482,10 @@
|
|
|
3506
3482
|
"description": "`singlelineeditor` {`boolean`} - \n\nProperty: singleLineEditor\n\nDefault: false",
|
|
3507
3483
|
"valueSet": "v"
|
|
3508
3484
|
},
|
|
3485
|
+
{
|
|
3486
|
+
"name": "placeholder",
|
|
3487
|
+
"description": "`placeholder` {`string`} - \n\nProperty: placeholder\n\nDefault: "
|
|
3488
|
+
},
|
|
3509
3489
|
{
|
|
3510
3490
|
"name": "mentions",
|
|
3511
3491
|
"description": "`mentions` - \n\nProperty: mentions\n\nDefault: [object Object]"
|