Skip to content

Commit

Permalink
Compile JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Aug 25, 2024
1 parent 090e9c4 commit d1ecaa4
Show file tree
Hide file tree
Showing 20 changed files with 1,755 additions and 1,648 deletions.
555 changes: 286 additions & 269 deletions public/assets/scripts/choices.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/scripts/choices.min.js

Large diffs are not rendered by default.

555 changes: 286 additions & 269 deletions public/assets/scripts/choices.mjs

Large diffs are not rendered by default.

555 changes: 286 additions & 269 deletions public/assets/scripts/choices.search-basic.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/scripts/choices.search-basic.min.js

Large diffs are not rendered by default.

555 changes: 286 additions & 269 deletions public/assets/scripts/choices.search-basic.mjs

Large diffs are not rendered by default.

559 changes: 288 additions & 271 deletions public/assets/scripts/choices.search-prefix.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/scripts/choices.search-prefix.min.js

Large diffs are not rendered by default.

559 changes: 288 additions & 271 deletions public/assets/scripts/choices.search-prefix.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/assets/styles/choices.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
}

.choices__list--dropdown, .choices__list[aria-expanded] {
visibility: hidden;
display: none;
z-index: 1;
position: absolute;
width: 100%;
Expand All @@ -212,7 +212,7 @@
will-change: visibility;
}
.is-active.choices__list--dropdown, .is-active.choices__list[aria-expanded] {
visibility: visible;
display: block;
}
.is-open .choices__list--dropdown, .is-open .choices__list[aria-expanded] {
border-color: #b7b7b7;
Expand Down
2 changes: 1 addition & 1 deletion public/assets/styles/choices.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions public/types/src/scripts/choices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare class Choices {
_isSelectElement: boolean;
_hasNonChoicePlaceholder: boolean;
_canAddUserChoices: boolean;
_store: Store;
_store: Store<Options>;
_templates: Templates;
_lastAddedChoiceId: number;
_lastAddedGroupId: number;
Expand Down Expand Up @@ -152,9 +152,6 @@ declare class Choices {
_render(changes?: StateChangeSet): void;
_renderChoices(): void;
_renderItems(): void;
_createGroupsFragment(groups: GroupFull[], choices: ChoiceFull[], fragment?: DocumentFragment): DocumentFragment;
_createChoicesFragment(choices: ChoiceFull[], fragment?: DocumentFragment, withinGroup?: boolean): DocumentFragment;
_createItemsFragment(items: InputChoice[], fragment?: DocumentFragment): DocumentFragment;
_displayNotice(text: string, type: NoticeType, openDropdown?: boolean): void;
_clearNotice(): void;
_renderNotice(): void;
Expand Down
4 changes: 2 additions & 2 deletions public/types/src/scripts/components/wrapped-element.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ClassNames } from '../interfaces/class-names';
import { EventType } from '../interfaces/event-type';
import { EventTypes } from '../interfaces/event-type';
import { EventMap } from '../interfaces';
export default class WrappedElement<T extends HTMLInputElement | HTMLSelectElement> {
element: T;
Expand All @@ -17,5 +17,5 @@ export default class WrappedElement<T extends HTMLInputElement | HTMLSelectEleme
reveal(): void;
enable(): void;
disable(): void;
triggerEvent<K extends EventType>(eventType: EventType, data?: EventMap[K]['detail']): void;
triggerEvent<K extends EventTypes>(eventType: EventTypes, data?: EventMap[K]['detail']): void;
}
2 changes: 2 additions & 0 deletions public/types/src/scripts/interfaces/choice-full.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export interface ChoiceFull {
id: number;
highlighted: boolean;
element?: HTMLOptionElement | HTMLOptGroupElement;
itemEl?: HTMLElement;
choiceEl?: HTMLElement;
labelClass?: Array<string>;
labelDescription?: string;
customProperties?: CustomProperties;
Expand Down
25 changes: 13 additions & 12 deletions public/types/src/scripts/interfaces/event-type.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
export declare const enum EventType {
showDropdown = "showDropdown",
hideDropdown = "hideDropdown",
change = "change",
choice = "choice",
search = "search",
addItem = "addItem",
removeItem = "removeItem",
highlightItem = "highlightItem",
highlightChoice = "highlightChoice",
unhighlightItem = "unhighlightItem"
}
export declare const EventType: {
readonly showDropdown: "showDropdown";
readonly hideDropdown: "hideDropdown";
readonly change: "change";
readonly choice: "choice";
readonly search: "search";
readonly addItem: "addItem";
readonly removeItem: "removeItem";
readonly highlightItem: "highlightItem";
readonly highlightChoice: "highlightChoice";
readonly unhighlightItem: "unhighlightItem";
};
export type EventTypes = (typeof EventType)[keyof typeof EventType];
3 changes: 2 additions & 1 deletion public/types/src/scripts/interfaces/group-full.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ export interface GroupFull {
id: number;
active: boolean;
disabled: boolean;
label: string;
label?: string;
element?: HTMLOptGroupElement;
groupEl?: HTMLElement;
choices: ChoiceFull[];
}
2 changes: 1 addition & 1 deletion public/types/src/scripts/interfaces/store.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface StateUpdate<T> {
update: boolean;
state: T;
}
export type Reducer<T> = (state: T, action: AnyAction) => StateUpdate<T>;
export type Reducer<T> = (state: T, action: AnyAction, context?: unknown) => StateUpdate<T>;
export type StoreListener = (changes: StateChangeSet) => void;
export interface Store {
dispatch(action: AnyAction): void;
Expand Down
Loading

0 comments on commit d1ecaa4

Please sign in to comment.