@aurodesignsystem-dev/auro-formkit 0.0.0-pr1516.0 → 0.0.0-pr1519.0
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 +18 -10
- package/components/checkbox/demo/getting-started.min.js +18 -10
- package/components/checkbox/demo/index.min.js +18 -10
- package/components/checkbox/dist/index.js +18 -10
- package/components/checkbox/dist/registered.js +18 -10
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/customize.md +2 -10
- package/components/combobox/demo/customize.min.js +454 -467
- package/components/combobox/demo/getting-started.min.js +454 -463
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +454 -463
- package/components/combobox/demo/keyboard-behavior.md +2 -142
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/demo/why-combobox.md +2 -2
- package/components/combobox/dist/auro-combobox.d.ts +30 -14
- package/components/combobox/dist/index.js +454 -463
- package/components/combobox/dist/registered.js +454 -463
- package/components/counter/demo/customize.min.js +32 -12
- package/components/counter/demo/index.min.js +32 -12
- package/components/counter/dist/index.js +32 -12
- package/components/counter/dist/registered.js +32 -12
- package/components/datepicker/demo/customize.min.js +183 -167
- package/components/datepicker/demo/index.min.js +183 -167
- package/components/datepicker/dist/index.js +183 -167
- package/components/datepicker/dist/registered.js +183 -167
- package/components/dropdown/demo/customize.min.js +14 -2
- package/components/dropdown/demo/getting-started.min.js +14 -2
- package/components/dropdown/demo/index.min.js +14 -2
- package/components/dropdown/dist/index.js +14 -2
- package/components/dropdown/dist/registered.js +14 -2
- package/components/form/demo/customize.min.js +851 -829
- package/components/form/demo/getting-started.min.js +851 -829
- package/components/form/demo/index.min.js +851 -829
- package/components/form/demo/registerDemoDeps.min.js +851 -829
- package/components/input/demo/api.md +58 -57
- package/components/input/demo/customize.min.js +114 -155
- package/components/input/demo/getting-started.min.js +114 -155
- package/components/input/demo/index.min.js +114 -155
- package/components/input/dist/base-input.d.ts +9 -51
- package/components/input/dist/index.js +114 -155
- package/components/input/dist/registered.js +114 -155
- package/components/input/dist/utilities.d.ts +9 -0
- package/components/radio/demo/customize.min.js +18 -10
- package/components/radio/demo/getting-started.min.js +18 -10
- package/components/radio/demo/index.min.js +18 -10
- package/components/radio/dist/index.js +18 -10
- package/components/radio/dist/registered.js +18 -10
- package/components/select/demo/customize.min.js +32 -12
- package/components/select/demo/getting-started.min.js +32 -12
- package/components/select/demo/index.min.js +32 -12
- package/components/select/dist/index.js +32 -12
- package/components/select/dist/registered.js +32 -12
- package/custom-elements.json +142 -278
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -321,6 +321,33 @@
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "method",
|
|
326
|
+
"name": "_scheduleTimer",
|
|
327
|
+
"parameters": [
|
|
328
|
+
{
|
|
329
|
+
"name": "fn",
|
|
330
|
+
"description": "Callback to run.",
|
|
331
|
+
"type": {
|
|
332
|
+
"text": "Function"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "ms",
|
|
337
|
+
"description": "Delay in milliseconds.",
|
|
338
|
+
"type": {
|
|
339
|
+
"text": "number"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"description": "setTimeout wrapper that records the timer id so disconnectedCallback\ncan cancel any outstanding callbacks. The id is removed from the set\nonce the callback fires so the set doesn't grow unbounded.",
|
|
344
|
+
"return": {
|
|
345
|
+
"type": {
|
|
346
|
+
"text": "number"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"privacy": "private"
|
|
350
|
+
},
|
|
324
351
|
{
|
|
325
352
|
"kind": "field",
|
|
326
353
|
"name": "inputValue",
|
|
@@ -413,6 +440,26 @@
|
|
|
413
440
|
"description": "Update displayValue or input.value, it's called when making a selection.",
|
|
414
441
|
"privacy": "private"
|
|
415
442
|
},
|
|
443
|
+
{
|
|
444
|
+
"kind": "method",
|
|
445
|
+
"name": "syncInputValuesAcrossTriggerAndBib",
|
|
446
|
+
"parameters": [
|
|
447
|
+
{
|
|
448
|
+
"name": "nextValue",
|
|
449
|
+
"description": "The value to write to both inputs.",
|
|
450
|
+
"type": {
|
|
451
|
+
"text": "string"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"description": "Writes nextValue to the trigger input and the bib input when their current\nvalue differs, then re-asserts imask after Lit's update flushes.",
|
|
456
|
+
"return": {
|
|
457
|
+
"type": {
|
|
458
|
+
"text": "Promise<void>"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"privacy": "private"
|
|
462
|
+
},
|
|
416
463
|
{
|
|
417
464
|
"kind": "method",
|
|
418
465
|
"name": "handleMenuOptions",
|
|
@@ -580,6 +627,26 @@
|
|
|
580
627
|
}
|
|
581
628
|
}
|
|
582
629
|
},
|
|
630
|
+
{
|
|
631
|
+
"kind": "method",
|
|
632
|
+
"name": "handleTriggerInputValueChange",
|
|
633
|
+
"parameters": [
|
|
634
|
+
{
|
|
635
|
+
"name": "event",
|
|
636
|
+
"description": "The input event from the trigger input element.",
|
|
637
|
+
"type": {
|
|
638
|
+
"text": "Event"
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
],
|
|
642
|
+
"description": "Handles input value changes originating from the trigger input.\nRefreshes menu options and filtering, delegates to handleInputValueChange\nfor value synchronization, and manages fullscreen bib focus.",
|
|
643
|
+
"privacy": "private",
|
|
644
|
+
"return": {
|
|
645
|
+
"type": {
|
|
646
|
+
"text": "void"
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
583
650
|
{
|
|
584
651
|
"kind": "method",
|
|
585
652
|
"name": "configureCombobox",
|
|
@@ -1152,15 +1219,6 @@
|
|
|
1152
1219
|
},
|
|
1153
1220
|
"description": "Specifies the currently active option."
|
|
1154
1221
|
},
|
|
1155
|
-
{
|
|
1156
|
-
"kind": "field",
|
|
1157
|
-
"name": "triggerExpandedState",
|
|
1158
|
-
"privacy": "private",
|
|
1159
|
-
"type": {
|
|
1160
|
-
"text": "boolean"
|
|
1161
|
-
},
|
|
1162
|
-
"description": "Deferred aria-expanded state for the trigger input.\nDelays the \"true\" transition so VoiceOver finishes its character echo\nbefore announcing \"expanded\"."
|
|
1163
|
-
},
|
|
1164
1222
|
{
|
|
1165
1223
|
"kind": "field",
|
|
1166
1224
|
"name": "componentHasFocus",
|
|
@@ -1611,7 +1669,7 @@
|
|
|
1611
1669
|
"type": {
|
|
1612
1670
|
"text": "object"
|
|
1613
1671
|
},
|
|
1614
|
-
"default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) {
|
|
1672
|
+
"default": "{ ArrowDown(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowDown normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'down'); } else { component.showBib(); } } }, ArrowUp(component, evt, ctx) { // If the clear button has focus, let the browser handle ArrowUp normally. if (isClearBtnFocused(ctx)) { return; } // option display and navigation are prevented if there are no available options if (component.availableOptions.length > 0) { evt.preventDefault(); // navigate if bib is open otherwise open it if (component.dropdown.isPopoverVisible) { navigateArrow(component, 'up'); } else { component.showBib(); } } }, End(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateLastEnabledAvailableOption(); } }, Enter(component, evt, ctx) { // Forms should not submit on Enter from a combobox, regardless of which // child element (input, clear button, menu) is focused. evt.stopPropagation(); if (isClearBtnFocused(ctx)) { // Let the browser dispatch Enter to the focused clear button so its // built-in activation fires and clears the selection. Do NOT call // preventDefault — that would block the activation. return; } if (ctx.isExpanded && component.menu.optionActive) { reconcileMenuIndex(component.menu); component.menu.makeSelection(); if (ctx.isModal) { component.setTriggerInputFocus(); } evt.preventDefault(); } else { evt.preventDefault(); component.showBib(); } }, Escape(component, evt, ctx) { if (!ctx.isExpanded) { return; } // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups evt.stopPropagation(); if (ctx.isModal) { component.setTriggerInputFocus(); } component.hideBib(); }, Home(component, evt, ctx) { if (ctx.isExpanded) { evt.preventDefault(); evt.stopPropagation(); component.activateFirstEnabledAvailableOption(); } }, Tab(component, evt, ctx) { if (ctx.isExpanded && !isClearBtnFocused(ctx)) { // When the clear button is focused, Tab events do not bubble out of // its shadow DOM, so this handler only fires when the clear button // is NOT focused. In that case, select the active option and close. reconcileMenuIndex(component.menu); component.menu.makeSelection(); component.hideBib(); // In fullscreen modal mode, closing the dialog does not // automatically restores focus to the input. In the tab case, // Explicitly move focus to the trigger's clear button so the // user can continues tabbing through the page normally. if (ctx.isModal && !evt.shiftKey) { component.setClearBtnFocus(); } } } }"
|
|
1615
1673
|
}
|
|
1616
1674
|
],
|
|
1617
1675
|
"exports": [
|
|
@@ -12112,61 +12170,6 @@
|
|
|
12112
12170
|
"module": "components/input/src/base-input.js"
|
|
12113
12171
|
}
|
|
12114
12172
|
},
|
|
12115
|
-
{
|
|
12116
|
-
"kind": "method",
|
|
12117
|
-
"name": "_computeDateObjectFallback",
|
|
12118
|
-
"parameters": [
|
|
12119
|
-
{
|
|
12120
|
-
"name": "dateStr",
|
|
12121
|
-
"description": "ISO date string from `value`/`min`/`max`.",
|
|
12122
|
-
"type": {
|
|
12123
|
-
"text": "string|undefined"
|
|
12124
|
-
}
|
|
12125
|
-
}
|
|
12126
|
-
],
|
|
12127
|
-
"description": "Parses a date string into a Date object when the corresponding `_*Object`\nfield hasn't been synced yet by `updated()`. Returns undefined when the\ninput type/format isn't a full date or the string is not a valid date.\n\nWhy this exists: a parent (datepicker) can call `inputN.validate()` from\ninside its own `updated()` before this input's `updated()` has run\n`syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`\nand range checks would otherwise silently no-op (flipping the result to\n`valid` or `patternMismatch`).",
|
|
12128
|
-
"privacy": "private",
|
|
12129
|
-
"return": {
|
|
12130
|
-
"type": {
|
|
12131
|
-
"text": "Date|undefined"
|
|
12132
|
-
}
|
|
12133
|
-
},
|
|
12134
|
-
"inheritedFrom": {
|
|
12135
|
-
"name": "BaseInput",
|
|
12136
|
-
"module": "components/input/src/base-input.js"
|
|
12137
|
-
}
|
|
12138
|
-
},
|
|
12139
|
-
{
|
|
12140
|
-
"kind": "method",
|
|
12141
|
-
"name": "setDateObjectProperty",
|
|
12142
|
-
"parameters": [
|
|
12143
|
-
{
|
|
12144
|
-
"name": "propertyName",
|
|
12145
|
-
"description": "Public object property name.",
|
|
12146
|
-
"type": {
|
|
12147
|
-
"text": "'valueObject'|'minObject'|'maxObject'"
|
|
12148
|
-
}
|
|
12149
|
-
},
|
|
12150
|
-
{
|
|
12151
|
-
"name": "propertyValue",
|
|
12152
|
-
"description": "Value to assign.",
|
|
12153
|
-
"type": {
|
|
12154
|
-
"text": "Date|undefined"
|
|
12155
|
-
}
|
|
12156
|
-
}
|
|
12157
|
-
],
|
|
12158
|
-
"description": "Internal setter for readonly date object properties.",
|
|
12159
|
-
"privacy": "private",
|
|
12160
|
-
"return": {
|
|
12161
|
-
"type": {
|
|
12162
|
-
"text": "void"
|
|
12163
|
-
}
|
|
12164
|
-
},
|
|
12165
|
-
"inheritedFrom": {
|
|
12166
|
-
"name": "BaseInput",
|
|
12167
|
-
"module": "components/input/src/base-input.js"
|
|
12168
|
-
}
|
|
12169
|
-
},
|
|
12170
12173
|
{
|
|
12171
12174
|
"kind": "method",
|
|
12172
12175
|
"name": "patchInputEvent",
|
|
@@ -12220,70 +12223,6 @@
|
|
|
12220
12223
|
"module": "components/input/src/base-input.js"
|
|
12221
12224
|
}
|
|
12222
12225
|
},
|
|
12223
|
-
{
|
|
12224
|
-
"kind": "method",
|
|
12225
|
-
"name": "syncDateValues",
|
|
12226
|
-
"parameters": [
|
|
12227
|
-
{
|
|
12228
|
-
"name": "changedProperties",
|
|
12229
|
-
"default": "undefined",
|
|
12230
|
-
"description": "Optional map of changed properties used to limit which values are synchronized.",
|
|
12231
|
-
"optional": true,
|
|
12232
|
-
"type": {
|
|
12233
|
-
"text": "Map<string, unknown>|undefined"
|
|
12234
|
-
}
|
|
12235
|
-
}
|
|
12236
|
-
],
|
|
12237
|
-
"description": "Synchronizes the ISO string values and Date object representations for date-related properties.\nThis keeps the model and display values aligned when either side changes.\n\nWhen a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding\nDate objects or vice versa, based on which properties have changed. It only runs when the current configuration\nrepresents a full year/month/day date format.",
|
|
12238
|
-
"return": {
|
|
12239
|
-
"type": {
|
|
12240
|
-
"text": "void"
|
|
12241
|
-
}
|
|
12242
|
-
},
|
|
12243
|
-
"privacy": "private",
|
|
12244
|
-
"inheritedFrom": {
|
|
12245
|
-
"name": "BaseInput",
|
|
12246
|
-
"module": "components/input/src/base-input.js"
|
|
12247
|
-
}
|
|
12248
|
-
},
|
|
12249
|
-
{
|
|
12250
|
-
"kind": "method",
|
|
12251
|
-
"name": "syncSingleDateValue",
|
|
12252
|
-
"parameters": [
|
|
12253
|
-
{
|
|
12254
|
-
"name": "changedProperties",
|
|
12255
|
-
"description": "Map of changed properties from Lit.",
|
|
12256
|
-
"type": {
|
|
12257
|
-
"text": "Map<string, unknown>|undefined"
|
|
12258
|
-
}
|
|
12259
|
-
},
|
|
12260
|
-
{
|
|
12261
|
-
"name": "objectProperty",
|
|
12262
|
-
"description": "Date object property name.",
|
|
12263
|
-
"type": {
|
|
12264
|
-
"text": "string"
|
|
12265
|
-
}
|
|
12266
|
-
},
|
|
12267
|
-
{
|
|
12268
|
-
"name": "valueProperty",
|
|
12269
|
-
"description": "ISO string property name.",
|
|
12270
|
-
"type": {
|
|
12271
|
-
"text": "string"
|
|
12272
|
-
}
|
|
12273
|
-
}
|
|
12274
|
-
],
|
|
12275
|
-
"description": "Synchronizes one date object/string property pair.",
|
|
12276
|
-
"privacy": "private",
|
|
12277
|
-
"return": {
|
|
12278
|
-
"type": {
|
|
12279
|
-
"text": "void"
|
|
12280
|
-
}
|
|
12281
|
-
},
|
|
12282
|
-
"inheritedFrom": {
|
|
12283
|
-
"name": "BaseInput",
|
|
12284
|
-
"module": "components/input/src/base-input.js"
|
|
12285
|
-
}
|
|
12286
|
-
},
|
|
12287
12226
|
{
|
|
12288
12227
|
"kind": "method",
|
|
12289
12228
|
"name": "configureAutoFormatting",
|
|
@@ -12796,15 +12735,6 @@
|
|
|
12796
12735
|
"module": "components/input/src/base-input.js"
|
|
12797
12736
|
}
|
|
12798
12737
|
},
|
|
12799
|
-
{
|
|
12800
|
-
"kind": "field",
|
|
12801
|
-
"name": "_maxObject",
|
|
12802
|
-
"default": "undefined",
|
|
12803
|
-
"inheritedFrom": {
|
|
12804
|
-
"name": "BaseInput",
|
|
12805
|
-
"module": "components/input/src/base-input.js"
|
|
12806
|
-
}
|
|
12807
|
-
},
|
|
12808
12738
|
{
|
|
12809
12739
|
"kind": "field",
|
|
12810
12740
|
"name": "maxLength",
|
|
@@ -12836,15 +12766,6 @@
|
|
|
12836
12766
|
"module": "components/input/src/base-input.js"
|
|
12837
12767
|
}
|
|
12838
12768
|
},
|
|
12839
|
-
{
|
|
12840
|
-
"kind": "field",
|
|
12841
|
-
"name": "_minObject",
|
|
12842
|
-
"default": "undefined",
|
|
12843
|
-
"inheritedFrom": {
|
|
12844
|
-
"name": "BaseInput",
|
|
12845
|
-
"module": "components/input/src/base-input.js"
|
|
12846
|
-
}
|
|
12847
|
-
},
|
|
12848
12769
|
{
|
|
12849
12770
|
"kind": "field",
|
|
12850
12771
|
"name": "minLength",
|
|
@@ -13058,15 +12979,6 @@
|
|
|
13058
12979
|
"module": "components/input/src/base-input.js"
|
|
13059
12980
|
}
|
|
13060
12981
|
},
|
|
13061
|
-
{
|
|
13062
|
-
"kind": "field",
|
|
13063
|
-
"name": "_valueObject",
|
|
13064
|
-
"default": "undefined",
|
|
13065
|
-
"inheritedFrom": {
|
|
13066
|
-
"name": "BaseInput",
|
|
13067
|
-
"module": "components/input/src/base-input.js"
|
|
13068
|
-
}
|
|
13069
|
-
},
|
|
13070
12982
|
{
|
|
13071
12983
|
"kind": "field",
|
|
13072
12984
|
"name": "a11yRole",
|
|
@@ -13418,6 +13330,20 @@
|
|
|
13418
13330
|
"module": "components/input/src/base-input.js"
|
|
13419
13331
|
}
|
|
13420
13332
|
},
|
|
13333
|
+
{
|
|
13334
|
+
"kind": "field",
|
|
13335
|
+
"name": "setCustomValidityPatternMismatch",
|
|
13336
|
+
"privacy": "public",
|
|
13337
|
+
"type": {
|
|
13338
|
+
"text": "string"
|
|
13339
|
+
},
|
|
13340
|
+
"description": "Custom help text message to display when validity = `patternMismatch`.",
|
|
13341
|
+
"attribute": "setCustomValidityPatternMismatch",
|
|
13342
|
+
"inheritedFrom": {
|
|
13343
|
+
"name": "BaseInput",
|
|
13344
|
+
"module": "components/input/src/base-input.js"
|
|
13345
|
+
}
|
|
13346
|
+
},
|
|
13421
13347
|
{
|
|
13422
13348
|
"kind": "field",
|
|
13423
13349
|
"name": "setCustomValidityRangeOverflow",
|
|
@@ -13523,7 +13449,7 @@
|
|
|
13523
13449
|
"name": "type",
|
|
13524
13450
|
"privacy": "public",
|
|
13525
13451
|
"type": {
|
|
13526
|
-
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'"
|
|
13452
|
+
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number' | 'date'"
|
|
13527
13453
|
},
|
|
13528
13454
|
"description": "Populates the `type` attribute on the input.",
|
|
13529
13455
|
"default": "'text'",
|
|
@@ -14070,6 +13996,18 @@
|
|
|
14070
13996
|
"module": "components/input/src/base-input.js"
|
|
14071
13997
|
}
|
|
14072
13998
|
},
|
|
13999
|
+
{
|
|
14000
|
+
"name": "setCustomValidityPatternMismatch",
|
|
14001
|
+
"type": {
|
|
14002
|
+
"text": "string"
|
|
14003
|
+
},
|
|
14004
|
+
"description": "Custom help text message to display when validity = `patternMismatch`.",
|
|
14005
|
+
"fieldName": "setCustomValidityPatternMismatch",
|
|
14006
|
+
"inheritedFrom": {
|
|
14007
|
+
"name": "BaseInput",
|
|
14008
|
+
"module": "components/input/src/base-input.js"
|
|
14009
|
+
}
|
|
14010
|
+
},
|
|
14073
14011
|
{
|
|
14074
14012
|
"name": "setCustomValidityRangeOverflow",
|
|
14075
14013
|
"type": {
|
|
@@ -14169,7 +14107,7 @@
|
|
|
14169
14107
|
{
|
|
14170
14108
|
"name": "type",
|
|
14171
14109
|
"type": {
|
|
14172
|
-
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'"
|
|
14110
|
+
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number' | 'date'"
|
|
14173
14111
|
},
|
|
14174
14112
|
"description": "Populates the `type` attribute on the input.",
|
|
14175
14113
|
"default": "'text'",
|
|
@@ -14352,53 +14290,6 @@
|
|
|
14352
14290
|
},
|
|
14353
14291
|
"readonly": true
|
|
14354
14292
|
},
|
|
14355
|
-
{
|
|
14356
|
-
"kind": "method",
|
|
14357
|
-
"name": "_computeDateObjectFallback",
|
|
14358
|
-
"parameters": [
|
|
14359
|
-
{
|
|
14360
|
-
"name": "dateStr",
|
|
14361
|
-
"description": "ISO date string from `value`/`min`/`max`.",
|
|
14362
|
-
"type": {
|
|
14363
|
-
"text": "string|undefined"
|
|
14364
|
-
}
|
|
14365
|
-
}
|
|
14366
|
-
],
|
|
14367
|
-
"description": "Parses a date string into a Date object when the corresponding `_*Object`\nfield hasn't been synced yet by `updated()`. Returns undefined when the\ninput type/format isn't a full date or the string is not a valid date.\n\nWhy this exists: a parent (datepicker) can call `inputN.validate()` from\ninside its own `updated()` before this input's `updated()` has run\n`syncDateValues()` — so `_valueObject`/`_maxObject` are still `undefined`\nand range checks would otherwise silently no-op (flipping the result to\n`valid` or `patternMismatch`).",
|
|
14368
|
-
"privacy": "private",
|
|
14369
|
-
"return": {
|
|
14370
|
-
"type": {
|
|
14371
|
-
"text": "Date|undefined"
|
|
14372
|
-
}
|
|
14373
|
-
}
|
|
14374
|
-
},
|
|
14375
|
-
{
|
|
14376
|
-
"kind": "method",
|
|
14377
|
-
"name": "setDateObjectProperty",
|
|
14378
|
-
"parameters": [
|
|
14379
|
-
{
|
|
14380
|
-
"name": "propertyName",
|
|
14381
|
-
"description": "Public object property name.",
|
|
14382
|
-
"type": {
|
|
14383
|
-
"text": "'valueObject'|'minObject'|'maxObject'"
|
|
14384
|
-
}
|
|
14385
|
-
},
|
|
14386
|
-
{
|
|
14387
|
-
"name": "propertyValue",
|
|
14388
|
-
"description": "Value to assign.",
|
|
14389
|
-
"type": {
|
|
14390
|
-
"text": "Date|undefined"
|
|
14391
|
-
}
|
|
14392
|
-
}
|
|
14393
|
-
],
|
|
14394
|
-
"description": "Internal setter for readonly date object properties.",
|
|
14395
|
-
"privacy": "private",
|
|
14396
|
-
"return": {
|
|
14397
|
-
"type": {
|
|
14398
|
-
"text": "void"
|
|
14399
|
-
}
|
|
14400
|
-
}
|
|
14401
|
-
},
|
|
14402
14293
|
{
|
|
14403
14294
|
"kind": "method",
|
|
14404
14295
|
"name": "patchInputEvent",
|
|
@@ -14440,62 +14331,6 @@
|
|
|
14440
14331
|
}
|
|
14441
14332
|
}
|
|
14442
14333
|
},
|
|
14443
|
-
{
|
|
14444
|
-
"kind": "method",
|
|
14445
|
-
"name": "syncDateValues",
|
|
14446
|
-
"parameters": [
|
|
14447
|
-
{
|
|
14448
|
-
"name": "changedProperties",
|
|
14449
|
-
"default": "undefined",
|
|
14450
|
-
"description": "Optional map of changed properties used to limit which values are synchronized.",
|
|
14451
|
-
"optional": true,
|
|
14452
|
-
"type": {
|
|
14453
|
-
"text": "Map<string, unknown>|undefined"
|
|
14454
|
-
}
|
|
14455
|
-
}
|
|
14456
|
-
],
|
|
14457
|
-
"description": "Synchronizes the ISO string values and Date object representations for date-related properties.\nThis keeps the model and display values aligned when either side changes.\n\nWhen a full date format is in use, this method updates `value`, `min`, and `max` from their corresponding\nDate objects or vice versa, based on which properties have changed. It only runs when the current configuration\nrepresents a full year/month/day date format.",
|
|
14458
|
-
"return": {
|
|
14459
|
-
"type": {
|
|
14460
|
-
"text": "void"
|
|
14461
|
-
}
|
|
14462
|
-
},
|
|
14463
|
-
"privacy": "private"
|
|
14464
|
-
},
|
|
14465
|
-
{
|
|
14466
|
-
"kind": "method",
|
|
14467
|
-
"name": "syncSingleDateValue",
|
|
14468
|
-
"parameters": [
|
|
14469
|
-
{
|
|
14470
|
-
"name": "changedProperties",
|
|
14471
|
-
"description": "Map of changed properties from Lit.",
|
|
14472
|
-
"type": {
|
|
14473
|
-
"text": "Map<string, unknown>|undefined"
|
|
14474
|
-
}
|
|
14475
|
-
},
|
|
14476
|
-
{
|
|
14477
|
-
"name": "objectProperty",
|
|
14478
|
-
"description": "Date object property name.",
|
|
14479
|
-
"type": {
|
|
14480
|
-
"text": "string"
|
|
14481
|
-
}
|
|
14482
|
-
},
|
|
14483
|
-
{
|
|
14484
|
-
"name": "valueProperty",
|
|
14485
|
-
"description": "ISO string property name.",
|
|
14486
|
-
"type": {
|
|
14487
|
-
"text": "string"
|
|
14488
|
-
}
|
|
14489
|
-
}
|
|
14490
|
-
],
|
|
14491
|
-
"description": "Synchronizes one date object/string property pair.",
|
|
14492
|
-
"privacy": "private",
|
|
14493
|
-
"return": {
|
|
14494
|
-
"type": {
|
|
14495
|
-
"text": "void"
|
|
14496
|
-
}
|
|
14497
|
-
}
|
|
14498
|
-
},
|
|
14499
14334
|
{
|
|
14500
14335
|
"kind": "method",
|
|
14501
14336
|
"name": "configureAutoFormatting",
|
|
@@ -14880,11 +14715,6 @@
|
|
|
14880
14715
|
"default": "undefined",
|
|
14881
14716
|
"attribute": "max"
|
|
14882
14717
|
},
|
|
14883
|
-
{
|
|
14884
|
-
"kind": "field",
|
|
14885
|
-
"name": "_maxObject",
|
|
14886
|
-
"default": "undefined"
|
|
14887
|
-
},
|
|
14888
14718
|
{
|
|
14889
14719
|
"kind": "field",
|
|
14890
14720
|
"name": "maxLength",
|
|
@@ -14908,11 +14738,6 @@
|
|
|
14908
14738
|
"default": "undefined",
|
|
14909
14739
|
"attribute": "min"
|
|
14910
14740
|
},
|
|
14911
|
-
{
|
|
14912
|
-
"kind": "field",
|
|
14913
|
-
"name": "_minObject",
|
|
14914
|
-
"default": "undefined"
|
|
14915
|
-
},
|
|
14916
14741
|
{
|
|
14917
14742
|
"kind": "field",
|
|
14918
14743
|
"name": "minLength",
|
|
@@ -15074,11 +14899,6 @@
|
|
|
15074
14899
|
"default": "undefined",
|
|
15075
14900
|
"attribute": "value"
|
|
15076
14901
|
},
|
|
15077
|
-
{
|
|
15078
|
-
"kind": "field",
|
|
15079
|
-
"name": "_valueObject",
|
|
15080
|
-
"default": "undefined"
|
|
15081
|
-
},
|
|
15082
14902
|
{
|
|
15083
14903
|
"kind": "field",
|
|
15084
14904
|
"name": "a11yRole",
|
|
@@ -15334,6 +15154,16 @@
|
|
|
15334
15154
|
"description": "Custom help text message to display when validity = `customError`.",
|
|
15335
15155
|
"attribute": "setCustomValidityCustomError"
|
|
15336
15156
|
},
|
|
15157
|
+
{
|
|
15158
|
+
"kind": "field",
|
|
15159
|
+
"name": "setCustomValidityPatternMismatch",
|
|
15160
|
+
"privacy": "public",
|
|
15161
|
+
"type": {
|
|
15162
|
+
"text": "string"
|
|
15163
|
+
},
|
|
15164
|
+
"description": "Custom help text message to display when validity = `patternMismatch`.",
|
|
15165
|
+
"attribute": "setCustomValidityPatternMismatch"
|
|
15166
|
+
},
|
|
15337
15167
|
{
|
|
15338
15168
|
"kind": "field",
|
|
15339
15169
|
"name": "setCustomValidityRangeOverflow",
|
|
@@ -15411,7 +15241,7 @@
|
|
|
15411
15241
|
"name": "type",
|
|
15412
15242
|
"privacy": "public",
|
|
15413
15243
|
"type": {
|
|
15414
|
-
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'"
|
|
15244
|
+
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number' | 'date'"
|
|
15415
15245
|
},
|
|
15416
15246
|
"description": "Populates the `type` attribute on the input.",
|
|
15417
15247
|
"default": "'text'",
|
|
@@ -15808,6 +15638,14 @@
|
|
|
15808
15638
|
"default": "undefined",
|
|
15809
15639
|
"fieldName": "setCustomValidityForType"
|
|
15810
15640
|
},
|
|
15641
|
+
{
|
|
15642
|
+
"name": "setCustomValidityPatternMismatch",
|
|
15643
|
+
"type": {
|
|
15644
|
+
"text": "string"
|
|
15645
|
+
},
|
|
15646
|
+
"description": "Custom help text message to display when validity = `patternMismatch`.",
|
|
15647
|
+
"fieldName": "setCustomValidityPatternMismatch"
|
|
15648
|
+
},
|
|
15811
15649
|
{
|
|
15812
15650
|
"name": "setCustomValidityRangeOverflow",
|
|
15813
15651
|
"type": {
|
|
@@ -15875,7 +15713,7 @@
|
|
|
15875
15713
|
{
|
|
15876
15714
|
"name": "type",
|
|
15877
15715
|
"type": {
|
|
15878
|
-
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'"
|
|
15716
|
+
"text": "'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number' | 'date'"
|
|
15879
15717
|
},
|
|
15880
15718
|
"description": "Populates the `type` attribute on the input.",
|
|
15881
15719
|
"default": "'text'",
|
|
@@ -16264,6 +16102,32 @@
|
|
|
16264
16102
|
}
|
|
16265
16103
|
}
|
|
16266
16104
|
},
|
|
16105
|
+
{
|
|
16106
|
+
"kind": "method",
|
|
16107
|
+
"name": "isValidPartialDate",
|
|
16108
|
+
"parameters": [
|
|
16109
|
+
{
|
|
16110
|
+
"name": "value",
|
|
16111
|
+
"description": "The user-facing display value.",
|
|
16112
|
+
"type": {
|
|
16113
|
+
"text": "string"
|
|
16114
|
+
}
|
|
16115
|
+
},
|
|
16116
|
+
{
|
|
16117
|
+
"name": "format",
|
|
16118
|
+
"description": "The partial date format string (e.g. \"mm/yyyy\", \"yyyy\", \"dd\").",
|
|
16119
|
+
"type": {
|
|
16120
|
+
"text": "string"
|
|
16121
|
+
}
|
|
16122
|
+
}
|
|
16123
|
+
],
|
|
16124
|
+
"description": "Validates a value against a partial date format (one that lacks yy/mm/dd all three).\nSingle-component formats are checked as integer ranges; multi-component formats use\na date-fns parse + round-trip to confirm both validity and exact formatting.",
|
|
16125
|
+
"return": {
|
|
16126
|
+
"type": {
|
|
16127
|
+
"text": "boolean"
|
|
16128
|
+
}
|
|
16129
|
+
}
|
|
16130
|
+
},
|
|
16267
16131
|
{
|
|
16268
16132
|
"kind": "method",
|
|
16269
16133
|
"name": "toModelValue",
|
package/package.json
CHANGED