Skip to content

Commit d6c9487

Browse files
committed
Reverting irrelevant changes.
1 parent c26d9d9 commit d6c9487

File tree

10 files changed

+28
-2395
lines changed

10 files changed

+28
-2395
lines changed

dist/combobox.d.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export interface IComboBoxOptions {
2424
apiDataPart?: string | null;
2525
apiQuery?: string | null;
2626
apiSearchQuery?: string | null;
27-
apiSearchQueryTransformer?: QueryTransformer | string | null;
2827
apiHeaders?: {};
2928
apiGroupField?: string | null;
3029
outputItemTemplate?: string | null;
@@ -41,12 +40,8 @@ export interface IComboBox {
4140
options?: IComboBoxOptions;
4241
open(): void;
4342
close(): void;
44-
selectedItem(): HTMLElement | null;
45-
selectedValue(): string | null;
46-
selectedAttr(attr: string): string | null;
4743
recalculateDirection(): void;
4844
}
49-
export type QueryTransformer = (query: string) => string;
5045
declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
5146
gap: number;
5247
viewport: string | HTMLElement | null;
@@ -55,7 +50,6 @@ declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComb
5550
apiDataPart: string | null;
5651
apiQuery: string | null;
5752
apiSearchQuery: string | null;
58-
apiSearchQueryTransformer: ((query: string) => string) | null;
5953
apiHeaders: {};
6054
apiGroupField: string | null;
6155
outputItemTemplate: string | null;
@@ -71,7 +65,6 @@ declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComb
7165
private readonly output;
7266
private readonly itemsWrapper;
7367
private items;
74-
private selectedItemElement;
7568
private tabs;
7669
private readonly toggle;
7770
private readonly toggleClose;
@@ -86,7 +79,6 @@ declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComb
8679
isCurrent: boolean;
8780
private animationInProcess;
8881
constructor(el: HTMLElement, options?: IComboBoxOptions, events?: {});
89-
private parseApiQueryTransformer;
9082
private init;
9183
private build;
9284
private setResultAndRender;
@@ -122,13 +114,9 @@ declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComb
122114
private destroyOutputPlaceholder;
123115
private resultItems;
124116
private setValueAndOpen;
125-
private setValueAndClear;
126117
open(val?: string): boolean;
118+
private setValueAndClear;
127119
close(val?: string | null): boolean;
128-
setSearchQueryTransformer(transformer: (query: string) => string): void;
129-
selectedItem(): HTMLElement | null;
130-
selectedValue(): string | null;
131-
selectedAttr(attr: string): string | null;
132120
recalculateDirection(): void;
133121
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSComboBox | ICollectionItem<HSComboBox>;
134122
static autoInit(): void;

dist/index.d.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ export interface IComboBoxOptions {
207207
apiDataPart?: string | null;
208208
apiQuery?: string | null;
209209
apiSearchQuery?: string | null;
210-
apiSearchQueryTransformer?: QueryTransformer | string | null;
211210
apiHeaders?: {};
212211
apiGroupField?: string | null;
213212
outputItemTemplate?: string | null;
@@ -224,12 +223,8 @@ export interface IComboBox {
224223
options?: IComboBoxOptions;
225224
open(): void;
226225
close(): void;
227-
selectedItem(): HTMLElement | null;
228-
selectedValue(): string | null;
229-
selectedAttr(attr: string): string | null;
230226
recalculateDirection(): void;
231227
}
232-
export type QueryTransformer = (query: string) => string;
233228
export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
234229
gap: number;
235230
viewport: string | HTMLElement | null;
@@ -238,7 +233,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
238233
apiDataPart: string | null;
239234
apiQuery: string | null;
240235
apiSearchQuery: string | null;
241-
apiSearchQueryTransformer: ((query: string) => string) | null;
242236
apiHeaders: {};
243237
apiGroupField: string | null;
244238
outputItemTemplate: string | null;
@@ -254,7 +248,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
254248
private readonly output;
255249
private readonly itemsWrapper;
256250
private items;
257-
private selectedItemElement;
258251
private tabs;
259252
private readonly toggle;
260253
private readonly toggleClose;
@@ -269,7 +262,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
269262
isCurrent: boolean;
270263
private animationInProcess;
271264
constructor(el: HTMLElement, options?: IComboBoxOptions, events?: {});
272-
private parseApiQueryTransformer;
273265
private init;
274266
private build;
275267
private setResultAndRender;
@@ -305,13 +297,9 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
305297
private destroyOutputPlaceholder;
306298
private resultItems;
307299
private setValueAndOpen;
308-
private setValueAndClear;
309300
open(val?: string): boolean;
301+
private setValueAndClear;
310302
close(val?: string | null): boolean;
311-
setSearchQueryTransformer(transformer: (query: string) => string): void;
312-
selectedItem(): HTMLElement | null;
313-
selectedValue(): string | null;
314-
selectedAttr(attr: string): string | null;
315303
recalculateDirection(): void;
316304
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSComboBox | ICollectionItem<HSComboBox>;
317305
static autoInit(): void;

dist/preline.d.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ export interface IComboBoxOptions {
207207
apiDataPart?: string | null;
208208
apiQuery?: string | null;
209209
apiSearchQuery?: string | null;
210-
apiSearchQueryTransformer?: QueryTransformer | string | null;
211210
apiHeaders?: {};
212211
apiGroupField?: string | null;
213212
outputItemTemplate?: string | null;
@@ -224,12 +223,8 @@ export interface IComboBox {
224223
options?: IComboBoxOptions;
225224
open(): void;
226225
close(): void;
227-
selectedItem(): HTMLElement | null;
228-
selectedValue(): string | null;
229-
selectedAttr(attr: string): string | null;
230226
recalculateDirection(): void;
231227
}
232-
export type QueryTransformer = (query: string) => string;
233228
export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
234229
gap: number;
235230
viewport: string | HTMLElement | null;
@@ -238,7 +233,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
238233
apiDataPart: string | null;
239234
apiQuery: string | null;
240235
apiSearchQuery: string | null;
241-
apiSearchQueryTransformer: ((query: string) => string) | null;
242236
apiHeaders: {};
243237
apiGroupField: string | null;
244238
outputItemTemplate: string | null;
@@ -254,7 +248,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
254248
private readonly output;
255249
private readonly itemsWrapper;
256250
private items;
257-
private selectedItemElement;
258251
private tabs;
259252
private readonly toggle;
260253
private readonly toggleClose;
@@ -269,7 +262,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
269262
isCurrent: boolean;
270263
private animationInProcess;
271264
constructor(el: HTMLElement, options?: IComboBoxOptions, events?: {});
272-
private parseApiQueryTransformer;
273265
private init;
274266
private build;
275267
private setResultAndRender;
@@ -305,13 +297,9 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
305297
private destroyOutputPlaceholder;
306298
private resultItems;
307299
private setValueAndOpen;
308-
private setValueAndClear;
309300
open(val?: string): boolean;
301+
private setValueAndClear;
310302
close(val?: string | null): boolean;
311-
setSearchQueryTransformer(transformer: (query: string) => string): void;
312-
selectedItem(): HTMLElement | null;
313-
selectedValue(): string | null;
314-
selectedAttr(attr: string): string | null;
315303
recalculateDirection(): void;
316304
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSComboBox | ICollectionItem<HSComboBox>;
317305
static autoInit(): void;

dts-config.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,6 @@ const config = {
1717
outFile: './dist/index.d.ts',
1818
output: outputConfig,
1919
},
20-
{
21-
filePath: './src/index.ts',
22-
outFile: './dist/preline.d.ts',
23-
output: outputConfig,
24-
},
25-
{
26-
filePath: './src/index.ts',
27-
outFile: './preline.d.ts',
28-
output: outputConfig,
29-
},
30-
{
31-
filePath: './src/index.ts',
32-
outFile: './index.d.ts',
33-
output: outputConfig,
34-
},
3520
...fs
3621
.readdirSync(pluginsDir)
3722
.map((pluginName) => writeFile(pluginsDir, pluginName))

index.d.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ export interface IComboBoxOptions {
207207
apiDataPart?: string | null;
208208
apiQuery?: string | null;
209209
apiSearchQuery?: string | null;
210-
apiSearchQueryTransformer?: QueryTransformer | string | null;
211210
apiHeaders?: {};
212211
apiGroupField?: string | null;
213212
outputItemTemplate?: string | null;
@@ -224,12 +223,8 @@ export interface IComboBox {
224223
options?: IComboBoxOptions;
225224
open(): void;
226225
close(): void;
227-
selectedItem(): HTMLElement | null;
228-
selectedValue(): string | null;
229-
selectedAttr(attr: string): string | null;
230226
recalculateDirection(): void;
231227
}
232-
export type QueryTransformer = (query: string) => string;
233228
export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implements IComboBox {
234229
gap: number;
235230
viewport: string | HTMLElement | null;
@@ -238,7 +233,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
238233
apiDataPart: string | null;
239234
apiQuery: string | null;
240235
apiSearchQuery: string | null;
241-
apiSearchQueryTransformer: ((query: string) => string) | null;
242236
apiHeaders: {};
243237
apiGroupField: string | null;
244238
outputItemTemplate: string | null;
@@ -254,7 +248,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
254248
private readonly output;
255249
private readonly itemsWrapper;
256250
private items;
257-
private selectedItemElement;
258251
private tabs;
259252
private readonly toggle;
260253
private readonly toggleClose;
@@ -269,7 +262,6 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
269262
isCurrent: boolean;
270263
private animationInProcess;
271264
constructor(el: HTMLElement, options?: IComboBoxOptions, events?: {});
272-
private parseApiQueryTransformer;
273265
private init;
274266
private build;
275267
private setResultAndRender;
@@ -305,13 +297,9 @@ export declare class HSComboBox extends HSBasePlugin<IComboBoxOptions> implement
305297
private destroyOutputPlaceholder;
306298
private resultItems;
307299
private setValueAndOpen;
308-
private setValueAndClear;
309300
open(val?: string): boolean;
301+
private setValueAndClear;
310302
close(val?: string | null): boolean;
311-
setSearchQueryTransformer(transformer: (query: string) => string): void;
312-
selectedItem(): HTMLElement | null;
313-
selectedValue(): string | null;
314-
selectedAttr(attr: string): string | null;
315303
recalculateDirection(): void;
316304
static getInstance(target: HTMLElement | string, isInstance?: boolean): HSComboBox | ICollectionItem<HSComboBox>;
317305
static autoInit(): void;

package.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,41 +40,31 @@
4040
"access": "public"
4141
},
4242
"scripts": {
43-
"watch:all": "concurrently \"pnpm run watch\" \"pnpm run watch:dts\" \"pnpm run watch:mjs\" \"pnpm run copyjs:watch\"",
44-
"copyjs": "cp dist/index.js dist/preline.js && cp dist/index.js preline.js && cp dist/index.js index.js",
45-
"copyjs:watch": "pnpm exec chokidar './dist/index.js' -c 'pnpm run copyjs'",
4643
"watch": "webpack --config webpack.config.js --watch",
4744
"watch:mjs": "webpack --config webpack.config.mjs.js --watch",
48-
"watch:dts": "pnpm exec chokidar './src/**/*.ts' -c 'pnpm run generate-dts'",
4945
"build": "webpack --config webpack.config.js",
5046
"build:mjs": "webpack --config webpack.config.mjs.js",
5147
"pretty": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\"",
5248
"generate-dts": "dts-bundle-generator --config dts-config.js"
5349
},
54-
"dependencies": {
55-
"@popperjs/core": "^2.11.8"
56-
},
5750
"devDependencies": {
51+
"@types/clipboard": "^2.0.7",
52+
"@types/datatables.net": "^1.12.0",
5853
"@types/dropzone": "^5.7.8",
5954
"@types/jquery": "^3.5.30",
6055
"@types/lodash": "^4.17.6",
56+
"@types/nouislider": "^15.0.0",
6157
"@types/prismjs": "^1.26.4",
6258
"@types/vinyl": "^2.0.12",
63-
"apexcharts": "^3.54.0",
64-
"chokidar-cli": "^3.0.0",
65-
"clipboard": "^2.0.11",
66-
"concurrently": "^9.0.1",
67-
"datatables.net": "^2.1.8",
68-
"datatables.net-dt": "^2.1.8",
69-
"dropzone": "6.0.0-beta.2",
7059
"dts-bundle-generator": "^9.0.0",
71-
"nouislider": "^15.8.1",
7260
"prettier": "^3.0.0",
7361
"source-map-loader": "^4.0.1",
74-
"tailwindcss": "^3.4.13",
7562
"terser-webpack-plugin": "^5.3.9",
7663
"ts-loader": "^9.5.1",
7764
"typescript": "^5.5.3",
7865
"webpack-cli": "^5.0.1"
66+
},
67+
"dependencies": {
68+
"@popperjs/core": "^2.11.2"
7969
}
8070
}

0 commit comments

Comments
 (0)