@softpak/components 0.0.0-beta.16 → 0.0.0-beta.160

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 (89) hide show
  1. package/esm2022/spx-alert/spx-alert.component.mjs +5 -2
  2. package/esm2022/spx-button/spx-button.component.mjs +12 -3
  3. package/esm2022/spx-change-details/public-api.mjs +2 -0
  4. package/esm2022/spx-change-details/softpak-components-spx-change-details.mjs +5 -0
  5. package/esm2022/spx-change-details/spx-change-details-value.interface.mjs +2 -0
  6. package/esm2022/spx-change-details/spx-change-details.component.mjs +126 -0
  7. package/esm2022/spx-channel-selection/src/spx-channel-selection.component.mjs +1 -1
  8. package/esm2022/spx-channel-selection/src/spx-company-selection.component.mjs +2 -2
  9. package/esm2022/spx-check-digit/spx-check-digit.component.mjs +12 -4
  10. package/esm2022/spx-form-section/spx-form-section.component.mjs +9 -9
  11. package/esm2022/spx-form-view/public-api.mjs +4 -0
  12. package/esm2022/spx-form-view/softpak-components-spx-form-view.mjs +5 -0
  13. package/esm2022/spx-form-view/spx-autocomplete-search.component.mjs +99 -0
  14. package/esm2022/spx-form-view/spx-form-field.interface.mjs +2 -0
  15. package/esm2022/spx-form-view/spx-form-section.interface.mjs +2 -0
  16. package/esm2022/spx-form-view/spx-form-view.component.mjs +196 -0
  17. package/esm2022/spx-inputs/spx-dropdown.component.mjs +94 -0
  18. package/esm2022/spx-inputs/spx-input-box.component.mjs +74 -47
  19. package/esm2022/spx-inputs/spx-input-date.component.mjs +1 -1
  20. package/esm2022/spx-inputs/spx-input-float.component.mjs +10 -5
  21. package/esm2022/spx-inputs/spx-input-number.component.mjs +10 -5
  22. package/esm2022/spx-inputs/spx-input-radio.component.mjs +93 -27
  23. package/esm2022/spx-inputs/spx-input-text.component.mjs +21 -32
  24. package/esm2022/spx-inputs/spx-input-type.enum.mjs +2 -1
  25. package/esm2022/spx-inputs/spx-input.component.mjs +48 -13
  26. package/esm2022/spx-navigation/spx-home-tile.component.mjs +29 -10
  27. package/esm2022/spx-navigation/spx-navigation-item.interface.mjs +1 -1
  28. package/esm2022/spx-navigation/spx-navigation.component.mjs +11 -5
  29. package/esm2022/spx-number-check/public-api.mjs +2 -0
  30. package/esm2022/spx-number-check/softpak-components-spx-number-check.mjs +5 -0
  31. package/esm2022/spx-number-check/spx-number-check.component.mjs +259 -0
  32. package/esm2022/spx-spinner/spx-spinner.component.mjs +5 -5
  33. package/esm2022/spx-suggestion/spx-suggestion.component.mjs +28 -10
  34. package/esm2022/spx-update/src/spx-update-info.component.mjs +1 -1
  35. package/fesm2022/softpak-components-spx-alert.mjs +4 -1
  36. package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
  37. package/fesm2022/softpak-components-spx-button.mjs +11 -2
  38. package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
  39. package/fesm2022/softpak-components-spx-change-details.mjs +133 -0
  40. package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -0
  41. package/fesm2022/softpak-components-spx-channel-selection.mjs +2 -2
  42. package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
  43. package/fesm2022/softpak-components-spx-check-digit.mjs +11 -3
  44. package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
  45. package/fesm2022/softpak-components-spx-form-section.mjs +8 -8
  46. package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
  47. package/fesm2022/softpak-components-spx-form-view.mjs +295 -0
  48. package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -0
  49. package/fesm2022/softpak-components-spx-inputs.mjs +335 -119
  50. package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
  51. package/fesm2022/softpak-components-spx-navigation.mjs +37 -12
  52. package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
  53. package/fesm2022/softpak-components-spx-number-check.mjs +266 -0
  54. package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -0
  55. package/fesm2022/softpak-components-spx-spinner.mjs +4 -4
  56. package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
  57. package/fesm2022/softpak-components-spx-suggestion.mjs +27 -9
  58. package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
  59. package/fesm2022/softpak-components-spx-update.mjs +1 -1
  60. package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
  61. package/package.json +34 -16
  62. package/spx-button/spx-button.component.d.ts +3 -1
  63. package/spx-change-details/index.d.ts +5 -0
  64. package/spx-change-details/public-api.d.ts +1 -0
  65. package/spx-change-details/spx-change-details-value.interface.d.ts +7 -0
  66. package/spx-change-details/spx-change-details.component.d.ts +42 -0
  67. package/spx-check-digit/spx-check-digit.component.d.ts +3 -1
  68. package/spx-form-view/index.d.ts +5 -0
  69. package/spx-form-view/public-api.d.ts +3 -0
  70. package/spx-form-view/spx-autocomplete-search.component.d.ts +36 -0
  71. package/spx-form-view/spx-form-field.interface.d.ts +16 -0
  72. package/spx-form-view/spx-form-section.interface.d.ts +9 -0
  73. package/spx-form-view/spx-form-view.component.d.ts +32 -0
  74. package/spx-inputs/spx-dropdown.component.d.ts +18 -0
  75. package/spx-inputs/spx-input-box.component.d.ts +14 -7
  76. package/spx-inputs/spx-input-float.component.d.ts +3 -2
  77. package/spx-inputs/spx-input-number.component.d.ts +3 -2
  78. package/spx-inputs/spx-input-radio.component.d.ts +13 -5
  79. package/spx-inputs/spx-input-text.component.d.ts +3 -2
  80. package/spx-inputs/spx-input-type.enum.d.ts +2 -1
  81. package/spx-inputs/spx-input.component.d.ts +11 -3
  82. package/spx-navigation/spx-home-tile.component.d.ts +5 -1
  83. package/spx-navigation/spx-navigation-item.interface.d.ts +1 -0
  84. package/spx-navigation/spx-navigation.component.d.ts +4 -1
  85. package/spx-number-check/index.d.ts +5 -0
  86. package/spx-number-check/public-api.d.ts +1 -0
  87. package/spx-number-check/spx-number-check.component.d.ts +48 -0
  88. package/spx-suggestion/spx-suggestion.component.d.ts +3 -1
  89. package/tailwind.css +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "0.0.0-beta.16",
3
+ "version": "0.0.0-beta.160",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.x.x",
@@ -35,17 +35,23 @@
35
35
  "esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
36
36
  "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
37
37
  },
38
+ "./spx-capitalize": {
39
+ "types": "./spx-capitalize/index.d.ts",
40
+ "esm2022": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
41
+ "esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
42
+ "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
43
+ },
38
44
  "./spx-button": {
39
45
  "types": "./spx-button/index.d.ts",
40
46
  "esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
41
47
  "esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
42
48
  "default": "./fesm2022/softpak-components-spx-button.mjs"
43
49
  },
44
- "./spx-capitalize": {
45
- "types": "./spx-capitalize/index.d.ts",
46
- "esm2022": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
47
- "esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
48
- "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
50
+ "./spx-change-details": {
51
+ "types": "./spx-change-details/index.d.ts",
52
+ "esm2022": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
53
+ "esm": "./esm2022/spx-change-details/softpak-components-spx-change-details.mjs",
54
+ "default": "./fesm2022/softpak-components-spx-change-details.mjs"
49
55
  },
50
56
  "./spx-channel-selection": {
51
57
  "types": "./spx-channel-selection/index.d.ts",
@@ -53,17 +59,23 @@
53
59
  "esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
54
60
  "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
55
61
  },
62
+ "./spx-check-digit": {
63
+ "types": "./spx-check-digit/index.d.ts",
64
+ "esm2022": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
65
+ "esm": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
66
+ "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
67
+ },
56
68
  "./spx-form-section": {
57
69
  "types": "./spx-form-section/index.d.ts",
58
70
  "esm2022": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
59
71
  "esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
60
72
  "default": "./fesm2022/softpak-components-spx-form-section.mjs"
61
73
  },
62
- "./spx-check-digit": {
63
- "types": "./spx-check-digit/index.d.ts",
64
- "esm2022": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
65
- "esm": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
66
- "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
74
+ "./spx-form-view": {
75
+ "types": "./spx-form-view/index.d.ts",
76
+ "esm2022": "./esm2022/spx-form-view/softpak-components-spx-form-view.mjs",
77
+ "esm": "./esm2022/spx-form-view/softpak-components-spx-form-view.mjs",
78
+ "default": "./fesm2022/softpak-components-spx-form-view.mjs"
67
79
  },
68
80
  "./spx-helpers": {
69
81
  "types": "./spx-helpers/index.d.ts",
@@ -71,17 +83,23 @@
71
83
  "esm": "./esm2022/spx-helpers/softpak-components-spx-helpers.mjs",
72
84
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
73
85
  },
86
+ "./spx-inputs": {
87
+ "types": "./spx-inputs/index.d.ts",
88
+ "esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
89
+ "esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
90
+ "default": "./fesm2022/softpak-components-spx-inputs.mjs"
91
+ },
74
92
  "./spx-navigation": {
75
93
  "types": "./spx-navigation/index.d.ts",
76
94
  "esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
77
95
  "esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
78
96
  "default": "./fesm2022/softpak-components-spx-navigation.mjs"
79
97
  },
80
- "./spx-inputs": {
81
- "types": "./spx-inputs/index.d.ts",
82
- "esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
83
- "esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
84
- "default": "./fesm2022/softpak-components-spx-inputs.mjs"
98
+ "./spx-number-check": {
99
+ "types": "./spx-number-check/index.d.ts",
100
+ "esm2022": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
101
+ "esm": "./esm2022/spx-number-check/softpak-components-spx-number-check.mjs",
102
+ "default": "./fesm2022/softpak-components-spx-number-check.mjs"
85
103
  },
86
104
  "./spx-patch": {
87
105
  "types": "./spx-patch/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxButtonComponent {
@@ -16,12 +16,14 @@ export declare class SpxButtonComponent {
16
16
  spxTabIndex?: number;
17
17
  spxType: 'button' | 'submit';
18
18
  spxClick: EventEmitter<void>;
19
+ buttonRef?: ElementRef<HTMLInputElement>;
19
20
  get severityError(): boolean;
20
21
  get severityInfo(): boolean;
21
22
  get severitySuccess(): boolean;
22
23
  get severityWarning(): boolean;
23
24
  hasShadowDom: (el: HTMLElement) => boolean;
24
25
  handleClick: () => void;
26
+ spxSetFocus(): void;
25
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxButtonComponent, never>;
26
28
  static ɵcmp: i0.ɵɵComponentDeclaration<SpxButtonComponent, "spx-button", never, { "spxDisabled": { "alias": "spxDisabled"; "required": false; }; "spxClass": { "alias": "spxClass"; "required": false; }; "spxClassObject": { "alias": "spxClassObject"; "required": false; }; "spxForm": { "alias": "spxForm"; "required": false; }; "spxFullHeight": { "alias": "spxFullHeight"; "required": false; }; "spxFullWidth": { "alias": "spxFullWidth"; "required": false; }; "spxSeverity": { "alias": "spxSeverity"; "required": false; }; "spxSize": { "alias": "spxSize"; "required": false; }; "spxTabIndex": { "alias": "spxTabIndex"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; }, { "spxClick": "spxClick"; }, never, ["*"], true, never>;
27
29
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@softpak/components/spx-change-details" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './spx-change-details.component';
@@ -0,0 +1,7 @@
1
+ import { SpxValuePair } from "@softpak/components/spx-inputs";
2
+ export interface SpxChangeDetailsValueI {
3
+ category?: SpxValuePair<string>;
4
+ containerType: SpxValuePair<string>;
5
+ licensePlate: SpxValuePair<string>;
6
+ tonsTested: SpxValuePair<string>;
7
+ }
@@ -0,0 +1,42 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { SpxInputTypeEnum } from '@softpak/components/spx-inputs';
4
+ import { SpxFormFieldI, SpxFormSectionI } from '@softpak/components/spx-form-view';
5
+ import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
6
+ import { SpxChangeDetailsValueI } from './spx-change-details-value.interface';
7
+ import * as i0 from "@angular/core";
8
+ export declare const sectionChangeDetails = "changeDetails";
9
+ export declare const ctrlContainerType = "containerType";
10
+ export declare const ctrlTonsTested = "tonsTested";
11
+ export declare const ctrlLicensePlate = "licensePlate";
12
+ export declare const ctrlCategory = "category";
13
+ export declare class SpxChangeDetailsComponent {
14
+ readonly formBuilder: FormBuilder;
15
+ formGroup: FormGroup;
16
+ showCategory: boolean;
17
+ suggestions: any;
18
+ txtCategory: string;
19
+ txtContainerType: string;
20
+ txtLicensePlate: string;
21
+ txtTonsTested: string;
22
+ spxSearch: EventEmitter<SpxFormFieldI>;
23
+ submit: EventEmitter<SpxChangeDetailsValueI>;
24
+ inputTypeAutocomplete: SpxInputTypeEnum;
25
+ inputTypeRadio: SpxInputTypeEnum;
26
+ inputTypeText: SpxInputTypeEnum;
27
+ severitySuccess: SpxSeverityEnum;
28
+ sections: SpxFormSectionI[];
29
+ get ctrlCategory(): FormControl;
30
+ get ctrlContainerType(): FormControl;
31
+ get ctrlLicensePlate(): FormControl;
32
+ get ctrlTonsTested(): FormControl;
33
+ private inputChanges?;
34
+ constructor(formBuilder: FormBuilder);
35
+ createForm(): FormGroup;
36
+ ngOnDestroy(): void;
37
+ getRawValidators(formControl: FormControl): any;
38
+ onSearch(field: SpxFormFieldI): void;
39
+ onSubmit(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpxChangeDetailsComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxChangeDetailsComponent, "spx-change-details", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "showCategory": { "alias": "showCategory"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "txtCategory": { "alias": "txtCategory"; "required": false; }; "txtContainerType": { "alias": "txtContainerType"; "required": false; }; "txtLicensePlate": { "alias": "txtLicensePlate"; "required": false; }; "txtTonsTested": { "alias": "txtTonsTested"; "required": false; }; }, { "spxSearch": "spxSearch"; "submit": "submit"; }, never, never, true, never>;
42
+ }
@@ -1,11 +1,12 @@
1
1
  import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
2
- import { SpxInputTypeEnum } from '@softpak/components/spx-inputs';
2
+ import { SpxInputComponent, SpxInputTypeEnum } from '@softpak/components/spx-inputs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxCheckDigitComponent {
5
5
  private readonly formBuilder;
6
6
  txtCheckDigit: string;
7
7
  txtContainer: string;
8
8
  txtPrefix: string;
9
+ ctrlContainerNumberRef?: SpxInputComponent;
9
10
  inputTypeOverlayNumber: SpxInputTypeEnum;
10
11
  inputTypeText: SpxInputTypeEnum;
11
12
  formGroup: FormGroup;
@@ -15,6 +16,7 @@ export declare class SpxCheckDigitComponent {
15
16
  private inputChanges?;
16
17
  constructor(formBuilder: FormBuilder);
17
18
  ngOnInit(): void;
19
+ ngAfterViewInit(): void;
18
20
  ngOnDestroy(): void;
19
21
  getRawValidators(formControl: FormControl): any;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxCheckDigitComponent, never>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@softpak/components/spx-form-view" />
5
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ export * from './spx-form-field.interface';
2
+ export * from './spx-form-section.interface';
3
+ export * from './spx-form-view.component';
@@ -0,0 +1,36 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';
4
+ import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
5
+ import { SpxFormFieldI } from './spx-form-field.interface';
6
+ import { SpxFormSectionI } from './spx-form-section.interface';
7
+ import * as i0 from "@angular/core";
8
+ export declare const sectionAutocompleteSearch = "autocompleteSearch";
9
+ export declare const ctrlQuery = "query";
10
+ export declare const ctrlOptions = "options";
11
+ export declare class SpxAutocompleteSearchComponent {
12
+ readonly formBuilder: FormBuilder;
13
+ formGroup: FormGroup;
14
+ spxSuggestions: SpxValuePair<any>[];
15
+ spxField: SpxFormFieldI;
16
+ txtOptions: string;
17
+ txtQuery: string;
18
+ txtSubmit: string;
19
+ spxSearch: EventEmitter<SpxValuePair<any>>;
20
+ spxSubmit: EventEmitter<SpxValuePair<any>>;
21
+ inputTypeAutocomplete: SpxInputTypeEnum;
22
+ inputTypeRadio: SpxInputTypeEnum;
23
+ inputTypeText: SpxInputTypeEnum;
24
+ severitySuccess: SpxSeverityEnum;
25
+ sections: SpxFormSectionI[];
26
+ get ctrlQuery(): FormControl;
27
+ get ctrlOptions(): FormControl;
28
+ private inputChanges?;
29
+ constructor(formBuilder: FormBuilder);
30
+ private createForm;
31
+ ngOnDestroy(): void;
32
+ getRawValidators(formControl: FormControl): any;
33
+ onSubmit(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpxAutocompleteSearchComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxAutocompleteSearchComponent, "spx-autocomplete-search", never, { "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxField": { "alias": "spxField"; "required": false; }; "txtOptions": { "alias": "txtOptions"; "required": false; }; "txtQuery": { "alias": "txtQuery"; "required": false; }; "txtSubmit": { "alias": "txtSubmit"; "required": false; }; }, { "spxSearch": "spxSearch"; "spxSubmit": "spxSubmit"; }, never, never, true, never>;
36
+ }
@@ -0,0 +1,16 @@
1
+ import { SpxInputTypeEnum, SpxValuePair } from "@softpak/components/spx-inputs";
2
+ export interface SpxFormFieldI {
3
+ afterValueChange?: (value: SpxValuePair<string | number | boolean | any>) => void;
4
+ autofocus?: () => boolean;
5
+ capitalize?: () => boolean;
6
+ defaultValue?: () => string | number | boolean | any;
7
+ key: string;
8
+ label?: () => string;
9
+ readonly?: () => boolean;
10
+ show?: () => boolean;
11
+ step?: () => number;
12
+ suggestions?: () => boolean;
13
+ suggestionsFixed?: () => SpxValuePair<string | number | boolean | any>[];
14
+ type: () => SpxInputTypeEnum;
15
+ validators?: () => any[];
16
+ }
@@ -0,0 +1,9 @@
1
+ import { SpxFormFieldI } from "./spx-form-field.interface";
2
+ export interface SpxFormSectionI {
3
+ fields: SpxFormFieldI[];
4
+ index?: () => number;
5
+ key: string;
6
+ show?: () => boolean;
7
+ showTitle?: () => boolean;
8
+ title?: () => string;
9
+ }
@@ -0,0 +1,32 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { SpxFormSectionI } from './spx-form-section.interface';
3
+ import { SpxInputTypeEnum, SpxValuePair } from '@softpak/components/spx-inputs';
4
+ import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
5
+ import { SpxFormFieldI } from './spx-form-field.interface';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SpxFormViewComponent {
8
+ readonly formBuilder: FormBuilder;
9
+ spxFormGroup: FormGroup;
10
+ spxSections: SpxFormSectionI[];
11
+ spxSuggestions: any;
12
+ spxSearch: EventEmitter<SpxFormFieldI>;
13
+ autocompleteField?: SpxFormFieldI;
14
+ typeAutocomplete: SpxInputTypeEnum;
15
+ typeFloat: SpxInputTypeEnum;
16
+ typeNumber: SpxInputTypeEnum;
17
+ typeRadio: SpxInputTypeEnum;
18
+ typeText: SpxInputTypeEnum;
19
+ typeNumericKeyboard: SpxInputTypeEnum;
20
+ typeOverlay: SpxInputTypeEnum;
21
+ typeOverlayNumber: SpxInputTypeEnum;
22
+ onBlur(field: SpxFormFieldI): void;
23
+ onAutocompleteSave(valuePair: SpxValuePair<any>): void;
24
+ onSearch(field: SpxFormFieldI): void;
25
+ getRawValidators(formControl: AbstractControl): any;
26
+ hasRequiredField(abstractControl: AbstractControl): boolean;
27
+ static initialFormValue(sections: SpxFormSectionI[]): any;
28
+ static createForm(formBuilder: FormBuilder, sections: SpxFormSectionI[]): FormGroup;
29
+ constructor(formBuilder: FormBuilder);
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpxFormViewComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxFormViewComponent, "spx-form-view", never, { "spxFormGroup": { "alias": "spxFormGroup"; "required": false; }; "spxSections": { "alias": "spxSections"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; }, { "spxSearch": "spxSearch"; }, never, never, true, never>;
32
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { SpxValuePair } from './spx-value-interface';
3
+ import { Subscription } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SpxDropdownComponent implements OnChanges, OnInit, OnDestroy {
6
+ protected focusPosition: number;
7
+ spxSuggestions: SpxValuePair<boolean | number | string>[];
8
+ spxSelect: EventEmitter<SpxValuePair<any>>;
9
+ subscriptionKeyUp?: Subscription;
10
+ ngOnInit(): void;
11
+ ngOnChanges(changes: SimpleChanges): void;
12
+ ngOnDestroy(): void;
13
+ handleSuggestionClick(valuePair: SpxValuePair<string | number | boolean>): void;
14
+ private listenToKeyUp;
15
+ private select;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpxDropdownComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxDropdownComponent, "spx-dropdown", never, { "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; }, { "spxSelect": "spxSelect"; }, never, never, true, never>;
18
+ }
@@ -1,18 +1,21 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxInputBoxComponent {
5
+ private elRef;
5
6
  faEdit: import("@fortawesome/fontawesome-common-types").IconDefinition;
6
7
  faSearch: import("@fortawesome/fontawesome-common-types").IconDefinition;
7
8
  faQuestion: import("@fortawesome/fontawesome-common-types").IconDefinition;
8
9
  faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
10
+ spxCompact?: boolean;
11
+ spxFocused: boolean;
9
12
  spxLabel?: string;
10
- spxRequired?: boolean;
11
13
  spxReadonly: boolean;
12
- spxShowHelp?: boolean;
13
- spxCompact?: boolean;
14
+ spxRequired?: boolean;
14
15
  spxShowClear: boolean;
15
16
  spxShowEdit?: boolean;
17
+ spxShowHelp?: boolean;
18
+ spxShowLabel: boolean;
16
19
  spxShowSearch?: boolean;
17
20
  spxShowValidationMessages?: boolean | null | undefined;
18
21
  spxValue?: SpxValuePair<any>;
@@ -22,12 +25,16 @@ export declare class SpxInputBoxComponent {
22
25
  spxFocusOut: EventEmitter<void>;
23
26
  spxEdit: EventEmitter<void>;
24
27
  spxHelp: EventEmitter<void>;
25
- spxFocused: boolean;
26
- spxSetFocus(): Promise<void>;
28
+ handleFocusIn(ev: Event): void;
29
+ handleFocusOut(ev: FocusEvent): void;
30
+ handleWindowClick(ev: Event): void;
27
31
  onClear(): void;
28
32
  onSearch(): void;
29
33
  onEdit(): void;
30
34
  onHelp(): void;
35
+ constructor(elRef: ElementRef);
36
+ private emitFocusIn;
37
+ private emitFocusOut;
31
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputBoxComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputBoxComponent, "spx-input-box", never, { "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxValue": { "alias": "spxValue"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; }, { "spxClear": "spxClear"; "spxSearch": "spxSearch"; "spxFocus": "spxFocus"; "spxFocusOut": "spxFocusOut"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; }, never, ["[controls]", "[validation-messages]"], true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputBoxComponent, "spx-input-box", never, { "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxValue": { "alias": "spxValue"; "required": false; }; }, { "spxClear": "spxClear"; "spxSearch": "spxSearch"; "spxFocus": "spxFocus"; "spxFocusOut": "spxFocusOut"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; }, never, ["[controls]", "[validation-messages]"], true, never>;
33
40
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxInputFloatComponent {
@@ -17,7 +17,8 @@ export declare class SpxInputFloatComponent {
17
17
  spxFocus: EventEmitter<void>;
18
18
  spxWasInternalUpdate: boolean;
19
19
  tick: {};
20
- spxSetFocus(): Promise<void>;
20
+ firstInputRef?: ElementRef<HTMLInputElement>;
21
+ spxSetFocus(): void;
21
22
  componentDidLoad(): void;
22
23
  handleFocus(): void;
23
24
  handleSetValue(newValue: SpxValuePair<any>): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxInputNumberComponent {
@@ -12,8 +12,9 @@ export declare class SpxInputNumberComponent {
12
12
  value?: SpxValuePair<any>;
13
13
  spxChange: EventEmitter<SpxValuePair<any>>;
14
14
  spxFocus: EventEmitter<void>;
15
+ inputRef?: ElementRef<HTMLInputElement>;
15
16
  spxWasInternalUpdate: boolean;
16
- spxSetFocus(): Promise<void>;
17
+ spxSetFocus(): void;
17
18
  componentDidLoad(): void;
18
19
  handleFocus(): void;
19
20
  handleInput(event: any): void;
@@ -1,18 +1,26 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, SimpleChanges } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxInputRadioComponent {
5
+ protected focusPosition: number;
5
6
  spxName?: string;
6
7
  spxValidators: any[];
7
8
  spxFocused: boolean;
9
+ spxShowLabel: boolean;
8
10
  spxReadonly: boolean;
9
11
  spxSuggestions: SpxValuePair<any>[];
10
12
  value?: SpxValuePair<any>;
11
13
  spxChange: EventEmitter<SpxValuePair<any>>;
12
14
  spxFocus: EventEmitter<void>;
13
- spxWasInternalUpdate: boolean;
14
- spxSetFocus(): Promise<void>;
15
- handleSuggestionClick(value: SpxValuePair<any>): void;
15
+ private subscriptionKeyUp?;
16
+ private subscriptionKeyDown?;
17
+ spxFocusIn(): void;
18
+ spxFocusOut(): void;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ handleSuggestionClick(valuePair: SpxValuePair<any>): void;
21
+ private determineFocusPosition;
22
+ private select;
23
+ private listenToKeys;
16
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputRadioComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputRadioComponent, "spx-input-radio", never, { "spxName": { "alias": "spxName"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "spxChange": "spxChange"; "spxFocus": "spxFocus"; }, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputRadioComponent, "spx-input-radio", never, { "spxName": { "alias": "spxName"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "spxChange": "spxChange"; "spxFocus": "spxFocus"; }, never, never, true, never>;
18
26
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SpxValuePair } from './spx-value-interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SpxInputTextComponent {
@@ -17,7 +17,8 @@ export declare class SpxInputTextComponent {
17
17
  spxChange: EventEmitter<SpxValuePair<any>>;
18
18
  spxFocus: EventEmitter<void>;
19
19
  spxWasInternalUpdate: boolean;
20
- spxSetFocus(): Promise<void>;
20
+ inputRef?: ElementRef<HTMLInputElement>;
21
+ spxSetFocus(): void;
21
22
  componentDidLoad(): void;
22
23
  handleBlur(): void;
23
24
  handleFocus(): void;
@@ -7,5 +7,6 @@ export declare enum SpxInputTypeEnum {
7
7
  radio = "radio",
8
8
  number = "number",
9
9
  password = "password",
10
- text = "text"
10
+ text = "text",
11
+ textNumericKeyboard = "textNumericKeyboard"
11
12
  }
@@ -1,5 +1,9 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { SpxInputTextComponent } from './spx-input-text.component';
2
3
  import { SpxValuePair } from './spx-value-interface';
4
+ import { SpxInputFloatComponent } from './spx-input-float.component';
5
+ import { SpxInputNumberComponent } from './spx-input-number.component';
6
+ import { SpxInputRadioComponent } from './spx-input-radio.component';
3
7
  import { SpxInputTypeEnum } from './spx-input-type.enum';
4
8
  import * as i0 from "@angular/core";
5
9
  export declare class SpxInputComponent {
@@ -16,6 +20,7 @@ export declare class SpxInputComponent {
16
20
  spxSelectDay: boolean;
17
21
  spxShowEdit: boolean;
18
22
  spxShowHelp: boolean;
23
+ spxShowLabel: boolean;
19
24
  spxCompact: boolean;
20
25
  spxShowClear: boolean;
21
26
  spxShowSearch: boolean;
@@ -33,14 +38,17 @@ export declare class SpxInputComponent {
33
38
  spxEdit: EventEmitter<void>;
34
39
  spxHelp: EventEmitter<void>;
35
40
  spxSearch: EventEmitter<void>;
41
+ floatInput?: SpxInputFloatComponent;
42
+ numberInput?: SpxInputNumberComponent;
43
+ textInput?: SpxInputTextComponent;
44
+ radioInput?: SpxInputRadioComponent;
36
45
  spxFocused: boolean;
37
- spxSetFocus(): void;
38
46
  handleBlur(): void;
39
47
  handleChange(event: any): void;
40
48
  handleClear(): void;
41
49
  handleFocus(): void;
42
50
  handleSearch(): void;
43
- setFocus(): void;
51
+ setFocusIn(): void;
44
52
  setFocusOut(): void;
45
53
  handleEdit(): void;
46
54
  handleHelp(): void;
@@ -54,5 +62,5 @@ export declare class SpxInputComponent {
54
62
  registerOnChange(fn: (value: any) => void): void;
55
63
  registerOnTouched(fn: () => void): void;
56
64
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxInputComponent, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputComponent, "spx-input", never, { "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxMax": { "alias": "spxMax"; "required": false; }; "spxMin": { "alias": "spxMin"; "required": false; }; "spxName": { "alias": "spxName"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxInputMode": { "alias": "spxInputMode"; "required": false; }; "spxPattern": { "alias": "spxPattern"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxSelectMonth": { "alias": "spxSelectMonth"; "required": false; }; "spxSelectDay": { "alias": "spxSelectDay"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxStep": { "alias": "spxStep"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxCapitalize": { "alias": "spxCapitalize"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; }, { "spxBlur": "spxBlur"; "spxClear": "spxClear"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; "spxSearch": "spxSearch"; }, never, ["*"], true, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxInputComponent, "spx-input", never, { "spxLabel": { "alias": "spxLabel"; "required": false; }; "spxMax": { "alias": "spxMax"; "required": false; }; "spxMin": { "alias": "spxMin"; "required": false; }; "spxName": { "alias": "spxName"; "required": false; }; "spxReadonly": { "alias": "spxReadonly"; "required": false; }; "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxInputMode": { "alias": "spxInputMode"; "required": false; }; "spxPattern": { "alias": "spxPattern"; "required": false; }; "spxRequired": { "alias": "spxRequired"; "required": false; }; "spxSelectMonth": { "alias": "spxSelectMonth"; "required": false; }; "spxSelectDay": { "alias": "spxSelectDay"; "required": false; }; "spxShowEdit": { "alias": "spxShowEdit"; "required": false; }; "spxShowHelp": { "alias": "spxShowHelp"; "required": false; }; "spxShowLabel": { "alias": "spxShowLabel"; "required": false; }; "spxCompact": { "alias": "spxCompact"; "required": false; }; "spxShowClear": { "alias": "spxShowClear"; "required": false; }; "spxShowSearch": { "alias": "spxShowSearch"; "required": false; }; "spxShowValidationMessages": { "alias": "spxShowValidationMessages"; "required": false; }; "spxStep": { "alias": "spxStep"; "required": false; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": false; }; "spxType": { "alias": "spxType"; "required": false; }; "spxValidators": { "alias": "spxValidators"; "required": false; }; "value": { "alias": "value"; "required": false; }; "spxCapitalize": { "alias": "spxCapitalize"; "required": false; }; "spxFocused": { "alias": "spxFocused"; "required": false; }; }, { "spxBlur": "spxBlur"; "spxClear": "spxClear"; "spxChange": "spxChange"; "spxFocus": "spxFocus"; "spxEdit": "spxEdit"; "spxHelp": "spxHelp"; "spxSearch": "spxSearch"; }, never, ["*"], true, never>;
58
66
  }
@@ -1,7 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class SpxHomeTileComponent {
3
+ spxAutofocus?: boolean;
3
4
  spxClass?: string;
5
+ spxSubtitle?: string;
4
6
  spxTitle?: string;
7
+ private buttonRef?;
8
+ setFocus(): void;
5
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxHomeTileComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<SpxHomeTileComponent, "spx-home-tile", never, { "spxClass": { "alias": "spxClass"; "required": false; }; "spxTitle": { "alias": "spxTitle"; "required": false; }; }, {}, never, ["*"], true, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpxHomeTileComponent, "spx-home-tile", never, { "spxAutofocus": { "alias": "spxAutofocus"; "required": false; }; "spxClass": { "alias": "spxClass"; "required": false; }; "spxSubtitle": { "alias": "spxSubtitle"; "required": false; }; "spxTitle": { "alias": "spxTitle"; "required": false; }; }, {}, never, ["*"], true, never>;
7
11
  }
@@ -16,5 +16,6 @@ export interface SpxNavigationItemI {
16
16
  signInRequired?: boolean;
17
17
  tileClasses?: string;
18
18
  title: string;
19
+ subtite?: string;
19
20
  currentSettingsRequired?: boolean;
20
21
  }
@@ -1,11 +1,14 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
2
2
  import { SpxNavigationItemI } from './spx-navigation-item.interface';
3
+ import { SpxHomeTileComponent } from './spx-home-tile.component';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SpxNavigationComponent {
6
+ tiles?: QueryList<SpxHomeTileComponent>;
5
7
  iconTemplateRef?: TemplateRef<any>;
6
8
  navItems: SpxNavigationItemI[];
7
9
  spxClick: EventEmitter<string>;
8
10
  constructor();
11
+ setFocus(): void;
9
12
  onNavigate(link: string): void;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxNavigationComponent, never>;
11
14
  static ɵcmp: i0.ɵɵComponentDeclaration<SpxNavigationComponent, "spx-navigation", never, { "navItems": { "alias": "navItems"; "required": false; }; }, { "spxClick": "spxClick"; }, ["iconTemplateRef"], never, true, never>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@softpak/components/spx-number-check" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './spx-number-check.component';