@aquera/nile-elements 0.1.59-beta-1.1 → 0.1.59
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 +2 -6
- package/demo/index.html +33 -150
- package/dist/index.js +4 -5
- package/dist/internal/form.cjs.js +1 -1
- package/dist/internal/form.cjs.js.map +1 -1
- package/dist/internal/form.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +1 -1
- package/dist/nile-option/nile-option.esm.js +2 -2
- package/dist/nile-virtual-select/renderer.cjs.js +1 -1
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -1
- package/dist/nile-virtual-select/renderer.esm.js +0 -1
- package/dist/src/internal/form.js +2 -2
- package/dist/src/internal/form.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +1 -1
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-option/nile-option.d.ts +0 -3
- package/dist/src/nile-option/nile-option.js +0 -14
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-virtual-select/renderer.js +0 -1
- package/dist/src/nile-virtual-select/renderer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/internal/form.ts +2 -2
- package/src/nile-option/nile-option.css.ts +1 -1
- package/src/nile-option/nile-option.ts +0 -12
- package/src/nile-virtual-select/renderer.ts +0 -1
- package/vscode-html-custom-data.json +1 -6
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "nile-elements",
|
6
|
-
"version": "0.1.59
|
6
|
+
"version": "0.1.59",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
package/src/internal/form.ts
CHANGED
@@ -89,7 +89,7 @@ export class FormControlController implements ReactiveController {
|
|
89
89
|
}
|
90
90
|
|
91
91
|
hostConnected() {
|
92
|
-
const form = this.options
|
92
|
+
const form = this.options.form(this.host);
|
93
93
|
|
94
94
|
if (form) {
|
95
95
|
this.attachForm(form);
|
@@ -97,7 +97,7 @@ export class FormControlController implements ReactiveController {
|
|
97
97
|
|
98
98
|
// Listen for interactions
|
99
99
|
interactions.set(this.host, []);
|
100
|
-
this.options
|
100
|
+
this.options.assumeInteractionOn.forEach(event => {
|
101
101
|
this.host.addEventListener(event, this.handleInteraction);
|
102
102
|
});
|
103
103
|
}
|
@@ -65,9 +65,6 @@ export class NileOption extends NileElement {
|
|
65
65
|
/** Draws the option in a disabled state, preventing selection. */
|
66
66
|
@property({ type: Boolean, reflect: true }) disabled = false;
|
67
67
|
|
68
|
-
/** Forces the option to display in multiple select mode with checkboxes. */
|
69
|
-
@property({ type: Boolean, reflect: true }) multiple = false;
|
70
|
-
|
71
68
|
/** Indicates whether the option is selected. */
|
72
69
|
@property({ type: Boolean, reflect: true }) selected = false;
|
73
70
|
|
@@ -89,10 +86,6 @@ export class NileOption extends NileElement {
|
|
89
86
|
this.isMultipleSelect = Boolean(multipleValue);
|
90
87
|
}
|
91
88
|
}
|
92
|
-
|
93
|
-
if (this.multiple) {
|
94
|
-
this.isMultipleSelect = true;
|
95
|
-
}
|
96
89
|
}
|
97
90
|
|
98
91
|
protected updated(_changedProperties: PropertyValues): void {
|
@@ -135,11 +128,6 @@ export class NileOption extends NileElement {
|
|
135
128
|
this.setAttribute('aria-selected', this.selected ? 'true' : 'false');
|
136
129
|
}
|
137
130
|
|
138
|
-
@watch('multiple')
|
139
|
-
handleMultipleChange() {
|
140
|
-
this.isMultipleSelect = this.multiple;
|
141
|
-
}
|
142
|
-
|
143
131
|
@watch('value')
|
144
132
|
handleValueChange() {
|
145
133
|
// Ensure the value is a string. This ensures the next line doesn't error and allows framework users to pass numbers
|
@@ -2317,7 +2317,7 @@
|
|
2317
2317
|
},
|
2318
2318
|
{
|
2319
2319
|
"name": "nile-option",
|
2320
|
-
"description": "Slots:\n\n * ` ` {} - The option's label.\n\n * `prefix` {} - Used to prepend an icon or similar element to the menu item.\n\n * `suffix` {} - Used to append an icon or similar element to the menu item.\n\nAttributes:\n\n * `value` {`string`} - The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.\n\n * `showCheckbox` {`boolean`} - \n\n * `disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\n * `
|
2320
|
+
"description": "Slots:\n\n * ` ` {} - The option's label.\n\n * `prefix` {} - Used to prepend an icon or similar element to the menu item.\n\n * `suffix` {} - Used to append an icon or similar element to the menu item.\n\nAttributes:\n\n * `value` {`string`} - The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.\n\n * `showCheckbox` {`boolean`} - \n\n * `disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\n * `selected` {`boolean`} - Indicates whether the option is selected.\n\nProperties:\n\n * `styles` - \n\n * `cachedTextLabel` {`string`} - \n\n * `defaultSlot` {`HTMLSlotElement`} - \n\n * `current` {`boolean`} - \n\n * `hasHover` {`boolean`} - \n\n * `hidden` {`boolean`} - \n\n * `isMultipleSelect` {`boolean`} - \n\n * `value` {`string`} - The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.\n\n * `showCheckbox` {`boolean`} - \n\n * `disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\n * `selected` {`boolean`} - Indicates whether the option is selected.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
|
2321
2321
|
"attributes": [
|
2322
2322
|
{
|
2323
2323
|
"name": "value",
|
@@ -2333,11 +2333,6 @@
|
|
2333
2333
|
"description": "`disabled` {`boolean`} - Draws the option in a disabled state, preventing selection.\n\nProperty: disabled\n\nDefault: false",
|
2334
2334
|
"valueSet": "v"
|
2335
2335
|
},
|
2336
|
-
{
|
2337
|
-
"name": "multiple",
|
2338
|
-
"description": "`multiple` {`boolean`} - Forces the option to display in multiple select mode with checkboxes.\n\nProperty: multiple\n\nDefault: false",
|
2339
|
-
"valueSet": "v"
|
2340
|
-
},
|
2341
2336
|
{
|
2342
2337
|
"name": "selected",
|
2343
2338
|
"description": "`selected` {`boolean`} - Indicates whether the option is selected.\n\nProperty: selected\n\nDefault: false",
|