@aurodesignsystem-dev/auro-formkit 0.0.0-pr750.1 → 0.0.0-pr754.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/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.html +10 -16
- package/components/checkbox/demo/api.min.js +11 -11
- package/components/checkbox/demo/index.html +10 -16
- package/components/checkbox/demo/index.min.js +11 -11
- package/components/checkbox/demo/readme.html +9 -16
- package/components/checkbox/dist/index.js +11 -11
- package/components/checkbox/dist/registered.js +11 -11
- package/components/combobox/demo/api.html +10 -16
- package/components/combobox/demo/api.md +6 -12
- package/components/combobox/demo/api.min.js +89 -48
- package/components/combobox/demo/index.html +10 -16
- package/components/combobox/demo/index.min.js +89 -48
- package/components/combobox/demo/readme.html +9 -16
- package/components/combobox/dist/index.js +88 -46
- package/components/combobox/dist/registered.js +88 -46
- package/components/counter/demo/api.html +10 -16
- package/components/counter/demo/api.md +7 -140
- package/components/counter/demo/api.min.js +386 -556
- package/components/counter/demo/index.html +10 -16
- package/components/counter/demo/index.md +0 -82
- package/components/counter/demo/index.min.js +386 -556
- package/components/counter/demo/readme.html +9 -16
- package/components/counter/dist/auro-counter-group.d.ts +14 -71
- package/components/counter/dist/auro-counter.d.ts +0 -10
- package/components/counter/dist/index.js +386 -556
- package/components/counter/dist/registered.js +386 -556
- package/components/datepicker/demo/api.html +10 -16
- package/components/datepicker/demo/api.min.js +94 -67
- package/components/datepicker/demo/index.html +10 -16
- package/components/datepicker/demo/index.min.js +94 -67
- package/components/datepicker/demo/readme.html +9 -16
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -6
- package/components/datepicker/dist/index.js +94 -67
- package/components/datepicker/dist/registered.js +94 -67
- package/components/dropdown/demo/api.html +10 -16
- package/components/dropdown/demo/api.md +268 -76
- package/components/dropdown/demo/api.min.js +67 -25
- package/components/dropdown/demo/index.html +10 -16
- package/components/dropdown/demo/index.md +363 -45
- package/components/dropdown/demo/index.min.js +67 -25
- package/components/dropdown/demo/readme.html +9 -16
- package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
- package/components/dropdown/dist/index.js +67 -25
- package/components/dropdown/dist/registered.js +67 -25
- package/components/form/demo/api.html +9 -16
- package/components/form/demo/autocomplete.html +3 -19
- package/components/form/demo/index.html +9 -16
- package/components/form/demo/readme.html +9 -16
- package/components/form/demo/working.html +13 -19
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.html +10 -16
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +14 -14
- package/components/input/demo/index.html +10 -16
- package/components/input/demo/index.min.js +14 -14
- package/components/input/demo/readme.html +9 -16
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +14 -14
- package/components/input/dist/registered.js +14 -14
- package/components/menu/demo/api.html +32 -16
- package/components/menu/demo/api.md +15 -14
- package/components/menu/demo/api.min.js +1 -2
- package/components/menu/demo/index.html +10 -16
- package/components/menu/demo/index.min.js +1 -2
- package/components/menu/demo/readme.html +9 -16
- package/components/menu/dist/auro-menu.d.ts +1 -2
- package/components/menu/dist/index.js +1 -2
- package/components/menu/dist/registered.js +1 -2
- package/components/radio/demo/api.html +10 -16
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.html +10 -16
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/demo/readme.html +9 -16
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -10
- package/components/radio/dist/registered.js +10 -10
- package/components/select/demo/api.html +10 -16
- package/components/select/demo/api.md +36 -41
- package/components/select/demo/api.min.js +103 -61
- package/components/select/demo/index.html +11 -16
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +103 -61
- package/components/select/demo/readme.html +9 -16
- package/components/select/dist/auro-select.d.ts +2 -9
- package/components/select/dist/index.js +102 -59
- package/components/select/dist/registered.js +102 -59
- package/package.json +3 -4
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
| Property | Attribute | Type | Default | Description |
|
|
9
9
|
|------------|------------|-----------|-------------|--------------------------------------------------|
|
|
10
10
|
| [disabled](#disabled) | `disabled` | `boolean` | false | Indicates if the counter is disabled. |
|
|
11
|
-
| [error](#error) | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
|
|
12
11
|
| [max](#max) | `max` | `number` | 9 | The maximum value for the counter. |
|
|
13
12
|
| [min](#min) | `min` | `number` | 0 | The minimum value for the counter. |
|
|
14
13
|
| [onDark](#onDark) | `onDark` | `boolean` | false | If declared, the counter will be rendered with onDark styles. |
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
| Property | Attribute | Type | Default | Description |
|
|
44
43
|
|---------------------------|---------------------------|--------------------------|----------------|--------------------------------------------------|
|
|
45
44
|
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
46
|
-
| [error](#error) | `error` | `string` | | The current error message to display when the component is invalid. |
|
|
47
45
|
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
48
46
|
| [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
|
|
49
47
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
55
53
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
56
54
|
| [onDark](#onDark) | `onDark` | `boolean` | false | If declared, counters and dropdown will be rendered with onDark styles. |
|
|
57
|
-
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end"
|
|
55
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
58
56
|
| [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
|
|
59
57
|
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
60
58
|
| [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
@@ -342,131 +340,6 @@ counter.addEventListener('input', (event) => {
|
|
|
342
340
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
343
341
|
</auro-accordion>
|
|
344
342
|
|
|
345
|
-
### Counter with Custom Error
|
|
346
|
-
|
|
347
|
-
A custom error can be set on the counter by adding the `error` attribute the desired message.
|
|
348
|
-
|
|
349
|
-
<div class="exampleWrapper">
|
|
350
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-error.html) -->
|
|
351
|
-
<!-- The below content is automatically added from ./../apiExamples/counter-error.html -->
|
|
352
|
-
<auro-counter error="There is an error with the counter">
|
|
353
|
-
Adults
|
|
354
|
-
</auro-counter>
|
|
355
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
356
|
-
</div>
|
|
357
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
358
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ondark-counter-error.html) -->
|
|
359
|
-
<!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
|
|
360
|
-
<auro-counter ondark error="There is an error with the counter">
|
|
361
|
-
Adults
|
|
362
|
-
</auro-counter>
|
|
363
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
364
|
-
</div>
|
|
365
|
-
<auro-accordion alignRight>
|
|
366
|
-
<span slot="trigger">See code</span>
|
|
367
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-error.html) -->
|
|
368
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/counter-error.html -->
|
|
369
|
-
|
|
370
|
-
```html
|
|
371
|
-
<auro-counter error="There is an error with the counter">
|
|
372
|
-
Adults
|
|
373
|
-
</auro-counter>
|
|
374
|
-
```
|
|
375
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
376
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ondark-counter-error.html) -->
|
|
377
|
-
<!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
|
|
378
|
-
<auro-counter ondark error="There is an error with the counter">
|
|
379
|
-
Adults
|
|
380
|
-
</auro-counter>
|
|
381
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
382
|
-
</auro-accordion>
|
|
383
|
-
|
|
384
|
-
### Counter Dropdown with Errored Counters
|
|
385
|
-
|
|
386
|
-
A counter dropdown with counters in an errored state will display the errors for each errored counter by default
|
|
387
|
-
|
|
388
|
-
<div class="exampleWrapper">
|
|
389
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-basic.html) -->
|
|
390
|
-
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-basic.html -->
|
|
391
|
-
<auro-counter-group isDropdown>
|
|
392
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
393
|
-
<div slot="label">Passengers</div>
|
|
394
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
395
|
-
Adults
|
|
396
|
-
<span slot="description">18 years or older</span>
|
|
397
|
-
</auro-counter>
|
|
398
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
399
|
-
Children
|
|
400
|
-
<span slot="description">2-17 years</span>
|
|
401
|
-
</auro-counter>
|
|
402
|
-
</auro-counter-group>
|
|
403
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
404
|
-
</div>
|
|
405
|
-
<auro-accordion alignRight>
|
|
406
|
-
<span slot="trigger">See code</span>
|
|
407
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-basic.html) -->
|
|
408
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-basic.html -->
|
|
409
|
-
|
|
410
|
-
```html
|
|
411
|
-
<auro-counter-group isDropdown>
|
|
412
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
413
|
-
<div slot="label">Passengers</div>
|
|
414
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
415
|
-
Adults
|
|
416
|
-
<span slot="description">18 years or older</span>
|
|
417
|
-
</auro-counter>
|
|
418
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
419
|
-
Children
|
|
420
|
-
<span slot="description">2-17 years</span>
|
|
421
|
-
</auro-counter>
|
|
422
|
-
</auro-counter-group>
|
|
423
|
-
```
|
|
424
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
425
|
-
</auro-accordion>
|
|
426
|
-
|
|
427
|
-
### Counter Dropdown with Custom Error
|
|
428
|
-
|
|
429
|
-
The error message for a dropdown counter with errored counters can also be overridden with the `error` attribute.
|
|
430
|
-
|
|
431
|
-
<div class="exampleWrapper">
|
|
432
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-custom.html) -->
|
|
433
|
-
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-custom.html -->
|
|
434
|
-
<auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
|
|
435
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
436
|
-
<div slot="label">Passengers</div>
|
|
437
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
438
|
-
Adults
|
|
439
|
-
<span slot="description">18 years or older</span>
|
|
440
|
-
</auro-counter>
|
|
441
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
442
|
-
Children
|
|
443
|
-
<span slot="description">2-17 years</span>
|
|
444
|
-
</auro-counter>
|
|
445
|
-
</auro-counter-group>
|
|
446
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
447
|
-
</div>
|
|
448
|
-
<auro-accordion alignRight>
|
|
449
|
-
<span slot="trigger">See code</span>
|
|
450
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-custom.html) -->
|
|
451
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-custom.html -->
|
|
452
|
-
|
|
453
|
-
```html
|
|
454
|
-
<auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
|
|
455
|
-
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
456
|
-
<div slot="label">Passengers</div>
|
|
457
|
-
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
458
|
-
Adults
|
|
459
|
-
<span slot="description">18 years or older</span>
|
|
460
|
-
</auro-counter>
|
|
461
|
-
<auro-counter error="Cannot have more than 2 child passengers">
|
|
462
|
-
Children
|
|
463
|
-
<span slot="description">2-17 years</span>
|
|
464
|
-
</auro-counter>
|
|
465
|
-
</auro-counter-group>
|
|
466
|
-
```
|
|
467
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
468
|
-
</auro-accordion>
|
|
469
|
-
|
|
470
343
|
### Group Max/Min
|
|
471
344
|
|
|
472
345
|
The group counter max or min property sets the value for all counters in the group. If a counter has a max value set, the group max attribute will override it. All increment buttons as a result will be disabled to prevent the group of counters from exceeding the group max.
|
|
@@ -555,8 +428,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
555
428
|
<div style="width: 350px">
|
|
556
429
|
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
557
430
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
558
|
-
<
|
|
559
|
-
<span slot="helpText">bottom-end bib with 20px offset</span>
|
|
431
|
+
<div slot="label">bottom-end bib with 20px offset</div>
|
|
560
432
|
<auro-counter>
|
|
561
433
|
Adults
|
|
562
434
|
<span slot="description">18 years or older</span>
|
|
@@ -568,8 +440,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
568
440
|
</auro-counter-group>
|
|
569
441
|
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
570
442
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
571
|
-
<
|
|
572
|
-
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
443
|
+
<div slot="label">bottom-end bib with 20px offset and noFlip</div>
|
|
573
444
|
<auro-counter>
|
|
574
445
|
Adults
|
|
575
446
|
<span slot="description">18 years or older</span>
|
|
@@ -581,8 +452,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
581
452
|
</auro-counter-group>
|
|
582
453
|
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
583
454
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
584
|
-
<
|
|
585
|
-
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
455
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
586
456
|
<auro-counter>
|
|
587
457
|
Adults
|
|
588
458
|
<span slot="description">18 years or older</span>
|
|
@@ -604,8 +474,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
604
474
|
<div style="width: 350px">
|
|
605
475
|
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
606
476
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
607
|
-
<
|
|
608
|
-
<span slot="helpText">bottom-end bib with 20px offset</span>
|
|
477
|
+
<div slot="label">bottom-end bib with 20px offset</div>
|
|
609
478
|
<auro-counter>
|
|
610
479
|
Adults
|
|
611
480
|
<span slot="description">18 years or older</span>
|
|
@@ -617,8 +486,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
617
486
|
</auro-counter-group>
|
|
618
487
|
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
619
488
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
620
|
-
<
|
|
621
|
-
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
489
|
+
<div slot="label">bottom-end bib with 20px offset and noFlip</div>
|
|
622
490
|
<auro-counter>
|
|
623
491
|
Adults
|
|
624
492
|
<span slot="description">18 years or older</span>
|
|
@@ -630,8 +498,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
630
498
|
</auro-counter-group>
|
|
631
499
|
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
632
500
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
633
|
-
<
|
|
634
|
-
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
501
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
635
502
|
<auro-counter>
|
|
636
503
|
Adults
|
|
637
504
|
<span slot="description">18 years or older</span>
|