@softpak/components 20.0.0 → 20.0.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.
- package/README.md +24 -24
- package/fesm2022/softpak-components-spx-404-page.mjs +4 -4
- package/fesm2022/softpak-components-spx-404-page.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-alert.mjs +4 -4
- package/fesm2022/softpak-components-spx-alert.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-configuration.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-app-expiry.mjs +4 -4
- package/fesm2022/softpak-components-spx-app-expiry.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-button.mjs +4 -4
- package/fesm2022/softpak-components-spx-button.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-capitalize.mjs +3 -3
- package/fesm2022/softpak-components-spx-capitalize.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-card.mjs +16 -16
- package/fesm2022/softpak-components-spx-card.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-change-details.mjs +4 -4
- package/fesm2022/softpak-components-spx-change-details.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-channel-selection.mjs +62 -62
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-check-digit.mjs +4 -4
- package/fesm2022/softpak-components-spx-check-digit.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-confirm.mjs +11 -11
- package/fesm2022/softpak-components-spx-confirm.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-section.mjs +4 -4
- package/fesm2022/softpak-components-spx-form-section.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-form-view.mjs +8 -8
- package/fesm2022/softpak-components-spx-form-view.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-helpers.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-inputs.mjs +54 -50
- package/fesm2022/softpak-components-spx-inputs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-navigation.mjs +12 -12
- package/fesm2022/softpak-components-spx-navigation.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-number-check.mjs +4 -4
- package/fesm2022/softpak-components-spx-number-check.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pagination.mjs +5 -5
- package/fesm2022/softpak-components-spx-pagination.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-patch.mjs +4 -4
- package/fesm2022/softpak-components-spx-patch.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-pipes.mjs +3 -3
- package/fesm2022/softpak-components-spx-pipes.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-progress-bar.mjs +4 -4
- package/fesm2022/softpak-components-spx-progress-bar.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-spinner.mjs +4 -4
- package/fesm2022/softpak-components-spx-spinner.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-stock-info.mjs +4 -4
- package/fesm2022/softpak-components-spx-stock-info.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-suggestion.mjs +4 -4
- package/fesm2022/softpak-components-spx-suggestion.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-tabs.mjs +4 -4
- package/fesm2022/softpak-components-spx-tabs.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toaster.mjs +4 -4
- package/fesm2022/softpak-components-spx-toaster.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-toggle.mjs +4 -4
- package/fesm2022/softpak-components-spx-toggle.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-translate.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-update.mjs +14 -14
- package/fesm2022/softpak-components-spx-update.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation-messages.mjs +10 -10
- package/fesm2022/softpak-components-spx-validation-messages.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-validation.mjs +4 -4
- package/fesm2022/softpak-components-spx-validation.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/package.json +33 -33
- package/placeholder.d.ts +1 -0
- package/public_api.d.ts +1 -0
- package/spx-404-page/index.d.ts +5 -18
- package/spx-404-page/public-api.d.ts +1 -0
- package/spx-404-page/spx-404-page.component.d.ts +15 -0
- package/spx-alert/index.d.ts +5 -34
- package/spx-alert/public-api.d.ts +2 -0
- package/spx-alert/spx-alert.component.d.ts +23 -0
- package/spx-alert/spx-alert.interface.d.ts +7 -0
- package/spx-app-configuration/index.d.ts +5 -66
- package/spx-app-configuration/public-api.d.ts +7 -0
- package/spx-app-configuration/spx-app-alert.interface.d.ts +7 -0
- package/spx-app-configuration/spx-app-bundle-set.interface.d.ts +4 -0
- package/spx-app-configuration/spx-app-channel-type.enum.d.ts +6 -0
- package/spx-app-configuration/spx-app-channel.interface.d.ts +10 -0
- package/spx-app-configuration/spx-app-config.interface.d.ts +19 -0
- package/spx-app-configuration/spx-app-id.enum.d.ts +6 -0
- package/spx-app-configuration/spx-app-lang.enum.d.ts +4 -0
- package/spx-app-configuration/spx-app-release-note.interface.d.ts +8 -0
- package/spx-app-expiry/index.d.ts +5 -38
- package/spx-app-expiry/public-api.d.ts +5 -0
- package/spx-app-expiry/spx-app-expiry.component.d.ts +21 -0
- package/spx-app-expiry/spx-app-expiry.interface.d.ts +7 -0
- package/spx-app-expiry/spx-check-expiry-final-warning.interface.d.ts +2 -0
- package/spx-app-expiry/spx-check-expiry-happened.interface.d.ts +2 -0
- package/spx-app-expiry/spx-check-expiry-warning.interface.d.ts +2 -0
- package/spx-button/index.d.ts +5 -26
- package/spx-button/public-api.d.ts +1 -0
- package/spx-button/spx-button.component.d.ts +23 -0
- package/spx-capitalize/index.d.ts +5 -11
- package/spx-capitalize/public-api.d.ts +1 -0
- package/spx-capitalize/spx-capitalize.pipe.d.ts +8 -0
- package/spx-card/index.d.ts +5 -54
- package/spx-card/public-api.d.ts +4 -0
- package/spx-card/spx-card-grid/spx-card-grid.component.d.ts +6 -0
- package/spx-card/spx-card-item/spx-card-item.component.d.ts +14 -0
- package/spx-card/spx-card-line/spx-card-line.component.d.ts +16 -0
- package/spx-card/spx-card.component.d.ts +15 -0
- package/spx-change-details/index.d.ts +5 -67
- package/spx-change-details/public-api.d.ts +1 -0
- package/spx-change-details/spx-change-details-value.interface.d.ts +7 -0
- package/spx-change-details/spx-change-details.component.d.ts +58 -0
- package/spx-channel-selection/index.d.ts +5 -163
- package/spx-channel-selection/public-api.d.ts +8 -0
- package/spx-channel-selection/src/spx-channel-guard.d.ts +9 -0
- package/spx-channel-selection/src/spx-channel-indicator.component.d.ts +14 -0
- package/spx-channel-selection/src/spx-channel-selection-url.d.ts +1 -0
- package/spx-channel-selection/src/spx-welcome.component.d.ts +44 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.actions.d.ts +21 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.effects.d.ts +17 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.initial.d.ts +2 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.reducer.d.ts +12 -0
- package/spx-channel-selection/store/spx-channel/spx-channel.state.d.ts +7 -0
- package/spx-check-digit/index.d.ts +5 -27
- package/spx-check-digit/public-api.d.ts +1 -0
- package/spx-check-digit/spx-check-digit.component.d.ts +24 -0
- package/spx-confirm/index.d.ts +5 -118
- package/spx-confirm/public-api.d.ts +5 -0
- package/spx-confirm/spx-confirm-displayer/spx-confirm-displayer.component.d.ts +22 -0
- package/spx-confirm/spx-confirm.component.d.ts +16 -0
- package/spx-confirm/store/spx-confirm.actions.d.ts +22 -0
- package/spx-confirm/store/spx-confirm.effects.d.ts +12 -0
- package/spx-confirm/store/spx-confirm.reducer.d.ts +18 -0
- package/spx-form-section/index.d.ts +5 -12
- package/spx-form-section/public-api.d.ts +1 -0
- package/spx-form-section/spx-form-section.component.d.ts +9 -0
- package/spx-form-view/index.d.ts +5 -94
- package/spx-form-view/public-api.d.ts +6 -0
- package/spx-form-view/spx-autocomplete-search.component.d.ts +41 -0
- package/spx-form-view/spx-form-button-type.enum.d.ts +4 -0
- package/spx-form-view/spx-form-button.interface.d.ts +8 -0
- package/spx-form-view/spx-form-field.interface.d.ts +18 -0
- package/spx-form-view/spx-form-section.interface.d.ts +9 -0
- package/spx-form-view/spx-form-view.component.d.ts +49 -0
- package/spx-form-view/spx-form.interface.d.ts +6 -0
- package/spx-helpers/calc-check-digit.function.d.ts +1 -0
- package/spx-helpers/index.d.ts +5 -22
- package/spx-helpers/input-alert.interface.d.ts +5 -0
- package/spx-helpers/public-api.d.ts +5 -0
- package/spx-helpers/spx-severity.enum.d.ts +8 -0
- package/spx-helpers/unsubscribe-subscriptions.function.d.ts +1 -0
- package/spx-helpers/value-pair-to-value.function.d.ts +1 -0
- package/spx-inputs/index.d.ts +5 -326
- package/spx-inputs/input.service.d.ts +12 -0
- package/spx-inputs/public-api.d.ts +6 -0
- package/spx-inputs/spx-dropdown/spx-dropdown.component.d.ts +18 -0
- package/spx-inputs/spx-input-alert-interface.d.ts +5 -0
- package/spx-inputs/spx-input-box/spx-input-box.component.d.ts +41 -0
- package/spx-inputs/spx-input-date/spx-input-date.component.d.ts +50 -0
- package/spx-inputs/spx-input-float/spx-input-float.component.d.ts +33 -0
- package/spx-inputs/spx-input-number/spx-input-number.component.d.ts +24 -0
- package/spx-inputs/spx-input-radio/spx-input-radio.component.d.ts +27 -0
- package/spx-inputs/spx-input-text/spx-input-text.component.d.ts +34 -0
- package/spx-inputs/spx-input-time/spx-input-time.component.d.ts +35 -0
- package/spx-inputs/spx-input-time-modal/spx-input-time-modal.component.d.ts +18 -0
- package/spx-inputs/spx-input-type.enum.d.ts +16 -0
- package/spx-inputs/spx-input.component.d.ts +74 -0
- package/spx-inputs/spx-value-interface.d.ts +4 -0
- package/spx-navigation/index.d.ts +5 -140
- package/spx-navigation/public-api.d.ts +8 -0
- package/spx-navigation/spx-home-tile/spx-home-tile.component.d.ts +11 -0
- package/spx-navigation/spx-home-tile/spx-home-tiles.component.d.ts +6 -0
- package/spx-navigation/spx-navigation-item.interface.d.ts +22 -0
- package/spx-navigation/spx-navigation.component.d.ts +21 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.actions.d.ts +28 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.initial.d.ts +2 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.reducer.d.ts +12 -0
- package/spx-navigation/store/spx-navigation/spx-navigation.state.d.ts +8 -0
- package/spx-number-check/index.d.ts +5 -43
- package/spx-number-check/public-api.d.ts +1 -0
- package/spx-number-check/spx-number-check.component.d.ts +40 -0
- package/spx-pagination/index.d.ts +5 -18
- package/spx-pagination/public-api.d.ts +1 -0
- package/spx-pagination/spx-pagination.component.d.ts +15 -0
- package/spx-patch/index.d.ts +5 -21
- package/spx-patch/patch-check.function.d.ts +4 -0
- package/spx-patch/public-api.d.ts +3 -0
- package/spx-patch/release-check.function.d.ts +1 -0
- package/spx-patch/spx-patch.component.d.ts +11 -0
- package/spx-pipes/index.d.ts +5 -11
- package/spx-pipes/public-api.d.ts +1 -0
- package/spx-pipes/spx-severity-pipe.d.ts +8 -0
- package/spx-progress-bar/index.d.ts +5 -10
- package/spx-progress-bar/public-api.d.ts +1 -0
- package/spx-progress-bar/spx-progress-bar.component.d.ts +7 -0
- package/spx-spinner/index.d.ts +5 -59
- package/spx-spinner/public-api.d.ts +5 -0
- package/spx-spinner/spx-spinner.component.d.ts +7 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.actions.d.ts +6 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.initial.d.ts +2 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.reducer.d.ts +9 -0
- package/spx-spinner/store/spx-spinner/spx-spinner.state.d.ts +4 -0
- package/spx-stock-info/index.d.ts +5 -98
- package/spx-stock-info/public-api.d.ts +2 -0
- package/spx-stock-info/spx-stock-info-value.interface.d.ts +11 -0
- package/spx-stock-info/spx-stock-info.component.d.ts +85 -0
- package/spx-storage/index.d.ts +5 -26
- package/spx-storage/public-api.d.ts +2 -0
- package/spx-storage/src/spx-storage-key.enum.d.ts +15 -0
- package/spx-storage/src/spx-storage.class.d.ts +9 -0
- package/spx-suggestion/index.d.ts +5 -12
- package/spx-suggestion/public-api.d.ts +1 -0
- package/spx-suggestion/spx-suggestion.component.d.ts +9 -0
- package/spx-tabs/index.d.ts +5 -58
- package/spx-tabs/public-api.d.ts +3 -0
- package/spx-tabs/src/spx-tabs.component.d.ts +19 -0
- package/spx-tabs/store/spx-shortcuts.actions.d.ts +10 -0
- package/spx-tabs/store/spx-shortcuts.reducer.d.ts +11 -0
- package/spx-toaster/index.d.ts +5 -167
- package/spx-toaster/public-api.d.ts +7 -0
- package/spx-toaster/src/spx-toaster-autoclose-speed.d.ts +11 -0
- package/spx-toaster/src/spx-toaster-message.interface.d.ts +14 -0
- package/spx-toaster/src/spx-toaster.component.d.ts +11 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.actions.d.ts +78 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.initial.d.ts +2 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.reducer.d.ts +11 -0
- package/spx-toaster/store/spx-toaster/spx-toaster.state.d.ts +5 -0
- package/spx-toggle/index.d.ts +5 -15
- package/spx-toggle/public-api.d.ts +1 -0
- package/spx-toggle/src/spx-toggle.component.d.ts +12 -0
- package/spx-translate/index.d.ts +5 -66
- package/spx-translate/public-api.d.ts +3 -0
- package/spx-translate/spx-translate._const.d.ts +59 -0
- package/spx-translate/spx-translate.en.d.ts +2 -0
- package/spx-translate/spx-translate.nl.d.ts +2 -0
- package/spx-update/index.d.ts +5 -208
- package/spx-update/public-api.d.ts +13 -0
- package/spx-update/spx-update-page.component.d.ts +17 -0
- package/spx-update/spx-update-pending.component.d.ts +25 -0
- package/spx-update/spx-update-url.d.ts +1 -0
- package/spx-update/store/spx-update-check/spx-update-check.actions.d.ts +28 -0
- package/spx-update/store/spx-update-check/spx-update-check.effects.d.ts +14 -0
- package/spx-update/store/spx-update-check/spx-update-check.initial.d.ts +2 -0
- package/spx-update/store/spx-update-check/spx-update-check.reducer.d.ts +10 -0
- package/spx-update/store/spx-update-check/spx-update-check.state.d.ts +5 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.actions.d.ts +8 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.effects.d.ts +10 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.initial.d.ts +2 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.reducer.d.ts +9 -0
- package/spx-update/store/spx-update-pending/spx-update-pending.state.d.ts +4 -0
- package/spx-validation/index.d.ts +5 -63
- package/spx-validation/max.validator.d.ts +7 -0
- package/spx-validation/maxlength.validator.d.ts +7 -0
- package/spx-validation/min.validator.d.ts +7 -0
- package/spx-validation/minlength.validator.d.ts +7 -0
- package/spx-validation/pattern.validator.d.ts +2 -0
- package/spx-validation/public-api.d.ts +8 -0
- package/spx-validation/required.validator.d.ts +2 -0
- package/spx-validation/spx-validate-control.component.d.ts +26 -0
- package/spx-validation/year-and-month.validator.d.ts +2 -0
- package/spx-validation-messages/index.d.ts +5 -28
- package/spx-validation-messages/public-api.d.ts +1 -0
- package/spx-validation-messages/spx-validation-messages.component.d.ts +25 -0
package/spx-form-view/index.d.ts
CHANGED
|
@@ -1,94 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare enum SpxFormButtonTypeEnum {
|
|
8
|
-
button = "button",
|
|
9
|
-
submit = "submit"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface SpxFormButtonI {
|
|
13
|
-
onClick?: () => {};
|
|
14
|
-
severity: SpxSeverityEnum;
|
|
15
|
-
label?: () => string;
|
|
16
|
-
type: SpxFormButtonTypeEnum;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface SpxFormFieldI {
|
|
20
|
-
afterValueChange?: (value: SpxValuePair<string | number | boolean | any>) => void;
|
|
21
|
-
autofocus?: () => boolean;
|
|
22
|
-
capitalize?: () => boolean;
|
|
23
|
-
defaultValue?: () => string | number | boolean | any;
|
|
24
|
-
key: string;
|
|
25
|
-
label?: () => string;
|
|
26
|
-
readonly?: () => boolean;
|
|
27
|
-
severity?: () => SpxSeverityEnum;
|
|
28
|
-
show?: () => boolean;
|
|
29
|
-
step?: () => number;
|
|
30
|
-
suggestions?: () => boolean;
|
|
31
|
-
suggestionsFixed?: () => SpxValuePair<string | number | boolean | any>[];
|
|
32
|
-
type: () => SpxInputTypeEnum;
|
|
33
|
-
validators?: () => any[];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface SpxFormSectionI {
|
|
37
|
-
fields: SpxFormFieldI[];
|
|
38
|
-
index?: () => number;
|
|
39
|
-
key: string;
|
|
40
|
-
show?: () => boolean;
|
|
41
|
-
showTitle?: () => boolean;
|
|
42
|
-
title?: () => string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface SpxFormI {
|
|
46
|
-
buttons: SpxFormButtonI[];
|
|
47
|
-
sections: SpxFormSectionI[];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
declare class SpxFormViewComponent {
|
|
51
|
-
readonly formBuilder: FormBuilder;
|
|
52
|
-
readonly spxFormGroup: _angular_core.InputSignal<FormGroup<any>>;
|
|
53
|
-
readonly spxForm: _angular_core.InputSignal<SpxFormI>;
|
|
54
|
-
readonly spxSuggestions: _angular_core.InputSignal<any>;
|
|
55
|
-
spxBlur: _angular_core.OutputEmitterRef<{
|
|
56
|
-
field: SpxFormFieldI;
|
|
57
|
-
valuePair: SpxValuePair<any>;
|
|
58
|
-
}>;
|
|
59
|
-
spxClick: _angular_core.OutputEmitterRef<{
|
|
60
|
-
field: SpxFormFieldI;
|
|
61
|
-
}>;
|
|
62
|
-
spxSearch: _angular_core.OutputEmitterRef<{
|
|
63
|
-
field: SpxFormFieldI;
|
|
64
|
-
valuePair: SpxValuePair<any>;
|
|
65
|
-
}>;
|
|
66
|
-
spxInputs: _angular_core.Signal<readonly ElementRef<any>[]>;
|
|
67
|
-
autoCompleteField: _angular_core.WritableSignal<SpxFormFieldI | null>;
|
|
68
|
-
typeAutocomplete: SpxInputTypeEnum;
|
|
69
|
-
typeButton: SpxInputTypeEnum;
|
|
70
|
-
typeFloat: SpxInputTypeEnum;
|
|
71
|
-
typeNumber: SpxInputTypeEnum;
|
|
72
|
-
typeRadio: SpxInputTypeEnum;
|
|
73
|
-
typeText: SpxInputTypeEnum;
|
|
74
|
-
typeNumericKeyboard: SpxInputTypeEnum;
|
|
75
|
-
typeOverlay: SpxInputTypeEnum;
|
|
76
|
-
typeOverlayNumber: SpxInputTypeEnum;
|
|
77
|
-
setAutofocus(key: string): void;
|
|
78
|
-
onBlur(field: SpxFormFieldI): void;
|
|
79
|
-
onClick(field: SpxFormFieldI): void;
|
|
80
|
-
onAutocompleteCancel(): void;
|
|
81
|
-
onAutocompleteSearch(valuePair: SpxValuePair<any>): void;
|
|
82
|
-
onAutocompleteSave(valuePair: SpxValuePair<any>): void;
|
|
83
|
-
onSearch(field: SpxFormFieldI): void;
|
|
84
|
-
getRawValidators(formControl: AbstractControl): any;
|
|
85
|
-
hasRequiredField(abstractControl: AbstractControl): boolean;
|
|
86
|
-
static initialFormValue(sections: SpxFormSectionI[]): any;
|
|
87
|
-
static createForm(formBuilder: FormBuilder, sections: SpxFormSectionI[]): FormGroup;
|
|
88
|
-
constructor(formBuilder: FormBuilder);
|
|
89
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpxFormViewComponent, never>;
|
|
90
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxFormViewComponent, "spx-form-view", never, { "spxFormGroup": { "alias": "spxFormGroup"; "required": true; "isSignal": true; }; "spxForm": { "alias": "spxForm"; "required": true; "isSignal": true; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": true; "isSignal": true; }; }, { "spxBlur": "spxBlur"; "spxClick": "spxClick"; "spxSearch": "spxSearch"; }, never, never, true, never>;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { SpxFormButtonTypeEnum, SpxFormViewComponent };
|
|
94
|
-
export type { SpxFormButtonI, SpxFormFieldI, SpxFormI, SpxFormSectionI };
|
|
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,6 @@
|
|
|
1
|
+
export * from './spx-form-button-type.enum';
|
|
2
|
+
export * from './spx-form-button.interface';
|
|
3
|
+
export * from './spx-form-field.interface';
|
|
4
|
+
export * from './spx-form-section.interface';
|
|
5
|
+
export * from './spx-form-view.component';
|
|
6
|
+
export * from './spx-form.interface';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { SpxFormFieldI } from './spx-form-field.interface';
|
|
4
|
+
import { SpxFormSectionI } from './spx-form-section.interface';
|
|
5
|
+
import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
|
|
6
|
+
import { SpxValuePair, SpxInputTypeEnum } from '@softpak/components/spx-inputs';
|
|
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 implements OnInit, OnDestroy {
|
|
12
|
+
readonly formBuilder: FormBuilder;
|
|
13
|
+
formGroup: import("@angular/core").WritableSignal<FormGroup<any> | null>;
|
|
14
|
+
readonly spxSuggestions: import("@angular/core").InputSignal<SpxValuePair<any>[]>;
|
|
15
|
+
readonly spxField: import("@angular/core").InputSignal<SpxFormFieldI>;
|
|
16
|
+
readonly txtOptions: import("@angular/core").InputSignal<string>;
|
|
17
|
+
readonly txtQuery: import("@angular/core").InputSignal<string>;
|
|
18
|
+
readonly txtSubmit: import("@angular/core").InputSignal<string>;
|
|
19
|
+
readonly spxValuePair: import("@angular/core").InputSignal<SpxValuePair<any>>;
|
|
20
|
+
spxCancel: import("@angular/core").OutputEmitterRef<void>;
|
|
21
|
+
spxSearch: import("@angular/core").OutputEmitterRef<SpxValuePair<any>>;
|
|
22
|
+
spxSubmit: import("@angular/core").OutputEmitterRef<SpxValuePair<any>>;
|
|
23
|
+
inputTypeRadio: SpxInputTypeEnum;
|
|
24
|
+
inputTypeText: SpxInputTypeEnum;
|
|
25
|
+
SpxSeverity: typeof SpxSeverityEnum;
|
|
26
|
+
sections: SpxFormSectionI[];
|
|
27
|
+
readonly ctrlQuery: import("@angular/core").Signal<FormControl<any>>;
|
|
28
|
+
readonly ctrlOptions: import("@angular/core").Signal<FormControl<any>>;
|
|
29
|
+
private subscriptions;
|
|
30
|
+
constructor(formBuilder: FormBuilder);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
private createForm;
|
|
34
|
+
getRawValidators(formControl: FormControl): any;
|
|
35
|
+
onCancel(): void;
|
|
36
|
+
onSubmit(): void;
|
|
37
|
+
private listenToQuery;
|
|
38
|
+
private listenToSelection;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpxAutocompleteSearchComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxAutocompleteSearchComponent, "spx-autocomplete-search", never, { "spxSuggestions": { "alias": "spxSuggestions"; "required": false; "isSignal": true; }; "spxField": { "alias": "spxField"; "required": true; "isSignal": true; }; "txtOptions": { "alias": "txtOptions"; "required": true; "isSignal": true; }; "txtQuery": { "alias": "txtQuery"; "required": true; "isSignal": true; }; "txtSubmit": { "alias": "txtSubmit"; "required": true; "isSignal": true; }; "spxValuePair": { "alias": "spxValuePair"; "required": true; "isSignal": true; }; }, { "spxCancel": "spxCancel"; "spxSearch": "spxSearch"; "spxSubmit": "spxSubmit"; }, never, never, true, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SpxSeverityEnum } from "@softpak/components/spx-helpers";
|
|
2
|
+
import { SpxFormButtonTypeEnum } from "./spx-form-button-type.enum";
|
|
3
|
+
export interface SpxFormButtonI {
|
|
4
|
+
onClick?: () => {};
|
|
5
|
+
severity: SpxSeverityEnum;
|
|
6
|
+
label?: () => string;
|
|
7
|
+
type: SpxFormButtonTypeEnum;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SpxSeverityEnum } from "@softpak/components/spx-helpers";
|
|
2
|
+
import { SpxValuePair, SpxInputTypeEnum } from "@softpak/components/spx-inputs";
|
|
3
|
+
export interface SpxFormFieldI {
|
|
4
|
+
afterValueChange?: (value: SpxValuePair<string | number | boolean | any>) => void;
|
|
5
|
+
autofocus?: () => boolean;
|
|
6
|
+
capitalize?: () => boolean;
|
|
7
|
+
defaultValue?: () => string | number | boolean | any;
|
|
8
|
+
key: string;
|
|
9
|
+
label?: () => string;
|
|
10
|
+
readonly?: () => boolean;
|
|
11
|
+
severity?: () => SpxSeverityEnum;
|
|
12
|
+
show?: () => boolean;
|
|
13
|
+
step?: () => number;
|
|
14
|
+
suggestions?: () => boolean;
|
|
15
|
+
suggestionsFixed?: () => SpxValuePair<string | number | boolean | any>[];
|
|
16
|
+
type: () => SpxInputTypeEnum;
|
|
17
|
+
validators?: () => any[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { SpxFormSectionI } from './spx-form-section.interface';
|
|
3
|
+
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
4
|
+
import { SpxFormFieldI } from './spx-form-field.interface';
|
|
5
|
+
import { SpxFormI } from './spx-form.interface';
|
|
6
|
+
import { SpxValuePair, SpxInputTypeEnum } from '@softpak/components/spx-inputs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SpxFormViewComponent {
|
|
9
|
+
readonly formBuilder: FormBuilder;
|
|
10
|
+
readonly spxFormGroup: import("@angular/core").InputSignal<FormGroup<any>>;
|
|
11
|
+
readonly spxForm: import("@angular/core").InputSignal<SpxFormI>;
|
|
12
|
+
readonly spxSuggestions: import("@angular/core").InputSignal<any>;
|
|
13
|
+
spxBlur: import("@angular/core").OutputEmitterRef<{
|
|
14
|
+
field: SpxFormFieldI;
|
|
15
|
+
valuePair: SpxValuePair<any>;
|
|
16
|
+
}>;
|
|
17
|
+
spxClick: import("@angular/core").OutputEmitterRef<{
|
|
18
|
+
field: SpxFormFieldI;
|
|
19
|
+
}>;
|
|
20
|
+
spxSearch: import("@angular/core").OutputEmitterRef<{
|
|
21
|
+
field: SpxFormFieldI;
|
|
22
|
+
valuePair: SpxValuePair<any>;
|
|
23
|
+
}>;
|
|
24
|
+
spxInputs: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
25
|
+
autoCompleteField: import("@angular/core").WritableSignal<SpxFormFieldI | null>;
|
|
26
|
+
typeAutocomplete: SpxInputTypeEnum;
|
|
27
|
+
typeButton: SpxInputTypeEnum;
|
|
28
|
+
typeFloat: SpxInputTypeEnum;
|
|
29
|
+
typeNumber: SpxInputTypeEnum;
|
|
30
|
+
typeRadio: SpxInputTypeEnum;
|
|
31
|
+
typeText: SpxInputTypeEnum;
|
|
32
|
+
typeNumericKeyboard: SpxInputTypeEnum;
|
|
33
|
+
typeOverlay: SpxInputTypeEnum;
|
|
34
|
+
typeOverlayNumber: SpxInputTypeEnum;
|
|
35
|
+
setAutofocus(key: string): void;
|
|
36
|
+
onBlur(field: SpxFormFieldI): void;
|
|
37
|
+
onClick(field: SpxFormFieldI): void;
|
|
38
|
+
onAutocompleteCancel(): void;
|
|
39
|
+
onAutocompleteSearch(valuePair: SpxValuePair<any>): void;
|
|
40
|
+
onAutocompleteSave(valuePair: SpxValuePair<any>): void;
|
|
41
|
+
onSearch(field: SpxFormFieldI): void;
|
|
42
|
+
getRawValidators(formControl: AbstractControl): any;
|
|
43
|
+
hasRequiredField(abstractControl: AbstractControl): boolean;
|
|
44
|
+
static initialFormValue(sections: SpxFormSectionI[]): any;
|
|
45
|
+
static createForm(formBuilder: FormBuilder, sections: SpxFormSectionI[]): FormGroup;
|
|
46
|
+
constructor(formBuilder: FormBuilder);
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpxFormViewComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpxFormViewComponent, "spx-form-view", never, { "spxFormGroup": { "alias": "spxFormGroup"; "required": true; "isSignal": true; }; "spxForm": { "alias": "spxForm"; "required": true; "isSignal": true; }; "spxSuggestions": { "alias": "spxSuggestions"; "required": true; "isSignal": true; }; }, { "spxBlur": "spxBlur"; "spxClick": "spxClick"; "spxSearch": "spxSearch"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const calcCheckDigit: (container: string) => string;
|
package/spx-helpers/index.d.ts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
success = "success",
|
|
7
|
-
unknown = "unknown",
|
|
8
|
-
warning = "warning",
|
|
9
|
-
primary = "primary"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare function unsubscribeSubscriptions(subscriptionObject: object): void;
|
|
13
|
-
|
|
14
|
-
declare const valuePairToValue: (pair: any) => any;
|
|
15
|
-
|
|
16
|
-
interface SpxInputAlertI {
|
|
17
|
-
text: string;
|
|
18
|
-
severity: SpxSeverityEnum;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { SpxSeverityEnum, calcCheckDigit, unsubscribeSubscriptions, valuePairToValue };
|
|
22
|
-
export type { SpxInputAlertI };
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@softpak/components/spx-helpers" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function unsubscribeSubscriptions(subscriptionObject: object): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const valuePairToValue: (pair: any) => any;
|