@aurodesignsystem-dev/auro-formkit 0.0.0-pr1582.0 → 0.0.0-pr1582.2
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/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.md +40 -0
- package/components/combobox/demo/customize.min.js +400 -62
- package/components/combobox/demo/getting-started.min.js +400 -62
- package/components/combobox/demo/index.html +1 -1
- package/components/combobox/demo/index.min.js +400 -62
- package/components/combobox/dist/index.js +78 -35
- package/components/combobox/dist/registered.js +78 -35
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/customize.min.js +22 -9
- package/components/datepicker/demo/index.min.js +22 -9
- package/components/datepicker/dist/index.js +22 -9
- package/components/datepicker/dist/registered.js +22 -9
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +21 -8
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +448 -84
- package/components/form/demo/getting-started.min.js +448 -84
- package/components/form/demo/index.min.js +448 -84
- package/components/form/demo/registerDemoDeps.min.js +448 -84
- package/components/input/demo/customize.min.js +20 -7
- package/components/input/demo/getting-started.min.js +20 -7
- package/components/input/demo/index.min.js +20 -7
- package/components/input/dist/auro-input.d.ts +8 -0
- package/components/input/dist/index.js +20 -7
- package/components/input/dist/registered.js +20 -7
- package/components/menu/demo/customize.md +50 -0
- package/components/menu/demo/index.min.js +322 -27
- package/components/menu/dist/auro-menu-utils.d.ts +30 -0
- package/components/menu/dist/auro-menu.d.ts +23 -0
- package/components/menu/dist/index.js +322 -27
- package/components/menu/dist/registered.js +322 -27
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.md +72 -0
- package/components/select/demo/customize.min.js +324 -29
- package/components/select/demo/getting-started.min.js +324 -29
- package/components/select/demo/index.min.js +324 -29
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +115 -0
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -11831,6 +11831,18 @@
|
|
|
11831
11831
|
"privacy": "private",
|
|
11832
11832
|
"readonly": true
|
|
11833
11833
|
},
|
|
11834
|
+
{
|
|
11835
|
+
"kind": "field",
|
|
11836
|
+
"name": "isClassicLayout",
|
|
11837
|
+
"description": "Whether the component is rendering the classic/default layout, meaning not\nemphasized and not snowflake. Kept as a single source of truth so\nlayout-scoped behavior such as activeLabel stays consistent across getters.",
|
|
11838
|
+
"return": {
|
|
11839
|
+
"type": {
|
|
11840
|
+
"text": "boolean"
|
|
11841
|
+
}
|
|
11842
|
+
},
|
|
11843
|
+
"privacy": "private",
|
|
11844
|
+
"readonly": true
|
|
11845
|
+
},
|
|
11834
11846
|
{
|
|
11835
11847
|
"kind": "field",
|
|
11836
11848
|
"name": "noFocusOrValue",
|
|
@@ -16620,6 +16632,74 @@
|
|
|
16620
16632
|
}
|
|
16621
16633
|
}
|
|
16622
16634
|
},
|
|
16635
|
+
{
|
|
16636
|
+
"kind": "function",
|
|
16637
|
+
"name": "resolveSelectedOption",
|
|
16638
|
+
"parameters": [
|
|
16639
|
+
{
|
|
16640
|
+
"name": "items",
|
|
16641
|
+
"description": "The menu's flat option list.",
|
|
16642
|
+
"type": {
|
|
16643
|
+
"text": "Array<HTMLElement>"
|
|
16644
|
+
}
|
|
16645
|
+
},
|
|
16646
|
+
{
|
|
16647
|
+
"name": "value",
|
|
16648
|
+
"description": "The value to resolve.",
|
|
16649
|
+
"type": {
|
|
16650
|
+
"text": "string"
|
|
16651
|
+
}
|
|
16652
|
+
},
|
|
16653
|
+
{
|
|
16654
|
+
"name": "selectedKey",
|
|
16655
|
+
"description": "The `_optionKey` of the user-selected option, if any.",
|
|
16656
|
+
"type": {
|
|
16657
|
+
"text": "string|undefined"
|
|
16658
|
+
}
|
|
16659
|
+
}
|
|
16660
|
+
],
|
|
16661
|
+
"description": "Resolves the single selected option for a given `value`, preferring the\noption tracked by `selectedKey` (a user-initiated selection) over a\nfirst-by-value match. When multiple options share the same `value`, matching\nby `value` alone cannot distinguish which one the user picked; the key\ndisambiguates it.\n\nThe key is trusted only when it still resolves to an option whose `value`\nmatches the requested `value`. If the key is stale (option removed) or the\nvalue was changed programmatically, resolution falls back to value matching —\npreserving backward-compatible behavior for preselection and `selectByValue`.",
|
|
16662
|
+
"privacy": "private",
|
|
16663
|
+
"return": {
|
|
16664
|
+
"type": {
|
|
16665
|
+
"text": "HTMLElement|undefined"
|
|
16666
|
+
}
|
|
16667
|
+
}
|
|
16668
|
+
},
|
|
16669
|
+
{
|
|
16670
|
+
"kind": "function",
|
|
16671
|
+
"name": "resolveSelectedOptions",
|
|
16672
|
+
"parameters": [
|
|
16673
|
+
{
|
|
16674
|
+
"name": "items",
|
|
16675
|
+
"description": "The menu's flat option list.",
|
|
16676
|
+
"type": {
|
|
16677
|
+
"text": "Array<HTMLElement>"
|
|
16678
|
+
}
|
|
16679
|
+
},
|
|
16680
|
+
{
|
|
16681
|
+
"name": "valueArray",
|
|
16682
|
+
"description": "The selected values.",
|
|
16683
|
+
"type": {
|
|
16684
|
+
"text": "Array<string>"
|
|
16685
|
+
}
|
|
16686
|
+
},
|
|
16687
|
+
{
|
|
16688
|
+
"name": "selectedKeys",
|
|
16689
|
+
"description": "The `_optionKey`s of the user-selected options, if any.",
|
|
16690
|
+
"type": {
|
|
16691
|
+
"text": "Array<string>|undefined"
|
|
16692
|
+
}
|
|
16693
|
+
}
|
|
16694
|
+
],
|
|
16695
|
+
"description": "Resolves the selected options for a multi-select `value` array, preferring\noptions tracked by `selectedKeys` (user-initiated selections) and falling\nback to value matching for any values not resolved by key. The result is\nalways sorted into DOM order regardless of selection sequence.",
|
|
16696
|
+
"privacy": "private",
|
|
16697
|
+
"return": {
|
|
16698
|
+
"type": {
|
|
16699
|
+
"text": "Array<HTMLElement>"
|
|
16700
|
+
}
|
|
16701
|
+
}
|
|
16702
|
+
},
|
|
16623
16703
|
{
|
|
16624
16704
|
"kind": "function",
|
|
16625
16705
|
"name": "dispatchMenuEvent",
|
|
@@ -16692,6 +16772,22 @@
|
|
|
16692
16772
|
"module": "components/menu/src/auro-menu-utils.js"
|
|
16693
16773
|
}
|
|
16694
16774
|
},
|
|
16775
|
+
{
|
|
16776
|
+
"kind": "js",
|
|
16777
|
+
"name": "resolveSelectedOption",
|
|
16778
|
+
"declaration": {
|
|
16779
|
+
"name": "resolveSelectedOption",
|
|
16780
|
+
"module": "components/menu/src/auro-menu-utils.js"
|
|
16781
|
+
}
|
|
16782
|
+
},
|
|
16783
|
+
{
|
|
16784
|
+
"kind": "js",
|
|
16785
|
+
"name": "resolveSelectedOptions",
|
|
16786
|
+
"declaration": {
|
|
16787
|
+
"name": "resolveSelectedOptions",
|
|
16788
|
+
"module": "components/menu/src/auro-menu-utils.js"
|
|
16789
|
+
}
|
|
16790
|
+
},
|
|
16695
16791
|
{
|
|
16696
16792
|
"kind": "js",
|
|
16697
16793
|
"name": "dispatchMenuEvent",
|
|
@@ -16871,6 +16967,12 @@
|
|
|
16871
16967
|
"description": "Initializes menu items and their attributes.",
|
|
16872
16968
|
"privacy": "private"
|
|
16873
16969
|
},
|
|
16970
|
+
{
|
|
16971
|
+
"kind": "method",
|
|
16972
|
+
"name": "_assignOptionKeys",
|
|
16973
|
+
"description": "Assigns a private, auto-generated unique key (`_optionKey`) to each menu\noption that does not already have one. Keys are internal state on the\nelement instance — never reflected as an attribute or exposed publicly —\nand let selection tracking distinguish options that share the same `value`.\n\nThe `_optionKey === undefined` guard makes this idempotent: options keep the\nkey they were first assigned across re-renders and slot changes, and if a\nnested menu's lifecycle runs a pass before the root, options simply wait for\nthe root to key them (or keep whatever key they already hold).",
|
|
16974
|
+
"privacy": "private"
|
|
16975
|
+
},
|
|
16874
16976
|
{
|
|
16875
16977
|
"kind": "method",
|
|
16876
16978
|
"name": "handleSelectState",
|
|
@@ -16907,6 +17009,12 @@
|
|
|
16907
17009
|
"description": "Resets all options to their default state.",
|
|
16908
17010
|
"privacy": "private"
|
|
16909
17011
|
},
|
|
17012
|
+
{
|
|
17013
|
+
"kind": "method",
|
|
17014
|
+
"name": "_sortSelectedByDomOrder",
|
|
17015
|
+
"description": "Re-sorts the multi-select selection into DOM order and rebuilds the derived\n`_selectedKey` and `value` from `optionSelected`. Selection is always stored\nand serialized in the order options appear in the menu, never in click\norder — so selecting C then A yields `[A, C]`.",
|
|
17016
|
+
"privacy": "private"
|
|
17017
|
+
},
|
|
16910
17018
|
{
|
|
16911
17019
|
"kind": "method",
|
|
16912
17020
|
"name": "reset",
|
|
@@ -17250,6 +17358,13 @@
|
|
|
17250
17358
|
"attribute": "multiselect",
|
|
17251
17359
|
"reflects": true
|
|
17252
17360
|
},
|
|
17361
|
+
{
|
|
17362
|
+
"kind": "field",
|
|
17363
|
+
"type": {
|
|
17364
|
+
"text": "number"
|
|
17365
|
+
},
|
|
17366
|
+
"default": "1"
|
|
17367
|
+
},
|
|
17253
17368
|
{
|
|
17254
17369
|
"kind": "field",
|
|
17255
17370
|
"name": "disabled",
|
package/package.json
CHANGED