fleetcor-lwc 3.13.4 → 3.14.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/README.md CHANGED
@@ -529,22 +529,23 @@ Add / update `lwc.config.json` file in your project
529
529
 
530
530
  #### Input Text variables
531
531
 
532
- | @api variables | type | values | required | description |
533
- | ------------------ | ------ | ------------ | -------- | ----------- |
534
- | name | string | | + | |
535
- | label | string | | - | |
536
- | value | string | | - | |
537
- | error-message | string | | - | |
538
- | required | bool | | - | |
539
- | disabled | bool | | - | |
540
- | placeholde-visible | bool | | - | |
541
- | prefix | html | | - | |
542
- | reg-exp | string | | - | |
543
- | placeholder | string | | - | |
544
- | max-length | int | | - | |
545
- | min-value | int | | - | |
546
- | max-value | int | | - | |
547
- | type | string | `text`,`tel` | - | |
532
+ | @api variables | type | values | required | description |
533
+ | ------------------ | ------ | -------------------------------------------------------- | -------- | ----------- |
534
+ | name | string | | + | |
535
+ | label | string | | - | |
536
+ | value | string | | - | |
537
+ | error-message | string | | - | |
538
+ | required | bool | | - | |
539
+ | disabled | bool | | - | |
540
+ | placeholde-visible | bool | | - | |
541
+ | prefix | html | | - | |
542
+ | reg-exp | string | | - | |
543
+ | placeholder | string | | - | |
544
+ | max-length | int | | - | |
545
+ | min-value | int | | - | |
546
+ | max-value | int | | - | |
547
+ | type | string | `text`,`tel` | - | |
548
+ | inputmode | string | `text`,`tel`,`decimal`, `email`, `none`, `url`, `search` | - | |
548
549
 
549
550
  #### Input Text methods
550
551
 
@@ -604,6 +605,7 @@ This component fully extends from `Input Text`
604
605
  | @api variables | type | values | required | description |
605
606
  | ---------------------- | ------ | ------ | -------- | --------------------------------------------------------------------------------------------- |
606
607
  | name | string | | + | |
608
+ | input-label | string | | - | |
607
609
  | error-message | string | | - | |
608
610
  | value | string | | - | |
609
611
  | required | bool | | - | |
@@ -946,6 +948,18 @@ You can override them as you wish by global css variables as priority.
946
948
  <details>
947
949
  <summary>Click to expand/collapse</summary>
948
950
 
951
+ v.3.14.0
952
+
953
+ - Added to `flt-input-text`, `flt-input-email`, `flt-input-phone` api attribute `inputmode`
954
+
955
+ ---
956
+
957
+ v.3.13.5
958
+
959
+ - Update `flt-input-phone` component
960
+
961
+ ---
962
+
949
963
  v.3.13.4
950
964
 
951
965
  - Bug fix `flt-input-text` component
@@ -1,15 +1,13 @@
1
- $FLT_ICON_COLOR: var(--flt-icon-color, #111827);
2
-
3
1
  .flt-icon {
4
2
  width: 24px;
5
3
  height: 24px;
6
4
  display: inline-flex;
7
5
 
8
6
  &__prop-stroke {
9
- stroke: $FLT_ICON_COLOR;
7
+ stroke: var(--flt-icon-color, #111827);
10
8
  }
11
9
 
12
10
  &__prop-fill {
13
- fill: $FLT_ICON_COLOR;
11
+ fill: var(--flt-icon-color, #111827);
14
12
  }
15
13
  }
@@ -5,4 +5,5 @@ export default class InputEmail extends InputText {
5
5
  required = true
6
6
  regExp = '^\\w+([.-]\\w+)*@\\w+([.-]\\w+)*(\\.\\w{2,7})+$'
7
7
  @api type = 'email'
8
+ @api inputmode = 'email'
8
9
  }
@@ -16,9 +16,11 @@
16
16
  <flt-input-text
17
17
  class="flt-input-phone__number"
18
18
  prefix={prefix}
19
+ inputmode="tel"
19
20
  disabled={disabled}
20
21
  onfocus={handleFocus}
21
22
  onblur={handleBlur}
23
+ label={inputLabel}
22
24
  placeholder={placeholder}
23
25
  name="phoneNumber"></flt-input-text>
24
26
  </div>
@@ -10,6 +10,7 @@ const CODE_VALUE_SB = '+44'
10
10
 
11
11
  export default class InputPhone extends UserDataValidator {
12
12
  @api errorMessage
13
+ @api inputLabel
13
14
  @api placeholder
14
15
  @api disabled
15
16
  @api required
@@ -11,6 +11,7 @@
11
11
  class="flt-input-text__input"
12
12
  maxlength={maxLength}
13
13
  type={type}
14
+ inputmode={inputmode}
14
15
  disabled={disabled}
15
16
  value={displayValue}
16
17
  oninput={handleInput}
@@ -7,6 +7,7 @@ export default class InputText extends InputElement {
7
7
  touched
8
8
  @api prefix
9
9
  @api type = 'text'
10
+ @api inputmode = 'text'
10
11
  @api placeholderVisible
11
12
  @api errorMessage
12
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetcor-lwc",
3
- "version": "3.13.4",
3
+ "version": "3.14.0",
4
4
  "description": "LWC framework by Fleetcor",
5
5
  "repository": {
6
6
  "type": "git",