@klippa/ngx-enhancy-forms 16.6.2 → 16.7.2

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.
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
+ export type ButtonVariant = 'white' | 'greenFilled' | 'greenOutlined' | 'greenLink' | 'contextMenuItem' | 'redFilled' | 'redOutlined' | 'orangeFilled';
2
3
  export declare class ButtonComponent {
3
- variant: 'white' | 'greenFilled' | 'greenOutlined' | 'greenLink' | 'contextMenuItem' | 'redFilled' | 'redOutlined' | 'orangeFilled';
4
+ variant: ButtonVariant;
4
5
  size: 'small' | 'medium' | 'large';
5
6
  fullWidth: boolean;
6
7
  hasBorder: boolean;
@@ -61,6 +61,7 @@ export declare class SelectComponent extends ValueAccessorBase<string | string[]
61
61
  private determineDropdownPosition;
62
62
  private isLimitingContainer;
63
63
  focus: () => void;
64
+ close: () => void;
64
65
  onClose(): void;
65
66
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, { optional: true; }, null]>;
66
67
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "klp-form-select", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "multipleDisplayedAsAmount": { "alias": "multipleDisplayedAsAmount"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "truncateOptions": { "alias": "truncateOptions"; "required": false; }; "withSeparatingLine": { "alias": "withSeparatingLine"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "customSearchFn": { "alias": "customSearchFn"; "required": false; }; "footerElement": { "alias": "footerElement"; "required": false; }; }, { "onSearch": "onSearch"; "onEndReached": "onEndReached"; "onOpened": "onOpened"; "onClosed": "onClosed"; "onBlur": "onBlur"; "onClear": "onClear"; }, ["customOptionTpl"], never, false, never>;
@@ -42,6 +42,6 @@ export declare class FormElementComponent {
42
42
  isRequired(): boolean;
43
43
  getErrorMessage(key: keyof FormErrorMessages): string;
44
44
  getErrorLocation(): 'belowCaption' | 'rightOfCaption';
45
- static ɵfac: i0.ɵɵFactoryDeclaration<FormElementComponent, [{ optional: true; host: true; }, { optional: true; }]>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormElementComponent, [{ optional: true; }, { optional: true; }]>;
46
46
  static ɵcmp: i0.ɵɵComponentDeclaration<FormElementComponent, "klp-form-element", never, { "caption": { "alias": "caption"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "captionSpacing": { "alias": "captionSpacing"; "required": false; }; "spaceDistribution": { "alias": "spaceDistribution"; "required": false; }; "swapInputAndCaption": { "alias": "swapInputAndCaption"; "required": false; }; }, {}, never, ["*"], false, never>;
47
47
  }
@@ -1,10 +1,12 @@
1
1
  import { FormComponent } from '../form.component';
2
+ import { ButtonVariant } from '../../elements/button/button.component';
2
3
  import * as i0 from "@angular/core";
4
+ export type SubmitButtonVariant = Extract<ButtonVariant, 'greenFilled' | 'redFilled' | 'greenOutlined' | 'white'>;
3
5
  export declare class FormSubmitButtonComponent {
4
6
  private parentForm;
5
7
  isLoading: boolean;
6
8
  fullWidth: boolean;
7
- variant: 'greenFilled' | 'redFilled' | 'greenOutlined';
9
+ variant: SubmitButtonVariant;
8
10
  before: () => Promise<any>;
9
11
  after: () => Promise<any>;
10
12
  submitCallback: (renderedAndEnabledValues: object, renderedButDisabledValues: object) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klippa/ngx-enhancy-forms",
3
- "version": "16.6.2",
3
+ "version": "16.7.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },