@depup/angular__material 21.2.3-depup.0 → 21.2.5-depup.0
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/README.md +2 -2
- package/changes.json +1 -1
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +6 -6
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +33 -33
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +9 -9
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +4 -4
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +6 -6
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +7 -7
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +11 -11
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +4 -4
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +6 -6
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +10 -10
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +3 -3
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +4 -4
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +6 -6
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +18 -14
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +21 -21
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +13 -13
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +17 -17
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-testing.mjs.map +1 -1
- package/fesm2022/button-toggle-testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +14 -14
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +20 -20
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -49
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +10 -10
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +63 -63
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs +1 -1
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +25 -25
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +97 -97
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs +3 -3
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +32 -32
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +10 -10
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +34 -34
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field-testing-control.mjs.map +1 -1
- package/fesm2022/form-field-testing.mjs +1 -1
- package/fesm2022/form-field-testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +5 -5
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +29 -29
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +8 -8
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +11 -11
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +8 -8
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +64 -64
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu-testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +27 -27
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +17 -17
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +10 -10
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +10 -10
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +14 -14
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +26 -26
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +33 -36
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +10 -10
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +41 -41
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +30 -30
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +18 -18
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +42 -42
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +60 -60
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +59 -59
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +17 -17
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +15 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +4 -4
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +31 -31
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +4 -4
- package/prebuilt-themes/azure-blue.css +167 -1
- package/prebuilt-themes/cyan-orange.css +167 -1
- package/prebuilt-themes/deeppurple-amber.css +2301 -1
- package/prebuilt-themes/indigo-pink.css +2301 -1
- package/prebuilt-themes/magenta-violet.css +167 -1
- package/prebuilt-themes/pink-bluegrey.css +2301 -1
- package/prebuilt-themes/purple-green.css +2301 -1
- package/prebuilt-themes/rose-red.css +167 -1
- package/schematics/ng-add/index.js +1 -1
- package/tooltip/_m3-tooltip.scss +3 -2
- package/types/_button-toggle-chunk.d.ts +1 -1
- package/types/_icon-registry-chunk.d.ts +1 -1
- package/types/_option-parent-chunk.d.ts +1 -1
- package/types/_ripple-chunk.d.ts +1 -1
- package/types/dialog.d.ts +1 -1
- package/types/grid-list.d.ts +1 -1
- package/types/paginator.d.ts +0 -1
- package/types/radio.d.ts +1 -1
- package/types/select.d.ts +2 -2
- package/types/sidenav-testing.d.ts +1 -1
- package/types/sidenav.d.ts +1 -1
- package/types/slider.d.ts +5 -9
- package/types/table.d.ts +2 -4
- package/types/tabs.d.ts +1 -1
- package/types/timepicker.d.ts +1 -1
- package/types/tooltip.d.ts +318 -7
- package/types/tree.d.ts +2 -2
- package/types/_tooltip-chunk.d.ts +0 -315
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-testing-control.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"form-field-testing-control.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/form-field/testing/control/form-field-control-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ComponentHarness} from '@angular/cdk/testing';\n\n/**\n * Base class for custom form-field control harnesses. Harnesses for\n * custom controls with form-fields need to implement this interface.\n */\nexport abstract class MatFormFieldControlHarness extends ComponentHarness {}\n\n/**\n * Shared behavior for `MatFormFieldControlHarness` implementations\n */\nexport abstract class MatFormFieldControlHarnessBase extends MatFormFieldControlHarness {\n /**\n * Gets the label for the control, if it exists. This might be provided by a label element or by\n * the `aria-label` attribute.\n */\n async getLabel(): Promise<string | null> {\n const documentRootLocator = this.documentRootLocatorFactory();\n const labelId = await (await this.host()).getAttribute('aria-labelledby');\n const labelText = await (await this.host()).getAttribute('aria-label');\n const hostId = await (await this.host()).getAttribute('id');\n\n if (labelId) {\n // First, try to find the label by following [aria-labelledby]\n const labelEl = await documentRootLocator.locatorForOptional(`[id=\"${labelId}\"]`)();\n return labelEl ? labelEl.text() : null;\n } else if (labelText) {\n // If that doesn't work, return [aria-label] if it exists\n return labelText;\n } else if (hostId) {\n // Finally, search the DOM for a label that points to the host element\n const labelEl = await documentRootLocator.locatorForOptional(`[for=\"${hostId}\"]`)();\n return labelEl ? labelEl.text() : null;\n }\n return null;\n }\n}\n"],"names":["MatFormFieldControlHarness","ComponentHarness","MatFormFieldControlHarnessBase","getLabel","documentRootLocator","documentRootLocatorFactory","labelId","host","getAttribute","labelText","hostId","labelEl","locatorForOptional","text"],"mappings":";;AAcM,MAAgBA,0BAA2B,SAAQC,gBAAgB,CAAA;AAKnE,MAAgBC,8BAA+B,SAAQF,0BAA0B,CAAA;EAKrF,MAAMG,QAAQA,GAAA;AACZ,IAAA,MAAMC,mBAAmB,GAAG,IAAI,CAACC,0BAA0B,EAAE;AAC7D,IAAA,MAAMC,OAAO,GAAG,MAAM,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEC,YAAY,CAAC,iBAAiB,CAAC;AACzE,IAAA,MAAMC,SAAS,GAAG,MAAM,CAAC,MAAM,IAAI,CAACF,IAAI,EAAE,EAAEC,YAAY,CAAC,YAAY,CAAC;AACtE,IAAA,MAAME,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,CAACH,IAAI,EAAE,EAAEC,YAAY,CAAC,IAAI,CAAC;AAE3D,IAAA,IAAIF,OAAO,EAAE;AAEX,MAAA,MAAMK,OAAO,GAAG,MAAMP,mBAAmB,CAACQ,kBAAkB,CAAC,CAAA,KAAA,EAAQN,OAAO,CAAA,EAAA,CAAI,CAAC,EAAE;MACnF,OAAOK,OAAO,GAAGA,OAAO,CAACE,IAAI,EAAE,GAAG,IAAI;IACxC,CAAA,MAAO,IAAIJ,SAAS,EAAE;AAEpB,MAAA,OAAOA,SAAS;IAClB,CAAA,MAAO,IAAIC,MAAM,EAAE;AAEjB,MAAA,MAAMC,OAAO,GAAG,MAAMP,mBAAmB,CAACQ,kBAAkB,CAAC,CAAA,MAAA,EAASF,MAAM,CAAA,EAAA,CAAI,CAAC,EAAE;MACnF,OAAOC,OAAO,GAAGA,OAAO,CAACE,IAAI,EAAE,GAAG,IAAI;AACxC,IAAA;AACA,IAAA,OAAO,IAAI;AACb,EAAA;AACD;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { MatFormFieldControlHarness } from './form-field-testing-control.mjs';
|
|
2
1
|
import { ComponentHarness, HarnessPredicate, parallel } from '@angular/cdk/testing';
|
|
2
|
+
export { MatFormFieldControlHarness } from './form-field-testing-control.mjs';
|
|
3
3
|
import { MatInputHarness } from './_input-harness-chunk.mjs';
|
|
4
4
|
import { MatSelectHarness } from './select-testing.mjs';
|
|
5
5
|
import { MatDatepickerInputHarness, MatDateRangeInputHarness } from './_date-range-input-harness-chunk.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-testing.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/material/form-field/testing/error-harness.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/material/form-field/testing/form-field-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n BaseHarnessFilters,\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\n\n/** A set of criteria that can be used to filter a list of error harness instances. */\nexport interface ErrorHarnessFilters extends BaseHarnessFilters {\n /** Only find instances whose text matches the given value. */\n text?: string | RegExp;\n}\n\n/** Harness for interacting with a `mat-error` in tests. */\nexport class MatErrorHarness extends ComponentHarness {\n static hostSelector = '.mat-mdc-form-field-error';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for an error with specific\n * attributes.\n * @param options Options for filtering which error instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatErrorHarness>(\n this: ComponentHarnessConstructor<T>,\n options: ErrorHarnessFilters = {},\n ): HarnessPredicate<T> {\n return MatErrorHarness._getErrorPredicate(this, options);\n }\n\n protected static _getErrorPredicate<T extends MatErrorHarness>(\n type: ComponentHarnessConstructor<T>,\n options: ErrorHarnessFilters,\n ): HarnessPredicate<T> {\n return new HarnessPredicate(type, options).addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n /** Gets a promise for the error's label text. */\n async getText(): Promise<string> {\n return (await this.host()).text();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n HarnessQuery,\n parallel,\n} from '@angular/cdk/testing';\nimport {ErrorHarnessFilters, MatErrorHarness} from './error-harness';\nimport {MatInputHarness} from '../../input/testing';\nimport {MatFormFieldControlHarness} from './control';\nimport {MatSelectHarness} from '../../select/testing';\nimport {MatDatepickerInputHarness, MatDateRangeInputHarness} from '../../datepicker/testing';\nimport {FormFieldHarnessFilters} from './form-field-harness-filters';\n\n/** Possible harnesses of controls which can be bound to a form-field. */\nexport type FormFieldControlHarness =\n | MatInputHarness\n | MatSelectHarness\n | MatDatepickerInputHarness\n | MatDateRangeInputHarness;\n\nexport class MatFormFieldHarness extends ComponentHarness {\n private _prefixContainer = this.locatorForOptional('.mat-mdc-form-field-text-prefix');\n private _suffixContainer = this.locatorForOptional('.mat-mdc-form-field-text-suffix');\n private _label = this.locatorForOptional('.mdc-floating-label');\n private _hints = this.locatorForAll('.mat-mdc-form-field-hint');\n private _inputControl = this.locatorForOptional(MatInputHarness);\n private _selectControl = this.locatorForOptional(MatSelectHarness);\n private _datepickerInputControl = this.locatorForOptional(MatDatepickerInputHarness);\n private _dateRangeInputControl = this.locatorForOptional(MatDateRangeInputHarness);\n private _textField = this.locatorFor('.mat-mdc-text-field-wrapper');\n private _errorHarness = MatErrorHarness;\n\n static hostSelector = '.mat-mdc-form-field';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a form field with specific\n * attributes.\n * @param options Options for filtering which form field instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatFormFieldHarness>(\n this: ComponentHarnessConstructor<T>,\n options: FormFieldHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options)\n .addOption('floatingLabelText', options.floatingLabelText, async (harness, text) =>\n HarnessPredicate.stringMatches(await harness.getLabel(), text),\n )\n .addOption(\n 'hasErrors',\n options.hasErrors,\n async (harness, hasErrors) => (await harness.hasErrors()) === hasErrors,\n )\n .addOption(\n 'isValid',\n options.isValid,\n async (harness, isValid) => (await harness.isControlValid()) === isValid,\n );\n }\n\n /** Gets the appearance of the form-field. */\n async getAppearance(): Promise<'fill' | 'outline'> {\n const textFieldEl = await this._textField();\n if (await textFieldEl.hasClass('mdc-text-field--outlined')) {\n return 'outline';\n }\n return 'fill';\n }\n\n /** Whether the form-field has a label. */\n async hasLabel(): Promise<boolean> {\n return (await this._label()) !== null;\n }\n\n /** Whether the label is currently floating. */\n async isLabelFloating(): Promise<boolean> {\n const labelEl = await this._label();\n return labelEl !== null ? await labelEl.hasClass('mdc-floating-label--float-above') : false;\n }\n\n /** Gets the label of the form-field. */\n async getLabel(): Promise<string | null> {\n const labelEl = await this._label();\n return labelEl ? labelEl.text() : null;\n }\n\n /** Whether the form-field has errors. */\n async hasErrors(): Promise<boolean> {\n return (await this.getTextErrors()).length > 0;\n }\n\n /** Whether the form-field is disabled. */\n async isDisabled(): Promise<boolean> {\n return (await this.host()).hasClass('mat-form-field-disabled');\n }\n\n /** Whether the form-field is currently autofilled. */\n async isAutofilled(): Promise<boolean> {\n return (await this.host()).hasClass('mat-form-field-autofilled');\n }\n\n /**\n * Gets the harness of the control that is bound to the form-field. Only\n * default controls such as \"MatInputHarness\" and \"MatSelectHarness\" are\n * supported.\n */\n async getControl(): Promise<FormFieldControlHarness | null>;\n\n /**\n * Gets the harness of the control that is bound to the form-field. Searches\n * for a control that matches the specified harness type.\n */\n async getControl<X extends MatFormFieldControlHarness>(\n type: ComponentHarnessConstructor<X>,\n ): Promise<X | null>;\n\n /**\n * Gets the harness of the control that is bound to the form-field. Searches\n * for a control that matches the specified harness predicate.\n */\n async getControl<X extends MatFormFieldControlHarness>(\n type: HarnessPredicate<X>,\n ): Promise<X | null>;\n\n // Implementation of the \"getControl\" method overload signatures.\n async getControl<X extends MatFormFieldControlHarness>(type?: HarnessQuery<X>) {\n if (type) {\n return this.locatorForOptional(type)();\n }\n const [select, input, datepickerInput, dateRangeInput] = await parallel(() => [\n this._selectControl(),\n this._inputControl(),\n this._datepickerInputControl(),\n this._dateRangeInputControl(),\n ]);\n\n // Match the datepicker inputs first since they can also have a `MatInput`.\n return datepickerInput || dateRangeInput || select || input;\n }\n\n /** Gets the theme color of the form-field. */\n async getThemeColor(): Promise<'primary' | 'accent' | 'warn'> {\n const hostEl = await this.host();\n const [isAccent, isWarn] = await parallel(() => {\n return [hostEl.hasClass('mat-accent'), hostEl.hasClass('mat-warn')];\n });\n if (isAccent) {\n return 'accent';\n } else if (isWarn) {\n return 'warn';\n }\n return 'primary';\n }\n\n /** Gets error messages which are currently displayed in the form-field. */\n async getTextErrors(): Promise<string[]> {\n const errors = await this.getErrors();\n return parallel(() => errors.map(e => e.getText()));\n }\n\n /** Gets all of the error harnesses in the form field. */\n async getErrors(filter: ErrorHarnessFilters = {}): Promise<MatErrorHarness[]> {\n return this.locatorForAll(this._errorHarness.with(filter))();\n }\n\n /** Gets hint messages which are currently displayed in the form-field. */\n async getTextHints(): Promise<string[]> {\n const hints = await this._hints();\n return parallel(() => hints.map(e => e.text()));\n }\n\n /** Gets the text inside the prefix element. */\n async getPrefixText(): Promise<string> {\n const prefix = await this._prefixContainer();\n return prefix ? prefix.text() : '';\n }\n\n /** Gets the text inside the suffix element. */\n async getSuffixText(): Promise<string> {\n const suffix = await this._suffixContainer();\n return suffix ? suffix.text() : '';\n }\n\n /**\n * Whether the form control has been touched. Returns \"null\"\n * if no form control is set up.\n */\n async isControlTouched(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-touched');\n }\n\n /**\n * Whether the form control is dirty. Returns \"null\"\n * if no form control is set up.\n */\n async isControlDirty(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-dirty');\n }\n\n /**\n * Whether the form control is valid. Returns \"null\"\n * if no form control is set up.\n */\n async isControlValid(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-valid');\n }\n\n /**\n * Whether the form control is pending validation. Returns \"null\"\n * if no form control is set up.\n */\n async isControlPending(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-pending');\n }\n\n /** Checks whether the form-field control has set up a form control. */\n private async _hasFormControl(): Promise<boolean> {\n const hostEl = await this.host();\n // If no form \"NgControl\" is bound to the form-field control, the form-field\n // is not able to forward any control status classes. Therefore if either the\n // \"ng-touched\" or \"ng-untouched\" class is set, we know that it has a form control\n const [isTouched, isUntouched] = await parallel(() => [\n hostEl.hasClass('ng-touched'),\n hostEl.hasClass('ng-untouched'),\n ]);\n return isTouched || isUntouched;\n }\n}\n"],"names":["MatErrorHarness","ComponentHarness","hostSelector","with","options","_getErrorPredicate","type","HarnessPredicate","addOption","text","harness","stringMatches","getText","host","MatFormFieldHarness","_prefixContainer","locatorForOptional","_suffixContainer","_label","_hints","locatorForAll","_inputControl","MatInputHarness","_selectControl","MatSelectHarness","_datepickerInputControl","MatDatepickerInputHarness","_dateRangeInputControl","MatDateRangeInputHarness","_textField","locatorFor","_errorHarness","floatingLabelText","getLabel","hasErrors","isValid","isControlValid","getAppearance","textFieldEl","hasClass","hasLabel","isLabelFloating","labelEl","getTextErrors","length","isDisabled","isAutofilled","getControl","select","input","datepickerInput","dateRangeInput","parallel","getThemeColor","hostEl","isAccent","isWarn","errors","getErrors","map","e","filter","getTextHints","hints","getPrefixText","prefix","getSuffixText","suffix","isControlTouched","_hasFormControl","isControlDirty","isControlPending","isTouched","isUntouched"],"mappings":";;;;;;;;;AAsBM,MAAOA,eAAgB,SAAQC,gBAAgB,CAAA;EACnD,OAAOC,YAAY,GAAG,2BAA2B;AAQjD,EAAA,OAAOC,IAAIA,CAETC,OAAA,GAA+B,EAAE,EAAA;AAEjC,IAAA,OAAOJ,eAAe,CAACK,kBAAkB,CAAC,IAAI,EAAED,OAAO,CAAC;AAC1D;AAEU,EAAA,OAAOC,kBAAkBA,CACjCC,IAAoC,EACpCF,OAA4B,EAAA;AAE5B,IAAA,OAAO,IAAIG,gBAAgB,CAACD,IAAI,EAAEF,OAAO,CAAC,CAACI,SAAS,CAAC,MAAM,EAAEJ,OAAO,CAACK,IAAI,EAAE,CAACC,OAAO,EAAED,IAAI,KACvFF,gBAAgB,CAACI,aAAa,CAACD,OAAO,CAACE,OAAO,EAAE,EAAEH,IAAI,CAAC,CACxD;AACH;EAGA,MAAMG,OAAOA,GAAA;IACX,OAAO,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEJ,IAAI,EAAE;AACnC;;;ACrBI,MAAOK,mBAAoB,SAAQb,gBAAgB,CAAA;AAC/Cc,EAAAA,gBAAgB,GAAG,IAAI,CAACC,kBAAkB,CAAC,iCAAiC,CAAC;AAC7EC,EAAAA,gBAAgB,GAAG,IAAI,CAACD,kBAAk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G,MAAM,IAAI,CAACzC,IAAI,EAAE;IAIhC,MAAM,CAAC2D,SAAS,EAAEC,WAAW,CAAC,GAAG,MAAMrB,QAAQ,CAAC,MAAM,CACpDE,MAAM,CAACf,QAAQ,CAAC,YAAY,CAAC,EAC7Be,MAAM,CAACf,QAAQ,CAAC,cAAc,CAAC,CAChC,CAAC;IACF,OAAOiC,SAAS,IAAIC,WAAW;AACjC;;;;;"}
|
|
1
|
+
{"version":3,"file":"form-field-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/form-field/testing/error-harness.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/form-field/testing/form-field-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n BaseHarnessFilters,\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\n\n/** A set of criteria that can be used to filter a list of error harness instances. */\nexport interface ErrorHarnessFilters extends BaseHarnessFilters {\n /** Only find instances whose text matches the given value. */\n text?: string | RegExp;\n}\n\n/** Harness for interacting with a `mat-error` in tests. */\nexport class MatErrorHarness extends ComponentHarness {\n static hostSelector = '.mat-mdc-form-field-error';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for an error with specific\n * attributes.\n * @param options Options for filtering which error instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatErrorHarness>(\n this: ComponentHarnessConstructor<T>,\n options: ErrorHarnessFilters = {},\n ): HarnessPredicate<T> {\n return MatErrorHarness._getErrorPredicate(this, options);\n }\n\n protected static _getErrorPredicate<T extends MatErrorHarness>(\n type: ComponentHarnessConstructor<T>,\n options: ErrorHarnessFilters,\n ): HarnessPredicate<T> {\n return new HarnessPredicate(type, options).addOption('text', options.text, (harness, text) =>\n HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n /** Gets a promise for the error's label text. */\n async getText(): Promise<string> {\n return (await this.host()).text();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n HarnessQuery,\n parallel,\n} from '@angular/cdk/testing';\nimport {ErrorHarnessFilters, MatErrorHarness} from './error-harness';\nimport {MatInputHarness} from '../../input/testing';\nimport {MatFormFieldControlHarness} from './control';\nimport {MatSelectHarness} from '../../select/testing';\nimport {MatDatepickerInputHarness, MatDateRangeInputHarness} from '../../datepicker/testing';\nimport {FormFieldHarnessFilters} from './form-field-harness-filters';\n\n/** Possible harnesses of controls which can be bound to a form-field. */\nexport type FormFieldControlHarness =\n | MatInputHarness\n | MatSelectHarness\n | MatDatepickerInputHarness\n | MatDateRangeInputHarness;\n\nexport class MatFormFieldHarness extends ComponentHarness {\n private _prefixContainer = this.locatorForOptional('.mat-mdc-form-field-text-prefix');\n private _suffixContainer = this.locatorForOptional('.mat-mdc-form-field-text-suffix');\n private _label = this.locatorForOptional('.mdc-floating-label');\n private _hints = this.locatorForAll('.mat-mdc-form-field-hint');\n private _inputControl = this.locatorForOptional(MatInputHarness);\n private _selectControl = this.locatorForOptional(MatSelectHarness);\n private _datepickerInputControl = this.locatorForOptional(MatDatepickerInputHarness);\n private _dateRangeInputControl = this.locatorForOptional(MatDateRangeInputHarness);\n private _textField = this.locatorFor('.mat-mdc-text-field-wrapper');\n private _errorHarness = MatErrorHarness;\n\n static hostSelector = '.mat-mdc-form-field';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a form field with specific\n * attributes.\n * @param options Options for filtering which form field instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatFormFieldHarness>(\n this: ComponentHarnessConstructor<T>,\n options: FormFieldHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options)\n .addOption('floatingLabelText', options.floatingLabelText, async (harness, text) =>\n HarnessPredicate.stringMatches(await harness.getLabel(), text),\n )\n .addOption(\n 'hasErrors',\n options.hasErrors,\n async (harness, hasErrors) => (await harness.hasErrors()) === hasErrors,\n )\n .addOption(\n 'isValid',\n options.isValid,\n async (harness, isValid) => (await harness.isControlValid()) === isValid,\n );\n }\n\n /** Gets the appearance of the form-field. */\n async getAppearance(): Promise<'fill' | 'outline'> {\n const textFieldEl = await this._textField();\n if (await textFieldEl.hasClass('mdc-text-field--outlined')) {\n return 'outline';\n }\n return 'fill';\n }\n\n /** Whether the form-field has a label. */\n async hasLabel(): Promise<boolean> {\n return (await this._label()) !== null;\n }\n\n /** Whether the label is currently floating. */\n async isLabelFloating(): Promise<boolean> {\n const labelEl = await this._label();\n return labelEl !== null ? await labelEl.hasClass('mdc-floating-label--float-above') : false;\n }\n\n /** Gets the label of the form-field. */\n async getLabel(): Promise<string | null> {\n const labelEl = await this._label();\n return labelEl ? labelEl.text() : null;\n }\n\n /** Whether the form-field has errors. */\n async hasErrors(): Promise<boolean> {\n return (await this.getTextErrors()).length > 0;\n }\n\n /** Whether the form-field is disabled. */\n async isDisabled(): Promise<boolean> {\n return (await this.host()).hasClass('mat-form-field-disabled');\n }\n\n /** Whether the form-field is currently autofilled. */\n async isAutofilled(): Promise<boolean> {\n return (await this.host()).hasClass('mat-form-field-autofilled');\n }\n\n /**\n * Gets the harness of the control that is bound to the form-field. Only\n * default controls such as \"MatInputHarness\" and \"MatSelectHarness\" are\n * supported.\n */\n async getControl(): Promise<FormFieldControlHarness | null>;\n\n /**\n * Gets the harness of the control that is bound to the form-field. Searches\n * for a control that matches the specified harness type.\n */\n async getControl<X extends MatFormFieldControlHarness>(\n type: ComponentHarnessConstructor<X>,\n ): Promise<X | null>;\n\n /**\n * Gets the harness of the control that is bound to the form-field. Searches\n * for a control that matches the specified harness predicate.\n */\n async getControl<X extends MatFormFieldControlHarness>(\n type: HarnessPredicate<X>,\n ): Promise<X | null>;\n\n // Implementation of the \"getControl\" method overload signatures.\n async getControl<X extends MatFormFieldControlHarness>(type?: HarnessQuery<X>) {\n if (type) {\n return this.locatorForOptional(type)();\n }\n const [select, input, datepickerInput, dateRangeInput] = await parallel(() => [\n this._selectControl(),\n this._inputControl(),\n this._datepickerInputControl(),\n this._dateRangeInputControl(),\n ]);\n\n // Match the datepicker inputs first since they can also have a `MatInput`.\n return datepickerInput || dateRangeInput || select || input;\n }\n\n /** Gets the theme color of the form-field. */\n async getThemeColor(): Promise<'primary' | 'accent' | 'warn'> {\n const hostEl = await this.host();\n const [isAccent, isWarn] = await parallel(() => {\n return [hostEl.hasClass('mat-accent'), hostEl.hasClass('mat-warn')];\n });\n if (isAccent) {\n return 'accent';\n } else if (isWarn) {\n return 'warn';\n }\n return 'primary';\n }\n\n /** Gets error messages which are currently displayed in the form-field. */\n async getTextErrors(): Promise<string[]> {\n const errors = await this.getErrors();\n return parallel(() => errors.map(e => e.getText()));\n }\n\n /** Gets all of the error harnesses in the form field. */\n async getErrors(filter: ErrorHarnessFilters = {}): Promise<MatErrorHarness[]> {\n return this.locatorForAll(this._errorHarness.with(filter))();\n }\n\n /** Gets hint messages which are currently displayed in the form-field. */\n async getTextHints(): Promise<string[]> {\n const hints = await this._hints();\n return parallel(() => hints.map(e => e.text()));\n }\n\n /** Gets the text inside the prefix element. */\n async getPrefixText(): Promise<string> {\n const prefix = await this._prefixContainer();\n return prefix ? prefix.text() : '';\n }\n\n /** Gets the text inside the suffix element. */\n async getSuffixText(): Promise<string> {\n const suffix = await this._suffixContainer();\n return suffix ? suffix.text() : '';\n }\n\n /**\n * Whether the form control has been touched. Returns \"null\"\n * if no form control is set up.\n */\n async isControlTouched(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-touched');\n }\n\n /**\n * Whether the form control is dirty. Returns \"null\"\n * if no form control is set up.\n */\n async isControlDirty(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-dirty');\n }\n\n /**\n * Whether the form control is valid. Returns \"null\"\n * if no form control is set up.\n */\n async isControlValid(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-valid');\n }\n\n /**\n * Whether the form control is pending validation. Returns \"null\"\n * if no form control is set up.\n */\n async isControlPending(): Promise<boolean | null> {\n if (!(await this._hasFormControl())) {\n return null;\n }\n return (await this.host()).hasClass('ng-pending');\n }\n\n /** Checks whether the form-field control has set up a form control. */\n private async _hasFormControl(): Promise<boolean> {\n const hostEl = await this.host();\n // If no form \"NgControl\" is bound to the form-field control, the form-field\n // is not able to forward any control status classes. Therefore if either the\n // \"ng-touched\" or \"ng-untouched\" class is set, we know that it has a form control\n const [isTouched, isUntouched] = await parallel(() => [\n hostEl.hasClass('ng-touched'),\n hostEl.hasClass('ng-untouched'),\n ]);\n return isTouched || isUntouched;\n }\n}\n"],"names":["MatErrorHarness","ComponentHarness","hostSelector","with","options","_getErrorPredicate","type","HarnessPredicate","addOption","text","harness","stringMatches","getText","host","MatFormFieldHarness","_prefixContainer","locatorForOptional","_suffixContainer","_label","_hints","locatorForAll","_inputControl","MatInputHarness","_selectControl","MatSelectHarness","_datepickerInputControl","MatDatepickerInputHarness","_dateRangeInputControl","MatDateRangeInputHarness","_textField","locatorFor","_errorHarness","floatingLabelText","getLabel","hasErrors","isValid","isControlValid","getAppearance","textFieldEl","hasClass","hasLabel","isLabelFloating","labelEl","getTextErrors","length","isDisabled","isAutofilled","getControl","select","input","datepickerInput","dateRangeInput","parallel","getThemeColor","hostEl","isAccent","isWarn","errors","getErrors","map","e","filter","getTextHints","hints","getPrefixText","prefix","getSuffixText","suffix","isControlTouched","_hasFormControl","isControlDirty","isControlPending","isTouched","isUntouched"],"mappings":";;;;;;;;;AAsBM,MAAOA,eAAgB,SAAQC,gBAAgB,CAAA;EACnD,OAAOC,YAAY,GAAG,2BAA2B;AAQj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Label,
|
|
1
|
+
import { MatFormField, MatLabel, MatHint, MatError, MatPrefix, MatSuffix } from './_form-field-chunk.mjs';
|
|
2
2
|
export { MAT_ERROR, MAT_FORM_FIELD, MAT_FORM_FIELD_DEFAULT_OPTIONS, MAT_PREFIX, MAT_SUFFIX, MatFormFieldControl, getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError } from './_form-field-chunk.mjs';
|
|
3
3
|
import { BidiModule } from '@angular/cdk/bidi';
|
|
4
4
|
import { ObserversModule } from '@angular/cdk/observers';
|
|
@@ -17,7 +17,7 @@ import '@angular/cdk/layout';
|
|
|
17
17
|
class MatFormFieldModule {
|
|
18
18
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
19
19
|
minVersion: "12.0.0",
|
|
20
|
-
version: "22.0.0-next.
|
|
20
|
+
version: "22.0.0-next.5",
|
|
21
21
|
ngImport: i0,
|
|
22
22
|
type: MatFormFieldModule,
|
|
23
23
|
deps: [],
|
|
@@ -25,7 +25,7 @@ class MatFormFieldModule {
|
|
|
25
25
|
});
|
|
26
26
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
27
27
|
minVersion: "14.0.0",
|
|
28
|
-
version: "22.0.0-next.
|
|
28
|
+
version: "22.0.0-next.5",
|
|
29
29
|
ngImport: i0,
|
|
30
30
|
type: MatFormFieldModule,
|
|
31
31
|
imports: [ObserversModule, MatFormField, MatLabel, MatError, MatHint, MatPrefix, MatSuffix],
|
|
@@ -33,7 +33,7 @@ class MatFormFieldModule {
|
|
|
33
33
|
});
|
|
34
34
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
35
35
|
minVersion: "12.0.0",
|
|
36
|
-
version: "22.0.0-next.
|
|
36
|
+
version: "22.0.0-next.5",
|
|
37
37
|
ngImport: i0,
|
|
38
38
|
type: MatFormFieldModule,
|
|
39
39
|
imports: [ObserversModule, MatFormField, BidiModule]
|
|
@@ -41,7 +41,7 @@ class MatFormFieldModule {
|
|
|
41
41
|
}
|
|
42
42
|
i0.ɵɵngDeclareClassMetadata({
|
|
43
43
|
minVersion: "12.0.0",
|
|
44
|
-
version: "22.0.0-next.
|
|
44
|
+
version: "22.0.0-next.5",
|
|
45
45
|
ngImport: i0,
|
|
46
46
|
type: MatFormFieldModule,
|
|
47
47
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"form-field.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/form-field/form-field-module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {BidiModule} from '@angular/cdk/bidi';\nimport {ObserversModule} from '@angular/cdk/observers';\nimport {NgModule} from '@angular/core';\nimport {MatError} from './directives/error';\nimport {MatHint} from './directives/hint';\nimport {MatLabel} from './directives/label';\nimport {MatPrefix} from './directives/prefix';\nimport {MatSuffix} from './directives/suffix';\nimport {MatFormField} from './form-field';\n\n@NgModule({\n imports: [ObserversModule, MatFormField, MatLabel, MatError, MatHint, MatPrefix, MatSuffix],\n exports: [MatFormField, MatLabel, MatHint, MatError, MatPrefix, MatSuffix, BidiModule],\n})\nexport class MatFormFieldModule {}\n"],"names":["MatFormFieldModule","deps","target","i0","ɵɵFactoryTarget","NgModule","imports","ObserversModule","MatFormField","MatLabel","MatError","MatHint","MatPrefix","MatSuffix","exports","BidiModule","ɵinj","ɵɵngDeclareInjector","minVersion","version","ngImport","type","decorators","args"],"mappings":";;;;;;;;;;;;;;;;MAsBaA,kBAAkB,CAAA;;;;;UAAlBA,kBAAkB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAAlBL,kBAAkB;AAAAM,IAAAA,OAAA,EAAA,CAHnBC,eAAe,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,SAAS,EAAEC,SAAS,CAAA;AAAAC,IAAAA,OAAA,EAAA,CAChFN,YAAY,EAAEC,QAAQ,EAAEE,OAAO,EAAED,QAAQ,EAAEE,SAAS,EAAEC,SAAS,EAAEE,UAAU;AAAA,GAAA,CAAA;AAE1E,EAAA,OAAAC,IAAA,GAAAb,EAAA,CAAAc,mBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAjB,EAAA;AAAAkB,IAAAA,IAAA,EAAArB,kBAAkB;AAAAM,IAAAA,OAAA,EAAA,CAHnBC,eAAe,EAAEC,YAAY,EACoCO,UAAU;AAAA,GAAA,CAAA;;;;;;QAE1Ef,kBAAkB;AAAAsB,EAAAA,UAAA,EAAA,CAAA;UAJ9BjB,QAAQ;AAACkB,IAAAA,IAAA,EAAA,CAAA;AACRjB,MAAAA,OAAO,EAAE,CAACC,eAAe,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,SAAS,EAAEC,SAAS,CAAC;AAC3FC,MAAAA,OAAO,EAAE,CAACN,YAAY,EAAEC,QAAQ,EAAEE,OAAO,EAAED,QAAQ,EAAEE,SAAS,EAAEC,SAAS,EAAEE,UAAU;KACtF;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-list-testing.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/material/grid-list/testing/grid-tile-harness.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/src/material/grid-list/testing/grid-list-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ContentContainerComponentHarness, HarnessPredicate} from '@angular/cdk/testing';\nimport {GridTileHarnessFilters} from './grid-list-harness-filters';\n\n/** Selectors for the various `mat-grid-tile` sections that may contain user content. */\nexport enum MatGridTileSection {\n HEADER = '.mat-grid-tile-header',\n FOOTER = '.mat-grid-tile-footer',\n}\n\n/** Harness for interacting with a standard `MatGridTitle` in tests. */\nexport class MatGridTileHarness extends ContentContainerComponentHarness<MatGridTileSection> {\n /** The selector for the host element of a `MatGridTile` instance. */\n static hostSelector = '.mat-grid-tile';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatGridTileHarness`\n * that meets certain criteria.\n * @param options Options for filtering which dialog instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: GridTileHarnessFilters = {}): HarnessPredicate<MatGridTileHarness> {\n return new HarnessPredicate(MatGridTileHarness, options)\n .addOption('headerText', options.headerText, (harness, pattern) =>\n HarnessPredicate.stringMatches(harness.getHeaderText(), pattern),\n )\n .addOption('footerText', options.footerText, (harness, pattern) =>\n HarnessPredicate.stringMatches(harness.getFooterText(), pattern),\n );\n }\n\n private _header = this.locatorForOptional(MatGridTileSection.HEADER);\n private _footer = this.locatorForOptional(MatGridTileSection.FOOTER);\n private _avatar = this.locatorForOptional('.mat-grid-avatar');\n\n /** Gets the amount of rows that the grid-tile takes up. */\n async getRowspan(): Promise<number> {\n return Number(await (await this.host()).getAttribute('rowspan'));\n }\n\n /** Gets the amount of columns that the grid-tile takes up. */\n async getColspan(): Promise<number> {\n return Number(await (await this.host()).getAttribute('colspan'));\n }\n\n /** Whether the grid-tile has a header. */\n async hasHeader(): Promise<boolean> {\n return (await this._header()) !== null;\n }\n\n /** Whether the grid-tile has a footer. */\n async hasFooter(): Promise<boolean> {\n return (await this._footer()) !== null;\n }\n\n /** Whether the grid-tile has an avatar. */\n async hasAvatar(): Promise<boolean> {\n return (await this._avatar()) !== null;\n }\n\n /** Gets the text of the header if present. */\n async getHeaderText(): Promise<string | null> {\n // For performance reasons, we do not use \"hasHeader\" as\n // we would then need to query twice for the header.\n const headerEl = await this._header();\n return headerEl ? headerEl.text() : null;\n }\n\n /** Gets the text of the footer if present. */\n async getFooterText(): Promise<string | null> {\n // For performance reasons, we do not use \"hasFooter\" as\n // we would then need to query twice for the footer.\n const headerEl = await this._footer();\n return headerEl ? headerEl.text() : null;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ComponentHarness, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {ɵTileCoordinator as TileCoordinator} from '../../grid-list';\nimport {GridListHarnessFilters, GridTileHarnessFilters} from './grid-list-harness-filters';\nimport {MatGridTileHarness} from './grid-tile-harness';\n\n/** Harness for interacting with a standard `MatGridList` in tests. */\nexport class MatGridListHarness extends ComponentHarness {\n /** The selector for the host element of a `MatGridList` instance. */\n static hostSelector = '.mat-grid-list';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatGridListHarness`\n * that meets certain criteria.\n * @param options Options for filtering which dialog instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: GridListHarnessFilters = {}): HarnessPredicate<MatGridListHarness> {\n return new HarnessPredicate(MatGridListHarness, options);\n }\n\n /**\n * Tile coordinator that is used by the \"MatGridList\" for computing\n * positions of tiles. We leverage the coordinator to provide an API\n * for retrieving tiles based on visual tile positions.\n */\n private _tileCoordinator = new TileCoordinator();\n\n /** Gets all tiles of the grid-list. */\n async getTiles(filters: GridTileHarnessFilters = {}): Promise<MatGridTileHarness[]> {\n return await this.locatorForAll(MatGridTileHarness.with(filters))();\n }\n\n /** Gets the amount of columns of the grid-list. */\n async getColumns(): Promise<number> {\n return Number(await (await this.host()).getAttribute('cols'));\n }\n\n /**\n * Gets a tile of the grid-list that is located at the given location.\n * @param row Zero-based row index.\n * @param column Zero-based column index.\n */\n async getTileAtPosition({\n row,\n column,\n }: {\n row: number;\n column: number;\n }): Promise<MatGridTileHarness> {\n const [tileHarnesses, columns] = await parallel(() => [this.getTiles(), this.getColumns()]);\n const tileSpans = tileHarnesses.map(t => parallel(() => [t.getColspan(), t.getRowspan()]));\n const tiles = (await parallel(() => tileSpans)).map(([colspan, rowspan]) => ({\n colspan,\n rowspan,\n }));\n // Update the tile coordinator to reflect the current column amount and\n // rendered tiles. We update upon every call of this method since we do not\n // know if tiles have been added, removed or updated (in terms of rowspan/colspan).\n this._tileCoordinator.update(columns, tiles);\n // The tile coordinator respects the colspan and rowspan for calculating the positions\n // of tiles, but it does not create multiple position entries if a tile spans over multiple\n // columns or rows. We want to provide an API where developers can retrieve a tile based on\n // any position that lies within the visual tile boundaries. For example: If a tile spans\n // over two columns, then the same tile should be returned for either column indices.\n for (let i = 0; i < this._tileCoordinator.positions.length; i++) {\n const position = this._tileCoordinator.positions[i];\n const {rowspan, colspan} = tiles[i];\n // Return the tile harness if the given position visually resolves to the tile.\n if (\n column >= position.col &&\n column <= position.col + colspan - 1 &&\n row >= position.row &&\n row <= position.row + rowspan - 1\n ) {\n return tileHarnesses[i];\n }\n }\n throw Error('Could not find tile at given position.');\n }\n}\n"],"names":["MatGridTileSection","MatGridTileHarness","ContentContainerComponentHarness","hostSelector","with","options","HarnessPredicate","addOption","headerText","harness","pattern","stringMatches","getHeaderText","footerText","getFooterText","_header","locatorForOptional","HEADER","_footer","FOOTER","_avatar","getRowspan","Number","host","getAttribute","getColspan","hasHeader","hasFooter","hasAvatar","headerEl","text","MatGridListHarness","ComponentHarness","_tileCoordinator","TileCoordinator","getTiles","filters","locatorForAll","getColumns","getTileAtPosition","row","column","tileHarnesses","columns","parallel","tileSpans","map","t","tiles","colspan","rowspan","update","i","positions","length","position","col","Error"],"mappings":";;;IAYYA;AAAZ,CAAA,UAAYA,kBAAkB,EAAA;AAC5BA,EAAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,uBAAgC;AAChCA,EAAAA,kBAAA,CAAA,QAAA,CAAA,GAAA,uBAAgC;AAClC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AACT,QAAQ,EAAE,EAAE,IAAI,CAACG,UAAU,EAAE,CAAC,CAAC;IAC3F,MAAMO,SAAS,GAAGH,aAAa,CAACI,GAAG,CAACC,CAAC,IAAIH,QAAQ,CAAC,MAAM,CAACG,CAAC,CAACtB,UAAU,EAAE,EAAEsB,CAAC,CAAC1B,UAAU,EAAE,CAAC,CAAC,CAAC;AAC1F,IAAA,MAAM2B,KAAK,GAAG,CAAC,MAAMJ,QAAQ,CAAC,MAAMC,SAAS,CAAC,EAAEC,GAAG,CAAC,CAAC,CAACG,OAAO,EAAEC,OAAO,CAAC,MAAM;MAC3ED,OAAO;AACPC,MAAAA;AACD,KAAA,CAAC,CAAC;IAIH,IAAI,CAACjB,gBAAgB,CAACkB,MAAM,CAACR,OAAO,EAAEK,KAAK,CAAC;AAM5C,IAAA,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,IAAI,CAACnB,gBAAgB,CAACoB,SAAS,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;MAC/D,MAAMG,QAAQ,GAAG,IAAI,CAACtB,gBAAgB,CAACoB,SAAS,CAACD,CAAC,CAAC;MACnD,MAAM;QAACF,OAAO;AAAED,QAAAA;AAAO,OAAC,GAAGD,KAAK,CAACI,CAAC,CAAC;AAEnC,MAAA,IACEX,MAAM,IAAIc,QAAQ,CAACC,GAAG,IACtBf,MAAM,IAAIc,QAAQ,CAACC,GAAG,GAAGP,OAAO,GAAG,CAAC,IACpCT,GAAG,IAAIe,QAAQ,CAACf,GAAG,IACnBA,GAAG,IAAIe,QAAQ,CAACf,GAAG,GAAGU,OAAO,GAAG,CAAC,EACjC;QACA,OAAOR,aAAa,CAACU,CAAC,CAAC;AACzB;AACF;IACA,MAAMK,KAAK,CAAC,wCAAwC,CAAC;AACvD;;;;;"}
|
|
1
|
+
{"version":3,"file":"grid-list-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/grid-list/testing/grid-tile-harness.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/grid-list/testing/grid-list-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ContentContainerComponentHarness, HarnessPredicate} from '@angular/cdk/testing';\nimport {GridTileHarnessFilters} from './grid-list-harness-filters';\n\n/** Selectors for the various `mat-grid-tile` sections that may contain user content. */\nexport enum MatGridTileSection {\n HEADER = '.mat-grid-tile-header',\n FOOTER = '.mat-grid-tile-footer',\n}\n\n/** Harness for interacting with a standard `MatGridTitle` in tests. */\nexport class MatGridTileHarness extends ContentContainerComponentHarness<MatGridTileSection> {\n /** The selector for the host element of a `MatGridTile` instance. */\n static hostSelector = '.mat-grid-tile';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatGridTileHarness`\n * that meets certain criteria.\n * @param options Options for filtering which dialog instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: GridTileHarnessFilters = {}): HarnessPredicate<MatGridTileHarness> {\n return new HarnessPredicate(MatGridTileHarness, options)\n .addOption('headerText', options.headerText, (harness, pattern) =>\n HarnessPredicate.stringMatches(harness.getHeaderText(), pattern),\n )\n .addOption('footerText', options.footerText, (harness, pattern) =>\n HarnessPredicate.stringMatches(harness.getFooterText(), pattern),\n );\n }\n\n private _header = this.locatorForOptional(MatGridTileSection.HEADER);\n private _footer = this.locatorForOptional(MatGridTileSection.FOOTER);\n private _avatar = this.locatorForOptional('.mat-grid-avatar');\n\n /** Gets the amount of rows that the grid-tile takes up. */\n async getRowspan(): Promise<number> {\n return Number(await (await this.host()).getAttribute('rowspan'));\n }\n\n /** Gets the amount of columns that the grid-tile takes up. */\n async getColspan(): Promise<number> {\n return Number(await (await this.host()).getAttribute('colspan'));\n }\n\n /** Whether the grid-tile has a header. */\n async hasHeader(): Promise<boolean> {\n return (await this._header()) !== null;\n }\n\n /** Whether the grid-tile has a footer. */\n async hasFooter(): Promise<boolean> {\n return (await this._footer()) !== null;\n }\n\n /** Whether the grid-tile has an avatar. */\n async hasAvatar(): Promise<boolean> {\n return (await this._avatar()) !== null;\n }\n\n /** Gets the text of the header if present. */\n async getHeaderText(): Promise<string | null> {\n // For performance reasons, we do not use \"hasHeader\" as\n // we would then need to query twice for the header.\n const headerEl = await this._header();\n return headerEl ? headerEl.text() : null;\n }\n\n /** Gets the text of the footer if present. */\n async getFooterText(): Promise<string | null> {\n // For performance reasons, we do not use \"hasFooter\" as\n // we would then need to query twice for the footer.\n const headerEl = await this._footer();\n return headerEl ? headerEl.text() : null;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ComponentHarness, HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {ɵTileCoordinator as TileCoordinator} from '../../grid-list';\nimport {GridListHarnessFilters, GridTileHarnessFilters} from './grid-list-harness-filters';\nimport {MatGridTileHarness} from './grid-tile-harness';\n\n/** Harness for interacting with a standard `MatGridList` in tests. */\nexport class MatGridListHarness extends ComponentHarness {\n /** The selector for the host element of a `MatGridList` instance. */\n static hostSelector = '.mat-grid-list';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatGridListHarness`\n * that meets certain criteria.\n * @param options Options for filtering which dialog instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: GridListHarnessFilters = {}): HarnessPredicate<MatGridListHarness> {\n return new HarnessPredicate(MatGridListHarness, options);\n }\n\n /**\n * Tile coordinator that is used by the \"MatGridList\" for computing\n * positions of tiles. We leverage the coordinator to provide an API\n * for retrieving tiles based on visual tile positions.\n */\n private _tileCoordinator = new TileCoordinator();\n\n /** Gets all tiles of the grid-list. */\n async getTiles(filters: GridTileHarnessFilters = {}): Promise<MatGridTileHarness[]> {\n return await this.locatorForAll(MatGridTileHarness.with(filters))();\n }\n\n /** Gets the amount of columns of the grid-list. */\n async getColumns(): Promise<number> {\n return Number(await (await this.host()).getAttribute('cols'));\n }\n\n /**\n * Gets a tile of the grid-list that is located at the given location.\n * @param row Zero-based row index.\n * @param column Zero-based column index.\n */\n async getTileAtPosition({\n row,\n column,\n }: {\n row: number;\n column: number;\n }): Promise<MatGridTileHarness> {\n const [tileHarnesses, columns] = await parallel(() => [this.getTiles(), this.getColumns()]);\n const tileSpans = tileHarnesses.map(t => parallel(() => [t.getColspan(), t.getRowspan()]));\n const tiles = (await parallel(() => tileSpans)).map(([colspan, rowspan]) => ({\n colspan,\n rowspan,\n }));\n // Update the tile coordinator to reflect the current column amount and\n // rendered tiles. We update upon every call of this method since we do not\n // know if tiles have been added, removed or updated (in terms of rowspan/colspan).\n this._tileCoordinator.update(columns, tiles);\n // The tile coordinator respects the colspan and rowspan for calculating the positions\n // of tiles, but it does not create multiple position entries if a tile spans over multiple\n // columns or rows. We want to provide an API where developers can retrieve a tile based on\n // any position that lies within the visual tile boundaries. For example: If a tile spans\n // over two columns, then the same tile should be returned for either column indices.\n for (let i = 0; i < this._tileCoordinator.positions.length; i++) {\n const position = this._tileCoordinator.positions[i];\n const {rowspan, colspan} = tiles[i];\n // Return the tile harness if the given position visually resolves to the tile.\n if (\n column >= position.col &&\n column <= position.col + colspan - 1 &&\n row >= position.row &&\n row <= position.row + rowspan - 1\n ) {\n return tileHarnesses[i];\n }\n }\n throw Error('Could not find tile at given position.');\n }\n}\n"],"names":["MatGridTileSection","MatGridTileHarness","ContentContainerComponentHarness","hostSelector","with","options","HarnessPredicate","addOption","headerText","harness","pattern","stringMatches","getHeaderText","footerText","getFooterText","_header","locatorForOptional","HEADER","_footer","FOOTER","_avatar","getRowspan","Number","host","getAttribute","getColspan","hasHeader","hasFooter","hasAvatar","headerEl","text","MatGridListHarness","ComponentHarness","_tileCoordinator","TileCoordinator","getTiles","filters","locatorForAll","getColumns","getTileAtPosition","row","column","tileHarnesses","columns","parallel","tileSpans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AG,IAAIe,QAAQ,CAACf,GAAG,GAAGU,OAAO,GAAG,CAAC,EACjC;QACA,OAAOR,aAAa,CAACU,CAAC,CAAC;AACzB,MAAA;AACF,IAAA;IACA,MAAMK,KAAK,CAAC,wCAAwC,CAAC;AACvD,EAAA;;;;;"}
|
package/fesm2022/grid-list.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TileCoordinator } from './_public-api-chunk.mjs';
|
|
2
2
|
export { ɵTileCoordinator } from './_public-api-chunk.mjs';
|
|
3
|
-
import { setLines, MatLine, MatLineModule } from './_line-chunk.mjs';
|
|
4
|
-
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
5
3
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, inject, ElementRef,
|
|
4
|
+
import { InjectionToken, inject, ElementRef, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, ContentChildren, Directive, NgModule } from '@angular/core';
|
|
7
5
|
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
6
|
+
import { setLines, MatLine, MatLineModule } from './_line-chunk.mjs';
|
|
7
|
+
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
8
8
|
import 'rxjs/operators';
|
|
9
9
|
|
|
10
10
|
const MAT_GRID_LIST = new InjectionToken('MAT_GRID_LIST');
|
|
@@ -34,7 +34,7 @@ class MatGridTile {
|
|
|
34
34
|
}
|
|
35
35
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
36
36
|
minVersion: "12.0.0",
|
|
37
|
-
version: "22.0.0-next.
|
|
37
|
+
version: "22.0.0-next.5",
|
|
38
38
|
ngImport: i0,
|
|
39
39
|
type: MatGridTile,
|
|
40
40
|
deps: [],
|
|
@@ -42,7 +42,7 @@ class MatGridTile {
|
|
|
42
42
|
});
|
|
43
43
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
44
44
|
minVersion: "14.0.0",
|
|
45
|
-
version: "22.0.0-next.
|
|
45
|
+
version: "22.0.0-next.5",
|
|
46
46
|
type: MatGridTile,
|
|
47
47
|
isStandalone: true,
|
|
48
48
|
selector: "mat-grid-tile",
|
|
@@ -60,14 +60,14 @@ class MatGridTile {
|
|
|
60
60
|
exportAs: ["matGridTile"],
|
|
61
61
|
ngImport: i0,
|
|
62
62
|
template: "<div class=\"mat-grid-tile-content\">\n <ng-content></ng-content>\n</div>\n",
|
|
63
|
-
styles: [".mat-grid-list{display:block
|
|
63
|
+
styles: [".mat-grid-list {\n display: block;\n position: relative;\n}\n\n.mat-grid-tile {\n display: block;\n position: absolute;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-tile-header,\n.mat-grid-tile .mat-grid-tile-footer {\n display: flex;\n align-items: center;\n height: 48px;\n color: #fff;\n background: rgba(0, 0, 0, 0.38);\n overflow: hidden;\n padding: 0 16px;\n position: absolute;\n left: 0;\n right: 0;\n}\n.mat-grid-tile .mat-grid-tile-header > *,\n.mat-grid-tile .mat-grid-tile-footer > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-tile-header.mat-2-line,\n.mat-grid-tile .mat-grid-tile-footer.mat-2-line {\n height: 68px;\n}\n.mat-grid-tile .mat-grid-list-text {\n display: flex;\n flex-direction: column;\n flex: auto;\n box-sizing: border-box;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-list-text > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-list-text:empty {\n display: none;\n}\n.mat-grid-tile .mat-grid-tile-header {\n top: 0;\n}\n.mat-grid-tile .mat-grid-tile-footer {\n bottom: 0;\n}\n.mat-grid-tile .mat-grid-avatar {\n padding-right: 16px;\n}\n[dir=rtl] .mat-grid-tile .mat-grid-avatar {\n padding-right: 0;\n padding-left: 16px;\n}\n.mat-grid-tile .mat-grid-avatar:empty {\n display: none;\n}\n\n.mat-grid-tile-header {\n font-size: var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-header .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-header .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-footer {\n font-size: var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-footer .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-footer .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-content {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n"],
|
|
64
64
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
65
65
|
encapsulation: i0.ViewEncapsulation.None
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
i0.ɵɵngDeclareClassMetadata({
|
|
69
69
|
minVersion: "12.0.0",
|
|
70
|
-
version: "22.0.0-next.
|
|
70
|
+
version: "22.0.0-next.5",
|
|
71
71
|
ngImport: i0,
|
|
72
72
|
type: MatGridTile,
|
|
73
73
|
decorators: [{
|
|
@@ -83,7 +83,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
83
83
|
encapsulation: ViewEncapsulation.None,
|
|
84
84
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
85
85
|
template: "<div class=\"mat-grid-tile-content\">\n <ng-content></ng-content>\n</div>\n",
|
|
86
|
-
styles: [".mat-grid-list{display:block
|
|
86
|
+
styles: [".mat-grid-list {\n display: block;\n position: relative;\n}\n\n.mat-grid-tile {\n display: block;\n position: absolute;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-tile-header,\n.mat-grid-tile .mat-grid-tile-footer {\n display: flex;\n align-items: center;\n height: 48px;\n color: #fff;\n background: rgba(0, 0, 0, 0.38);\n overflow: hidden;\n padding: 0 16px;\n position: absolute;\n left: 0;\n right: 0;\n}\n.mat-grid-tile .mat-grid-tile-header > *,\n.mat-grid-tile .mat-grid-tile-footer > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-tile-header.mat-2-line,\n.mat-grid-tile .mat-grid-tile-footer.mat-2-line {\n height: 68px;\n}\n.mat-grid-tile .mat-grid-list-text {\n display: flex;\n flex-direction: column;\n flex: auto;\n box-sizing: border-box;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-list-text > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-list-text:empty {\n display: none;\n}\n.mat-grid-tile .mat-grid-tile-header {\n top: 0;\n}\n.mat-grid-tile .mat-grid-tile-footer {\n bottom: 0;\n}\n.mat-grid-tile .mat-grid-avatar {\n padding-right: 16px;\n}\n[dir=rtl] .mat-grid-tile .mat-grid-avatar {\n padding-right: 0;\n padding-left: 16px;\n}\n.mat-grid-tile .mat-grid-avatar:empty {\n display: none;\n}\n\n.mat-grid-tile-header {\n font-size: var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-header .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-header .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-footer {\n font-size: var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-footer .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-footer .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-content {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n"]
|
|
87
87
|
}]
|
|
88
88
|
}],
|
|
89
89
|
ctorParameters: () => [],
|
|
@@ -105,7 +105,7 @@ class MatGridTileText {
|
|
|
105
105
|
}
|
|
106
106
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
107
107
|
minVersion: "12.0.0",
|
|
108
|
-
version: "22.0.0-next.
|
|
108
|
+
version: "22.0.0-next.5",
|
|
109
109
|
ngImport: i0,
|
|
110
110
|
type: MatGridTileText,
|
|
111
111
|
deps: [],
|
|
@@ -113,7 +113,7 @@ class MatGridTileText {
|
|
|
113
113
|
});
|
|
114
114
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
115
115
|
minVersion: "14.0.0",
|
|
116
|
-
version: "22.0.0-next.
|
|
116
|
+
version: "22.0.0-next.5",
|
|
117
117
|
type: MatGridTileText,
|
|
118
118
|
isStandalone: true,
|
|
119
119
|
selector: "mat-grid-tile-header, mat-grid-tile-footer",
|
|
@@ -130,7 +130,7 @@ class MatGridTileText {
|
|
|
130
130
|
}
|
|
131
131
|
i0.ɵɵngDeclareClassMetadata({
|
|
132
132
|
minVersion: "12.0.0",
|
|
133
|
-
version: "22.0.0-next.
|
|
133
|
+
version: "22.0.0-next.5",
|
|
134
134
|
ngImport: i0,
|
|
135
135
|
type: MatGridTileText,
|
|
136
136
|
decorators: [{
|
|
@@ -155,7 +155,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
155
155
|
class MatGridAvatarCssMatStyler {
|
|
156
156
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
157
157
|
minVersion: "12.0.0",
|
|
158
|
-
version: "22.0.0-next.
|
|
158
|
+
version: "22.0.0-next.5",
|
|
159
159
|
ngImport: i0,
|
|
160
160
|
type: MatGridAvatarCssMatStyler,
|
|
161
161
|
deps: [],
|
|
@@ -163,7 +163,7 @@ class MatGridAvatarCssMatStyler {
|
|
|
163
163
|
});
|
|
164
164
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
165
165
|
minVersion: "14.0.0",
|
|
166
|
-
version: "22.0.0-next.
|
|
166
|
+
version: "22.0.0-next.5",
|
|
167
167
|
type: MatGridAvatarCssMatStyler,
|
|
168
168
|
isStandalone: true,
|
|
169
169
|
selector: "[mat-grid-avatar], [matGridAvatar]",
|
|
@@ -175,7 +175,7 @@ class MatGridAvatarCssMatStyler {
|
|
|
175
175
|
}
|
|
176
176
|
i0.ɵɵngDeclareClassMetadata({
|
|
177
177
|
minVersion: "12.0.0",
|
|
178
|
-
version: "22.0.0-next.
|
|
178
|
+
version: "22.0.0-next.5",
|
|
179
179
|
ngImport: i0,
|
|
180
180
|
type: MatGridAvatarCssMatStyler,
|
|
181
181
|
decorators: [{
|
|
@@ -191,7 +191,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
191
191
|
class MatGridTileHeaderCssMatStyler {
|
|
192
192
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
193
193
|
minVersion: "12.0.0",
|
|
194
|
-
version: "22.0.0-next.
|
|
194
|
+
version: "22.0.0-next.5",
|
|
195
195
|
ngImport: i0,
|
|
196
196
|
type: MatGridTileHeaderCssMatStyler,
|
|
197
197
|
deps: [],
|
|
@@ -199,7 +199,7 @@ class MatGridTileHeaderCssMatStyler {
|
|
|
199
199
|
});
|
|
200
200
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
201
201
|
minVersion: "14.0.0",
|
|
202
|
-
version: "22.0.0-next.
|
|
202
|
+
version: "22.0.0-next.5",
|
|
203
203
|
type: MatGridTileHeaderCssMatStyler,
|
|
204
204
|
isStandalone: true,
|
|
205
205
|
selector: "mat-grid-tile-header",
|
|
@@ -211,7 +211,7 @@ class MatGridTileHeaderCssMatStyler {
|
|
|
211
211
|
}
|
|
212
212
|
i0.ɵɵngDeclareClassMetadata({
|
|
213
213
|
minVersion: "12.0.0",
|
|
214
|
-
version: "22.0.0-next.
|
|
214
|
+
version: "22.0.0-next.5",
|
|
215
215
|
ngImport: i0,
|
|
216
216
|
type: MatGridTileHeaderCssMatStyler,
|
|
217
217
|
decorators: [{
|
|
@@ -227,7 +227,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
227
227
|
class MatGridTileFooterCssMatStyler {
|
|
228
228
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
229
229
|
minVersion: "12.0.0",
|
|
230
|
-
version: "22.0.0-next.
|
|
230
|
+
version: "22.0.0-next.5",
|
|
231
231
|
ngImport: i0,
|
|
232
232
|
type: MatGridTileFooterCssMatStyler,
|
|
233
233
|
deps: [],
|
|
@@ -235,7 +235,7 @@ class MatGridTileFooterCssMatStyler {
|
|
|
235
235
|
});
|
|
236
236
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
237
237
|
minVersion: "14.0.0",
|
|
238
|
-
version: "22.0.0-next.
|
|
238
|
+
version: "22.0.0-next.5",
|
|
239
239
|
type: MatGridTileFooterCssMatStyler,
|
|
240
240
|
isStandalone: true,
|
|
241
241
|
selector: "mat-grid-tile-footer",
|
|
@@ -247,7 +247,7 @@ class MatGridTileFooterCssMatStyler {
|
|
|
247
247
|
}
|
|
248
248
|
i0.ɵɵngDeclareClassMetadata({
|
|
249
249
|
minVersion: "12.0.0",
|
|
250
|
-
version: "22.0.0-next.
|
|
250
|
+
version: "22.0.0-next.5",
|
|
251
251
|
ngImport: i0,
|
|
252
252
|
type: MatGridTileFooterCssMatStyler,
|
|
253
253
|
decorators: [{
|
|
@@ -477,7 +477,7 @@ class MatGridList {
|
|
|
477
477
|
}
|
|
478
478
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
479
479
|
minVersion: "12.0.0",
|
|
480
|
-
version: "22.0.0-next.
|
|
480
|
+
version: "22.0.0-next.5",
|
|
481
481
|
ngImport: i0,
|
|
482
482
|
type: MatGridList,
|
|
483
483
|
deps: [],
|
|
@@ -485,7 +485,7 @@ class MatGridList {
|
|
|
485
485
|
});
|
|
486
486
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
487
487
|
minVersion: "14.0.0",
|
|
488
|
-
version: "22.0.0-next.
|
|
488
|
+
version: "22.0.0-next.5",
|
|
489
489
|
type: MatGridList,
|
|
490
490
|
isStandalone: true,
|
|
491
491
|
selector: "mat-grid-list",
|
|
@@ -512,14 +512,14 @@ class MatGridList {
|
|
|
512
512
|
exportAs: ["matGridList"],
|
|
513
513
|
ngImport: i0,
|
|
514
514
|
template: "<div>\n <ng-content></ng-content>\n</div>",
|
|
515
|
-
styles: [".mat-grid-list{display:block
|
|
515
|
+
styles: [".mat-grid-list {\n display: block;\n position: relative;\n}\n\n.mat-grid-tile {\n display: block;\n position: absolute;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-tile-header,\n.mat-grid-tile .mat-grid-tile-footer {\n display: flex;\n align-items: center;\n height: 48px;\n color: #fff;\n background: rgba(0, 0, 0, 0.38);\n overflow: hidden;\n padding: 0 16px;\n position: absolute;\n left: 0;\n right: 0;\n}\n.mat-grid-tile .mat-grid-tile-header > *,\n.mat-grid-tile .mat-grid-tile-footer > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-tile-header.mat-2-line,\n.mat-grid-tile .mat-grid-tile-footer.mat-2-line {\n height: 68px;\n}\n.mat-grid-tile .mat-grid-list-text {\n display: flex;\n flex-direction: column;\n flex: auto;\n box-sizing: border-box;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-list-text > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-list-text:empty {\n display: none;\n}\n.mat-grid-tile .mat-grid-tile-header {\n top: 0;\n}\n.mat-grid-tile .mat-grid-tile-footer {\n bottom: 0;\n}\n.mat-grid-tile .mat-grid-avatar {\n padding-right: 16px;\n}\n[dir=rtl] .mat-grid-tile .mat-grid-avatar {\n padding-right: 0;\n padding-left: 16px;\n}\n.mat-grid-tile .mat-grid-avatar:empty {\n display: none;\n}\n\n.mat-grid-tile-header {\n font-size: var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-header .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-header .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-footer {\n font-size: var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-footer .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-footer .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-content {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n"],
|
|
516
516
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
517
517
|
encapsulation: i0.ViewEncapsulation.None
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
i0.ɵɵngDeclareClassMetadata({
|
|
521
521
|
minVersion: "12.0.0",
|
|
522
|
-
version: "22.0.0-next.
|
|
522
|
+
version: "22.0.0-next.5",
|
|
523
523
|
ngImport: i0,
|
|
524
524
|
type: MatGridList,
|
|
525
525
|
decorators: [{
|
|
@@ -538,7 +538,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
538
538
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
539
539
|
encapsulation: ViewEncapsulation.None,
|
|
540
540
|
template: "<div>\n <ng-content></ng-content>\n</div>",
|
|
541
|
-
styles: [".mat-grid-list{display:block
|
|
541
|
+
styles: [".mat-grid-list {\n display: block;\n position: relative;\n}\n\n.mat-grid-tile {\n display: block;\n position: absolute;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-tile-header,\n.mat-grid-tile .mat-grid-tile-footer {\n display: flex;\n align-items: center;\n height: 48px;\n color: #fff;\n background: rgba(0, 0, 0, 0.38);\n overflow: hidden;\n padding: 0 16px;\n position: absolute;\n left: 0;\n right: 0;\n}\n.mat-grid-tile .mat-grid-tile-header > *,\n.mat-grid-tile .mat-grid-tile-footer > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-tile-header.mat-2-line,\n.mat-grid-tile .mat-grid-tile-footer.mat-2-line {\n height: 68px;\n}\n.mat-grid-tile .mat-grid-list-text {\n display: flex;\n flex-direction: column;\n flex: auto;\n box-sizing: border-box;\n overflow: hidden;\n}\n.mat-grid-tile .mat-grid-list-text > * {\n margin: 0;\n padding: 0;\n font-weight: normal;\n font-size: inherit;\n}\n.mat-grid-tile .mat-grid-list-text:empty {\n display: none;\n}\n.mat-grid-tile .mat-grid-tile-header {\n top: 0;\n}\n.mat-grid-tile .mat-grid-tile-footer {\n bottom: 0;\n}\n.mat-grid-tile .mat-grid-avatar {\n padding-right: 16px;\n}\n[dir=rtl] .mat-grid-tile .mat-grid-avatar {\n padding-right: 0;\n padding-left: 16px;\n}\n.mat-grid-tile .mat-grid-avatar:empty {\n display: none;\n}\n\n.mat-grid-tile-header {\n font-size: var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-header .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-header .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-footer {\n font-size: var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large));\n}\n.mat-grid-tile-footer .mat-line {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n box-sizing: border-box;\n}\n.mat-grid-tile-footer .mat-line:nth-child(n+2) {\n font-size: var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium));\n}\n\n.mat-grid-tile-content {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n"]
|
|
542
542
|
}]
|
|
543
543
|
}],
|
|
544
544
|
ctorParameters: () => [],
|
|
@@ -564,7 +564,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
564
564
|
class MatGridListModule {
|
|
565
565
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
566
566
|
minVersion: "12.0.0",
|
|
567
|
-
version: "22.0.0-next.
|
|
567
|
+
version: "22.0.0-next.5",
|
|
568
568
|
ngImport: i0,
|
|
569
569
|
type: MatGridListModule,
|
|
570
570
|
deps: [],
|
|
@@ -572,7 +572,7 @@ class MatGridListModule {
|
|
|
572
572
|
});
|
|
573
573
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
574
574
|
minVersion: "14.0.0",
|
|
575
|
-
version: "22.0.0-next.
|
|
575
|
+
version: "22.0.0-next.5",
|
|
576
576
|
ngImport: i0,
|
|
577
577
|
type: MatGridListModule,
|
|
578
578
|
imports: [MatLineModule, MatGridList, MatGridTile, MatGridTileText, MatGridTileHeaderCssMatStyler, MatGridTileFooterCssMatStyler, MatGridAvatarCssMatStyler],
|
|
@@ -580,7 +580,7 @@ class MatGridListModule {
|
|
|
580
580
|
});
|
|
581
581
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
582
582
|
minVersion: "12.0.0",
|
|
583
|
-
version: "22.0.0-next.
|
|
583
|
+
version: "22.0.0-next.5",
|
|
584
584
|
ngImport: i0,
|
|
585
585
|
type: MatGridListModule,
|
|
586
586
|
imports: [MatLineModule, BidiModule, MatLineModule]
|
|
@@ -588,7 +588,7 @@ class MatGridListModule {
|
|
|
588
588
|
}
|
|
589
589
|
i0.ɵɵngDeclareClassMetadata({
|
|
590
590
|
minVersion: "12.0.0",
|
|
591
|
-
version: "22.0.0-next.
|
|
591
|
+
version: "22.0.0-next.5",
|
|
592
592
|
ngImport: i0,
|
|
593
593
|
type: MatGridListModule,
|
|
594
594
|
decorators: [{
|