@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.1

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.
Files changed (109) hide show
  1. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +2 -2
  3. package/components/bibtemplate/dist/registered.js +2 -2
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +14 -3
  6. package/components/checkbox/demo/index.min.js +14 -3
  7. package/components/checkbox/demo/readme.md +1 -1
  8. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  9. package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
  10. package/components/checkbox/dist/index.js +14 -3
  11. package/components/checkbox/dist/registered.js +14 -3
  12. package/components/combobox/README.md +1 -1
  13. package/components/combobox/demo/api.md +3 -0
  14. package/components/combobox/demo/api.min.js +1479 -395
  15. package/components/combobox/demo/index.html +2 -0
  16. package/components/combobox/demo/index.md +75 -0
  17. package/components/combobox/demo/index.min.js +1479 -395
  18. package/components/combobox/demo/readme.md +1 -1
  19. package/components/combobox/dist/auro-combobox.d.ts +19 -9
  20. package/components/combobox/dist/index.js +1471 -387
  21. package/components/combobox/dist/registered.js +1471 -387
  22. package/components/counter/README.md +1 -1
  23. package/components/counter/demo/api.min.js +433 -104
  24. package/components/counter/demo/index.min.js +433 -104
  25. package/components/counter/demo/readme.md +1 -1
  26. package/components/counter/dist/iconVersion.d.ts +1 -1
  27. package/components/counter/dist/index.js +433 -104
  28. package/components/counter/dist/registered.js +433 -104
  29. package/components/datepicker/README.md +1 -1
  30. package/components/datepicker/demo/api.min.js +1157 -376
  31. package/components/datepicker/demo/index.min.js +1157 -376
  32. package/components/datepicker/demo/readme.md +1 -1
  33. package/components/datepicker/dist/index.js +1156 -375
  34. package/components/datepicker/dist/registered.js +1156 -375
  35. package/components/dropdown/README.md +1 -1
  36. package/components/dropdown/demo/api.md +59 -35
  37. package/components/dropdown/demo/api.min.js +361 -88
  38. package/components/dropdown/demo/index.md +52 -0
  39. package/components/dropdown/demo/index.min.js +361 -88
  40. package/components/dropdown/demo/readme.md +1 -1
  41. package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
  42. package/components/dropdown/dist/index.js +331 -58
  43. package/components/dropdown/dist/registered.js +331 -58
  44. package/components/dropdown/dist/styles/default/style-css.d.ts +2 -0
  45. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  46. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  47. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  48. package/components/form/README.md +1 -1
  49. package/components/form/demo/readme.md +1 -1
  50. package/components/input/README.md +2 -2
  51. package/components/input/demo/api.md +76 -64
  52. package/components/input/demo/api.min.js +747 -295
  53. package/components/input/demo/index.html +1 -1
  54. package/components/input/demo/index.md +49 -4
  55. package/components/input/demo/index.min.js +747 -295
  56. package/components/input/demo/readme.md +2 -2
  57. package/components/input/dist/auro-input.d.ts +97 -3
  58. package/components/input/dist/base-input.d.ts +36 -18
  59. package/components/input/dist/index.js +681 -229
  60. package/components/input/dist/registered.js +681 -229
  61. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  62. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  63. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  64. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  65. package/components/input/dist/styles/default/input-css.d.ts +2 -0
  66. package/components/input/dist/styles/default/label-css.d.ts +2 -0
  67. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  68. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  69. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  70. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  71. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  72. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  73. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  74. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  75. package/components/layoutElement/dist/index.d.ts +1 -0
  76. package/components/layoutElement/dist/index.js +1 -0
  77. package/components/layoutElement/dist/registered.js +1 -0
  78. package/components/menu/README.md +1 -1
  79. package/components/menu/demo/api.min.js +2 -2
  80. package/components/menu/demo/index.min.js +2 -2
  81. package/components/menu/demo/readme.md +1 -1
  82. package/components/menu/dist/iconVersion.d.ts +1 -1
  83. package/components/menu/dist/index.js +2 -2
  84. package/components/menu/dist/registered.js +2 -2
  85. package/components/radio/README.md +1 -1
  86. package/components/radio/demo/api.md +8 -0
  87. package/components/radio/demo/api.min.js +13 -5
  88. package/components/radio/demo/index.min.js +13 -5
  89. package/components/radio/demo/readme.md +1 -1
  90. package/components/radio/dist/auro-radio.d.ts +4 -0
  91. package/components/radio/dist/index.js +13 -5
  92. package/components/radio/dist/registered.js +13 -5
  93. package/components/select/README.md +1 -1
  94. package/components/select/demo/api.html +15 -0
  95. package/components/select/demo/api.md +178 -0
  96. package/components/select/demo/api.min.js +403 -62
  97. package/components/select/demo/index.html +15 -0
  98. package/components/select/demo/index.md +177 -0
  99. package/components/select/demo/index.min.js +403 -62
  100. package/components/select/demo/readme.md +1 -1
  101. package/components/select/dist/auro-select.d.ts +27 -0
  102. package/components/select/dist/index.js +400 -58
  103. package/components/select/dist/registered.js +400 -58
  104. package/package.json +2 -2
  105. /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
  106. /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
  107. /package/components/{input/dist/styles/borders-css.d.ts → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
  108. /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
  109. /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
@@ -82,7 +82,7 @@ This configuration enables proper module resolution for the component's TypeScri
82
82
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
83
83
 
84
84
  ```html
85
- <auro-input bordered></auro-input>
85
+ <auro-input bordered shape="rounded" size="lg"></auro-input>
86
86
  ```
87
87
  <!-- AURO-GENERATED-CONTENT:END -->
88
88
 
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
99
99
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
100
100
 
101
101
  ```html
102
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-input/+esm"></script>
102
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"></script>
103
103
  ```
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
@@ -1,4 +1,5 @@
1
1
  export class AuroInput extends BaseInput {
2
+ static get styles(): import("lit").CSSResult[];
2
3
  /**
3
4
  * This will register this element with the browser.
4
5
  * @param {string} [name="auro-input"] - The name of element that you want to register to.
@@ -11,21 +12,114 @@ export class AuroInput extends BaseInput {
11
12
  /**
12
13
  * @private
13
14
  */
14
- private iconTag;
15
+ private buttonTag;
15
16
  /**
16
17
  * @private
17
18
  */
18
- private buttonTag;
19
+ private hasDisplayValueContent;
19
20
  /**
20
21
  * @private
21
22
  */
22
23
  private helpTextTag;
24
+ /**
25
+ * @private
26
+ */
27
+ private iconTag;
28
+ /**
29
+ * Returns classmap configuration for html5 input labels in all layouts.
30
+ * @private
31
+ * @returns {void}
32
+ */
33
+ private get commonLabelClasses();
34
+ /**
35
+ * Returns classmap configuration for html5 inputs in all layouts.
36
+ * @private
37
+ * @returns {void}
38
+ */
39
+ private get commonInputClasses();
40
+ get commonWrapperClasses(): {
41
+ wrapper: boolean;
42
+ withValue: boolean;
43
+ hasFocus: boolean;
44
+ };
45
+ get helpTextClasses(): {
46
+ helpTextWrapper: boolean;
47
+ leftIndent: boolean;
48
+ rightIndent: boolean;
49
+ };
23
50
  /**
24
51
  * Function to determine if the input is meant to render an icon visualizing the input type.
25
52
  * @private
26
53
  * @returns {boolean} - Returns true if the input type is meant to render an icon.
27
54
  */
28
55
  private hasTypeIcon;
29
- render(): import("lit-html").TemplateResult;
56
+ /**
57
+ * Function to determine if there is any displayValue content to render.
58
+ * @private
59
+ * @returns {void}
60
+ */
61
+ private checkDisplayValueSlotChange;
62
+ /**
63
+ * Returns HTML for the validation error icon.
64
+ * @private
65
+ * @returns {html} - Returns HTML for the validation error icon.
66
+ */
67
+ private renderValidationErrorIconHtml;
68
+ /**
69
+ * Returns HTML for the HTML5 input element.
70
+ * @private
71
+ * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
72
+ * @returns {html} - Returns HTML for the HTML5 input element.
73
+ */
74
+ private renderHtmlInput;
75
+ /**
76
+ * Returns HTML for the clear action button.
77
+ * @private
78
+ * @returns {html} - Returns HTML for the clear action button.
79
+ */
80
+ private renderHtmlActionClear;
81
+ /**
82
+ * Returns HTML for the show password button.
83
+ * @private
84
+ * @returns {html} - Returns HTML for the show password button.
85
+ */
86
+ private renderHtmlNotificationPassword;
87
+ /**
88
+ * Returns HTML for the input type icon.
89
+ * @private
90
+ * @returns {html} - Returns HTML for the input type icon.
91
+ */
92
+ private renderHtmlTypeIcon;
93
+ /**
94
+ * Returns HTML for the help text and error message.
95
+ * @private
96
+ * @returns {html} - Returns HTML for the help text and error message.
97
+ */
98
+ private renderHtmlHelpText;
99
+ /**
100
+ * Returns HTML for the default layout.
101
+ * @private
102
+ * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
103
+ */
104
+ private renderLayoutClassic;
105
+ /**
106
+ * Returns HTML for the emphasized layout. Does not support type="*".
107
+ * @private
108
+ * @returns {html} - Returns HTML for the emphasized layout.
109
+ */
110
+ private renderLayoutEmphasized;
111
+ /**
112
+ * Returns HTML for the emphasized layout. Does not support type="*".
113
+ * @private
114
+ * @returns {html} - Returns HTML for the emphasized layout.
115
+ */
116
+ private renderLayoutSnowflake;
117
+ /**
118
+ * Logic to determine the layout of the component.
119
+ * @private
120
+ * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
121
+ * @returns {void}
122
+ */
123
+ private renderLayout;
30
124
  }
31
125
  import BaseInput from './base-input.js';
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * Auro-input provides users a way to enter data into a text field.
3
3
  *
4
- * @attr {Boolean} bordered - Applies bordered UI variant.
5
- * @attr {Boolean} borderless - Applies borderless UI variant.
6
- *
7
4
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
8
5
  * @attr id
9
6
  *
@@ -18,7 +15,7 @@
18
15
  * @event input - Event fires when the value of an `auro-input` has been changed.
19
16
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
20
17
  */
21
- export default class BaseInput extends LitElement {
18
+ export default class BaseInput extends AuroElement {
22
19
  static get properties(): {
23
20
  /**
24
21
  * The value for the role attribute.
@@ -301,19 +298,25 @@ export default class BaseInput extends LitElement {
301
298
  reflect: boolean;
302
299
  attribute: boolean;
303
300
  };
301
+ layout: {
302
+ type: StringConstructor;
303
+ attribute: string;
304
+ reflect: boolean;
305
+ };
304
306
  };
305
- static get styles(): import("lit").CSSResult[];
307
+ activeLabel: boolean;
306
308
  icon: boolean;
307
309
  disabled: boolean;
308
- required: boolean;
309
- noValidate: boolean;
310
310
  max: any;
311
- min: any;
312
311
  maxLength: any;
312
+ min: any;
313
313
  minLength: any;
314
+ noValidate: boolean;
314
315
  onDark: boolean;
315
- activeLabel: boolean;
316
+ required: boolean;
316
317
  setCustomValidityForType: string;
318
+ shape: string;
319
+ size: string;
317
320
  /**
318
321
  * Internal Defaults.
319
322
  * @private
@@ -328,6 +331,7 @@ export default class BaseInput extends LitElement {
328
331
  validationCCLength: number;
329
332
  hasValue: boolean;
330
333
  label: string;
334
+ placeholderStr: any;
331
335
  allowedInputTypes: string[];
332
336
  /**
333
337
  * Credit Card is not included as this caused cursor placement issues.
@@ -352,9 +356,10 @@ export default class BaseInput extends LitElement {
352
356
  };
353
357
  uniqueId: string;
354
358
  firstUpdated(): void;
355
- inputId: string;
359
+ wrapperElement: Element;
356
360
  inputElement: HTMLInputElement;
357
361
  labelElement: HTMLLabelElement;
362
+ inputId: string;
358
363
  format: any;
359
364
  ValidityMessageOverride: any;
360
365
  /**
@@ -389,12 +394,6 @@ export default class BaseInput extends LitElement {
389
394
  * @returns {string}
390
395
  */
391
396
  private definePattern;
392
- /**
393
- * Function to set element focus.
394
- * @private
395
- * @return {void}
396
- */
397
- private focus;
398
397
  /**
399
398
  * Required to convert SVG icons from data to HTML string.
400
399
  * @private
@@ -408,6 +407,18 @@ export default class BaseInput extends LitElement {
408
407
  * @returns {void}
409
408
  */
410
409
  private notifyValueChanged;
410
+ /**
411
+ * Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
412
+ * @private
413
+ * @return {void}
414
+ */
415
+ private handleClick;
416
+ /**
417
+ * Function to set element focus.
418
+ * @private
419
+ * @return {void}
420
+ */
421
+ private focus;
411
422
  /**
412
423
  * Handles event of clearing input content by clicking the X icon.
413
424
  * @private
@@ -425,6 +436,13 @@ export default class BaseInput extends LitElement {
425
436
  * @return {void}
426
437
  */
427
438
  private handleFocusin;
439
+ hasFocus: boolean;
440
+ /**
441
+ * Function to support @focusout event.
442
+ * @private
443
+ * @return {void}
444
+ */
445
+ private handleFocusout;
428
446
  /**
429
447
  * Function to support @blur event.
430
448
  * @private
@@ -478,7 +496,7 @@ export default class BaseInput extends LitElement {
478
496
  /**
479
497
  * Support placeholder text.
480
498
  * @private
481
- * @returns {string}
499
+ * @returns {void}
482
500
  */
483
501
  private getPlaceholder;
484
502
  /**
@@ -507,6 +525,6 @@ export default class BaseInput extends LitElement {
507
525
  */
508
526
  private matchInputValueToCreditCard;
509
527
  }
510
- import { LitElement } from "lit";
528
+ import { AuroElement } from '../../layoutElement/src/auroElement.js';
511
529
  import { AuroInputUtilities } from "./utilities.js";
512
530
  import AuroFormValidation from '@auro-formkit/form-validation';