Skip to content

Commit bb265d1

Browse files
committed
deploy: a5132f4
1 parent b21acea commit bb265d1

File tree

7 files changed

+145
-152
lines changed

7 files changed

+145
-152
lines changed

assets/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

components/select/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,12 +1908,8 @@ <h2 id="properties" class="anchor-heading">
19081908
<strong>For this reason, values must not contain spaces.</strong>
19091909
</td>
19101910
<td style="text-align: center"></td>
1911-
<td>
1912-
<code>string | string[]</code>
1913-
</td>
1914-
<td>
1915-
<code>''</code>
1916-
</td>
1911+
<td>-</td>
1912+
<td>-</td>
19171913
</tr>
19181914

19191915
<tr>

dist/custom-elements.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14537,6 +14537,15 @@
1453714537
},
1453814538
"default": "[]"
1453914539
},
14540+
{
14541+
"kind": "field",
14542+
"name": "valueHasChanged",
14543+
"type": {
14544+
"text": "boolean"
14545+
},
14546+
"privacy": "private",
14547+
"default": "false"
14548+
},
1454014549
{
1454114550
"kind": "field",
1454214551
"name": "name",
@@ -14549,13 +14558,17 @@
1454914558
},
1455014559
{
1455114560
"kind": "field",
14552-
"name": "value",
14561+
"name": "_value",
1455314562
"type": {
1455414563
"text": "string | string[]"
1455514564
},
14556-
"default": "''",
14557-
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
14558-
"attribute": "value"
14565+
"privacy": "private",
14566+
"default": "''"
14567+
},
14568+
{
14569+
"kind": "field",
14570+
"name": "value",
14571+
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**"
1455914572
},
1456014573
{
1456114574
"kind": "field",
@@ -15100,15 +15113,6 @@
1510015113
"description": "The name of the select, submitted as a name/value pair with form data.",
1510115114
"fieldName": "name"
1510215115
},
15103-
{
15104-
"name": "value",
15105-
"type": {
15106-
"text": "string | string[]"
15107-
},
15108-
"default": "''",
15109-
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
15110-
"fieldName": "value"
15111-
},
1511215116
{
1511315117
"name": "size",
1511415118
"type": {

dist/vscode.html-custom-data.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,11 +1774,6 @@
17741774
"description": "The name of the select, submitted as a name/value pair with form data.",
17751775
"values": []
17761776
},
1777-
{
1778-
"name": "value",
1779-
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
1780-
"values": [{ "name": "string[]" }]
1781-
},
17821777
{
17831778
"name": "size",
17841779
"description": "The select's size.",

dist/web-types.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3861,11 +3861,6 @@
38613861
"description": "The name of the select, submitted as a name/value pair with form data.",
38623862
"value": { "type": "string", "default": "''" }
38633863
},
3864-
{
3865-
"name": "value",
3866-
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
3867-
"value": { "type": "string | string[]", "default": "''" }
3868-
},
38693864
{
38703865
"name": "size",
38713866
"description": "The select's size.",
@@ -4054,8 +4049,7 @@
40544049
},
40554050
{
40564051
"name": "value",
4057-
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
4058-
"type": "string | string[]"
4052+
"description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**"
40594053
},
40604054
{
40614055
"name": "defaultValue",

dist/zn.d.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,14 +2438,6 @@ declare module "internal/animate" {
24382438
offset?: number | null;
24392439
}[];
24402440
}
2441-
declare module "events/zn-remove" {
2442-
export type ZnRemoveEvent = CustomEvent<Record<PropertyKey, never>>;
2443-
global {
2444-
interface GlobalEventHandlersEventMap {
2445-
'zn-remove': ZnRemoveEvent;
2446-
}
2447-
}
2448-
}
24492441
declare module "utilities/animation-registry" {
24502442
export interface ElementAnimation {
24512443
keyframes: Keyframe[];
@@ -2472,6 +2464,14 @@ declare module "utilities/animation-registry" {
24722464
/** Gets an element's animation. Falls back to the default if no animation is found. */
24732465
export function getAnimation(el: Element, animationName: string, options: GetAnimationOptions): ElementAnimation;
24742466
}
2467+
declare module "events/zn-remove" {
2468+
export type ZnRemoveEvent = CustomEvent<Record<PropertyKey, never>>;
2469+
global {
2470+
interface GlobalEventHandlersEventMap {
2471+
'zn-remove': ZnRemoveEvent;
2472+
}
2473+
}
2474+
}
24752475
declare module "components/option/option.component" {
24762476
import { type CSSResultGroup } from 'lit';
24772477
import ZincElement from "internal/zinc-element";
@@ -2536,13 +2536,14 @@ declare module "components/option/index" {
25362536
}
25372537
}
25382538
declare module "components/select/select.component" {
2539-
import { type CSSResultGroup, TemplateResult } from 'lit';
2540-
import ZincElement, { ZincFormControl } from "internal/zinc-element";
2539+
import { type CSSResultGroup, type TemplateResult } from 'lit';
25412540
import { FormControlController } from "internal/form";
2541+
import type { ZincFormControl } from "internal/zinc-element";
2542+
import ZincElement from "internal/zinc-element";
25422543
import ZnChip from "components/chip/index";
25432544
import ZnIcon from "components/icon/index";
2544-
import ZnOption from "components/option/index";
25452545
import ZnPopup from "components/popup/index";
2546+
import type ZnOption from "components/option/index";
25462547
/**
25472548
* @summary Short summary of the component's intended use.
25482549
* @documentation https://zinc.style/components/select
@@ -2612,14 +2613,17 @@ declare module "components/select/select.component" {
26122613
displayLabel: string;
26132614
currentOption: ZnOption;
26142615
selectedOptions: ZnOption[];
2616+
private valueHasChanged;
26152617
/** The name of the select, submitted as a name/value pair with form data. */
26162618
name: string;
2619+
private _value;
2620+
get value(): string | string[];
26172621
/**
26182622
* The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the
26192623
* value attribute will be a space-delimited list of values based on the options selected, and the value property will
26202624
* be an array. **For this reason, values must not contain spaces.**
26212625
*/
2622-
value: string | string[];
2626+
set value(val: string | string[]);
26232627
/** The default value of the form control. Primarily used for resetting the form control. */
26242628
defaultValue: string | string[];
26252629
/** The select's size. */

dist/zn.min.js

Lines changed: 108 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)