@dereekb/dbx-web 13.11.15 → 13.11.17
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/eslint/index.cjs.js +6 -0
- package/eslint/index.esm.js +6 -1
- package/eslint/package.json +3 -3
- package/eslint/src/lib/index.d.ts +1 -1
- package/eslint/src/lib/plugin.d.ts +6 -0
- package/fesm2022/dereekb-dbx-web.mjs +70 -3
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/router/layout/anchor/_anchor.scss +16 -0
- package/package.json +7 -7
- package/types/dereekb-dbx-web.d.ts +70 -3
package/eslint/index.cjs.js
CHANGED
|
@@ -2541,6 +2541,11 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2541
2541
|
'require-top-level-computed-signals': DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE
|
|
2542
2542
|
}
|
|
2543
2543
|
};
|
|
2544
|
+
/**
|
|
2545
|
+
* camelCase alias of {@link DBX_WEB_ESLINT_PLUGIN} matching the conventional ESLint plugin export name.
|
|
2546
|
+
*
|
|
2547
|
+
* @dbxAllowConstantName
|
|
2548
|
+
*/ var dbxWebESLintPlugin = DBX_WEB_ESLINT_PLUGIN;
|
|
2544
2549
|
|
|
2545
2550
|
exports.DBX_WEB_ESLINT_PLUGIN = DBX_WEB_ESLINT_PLUGIN;
|
|
2546
2551
|
exports.DBX_WEB_NO_REDUNDANT_ON_DESTROY_RULE = DBX_WEB_NO_REDUNDANT_ON_DESTROY_RULE;
|
|
@@ -2549,3 +2554,4 @@ exports.DBX_WEB_REQUIRE_COMPLETE_ON_DESTROY_RULE = DBX_WEB_REQUIRE_COMPLETE_ON_D
|
|
|
2549
2554
|
exports.DBX_WEB_REQUIRE_COMPONENT_CONFIG_INPUT_RULE = DBX_WEB_REQUIRE_COMPONENT_CONFIG_INPUT_RULE;
|
|
2550
2555
|
exports.DBX_WEB_REQUIRE_COMPUTED_SIGNAL_SUFFIX_RULE = DBX_WEB_REQUIRE_COMPUTED_SIGNAL_SUFFIX_RULE;
|
|
2551
2556
|
exports.DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE = DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE;
|
|
2557
|
+
exports.dbxWebESLintPlugin = dbxWebESLintPlugin;
|
package/eslint/index.esm.js
CHANGED
|
@@ -2539,5 +2539,10 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
2539
2539
|
'require-top-level-computed-signals': DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
|
+
/**
|
|
2543
|
+
* camelCase alias of {@link DBX_WEB_ESLINT_PLUGIN} matching the conventional ESLint plugin export name.
|
|
2544
|
+
*
|
|
2545
|
+
* @dbxAllowConstantName
|
|
2546
|
+
*/ var dbxWebESLintPlugin = DBX_WEB_ESLINT_PLUGIN;
|
|
2542
2547
|
|
|
2543
|
-
export { DBX_WEB_ESLINT_PLUGIN, DBX_WEB_NO_REDUNDANT_ON_DESTROY_RULE, DBX_WEB_REQUIRE_CLEAN_SUBSCRIPTION_RULE, DBX_WEB_REQUIRE_COMPLETE_ON_DESTROY_RULE, DBX_WEB_REQUIRE_COMPONENT_CONFIG_INPUT_RULE, DBX_WEB_REQUIRE_COMPUTED_SIGNAL_SUFFIX_RULE, DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE };
|
|
2548
|
+
export { DBX_WEB_ESLINT_PLUGIN, DBX_WEB_NO_REDUNDANT_ON_DESTROY_RULE, DBX_WEB_REQUIRE_CLEAN_SUBSCRIPTION_RULE, DBX_WEB_REQUIRE_COMPLETE_ON_DESTROY_RULE, DBX_WEB_REQUIRE_COMPONENT_CONFIG_INPUT_RULE, DBX_WEB_REQUIRE_COMPUTED_SIGNAL_SUFFIX_RULE, DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE, dbxWebESLintPlugin };
|
package/eslint/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web/eslint",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.17",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@typescript-eslint/utils": "8.59.3"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@angular/core": "21.2.11",
|
|
9
|
-
"@dereekb/dbx-core": "13.11.
|
|
10
|
-
"@dereekb/rxjs": "13.11.
|
|
9
|
+
"@dereekb/dbx-core": "13.11.17",
|
|
10
|
+
"@dereekb/rxjs": "13.11.17",
|
|
11
11
|
"@typescript-eslint/parser": "8.59.3",
|
|
12
12
|
"eslint": "10.4.0",
|
|
13
13
|
"rxjs": "^7.8.2"
|
|
@@ -4,4 +4,4 @@ export { DBX_WEB_NO_REDUNDANT_ON_DESTROY_RULE } from './no-redundant-on-destroy.
|
|
|
4
4
|
export { DBX_WEB_REQUIRE_COMPUTED_SIGNAL_SUFFIX_RULE } from './require-computed-signal-suffix.rule';
|
|
5
5
|
export { DBX_WEB_REQUIRE_COMPONENT_CONFIG_INPUT_RULE } from './require-component-config-input.rule';
|
|
6
6
|
export { DBX_WEB_REQUIRE_TOP_LEVEL_COMPUTED_SIGNALS_RULE } from './require-top-level-computed-signals.rule';
|
|
7
|
-
export { DBX_WEB_ESLINT_PLUGIN } from './plugin';
|
|
7
|
+
export { DBX_WEB_ESLINT_PLUGIN, dbxWebESLintPlugin, type DbxWebEslintPlugin } from './plugin';
|
|
@@ -24,3 +24,9 @@ export interface DbxWebEslintPlugin {
|
|
|
24
24
|
* under the chosen plugin prefix (e.g. 'dereekb-dbx-web/require-clean-subscription').
|
|
25
25
|
*/
|
|
26
26
|
export declare const DBX_WEB_ESLINT_PLUGIN: DbxWebEslintPlugin;
|
|
27
|
+
/**
|
|
28
|
+
* camelCase alias of {@link DBX_WEB_ESLINT_PLUGIN} matching the conventional ESLint plugin export name.
|
|
29
|
+
*
|
|
30
|
+
* @dbxAllowConstantName
|
|
31
|
+
*/
|
|
32
|
+
export declare const dbxWebESLintPlugin: DbxWebEslintPlugin;
|
|
@@ -978,9 +978,22 @@ class DbxColorServiceConfig {
|
|
|
978
978
|
* Service that registers named {@link DbxColorConfigTemplate} entries and expands
|
|
979
979
|
* {@link DbxColorConfig} values that reference a template by key.
|
|
980
980
|
*
|
|
981
|
-
*
|
|
982
|
-
*
|
|
983
|
-
*
|
|
981
|
+
* Seeded via `provideDbxStyleService({ dbxColorServiceConfig: { templates: [...] } })`,
|
|
982
|
+
* then injected by {@link DbxColorDirective} and {@link DbxTextColorDirective} to resolve
|
|
983
|
+
* template references at render time.
|
|
984
|
+
*
|
|
985
|
+
* @dbxWebComponent
|
|
986
|
+
* @dbxWebSlug color-service
|
|
987
|
+
* @dbxWebCategory layout
|
|
988
|
+
* @dbxWebRelated color, text-color, style-service
|
|
989
|
+
*
|
|
990
|
+
* @example
|
|
991
|
+
* ```ts
|
|
992
|
+
* const colorService = inject(DbxColorService);
|
|
993
|
+
* colorService.register({ key: 'brand-positive', config: { color: '#1f9b59', contrast: 'white', tone: 18 } });
|
|
994
|
+
* colorService.expandColorConfig({ template: 'brand-positive' });
|
|
995
|
+
* // -> { template: 'brand-positive', color: '#1f9b59', contrast: 'white', tone: 18 }
|
|
996
|
+
* ```
|
|
984
997
|
*/
|
|
985
998
|
class DbxColorService {
|
|
986
999
|
_templates = new Map();
|
|
@@ -1077,6 +1090,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
1077
1090
|
* The standalone `[dbxColorTone]` input wins over `config.tone` when both are set; the same precedence
|
|
1078
1091
|
* applies to tonal mode.
|
|
1079
1092
|
*
|
|
1093
|
+
* @dbxWebComponent
|
|
1094
|
+
* @dbxWebSlug color
|
|
1095
|
+
* @dbxWebCategory layout
|
|
1096
|
+
* @dbxWebRelated text-color, color-service
|
|
1097
|
+
* @dbxWebMinimalExample ```html
|
|
1098
|
+
* <div [dbxColor]="'primary'"></div>
|
|
1099
|
+
* ```
|
|
1100
|
+
*
|
|
1080
1101
|
* @example
|
|
1081
1102
|
* ```html
|
|
1082
1103
|
* <div [dbxColor]="'primary'">Themed background</div>
|
|
@@ -6361,6 +6382,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
6361
6382
|
* object carrying an arbitrary CSS color value. Unlike {@link DbxColorDirective} which sets the background,
|
|
6362
6383
|
* this directive only sets the foreground text color.
|
|
6363
6384
|
*
|
|
6385
|
+
* @dbxWebComponent
|
|
6386
|
+
* @dbxWebSlug text-color
|
|
6387
|
+
* @dbxWebCategory layout
|
|
6388
|
+
* @dbxWebRelated color, color-service
|
|
6389
|
+
* @dbxWebMinimalExample ```html
|
|
6390
|
+
* <span [dbxTextColor]="'primary'"></span>
|
|
6391
|
+
* ```
|
|
6392
|
+
*
|
|
6364
6393
|
* @example
|
|
6365
6394
|
* ```html
|
|
6366
6395
|
* <mat-icon [dbxTextColor]="'warn'">error</mat-icon>
|
|
@@ -14534,6 +14563,20 @@ const DEFAULT_DBX_STYLE_CONFIG_TOKEN = new InjectionToken('DbxStyleServiceDefaul
|
|
|
14534
14563
|
*
|
|
14535
14564
|
* Consumers can set a default style config, override it with an observable config,
|
|
14536
14565
|
* and toggle style suffixes to switch between style variants at runtime.
|
|
14566
|
+
*
|
|
14567
|
+
* Provided via `provideDbxStyleService()` from `style.providers`.
|
|
14568
|
+
*
|
|
14569
|
+
* @dbxWebComponent
|
|
14570
|
+
* @dbxWebSlug style-service
|
|
14571
|
+
* @dbxWebCategory layout
|
|
14572
|
+
* @dbxWebRelated style, set-style, style-body, color-service
|
|
14573
|
+
*
|
|
14574
|
+
* @example
|
|
14575
|
+
* ```ts
|
|
14576
|
+
* const styleService = inject(DbxStyleService);
|
|
14577
|
+
* styleService.toggleDarkSuffix(); // toggle dark mode on/off
|
|
14578
|
+
* styleService.setStyleClassSuffix('dark'); // force dark mode
|
|
14579
|
+
* ```
|
|
14537
14580
|
*/
|
|
14538
14581
|
class DbxStyleService {
|
|
14539
14582
|
_defaultConfig = new BehaviorSubject(inject(DEFAULT_DBX_STYLE_CONFIG_TOKEN));
|
|
@@ -14644,6 +14687,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
14644
14687
|
* Accepts a {@link DbxStyleName} and optional suffixes, then applies the computed style class
|
|
14645
14688
|
* depending on the configured {@link DbxSetStyleMode}.
|
|
14646
14689
|
*
|
|
14690
|
+
* @dbxWebComponent
|
|
14691
|
+
* @dbxWebSlug set-style
|
|
14692
|
+
* @dbxWebCategory layout
|
|
14693
|
+
* @dbxWebRelated style, style-service, style-body
|
|
14694
|
+
* @dbxWebMinimalExample ```html
|
|
14695
|
+
* <div [dbxSetStyle]="'my-app'"></div>
|
|
14696
|
+
* ```
|
|
14697
|
+
*
|
|
14647
14698
|
* @example
|
|
14648
14699
|
* ```html
|
|
14649
14700
|
* <div [dbxSetStyle]="'my-app'" [setStyleMode]="'both'" [suffixes]="'dark'">
|
|
@@ -14717,6 +14768,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
14717
14768
|
*
|
|
14718
14769
|
* Use this directive to propagate the active style class onto any element or component.
|
|
14719
14770
|
*
|
|
14771
|
+
* @dbxWebComponent
|
|
14772
|
+
* @dbxWebSlug style
|
|
14773
|
+
* @dbxWebCategory layout
|
|
14774
|
+
* @dbxWebRelated style-service, style-body, set-style
|
|
14775
|
+
* @dbxWebMinimalExample ```html
|
|
14776
|
+
* <div dbxStyle></div>
|
|
14777
|
+
* ```
|
|
14778
|
+
*
|
|
14720
14779
|
* @example
|
|
14721
14780
|
* ```html
|
|
14722
14781
|
* <div dbxStyle>Styled content</div>
|
|
@@ -14749,6 +14808,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
14749
14808
|
*
|
|
14750
14809
|
* Place this directive on a root-level element so that the body tag receives the active style class.
|
|
14751
14810
|
*
|
|
14811
|
+
* @dbxWebComponent
|
|
14812
|
+
* @dbxWebSlug style-body
|
|
14813
|
+
* @dbxWebCategory layout
|
|
14814
|
+
* @dbxWebRelated style, style-service, set-style
|
|
14815
|
+
* @dbxWebMinimalExample ```html
|
|
14816
|
+
* <div dbxStyleBody></div>
|
|
14817
|
+
* ```
|
|
14818
|
+
*
|
|
14752
14819
|
* @example
|
|
14753
14820
|
* ```html
|
|
14754
14821
|
* <div dbxStyleBody></div>
|