@apipass/inputs 1.0.132 → 1.0.133

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,4 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { DndDropEvent } from 'ngx-drag-drop';
2
3
  import * as i0 from "@angular/core";
3
4
  export interface InputKeyValueType {
4
5
  [key: string]: any;
@@ -6,6 +7,18 @@ export interface InputKeyValueType {
6
7
  value?: string;
7
8
  type?: string;
8
9
  }
10
+ export interface KeyDropEvent {
11
+ index: number;
12
+ model: InputKeyValueType;
13
+ keyField: string;
14
+ event: DndDropEvent;
15
+ }
16
+ export interface ValueDropEvent {
17
+ index: number;
18
+ model: InputKeyValueType;
19
+ valueField: string;
20
+ event: DndDropEvent;
21
+ }
9
22
  export declare class InputKeyValueComponent implements OnInit {
10
23
  private initialized;
11
24
  private _model;
@@ -19,6 +32,8 @@ export declare class InputKeyValueComponent implements OnInit {
19
32
  widthPercentageInputOptions: number;
20
33
  inputOptionsInitSelected: string;
21
34
  inputOptions: any[];
35
+ onKeyDropEvent: EventEmitter<KeyDropEvent>;
36
+ onValueDropEvent: EventEmitter<ValueDropEvent>;
22
37
  set model(model: InputKeyValueType[]);
23
38
  get model(): InputKeyValueType[];
24
39
  private initializeModel;
@@ -28,6 +43,8 @@ export declare class InputKeyValueComponent implements OnInit {
28
43
  onChangeValues(last: boolean): void;
29
44
  removeItem(index: number): void;
30
45
  inputOptionChanged(event: string, index: number): void;
46
+ onKeyDrop(index: number, model: InputKeyValueType, $event: DndDropEvent): void;
47
+ onValueDrop(index: number, model: InputKeyValueType, $event: DndDropEvent): void;
31
48
  static ɵfac: i0.ɵɵFactoryDeclaration<InputKeyValueComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<InputKeyValueComponent, "input-key-value", never, { "size": { "alias": "size"; "required": false; }; "keyField": { "alias": "keyField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "removeLabel": { "alias": "removeLabel"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "modelChange": "modelChange"; }, never, never, false, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputKeyValueComponent, "input-key-value", never, { "size": { "alias": "size"; "required": false; }; "keyField": { "alias": "keyField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "removeLabel": { "alias": "removeLabel"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, { "onKeyDropEvent": "onKeyDropEvent"; "onValueDropEvent": "onValueDropEvent"; "modelChange": "modelChange"; }, never, never, false, never>;
33
50
  }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { ValueAccessorBase } from '../value-acessor-base';
3
+ import { DndDropEvent } from 'ngx-drag-drop';
3
4
  import * as i0 from "@angular/core";
4
5
  export interface InputOptionsType {
5
6
  value: string;
@@ -24,6 +25,7 @@ export declare class InputTextComponent extends ValueAccessorBase<string> {
24
25
  prefixIconClick: EventEmitter<boolean>;
25
26
  onDebounce: EventEmitter<string>;
26
27
  optionChanged: EventEmitter<string>;
28
+ onDropEvent: EventEmitter<DndDropEvent>;
27
29
  private readonly searchTerms;
28
30
  ngOnInit(): void;
29
31
  onSearchInput(): void;
@@ -35,6 +37,7 @@ export declare class InputTextComponent extends ValueAccessorBase<string> {
35
37
  widthInput(): number;
36
38
  onOptionSelected(event: any): void;
37
39
  getSelectWidth(): string;
40
+ onDrop($event: DndDropEvent): void;
38
41
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "input-text", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconSuffix": { "alias": "iconSuffix"; "required": false; }; "iconPrefix": { "alias": "iconPrefix"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "size": { "alias": "size"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; }, { "suffixIconClick": "suffixIconClick"; "prefixIconClick": "prefixIconClick"; "onDebounce": "onDebounce"; "optionChanged": "optionChanged"; }, never, never, false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "input-text", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconSuffix": { "alias": "iconSuffix"; "required": false; }; "iconPrefix": { "alias": "iconPrefix"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "size": { "alias": "size"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "widthPercentageInputOptions": { "alias": "widthPercentageInputOptions"; "required": false; }; "inputOptions": { "alias": "inputOptions"; "required": false; }; "inputOptionsInitSelected": { "alias": "inputOptionsInitSelected"; "required": false; }; }, { "suffixIconClick": "suffixIconClick"; "prefixIconClick": "prefixIconClick"; "onDebounce": "onDebounce"; "optionChanged": "optionChanged"; "onDropEvent": "onDropEvent"; }, never, never, false, never>;
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/inputs",
3
- "version": "1.0.132",
3
+ "version": "1.0.133",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "16.0.2",
6
6
  "@angular/cdk": "16.0.1",