Skip to content

Commit

Permalink
Derive all classes from a base controller - base controller adds a `l…
Browse files Browse the repository at this point in the history
…og` method for controllers to use
  • Loading branch information
Sub-Xaero committed Jan 23, 2021
1 parent 306221e commit 47c3305
Show file tree
Hide file tree
Showing 83 changed files with 168 additions and 154 deletions.
4 changes: 2 additions & 2 deletions dist/async_block_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class AsyncBlockController extends Controller {
import { BaseController } from "./base_controller";
export declare class AsyncBlockController extends BaseController {
static targets: string[];
static values: {
endpoint: StringConstructor;
Expand Down
2 changes: 1 addition & 1 deletion dist/async_block_controller.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 dist/auto_submit_form_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class AutoSubmitFormController extends Controller {
import { BaseController } from "./base_controller";
export declare class AutoSubmitFormController extends BaseController {
private boundHandler;
connect(): void;
disconnect(): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/auto_submit_form_controller.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 dist/autosize_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class AutosizeController extends Controller {
import { BaseController } from "./base_controller";
export declare class AutosizeController extends BaseController {
private boundHandler;
connect(): void;
windowResize(): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/autosize_controller.d.ts.map

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

5 changes: 5 additions & 0 deletions dist/base_controller.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Controller } from "stimulus";
export declare class BaseController extends Controller {
log(functionName: string, args?: {}): void;
}
//# sourceMappingURL=base_controller.d.ts.map
1 change: 1 addition & 0 deletions dist/base_controller.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 dist/char_count_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class CharCountController extends Controller {
import { BaseController } from "./base_controller";
export declare class CharCountController extends BaseController {
static targets: string[];
static values: {
min: NumberConstructor;
Expand Down
2 changes: 1 addition & 1 deletion dist/char_count_controller.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 dist/clipboard_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class ClipboardController extends Controller {
import { BaseController } from "./base_controller";
export declare class ClipboardController extends BaseController {
static targets: string[];
static values: {
removeUnused: BooleanConstructor;
Expand Down
2 changes: 1 addition & 1 deletion dist/clipboard_controller.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 dist/confirm_navigation_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class ConfirmNavigationController extends Controller {
import { BaseController } from "./base_controller";
export declare class ConfirmNavigationController extends BaseController {
static values: {
message: StringConstructor;
};
Expand Down
2 changes: 1 addition & 1 deletion dist/confirm_navigation_controller.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 dist/debug_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class DebugController extends Controller {
import { BaseController } from "./base_controller";
export declare class DebugController extends BaseController {
static targets: string[];
testTargets: HTMLElement[];
connect(): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/debug_controller.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 dist/detect_dirty_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class DetectDirtyController extends Controller {
import { BaseController } from "./base_controller";
export declare class DetectDirtyController extends BaseController {
initialValue: string | boolean | null;
boundHandler: (event?: Event | undefined) => void;
connect(): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/detect_dirty_controller.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 dist/disable_inputs_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class DisableInputsController extends Controller {
import { BaseController } from "./base_controller";
export declare class DisableInputsController extends BaseController {
static targets: string[];
readonly hasDisablerTarget: boolean;
readonly disablerTarget: HTMLInputElement;
Expand Down
2 changes: 1 addition & 1 deletion dist/disable_inputs_controller.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 dist/dismissable_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class DismissableController extends Controller {
import { BaseController } from "./base_controller";
export declare class DismissableController extends BaseController {
dismiss(): void;
}
//# sourceMappingURL=dismissable_controller.d.ts.map
2 changes: 1 addition & 1 deletion dist/dismissable_controller.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 dist/empty_dom_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class EmptyDomController extends Controller {
import { BaseController } from "./base_controller";
export declare class EmptyDomController extends BaseController {
static classes: string[];
static values: {
scopeSelector: StringConstructor;
Expand Down
2 changes: 1 addition & 1 deletion dist/empty_dom_controller.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 dist/enable_inputs_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class EnableInputsController extends Controller {
import { BaseController } from "./base_controller";
export declare class EnableInputsController extends BaseController {
static targets: string[];
readonly hasEnablerTarget: boolean;
readonly enablerTarget: HTMLInputElement;
Expand Down
2 changes: 1 addition & 1 deletion dist/enable_inputs_controller.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 dist/fallback_image_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class FallbackImageController extends Controller {
import { BaseController } from "./base_controller";
export declare class FallbackImageController extends BaseController {
static values: {
placeholder: StringConstructor;
};
Expand Down
2 changes: 1 addition & 1 deletion dist/fallback_image_controller.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 dist/limited_selection_checkboxes_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class LimitedSelectionCheckboxesController extends Controller {
import { BaseController } from "./base_controller";
export declare class LimitedSelectionCheckboxesController extends BaseController {
static targets: string[];
static values: {
max: NumberConstructor;
Expand Down
2 changes: 1 addition & 1 deletion dist/limited_selection_checkboxes_controller.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 dist/password_confirm_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller } from "stimulus";
export declare class PasswordConfirmController extends Controller {
import { BaseController } from "./base_controller";
export declare class PasswordConfirmController extends BaseController {
static targets: string[];
static classes: string[];
readonly passwordTargets: HTMLInputElement[];
Expand Down
2 changes: 1 addition & 1 deletion dist/password_confirm_controller.d.ts.map

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

5 changes: 2 additions & 3 deletions dist/password_peek_controller.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Controller } from "stimulus";
export declare class PasswordPeekController extends Controller {
import { BaseController } from "./base_controller";
export declare class PasswordPeekController extends BaseController {
static targets: string[];
readonly passwordTarget: HTMLInputElement;
connect(): void;
peak(event?: Event): void;
hide(event?: Event): void;
toggle(event?: Event): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/password_peek_controller.d.ts.map

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

Loading

0 comments on commit 47c3305

Please sign in to comment.