@3t-transform/threeteeui 0.2.74 → 0.2.75

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.
@@ -0,0 +1,38 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { SelectItem } from './interfaces';
3
+ export declare class TttxMultiselectBox {
4
+ optionsData: string | SelectItem[];
5
+ label: string;
6
+ inline: boolean;
7
+ placeholder: string;
8
+ searchEnabled: boolean;
9
+ htmlVisibleValue: boolean;
10
+ visibleValue: string;
11
+ open: boolean;
12
+ unsavedSelectedItems: SelectItem[];
13
+ searchTerm: string;
14
+ private _optionsData;
15
+ private bodyOffset;
16
+ el: any;
17
+ selectItemEvent: EventEmitter<SelectItem>;
18
+ toggleOpen: EventEmitter<boolean>;
19
+ changesApplied: EventEmitter<SelectItem[]>;
20
+ handleCloseSelectBox(): void;
21
+ handleBlur(): void;
22
+ /**
23
+ * We want to generally clone instances of optionsData, _optionsData and unsavedSelectedItems
24
+ * This is because they may be assigned from each other, but have different purposes
25
+ * If we don't clone them, changing one may propagate to the others
26
+ * JSON.parse/stringify will deep clone them, so the references of the array elements will also change
27
+ */
28
+ safelyCloneArray(arr: Array<any>): any;
29
+ onDropdownClicked(): void;
30
+ onCancel(): void;
31
+ applyChanges(): void;
32
+ onItemSelected(option: SelectItem): void;
33
+ dropdownSelectorContent(): any;
34
+ dropdownOption(option: SelectItem): any;
35
+ handleSearchInput(event: InputEvent): void;
36
+ calculateDropdownMenuOffset(): void;
37
+ render(): any;
38
+ }
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ parameters: {
5
+ actions: {
6
+ handles: string[];
7
+ };
8
+ };
9
+ decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
10
+ };
11
+ export default _default;
12
+ export declare const BasicMultiselectBox: any;
13
+ export declare const HtmlVisibleValueWrap: any;
14
+ export declare const HtmlVisibleValue: any;
15
+ export declare const DialogBoxWithDropdown: any;
@@ -8,7 +8,8 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { DialogItems } from "./components/molecules/tttx-dialog-box/interfaces";
9
9
  import { FilterChangeEvent, FilterSettings } from "./components/molecules/tttx-filter/tttx-filter";
10
10
  import { ListItem } from "./components/molecules/tttx-list/interfaces";
11
- import { SelectItem } from "./components/molecules/tttx-select-box/interfaces";
11
+ import { SelectItem } from "./components/molecules/tttx-multiselect-box/interfaces";
12
+ import { SelectItem as SelectItem1 } from "./components/molecules/tttx-select-box/interfaces";
12
13
  import { SorterChangeEvent, SorterData } from "./components/molecules/tttx-sorter/interfaces";
13
14
  import { MinMaxDates } from "./components/molecules/tttx-standalone-input/tttx-standalone-input";
14
15
  import { Tab } from "./components/molecules/tttx-tabs/interfaces";
@@ -59,6 +60,15 @@ export namespace Components {
59
60
  "loadingMessage": boolean;
60
61
  "size": 'small' | 'large';
61
62
  }
63
+ interface TttxMultiselectBox {
64
+ "htmlVisibleValue": boolean;
65
+ "inline": boolean;
66
+ "label": string;
67
+ "optionsData": string | SelectItem[];
68
+ "placeholder": string;
69
+ "searchEnabled": boolean;
70
+ "visibleValue": string;
71
+ }
62
72
  interface TttxQrcode {
63
73
  "link": string;
64
74
  "size": number;
@@ -66,7 +76,7 @@ export namespace Components {
66
76
  interface TttxSelectBox {
67
77
  "inline": boolean;
68
78
  "label": string;
69
- "optionsData": string | SelectItem[];
79
+ "optionsData": string | SelectItem1[];
70
80
  "placeholder": string;
71
81
  "searchEnabled": boolean;
72
82
  "selectedValue": string;
@@ -155,6 +165,10 @@ export interface TttxListCustomEvent<T> extends CustomEvent<T> {
155
165
  detail: T;
156
166
  target: HTMLTttxListElement;
157
167
  }
168
+ export interface TttxMultiselectBoxCustomEvent<T> extends CustomEvent<T> {
169
+ detail: T;
170
+ target: HTMLTttxMultiselectBoxElement;
171
+ }
158
172
  export interface TttxSelectBoxCustomEvent<T> extends CustomEvent<T> {
159
173
  detail: T;
160
174
  target: HTMLTttxSelectBoxElement;
@@ -224,6 +238,12 @@ declare global {
224
238
  prototype: HTMLTttxLoadingSpinnerElement;
225
239
  new (): HTMLTttxLoadingSpinnerElement;
226
240
  };
241
+ interface HTMLTttxMultiselectBoxElement extends Components.TttxMultiselectBox, HTMLStencilElement {
242
+ }
243
+ var HTMLTttxMultiselectBoxElement: {
244
+ prototype: HTMLTttxMultiselectBoxElement;
245
+ new (): HTMLTttxMultiselectBoxElement;
246
+ };
227
247
  interface HTMLTttxQrcodeElement extends Components.TttxQrcode, HTMLStencilElement {
228
248
  }
229
249
  var HTMLTttxQrcodeElement: {
@@ -281,6 +301,7 @@ declare global {
281
301
  "tttx-keyvalue-block": HTMLTttxKeyvalueBlockElement;
282
302
  "tttx-list": HTMLTttxListElement;
283
303
  "tttx-loading-spinner": HTMLTttxLoadingSpinnerElement;
304
+ "tttx-multiselect-box": HTMLTttxMultiselectBoxElement;
284
305
  "tttx-qrcode": HTMLTttxQrcodeElement;
285
306
  "tttx-select-box": HTMLTttxSelectBoxElement;
286
307
  "tttx-sorter": HTMLTttxSorterElement;
@@ -344,6 +365,18 @@ declare namespace LocalJSX {
344
365
  "loadingMessage"?: boolean;
345
366
  "size"?: 'small' | 'large';
346
367
  }
368
+ interface TttxMultiselectBox {
369
+ "htmlVisibleValue"?: boolean;
370
+ "inline"?: boolean;
371
+ "label"?: string;
372
+ "onChangesApplied"?: (event: TttxMultiselectBoxCustomEvent<SelectItem[]>) => void;
373
+ "onSelectItemEvent"?: (event: TttxMultiselectBoxCustomEvent<SelectItem>) => void;
374
+ "onToggleOpen"?: (event: TttxMultiselectBoxCustomEvent<boolean>) => void;
375
+ "optionsData"?: string | SelectItem[];
376
+ "placeholder"?: string;
377
+ "searchEnabled"?: boolean;
378
+ "visibleValue"?: string;
379
+ }
347
380
  interface TttxQrcode {
348
381
  "link"?: string;
349
382
  "size"?: number;
@@ -351,9 +384,9 @@ declare namespace LocalJSX {
351
384
  interface TttxSelectBox {
352
385
  "inline"?: boolean;
353
386
  "label"?: string;
354
- "onSelectItemEvent"?: (event: TttxSelectBoxCustomEvent<SelectItem>) => void;
387
+ "onSelectItemEvent"?: (event: TttxSelectBoxCustomEvent<SelectItem1>) => void;
355
388
  "onToggleOpen"?: (event: TttxSelectBoxCustomEvent<boolean>) => void;
356
- "optionsData"?: string | SelectItem[];
389
+ "optionsData"?: string | SelectItem1[];
357
390
  "placeholder"?: string;
358
391
  "searchEnabled"?: boolean;
359
392
  "selectedValue"?: string;
@@ -447,6 +480,7 @@ declare namespace LocalJSX {
447
480
  "tttx-keyvalue-block": TttxKeyvalueBlock;
448
481
  "tttx-list": TttxList;
449
482
  "tttx-loading-spinner": TttxLoadingSpinner;
483
+ "tttx-multiselect-box": TttxMultiselectBox;
450
484
  "tttx-qrcode": TttxQrcode;
451
485
  "tttx-select-box": TttxSelectBox;
452
486
  "tttx-sorter": TttxSorter;
@@ -469,6 +503,7 @@ declare module "@stencil/core" {
469
503
  "tttx-keyvalue-block": LocalJSX.TttxKeyvalueBlock & JSXBase.HTMLAttributes<HTMLTttxKeyvalueBlockElement>;
470
504
  "tttx-list": LocalJSX.TttxList & JSXBase.HTMLAttributes<HTMLTttxListElement>;
471
505
  "tttx-loading-spinner": LocalJSX.TttxLoadingSpinner & JSXBase.HTMLAttributes<HTMLTttxLoadingSpinnerElement>;
506
+ "tttx-multiselect-box": LocalJSX.TttxMultiselectBox & JSXBase.HTMLAttributes<HTMLTttxMultiselectBoxElement>;
472
507
  "tttx-qrcode": LocalJSX.TttxQrcode & JSXBase.HTMLAttributes<HTMLTttxQrcodeElement>;
473
508
  "tttx-select-box": LocalJSX.TttxSelectBox & JSXBase.HTMLAttributes<HTMLTttxSelectBoxElement>;
474
509
  "tttx-sorter": LocalJSX.TttxSorter & JSXBase.HTMLAttributes<HTMLTttxSorterElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.2.74",
3
+ "version": "0.2.75",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",