@theseam/ui-common 0.4.12 → 0.4.14
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.
- package/buttons/public-api.d.ts +1 -0
- package/buttons/testing/anchor-badge-button.harness.d.ts +16 -0
- package/buttons/testing/anchor-button.harness.d.ts +16 -0
- package/buttons/testing/badge-button.harness.d.ts +15 -0
- package/buttons/testing/base-badge-button.harness.d.ts +15 -0
- package/buttons/testing/base-button.harness.d.ts +19 -0
- package/buttons/testing/button.harness.d.ts +15 -0
- package/buttons/testing/index.d.ts +5 -0
- package/buttons/testing/toggle-button.harness.d.ts +21 -0
- package/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox.module.d.ts +2 -3
- package/datatable/datatable.module.d.ts +1 -1
- package/esm2020/buttons/button/button.component.mjs +2 -1
- package/esm2020/buttons/public-api.mjs +2 -1
- package/esm2020/buttons/testing/anchor-badge-button.harness.mjs +18 -0
- package/esm2020/buttons/testing/anchor-button.harness.mjs +18 -0
- package/esm2020/buttons/testing/badge-button.harness.mjs +14 -0
- package/esm2020/buttons/testing/base-badge-button.harness.mjs +29 -0
- package/esm2020/buttons/testing/base-button.harness.mjs +41 -0
- package/esm2020/buttons/testing/button.harness.mjs +16 -0
- package/esm2020/buttons/testing/index.mjs +6 -0
- package/esm2020/buttons/testing/toggle-button.harness.mjs +25 -0
- package/esm2020/checkbox/checkbox.component.mjs +8 -3
- package/esm2020/checkbox/checkbox.module.mjs +5 -12
- package/esm2020/datatable/datatable.module.mjs +5 -5
- package/esm2020/form-field/form-field.component.mjs +4 -4
- package/esm2020/framework/schema-form/index.mjs +2 -1
- package/esm2020/framework/schema-form/schema-form-framework.component.mjs +6 -3
- package/esm2020/framework/schema-form/schema-form-framework.mjs +62 -7
- package/esm2020/framework/schema-form/schema-form-widget.mjs +2 -0
- package/esm2020/framework/schema-form/schema-form.module.mjs +1 -8
- package/esm2020/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.mjs +21 -11
- package/esm2020/framework/schema-form-controls/schema-form-divider/schema-form-divider.component.mjs +20 -0
- package/esm2020/framework/schema-form-controls/schema-form-input/schema-form-input.component.mjs +17 -8
- package/esm2020/framework/schema-form-controls/schema-form-number/schema-form-number.component.mjs +14 -5
- package/esm2020/framework/schema-form-controls/schema-form-select/schema-form-select.component.mjs +19 -9
- package/esm2020/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.mjs +21 -13
- package/esm2020/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.mjs +30 -18
- package/esm2020/framework/schema-form-controls/schema-form-tel/schema-form-tel.component.mjs +48 -0
- package/esm2020/framework/schema-form-controls/schema-form-tiled-select/schema-form-tiled-select.component.mjs +57 -0
- package/esm2020/google-maps/google-maps-places-autocomplete/google-maps-places-autocomplete.component.mjs +3 -3
- package/esm2020/menu/menu-item.component.mjs +3 -3
- package/esm2020/menu/public-api.mjs +5 -1
- package/esm2020/menu/testing/menu-footer.harness.mjs +28 -0
- package/esm2020/menu/testing/menu-header.harness.mjs +23 -0
- package/esm2020/menu/testing/menu-item.harness.mjs +59 -0
- package/esm2020/menu/testing/menu.harness.mjs +163 -0
- package/esm2020/menu/testing/utils.mjs +13 -0
- package/esm2020/services/preferences/preferences-accessor.mjs +1 -1
- package/esm2020/services/preferences/preferences-manager.service.mjs +1 -1
- package/esm2020/services/preferences/preferences-record.mjs +1 -1
- package/esm2020/services/preferences/preferences.models.mjs +1 -1
- package/esm2020/story-helpers/args-to-tpl.mjs +83 -0
- package/esm2020/story-helpers/public-api.mjs +2 -2
- package/esm2020/story-helpers/story-preferences-accessor.service.mjs +1 -1
- package/esm2020/tel-input/public-api.mjs +2 -1
- package/esm2020/tel-input/tel-input/tel-input.component.mjs +22 -10
- package/esm2020/tel-input/tel-input.directive.mjs +12 -13
- package/esm2020/tel-input/tel-input.module.mjs +10 -9
- package/esm2020/tel-input/testing/tel-input.harness.mjs +49 -0
- package/esm2020/testing/harnesses/ng-select-dropdown.harness.mjs +39 -0
- package/esm2020/testing/harnesses/ng-select-option.harness.mjs +26 -0
- package/esm2020/testing/harnesses/ng-select.harness.mjs +104 -0
- package/esm2020/testing/public-api.mjs +4 -1
- package/esm2020/tiled-select/components/tiled-select/tiled-select.component.mjs +1 -1
- package/esm2020/utils/geo-json/coerce-feature-collection.mjs +1 -1
- package/esm2020/utils/geo-json/is-feature-collection.validator.mjs +1 -1
- package/esm2020/utils/geo-json/is-only-geometry-types.mjs +1 -1
- package/esm2020/utils/geo-json/merge-polygons.mjs +1 -1
- package/esm2020/utils/geo-json/no-inner-rings.validator.mjs +1 -1
- package/esm2020/utils/geo-json/split-multi-polygons.mjs +1 -1
- package/esm2020/widget/preferences/widget-preferences.models.mjs +1 -1
- package/esm2020/widget/preferences/widget-preferences.service.mjs +1 -1
- package/esm2020/widget/preferences/widget-preferences.token.mjs +1 -1
- package/esm2020/widget/widget.models.mjs +1 -1
- package/fesm2015/theseam-ui-common-buttons.mjs +181 -3
- package/fesm2015/theseam-ui-common-buttons.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-checkbox.mjs +12 -14
- package/fesm2015/theseam-ui-common-checkbox.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-datatable.mjs +4 -4
- package/fesm2015/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-form-field.mjs +3 -3
- package/fesm2015/theseam-ui-common-form-field.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-framework.mjs +248 -164
- package/fesm2015/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-google-maps.mjs +2 -2
- package/fesm2015/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-menu.mjs +331 -5
- package/fesm2015/theseam-ui-common-menu.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-services.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-story-helpers.mjs +86 -1
- package/fesm2015/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-tel-input.mjs +105 -29
- package/fesm2015/theseam-ui-common-tel-input.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-testing.mjs +197 -1
- package/fesm2015/theseam-ui-common-testing.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-tiled-select.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-utils.mjs.map +1 -1
- package/fesm2015/theseam-ui-common-widget.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-buttons.mjs +154 -2
- package/fesm2020/theseam-ui-common-buttons.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-checkbox.mjs +12 -14
- package/fesm2020/theseam-ui-common-checkbox.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-datatable.mjs +4 -4
- package/fesm2020/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-form-field.mjs +3 -3
- package/fesm2020/theseam-ui-common-form-field.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-framework.mjs +236 -162
- package/fesm2020/theseam-ui-common-framework.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-google-maps.mjs +2 -2
- package/fesm2020/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-menu.mjs +277 -4
- package/fesm2020/theseam-ui-common-menu.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-services.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-story-helpers.mjs +84 -1
- package/fesm2020/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-tel-input.mjs +89 -29
- package/fesm2020/theseam-ui-common-tel-input.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-testing.mjs +165 -1
- package/fesm2020/theseam-ui-common-testing.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-tiled-select.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-utils.mjs.map +1 -1
- package/fesm2020/theseam-ui-common-widget.mjs.map +1 -1
- package/framework/schema-form/index.d.ts +1 -0
- package/framework/schema-form/schema-form-framework.d.ts +12 -1
- package/framework/schema-form/schema-form-widget.d.ts +61 -0
- package/framework/schema-form/schema-form.module.d.ts +1 -2
- package/framework/schema-form-controls/schema-form-checkbox/schema-form-checkbox.component.d.ts +12 -11
- package/framework/schema-form-controls/schema-form-divider/schema-form-divider.component.d.ts +12 -0
- package/framework/schema-form-controls/schema-form-input/schema-form-input.component.d.ts +10 -9
- package/framework/schema-form-controls/schema-form-number/schema-form-number.component.d.ts +8 -7
- package/framework/schema-form-controls/schema-form-select/schema-form-select.component.d.ts +10 -9
- package/framework/schema-form-controls/schema-form-submit/schema-form-submit.component.d.ts +10 -9
- package/framework/schema-form-controls/schema-form-submit-split/schema-form-submit-split.component.d.ts +10 -9
- package/framework/schema-form-controls/schema-form-tel/schema-form-tel.component.d.ts +23 -0
- package/framework/schema-form-controls/schema-form-tiled-select/schema-form-tiled-select.component.d.ts +32 -0
- package/menu/menu-footer-action/menu-footer-action.component.d.ts +1 -1
- package/menu/public-api.d.ts +4 -0
- package/menu/testing/menu-footer.harness.d.ts +22 -0
- package/menu/testing/menu-header.harness.d.ts +18 -0
- package/menu/testing/menu-item.harness.d.ts +37 -0
- package/menu/testing/menu.harness.d.ts +74 -0
- package/menu/testing/utils.d.ts +5 -0
- package/package.json +1 -1
- package/story-helpers/args-to-tpl.d.ts +25 -0
- package/story-helpers/public-api.d.ts +1 -0
- package/tel-input/public-api.d.ts +1 -0
- package/tel-input/tel-input/tel-input.component.d.ts +2 -2
- package/tel-input/tel-input.directive.d.ts +1 -1
- package/tel-input/tel-input.module.d.ts +7 -7
- package/tel-input/testing/tel-input.harness.d.ts +19 -0
- package/testing/harnesses/ng-select-dropdown.harness.d.ts +23 -0
- package/testing/harnesses/ng-select-option.harness.d.ts +18 -0
- package/testing/harnesses/ng-select.harness.d.ts +50 -0
- package/testing/public-api.d.ts +3 -0
- package/tiled-select/components/tiled-select/tiled-select.component.d.ts +10 -10
- package/esm2020/framework/schema-form-controls/schema-form-controls.module.mjs +0 -79
- package/framework/schema-form-controls/schema-form-controls.module.d.ts +0 -20
|
@@ -39,7 +39,7 @@ export declare class TheSeamTelInputComponent implements OnInit, OnDestroy, Cont
|
|
|
39
39
|
/** The value attribute of the native input element */
|
|
40
40
|
value: string | undefined | null;
|
|
41
41
|
/** Event emitted when the "tel" input value changes. */
|
|
42
|
-
readonly change: EventEmitter<string>;
|
|
42
|
+
readonly change: EventEmitter<string | null | undefined>;
|
|
43
43
|
/**
|
|
44
44
|
* The telInput directive
|
|
45
45
|
* @ignore
|
|
@@ -82,5 +82,5 @@ export declare class TheSeamTelInputComponent implements OnInit, OnDestroy, Cont
|
|
|
82
82
|
blur(): void;
|
|
83
83
|
hasFocus(): boolean;
|
|
84
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamTelInputComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TheSeamTelInputComponent, "seam-tel-input", never, { "required": "required"; "disabled": "disabled"; "tabIndex": "tabIndex"; "name": "name"; "value": "value"; }, { "change": "change"; }, never, never,
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheSeamTelInputComponent, "seam-tel-input", never, { "required": "required"; "disabled": "disabled"; "tabIndex": "tabIndex"; "name": "name"; "value": "value"; }, { "change": "change"; }, never, never, true, never>;
|
|
86
86
|
}
|
|
@@ -31,5 +31,5 @@ export declare class TheSeamTelInputDirective implements OnInit, OnDestroy, DoCh
|
|
|
31
31
|
blur(): void;
|
|
32
32
|
getHostElement(): HTMLInputElement;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamTelInputDirective, [null, null, null, { optional: true; }, { optional: true; self: true; }]>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TheSeamTelInputDirective, "input[seamTelInput]", ["seamTelInput"], { "value": "value"; }, {}, never, never,
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TheSeamTelInputDirective, "input[seamTelInput]", ["seamTelInput"], { "value": "value"; }, {}, never, never, true, never>;
|
|
35
35
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
2
|
+
import * as i1 from "./phone-number.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@theseam/ui-common/form-field";
|
|
6
|
+
import * as i5 from "./tel-input.directive";
|
|
7
|
+
import * as i6 from "./tel-input/tel-input.component";
|
|
8
8
|
export declare class TheSeamTelInputModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamTelInputModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TheSeamTelInputModule, [typeof i1.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TheSeamTelInputModule, [typeof i1.TheSeamPhoneNumberPipe], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.TheSeamFormFieldModule, typeof i5.TheSeamTelInputDirective, typeof i6.TheSeamTelInputComponent], [typeof i5.TheSeamTelInputDirective, typeof i6.TheSeamTelInputComponent, typeof i1.TheSeamPhoneNumberPipe]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<TheSeamTelInputModule>;
|
|
12
12
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
interface TheSeamTelInputHarnessFilters extends BaseHarnessFilters {
|
|
3
|
+
/** Filters based on the name of the field. */
|
|
4
|
+
name?: string | RegExp;
|
|
5
|
+
}
|
|
6
|
+
export declare class TheSeamTelInputHarness extends ComponentHarness {
|
|
7
|
+
static hostSelector: string;
|
|
8
|
+
private readonly _input;
|
|
9
|
+
/** Creates a `HarnessPredicate` used to locate a particular `TheSeamTelInputHarness`. */
|
|
10
|
+
static with(options: TheSeamTelInputHarnessFilters): HarnessPredicate<TheSeamTelInputHarness>;
|
|
11
|
+
getName(): Promise<string | null>;
|
|
12
|
+
getValue(): Promise<any>;
|
|
13
|
+
isDisabled(): Promise<boolean>;
|
|
14
|
+
isRequired(): Promise<boolean>;
|
|
15
|
+
click(): Promise<void>;
|
|
16
|
+
setValue(value: any): Promise<void>;
|
|
17
|
+
private _waitOnInstance;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { TheSeamNgSelectOptionHarness, TheSeamNgSelectOptionHarnessFilters } from './ng-select-option.harness';
|
|
3
|
+
export interface TheSeamNgSelectDropdownHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
/** Filters based on the name of the field. */
|
|
5
|
+
id?: string | RegExp;
|
|
6
|
+
}
|
|
7
|
+
export declare class TheSeamNgSelectDropdownHarness extends ComponentHarness {
|
|
8
|
+
static hostSelector: string;
|
|
9
|
+
/** Creates a `HarnessPredicate` used to locate a particular `MyMenuHarness`. */
|
|
10
|
+
static with(options: TheSeamNgSelectDropdownHarnessFilters): HarnessPredicate<TheSeamNgSelectDropdownHarness>;
|
|
11
|
+
getId(): Promise<string | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Gets a list of `TheSeamNgSelectOptionHarness` representing the items in the menu.
|
|
14
|
+
* @param filters Optionally filters which menu items are included.
|
|
15
|
+
*/
|
|
16
|
+
getOptions(filters?: Omit<TheSeamNgSelectOptionHarnessFilters, 'ancestor'>): Promise<TheSeamNgSelectOptionHarness[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Clicks an option in the dropdown.
|
|
19
|
+
* @param optionFilter A filter used to represent which option in the dropdown should be clicked. The
|
|
20
|
+
* first matching dropdown option will be clicked.
|
|
21
|
+
*/
|
|
22
|
+
clickOption(optionFilter: Omit<TheSeamNgSelectOptionHarnessFilters, 'ancestor'>): Promise<void>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
export interface TheSeamNgSelectOptionHarnessFilters extends BaseHarnessFilters {
|
|
3
|
+
/** Filters based on the value of the field. */
|
|
4
|
+
value?: string | RegExp;
|
|
5
|
+
}
|
|
6
|
+
export declare class TheSeamNgSelectOptionHarness extends ComponentHarness {
|
|
7
|
+
static hostSelector: string;
|
|
8
|
+
/** Creates a `HarnessPredicate` used to locate a particular `MyMenuHarness`. */
|
|
9
|
+
static with(options: TheSeamNgSelectOptionHarnessFilters): HarnessPredicate<TheSeamNgSelectOptionHarness>;
|
|
10
|
+
/**
|
|
11
|
+
* NOTE: Only works with string values, curently.
|
|
12
|
+
* @returns value of the select option
|
|
13
|
+
*/
|
|
14
|
+
getValue(): Promise<any>;
|
|
15
|
+
/** Whether the ng-select is disabled. */
|
|
16
|
+
isDisabled(): Promise<boolean>;
|
|
17
|
+
click(): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { TheSeamNgSelectOptionHarness, TheSeamNgSelectOptionHarnessFilters } from './ng-select-option.harness';
|
|
3
|
+
export interface TheSeamNgSelectHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
}
|
|
5
|
+
export declare class TheSeamNgSelectHarness extends ComponentHarness {
|
|
6
|
+
private _documentRootLocator;
|
|
7
|
+
static hostSelector: string;
|
|
8
|
+
private readonly _value;
|
|
9
|
+
private readonly _valueLabel;
|
|
10
|
+
/** Creates a `HarnessPredicate` used to locate a particular `MyMenuHarness`. */
|
|
11
|
+
static with(options: TheSeamNgSelectHarnessFilters): HarnessPredicate<TheSeamNgSelectHarness>;
|
|
12
|
+
getId(): Promise<string | null>;
|
|
13
|
+
getAriaControls(): Promise<string | null>;
|
|
14
|
+
getName(): Promise<string | null>;
|
|
15
|
+
/**
|
|
16
|
+
* NOTE: Only works with string values, curently.
|
|
17
|
+
* @returns value of the select
|
|
18
|
+
*/
|
|
19
|
+
getValue(): Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets a list of `TheSeamNgSelectOptionHarness` representing the options in the dropdown.
|
|
22
|
+
*
|
|
23
|
+
* NOTE: Must open the dropdown first. eg. `await ngSelectHarness.click()`
|
|
24
|
+
*
|
|
25
|
+
* @param filters Optionally filters which menu items are included.
|
|
26
|
+
*/
|
|
27
|
+
getOptions(filters?: Omit<TheSeamNgSelectOptionHarnessFilters, 'ancestor'>): Promise<TheSeamNgSelectOptionHarness[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Clicks an option in the dropdown.
|
|
30
|
+
* @param optionFilter A filter used to represent which option in the dropdown should be clicked. The
|
|
31
|
+
* first matching dropdown option will be clicked.
|
|
32
|
+
*/
|
|
33
|
+
clickOption(optionFilter: Omit<TheSeamNgSelectOptionHarnessFilters, 'ancestor'>): Promise<void>;
|
|
34
|
+
/** Whether the ng-select is disabled. */
|
|
35
|
+
isDisabled(): Promise<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the required state of the ng-select.
|
|
38
|
+
*
|
|
39
|
+
* @returns true if the ng-select is required, false if not
|
|
40
|
+
*/
|
|
41
|
+
isRequired(): Promise<boolean>;
|
|
42
|
+
click(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the input element of the checkbox.
|
|
45
|
+
*
|
|
46
|
+
* @returns the input element of the checkbox
|
|
47
|
+
*/
|
|
48
|
+
getInputElement(): Promise<import("@angular/cdk/testing").TestElement>;
|
|
49
|
+
private _getDropdown;
|
|
50
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Platform } from '@angular/cdk/platform';
|
|
|
3
3
|
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, Renderer2 } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
5
|
import { TiledSelectTileOverlayDirective } from './../../directives/tiled-select-tile-overlay.directive';
|
|
6
|
-
import {
|
|
6
|
+
import { TiledSelectItem, TiledSelectLayout } from '../../tiled-select.models';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare const slideEnterAnimation: import("@angular/animations").AnimationReferenceMetadata;
|
|
9
9
|
export declare const TILED_SELECT_VALUE_ACCESSOR: any;
|
|
@@ -20,8 +20,8 @@ export declare class TheSeamTiledSelectComponent implements ControlValueAccessor
|
|
|
20
20
|
static ngAcceptInputType_showSelectedIcon: BooleanInput;
|
|
21
21
|
static ngAcceptInputType_animationsDisabled: BooleanInput;
|
|
22
22
|
layout: TiledSelectLayout;
|
|
23
|
-
get tiles():
|
|
24
|
-
set tiles(value:
|
|
23
|
+
get tiles(): TiledSelectItem[];
|
|
24
|
+
set tiles(value: TiledSelectItem[]);
|
|
25
25
|
private _tiles;
|
|
26
26
|
val: string | string[] | undefined;
|
|
27
27
|
disabled: boolean;
|
|
@@ -42,13 +42,13 @@ export declare class TheSeamTiledSelectComponent implements ControlValueAccessor
|
|
|
42
42
|
registerOnChange(fn: any): void;
|
|
43
43
|
registerOnTouched(fn: any): void;
|
|
44
44
|
setDisabledState(isDisabled: boolean): void;
|
|
45
|
-
onTileSelected(event: MouseEvent, tile:
|
|
46
|
-
isSelected(tile:
|
|
47
|
-
toggleTileSelected(tile:
|
|
48
|
-
selectTile(tile:
|
|
49
|
-
unselectTile(tile:
|
|
50
|
-
getSelectedTiles():
|
|
51
|
-
getOverlayTpl(tile:
|
|
45
|
+
onTileSelected(event: MouseEvent, tile: TiledSelectItem): void;
|
|
46
|
+
isSelected(tile: TiledSelectItem): boolean;
|
|
47
|
+
toggleTileSelected(tile: TiledSelectItem): void;
|
|
48
|
+
selectTile(tile: TiledSelectItem): void;
|
|
49
|
+
unselectTile(tile: TiledSelectItem): void;
|
|
50
|
+
getSelectedTiles(): TiledSelectItem[];
|
|
51
|
+
getOverlayTpl(tile: TiledSelectItem): TiledSelectTileOverlayDirective | undefined;
|
|
52
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamTiledSelectComponent, never>;
|
|
53
53
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheSeamTiledSelectComponent, "seam-tiled-select", never, { "layout": "layout"; "tiles": "tiles"; "val": "value"; "disabled": "disabled"; "multiple": "multiple"; "selectionToggleable": "selectionToggleable"; "tileBackdrop": "tileBackdrop"; "showSelectedIcon": "showSelectedIcon"; "animationsDisabled": "animationsDisabled"; }, { "change": "change"; }, ["overlayTpls"], never, false, never>;
|
|
54
54
|
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { JsonSchemaFormModule } from '@ajsf/core';
|
|
5
|
-
import { NgSelectModule } from '@ng-select/ng-select';
|
|
6
|
-
import { TheSeamButtonsModule } from '@theseam/ui-common/buttons';
|
|
7
|
-
import { TheSeamCheckboxModule } from '@theseam/ui-common/checkbox';
|
|
8
|
-
import { TheSeamFormFieldModule } from '@theseam/ui-common/form-field';
|
|
9
|
-
import { TheSeamMenuModule } from '@theseam/ui-common/menu';
|
|
10
|
-
import { TheSeamSchemaFormCheckboxComponent } from './schema-form-checkbox/schema-form-checkbox.component';
|
|
11
|
-
import { TheSeamSchemaFormInputComponent } from './schema-form-input/schema-form-input.component';
|
|
12
|
-
import { TheSeamSchemaFormNumberComponent } from './schema-form-number/schema-form-number.component';
|
|
13
|
-
import { TheSeamSchemaFormSelectComponent } from './schema-form-select/schema-form-select.component';
|
|
14
|
-
import { TheSeamSchemaFormSubmitSplitComponent } from './schema-form-submit-split/schema-form-submit-split.component';
|
|
15
|
-
import { TheSeamSchemaFormSubmitComponent } from './schema-form-submit/schema-form-submit.component';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
const controls = [
|
|
18
|
-
TheSeamSchemaFormCheckboxComponent,
|
|
19
|
-
TheSeamSchemaFormSubmitComponent,
|
|
20
|
-
TheSeamSchemaFormSelectComponent,
|
|
21
|
-
TheSeamSchemaFormInputComponent,
|
|
22
|
-
TheSeamSchemaFormNumberComponent,
|
|
23
|
-
TheSeamSchemaFormSubmitSplitComponent
|
|
24
|
-
];
|
|
25
|
-
export class TheSeamSchemaFormControlsModule {
|
|
26
|
-
}
|
|
27
|
-
TheSeamSchemaFormControlsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TheSeamSchemaFormControlsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
28
|
-
TheSeamSchemaFormControlsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.7", ngImport: i0, type: TheSeamSchemaFormControlsModule, declarations: [TheSeamSchemaFormCheckboxComponent,
|
|
29
|
-
TheSeamSchemaFormSubmitComponent,
|
|
30
|
-
TheSeamSchemaFormSelectComponent,
|
|
31
|
-
TheSeamSchemaFormInputComponent,
|
|
32
|
-
TheSeamSchemaFormNumberComponent,
|
|
33
|
-
TheSeamSchemaFormSubmitSplitComponent], imports: [CommonModule,
|
|
34
|
-
ReactiveFormsModule,
|
|
35
|
-
JsonSchemaFormModule,
|
|
36
|
-
TheSeamFormFieldModule,
|
|
37
|
-
TheSeamCheckboxModule,
|
|
38
|
-
TheSeamMenuModule,
|
|
39
|
-
TheSeamButtonsModule,
|
|
40
|
-
NgSelectModule], exports: [TheSeamSchemaFormCheckboxComponent,
|
|
41
|
-
TheSeamSchemaFormSubmitComponent,
|
|
42
|
-
TheSeamSchemaFormSelectComponent,
|
|
43
|
-
TheSeamSchemaFormInputComponent,
|
|
44
|
-
TheSeamSchemaFormNumberComponent,
|
|
45
|
-
TheSeamSchemaFormSubmitSplitComponent, JsonSchemaFormModule] });
|
|
46
|
-
TheSeamSchemaFormControlsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TheSeamSchemaFormControlsModule, imports: [CommonModule,
|
|
47
|
-
ReactiveFormsModule,
|
|
48
|
-
JsonSchemaFormModule,
|
|
49
|
-
TheSeamFormFieldModule,
|
|
50
|
-
TheSeamCheckboxModule,
|
|
51
|
-
TheSeamMenuModule,
|
|
52
|
-
TheSeamButtonsModule,
|
|
53
|
-
NgSelectModule, JsonSchemaFormModule] });
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: TheSeamSchemaFormControlsModule, decorators: [{
|
|
55
|
-
type: NgModule,
|
|
56
|
-
args: [{
|
|
57
|
-
declarations: [
|
|
58
|
-
...controls
|
|
59
|
-
],
|
|
60
|
-
imports: [
|
|
61
|
-
CommonModule,
|
|
62
|
-
ReactiveFormsModule,
|
|
63
|
-
JsonSchemaFormModule,
|
|
64
|
-
TheSeamFormFieldModule,
|
|
65
|
-
TheSeamCheckboxModule,
|
|
66
|
-
TheSeamMenuModule,
|
|
67
|
-
TheSeamButtonsModule,
|
|
68
|
-
NgSelectModule
|
|
69
|
-
],
|
|
70
|
-
exports: [
|
|
71
|
-
...controls,
|
|
72
|
-
JsonSchemaFormModule
|
|
73
|
-
],
|
|
74
|
-
entryComponents: [
|
|
75
|
-
...controls
|
|
76
|
-
]
|
|
77
|
-
}]
|
|
78
|
-
}] });
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLWZvcm0tY29udHJvbHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWktY29tbW9u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LFxuICAgIEpzb25TY2hlbWFGb3JtTW9kdWxlLFxuICAgIFRoZVNlYW1Gb3JtRmllbGRNb2R1bGUsXG4gICAgVGhlU2VhbUNoZWNrYm94TW9kdWxlLFxuICAgIFRoZVNlYW1NZW51TW9kdWxlLFxuICAgIFRoZVNlYW1CdXR0b25zTW9kdWxlLFxuICAgIE5nU2VsZWN0TW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICAuLi5jb250cm9scyxcbiAgICBKc29uU2NoZW1hRm9ybU1vZHVsZVxuICBdLFxuICBlbnRyeUNvbXBvbmVudHM6IFtcbiAgICAuLi5jb250cm9sc1xuICBdXG59KVxuZXhwb3J0IGNsYXNzIFRoZVNlYW1TY2hlbWFGb3JtQ29udHJvbHNNb2R1bGUgeyB9XG4iXX0=
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./schema-form-checkbox/schema-form-checkbox.component";
|
|
3
|
-
import * as i2 from "./schema-form-submit/schema-form-submit.component";
|
|
4
|
-
import * as i3 from "./schema-form-select/schema-form-select.component";
|
|
5
|
-
import * as i4 from "./schema-form-input/schema-form-input.component";
|
|
6
|
-
import * as i5 from "./schema-form-number/schema-form-number.component";
|
|
7
|
-
import * as i6 from "./schema-form-submit-split/schema-form-submit-split.component";
|
|
8
|
-
import * as i7 from "@angular/common";
|
|
9
|
-
import * as i8 from "@angular/forms";
|
|
10
|
-
import * as i9 from "@ajsf/core";
|
|
11
|
-
import * as i10 from "@theseam/ui-common/form-field";
|
|
12
|
-
import * as i11 from "@theseam/ui-common/checkbox";
|
|
13
|
-
import * as i12 from "@theseam/ui-common/menu";
|
|
14
|
-
import * as i13 from "@theseam/ui-common/buttons";
|
|
15
|
-
import * as i14 from "@ng-select/ng-select";
|
|
16
|
-
export declare class TheSeamSchemaFormControlsModule {
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TheSeamSchemaFormControlsModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TheSeamSchemaFormControlsModule, [typeof i1.TheSeamSchemaFormCheckboxComponent, typeof i2.TheSeamSchemaFormSubmitComponent, typeof i3.TheSeamSchemaFormSelectComponent, typeof i4.TheSeamSchemaFormInputComponent, typeof i5.TheSeamSchemaFormNumberComponent, typeof i6.TheSeamSchemaFormSubmitSplitComponent], [typeof i7.CommonModule, typeof i8.ReactiveFormsModule, typeof i9.JsonSchemaFormModule, typeof i10.TheSeamFormFieldModule, typeof i11.TheSeamCheckboxModule, typeof i12.TheSeamMenuModule, typeof i13.TheSeamButtonsModule, typeof i14.NgSelectModule], [typeof i1.TheSeamSchemaFormCheckboxComponent, typeof i2.TheSeamSchemaFormSubmitComponent, typeof i3.TheSeamSchemaFormSelectComponent, typeof i4.TheSeamSchemaFormInputComponent, typeof i5.TheSeamSchemaFormNumberComponent, typeof i6.TheSeamSchemaFormSubmitSplitComponent, typeof i9.JsonSchemaFormModule]>;
|
|
19
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TheSeamSchemaFormControlsModule>;
|
|
20
|
-
}
|