Skip to content

Commit

Permalink
Split Templates into interface and implementation & resolve dependenc…
Browse files Browse the repository at this point in the history
…y cycles.
  • Loading branch information
Xon committed Aug 6, 2024
1 parent 84a61ca commit e873925
Show file tree
Hide file tree
Showing 33 changed files with 202 additions and 82 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion public/assets/scripts/choices.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! choices.js v11.0.0 RC3 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v11.0.0RC3 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down
2 changes: 1 addition & 1 deletion public/assets/scripts/choices.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/*! choices.js v11.0.0 RC3 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v11.0.0RC3 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
6 changes: 3 additions & 3 deletions public/types/src/scripts/choices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { Notice } from './interfaces/notice';
import { Options } from './interfaces/options';
import { State } from './interfaces/state';
import Store from './store/store';
import templates from './templates';
import { ChoiceFull } from './interfaces/choice-full';
import { GroupFull } from './interfaces/group-full';
import { PassedElementType } from './interfaces';
import { Choices as ChoicesInterface } from './interfaces/choices';
import { EventChoice } from './interfaces/event-choice';
import { Templates } from './interfaces/templates';
/**
* Choices
* @author Josh Johnson<[email protected]>
Expand All @@ -19,7 +19,7 @@ declare class Choices implements ChoicesInterface {
static get defaults(): {
options: Partial<Options>;
allOptions: Options;
templates: typeof templates;
templates: Templates;
};
initialised: boolean;
config: Options;
Expand All @@ -38,7 +38,7 @@ declare class Choices implements ChoicesInterface {
_hasNonChoicePlaceholder: boolean;
_canAddUserChoices: boolean;
_store: Store;
_templates: typeof templates;
_templates: Templates;
_initialState: State;
_currentState: State;
_prevState: State;
Expand Down
2 changes: 1 addition & 1 deletion public/types/src/scripts/choices.d.ts.map

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

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

2 changes: 1 addition & 1 deletion public/types/src/scripts/components/wrapped-input.d.ts.map

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

2 changes: 1 addition & 1 deletion public/types/src/scripts/interfaces/choice-full.d.ts.map

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

4 changes: 2 additions & 2 deletions public/types/src/scripts/interfaces/choices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { WrappedInput, WrappedSelect, Container, List, Input, Dropdown } from '.
import { Store } from './store';
import { InputChoice } from './input-choice';
import { State } from './state';
import templates from '../templates';
import { Templates } from './templates';
import { Options } from './options';
import { ChoiceFull } from './choice-full';
import { GroupFull } from './group-full';
Expand All @@ -21,7 +21,7 @@ export interface Choices {
_isSelectMultipleElement: boolean;
_isSelectElement: boolean;
_store: Store;
_templates: typeof templates;
_templates: Templates;
_initialState: State;
_currentState: State;
_prevState: State;
Expand Down
Loading

0 comments on commit e873925

Please sign in to comment.