@dereekb/dbx-web 13.11.15 → 13.11.16
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/package.json +7 -7
- package/types/dereekb-dbx-web.d.ts +70 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.16",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.scss",
|
|
6
6
|
"*.css"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"@angular/material": "^21.2.9",
|
|
14
14
|
"@angular/platform-browser": "21.2.11",
|
|
15
15
|
"@cantoo/pdf-lib": "^2.6.5",
|
|
16
|
-
"@dereekb/browser": "13.11.
|
|
17
|
-
"@dereekb/date": "13.11.
|
|
18
|
-
"@dereekb/dbx-core": "13.11.
|
|
19
|
-
"@dereekb/rxjs": "13.11.
|
|
20
|
-
"@dereekb/util": "13.11.
|
|
21
|
-
"@dereekb/vitest": "13.11.
|
|
16
|
+
"@dereekb/browser": "13.11.16",
|
|
17
|
+
"@dereekb/date": "13.11.16",
|
|
18
|
+
"@dereekb/dbx-core": "13.11.16",
|
|
19
|
+
"@dereekb/rxjs": "13.11.16",
|
|
20
|
+
"@dereekb/util": "13.11.16",
|
|
21
|
+
"@dereekb/vitest": "13.11.16",
|
|
22
22
|
"@ngbracket/ngx-layout": "^21.0.0",
|
|
23
23
|
"@ngrx/component-store": "^21.1.0",
|
|
24
24
|
"@ngrx/effects": "^21.1.0",
|
|
@@ -4244,6 +4244,14 @@ declare class DbxSectionLayoutModule {
|
|
|
4244
4244
|
* The standalone `[dbxColorTone]` input wins over `config.tone` when both are set; the same precedence
|
|
4245
4245
|
* applies to tonal mode.
|
|
4246
4246
|
*
|
|
4247
|
+
* @dbxWebComponent
|
|
4248
|
+
* @dbxWebSlug color
|
|
4249
|
+
* @dbxWebCategory layout
|
|
4250
|
+
* @dbxWebRelated text-color, color-service
|
|
4251
|
+
* @dbxWebMinimalExample ```html
|
|
4252
|
+
* <div [dbxColor]="'primary'"></div>
|
|
4253
|
+
* ```
|
|
4254
|
+
*
|
|
4247
4255
|
* @example
|
|
4248
4256
|
* ```html
|
|
4249
4257
|
* <div [dbxColor]="'primary'">Themed background</div>
|
|
@@ -4323,6 +4331,14 @@ declare class DbxSpacerDirective {
|
|
|
4323
4331
|
*
|
|
4324
4332
|
* Use this directive to propagate the active style class onto any element or component.
|
|
4325
4333
|
*
|
|
4334
|
+
* @dbxWebComponent
|
|
4335
|
+
* @dbxWebSlug style
|
|
4336
|
+
* @dbxWebCategory layout
|
|
4337
|
+
* @dbxWebRelated style-service, style-body, set-style
|
|
4338
|
+
* @dbxWebMinimalExample ```html
|
|
4339
|
+
* <div dbxStyle></div>
|
|
4340
|
+
* ```
|
|
4341
|
+
*
|
|
4326
4342
|
* @example
|
|
4327
4343
|
* ```html
|
|
4328
4344
|
* <div dbxStyle>Styled content</div>
|
|
@@ -4350,6 +4366,14 @@ type DbxSetStyleMode = 'both' | 'global' | 'self';
|
|
|
4350
4366
|
* Accepts a {@link DbxStyleName} and optional suffixes, then applies the computed style class
|
|
4351
4367
|
* depending on the configured {@link DbxSetStyleMode}.
|
|
4352
4368
|
*
|
|
4369
|
+
* @dbxWebComponent
|
|
4370
|
+
* @dbxWebSlug set-style
|
|
4371
|
+
* @dbxWebCategory layout
|
|
4372
|
+
* @dbxWebRelated style, style-service, style-body
|
|
4373
|
+
* @dbxWebMinimalExample ```html
|
|
4374
|
+
* <div [dbxSetStyle]="'my-app'"></div>
|
|
4375
|
+
* ```
|
|
4376
|
+
*
|
|
4353
4377
|
* @example
|
|
4354
4378
|
* ```html
|
|
4355
4379
|
* <div [dbxSetStyle]="'my-app'" [setStyleMode]="'both'" [suffixes]="'dark'">
|
|
@@ -4394,6 +4418,14 @@ declare class DbxSetStyleDirective implements OnDestroy {
|
|
|
4394
4418
|
*
|
|
4395
4419
|
* Place this directive on a root-level element so that the body tag receives the active style class.
|
|
4396
4420
|
*
|
|
4421
|
+
* @dbxWebComponent
|
|
4422
|
+
* @dbxWebSlug style-body
|
|
4423
|
+
* @dbxWebCategory layout
|
|
4424
|
+
* @dbxWebRelated style, style-service, set-style
|
|
4425
|
+
* @dbxWebMinimalExample ```html
|
|
4426
|
+
* <div dbxStyleBody></div>
|
|
4427
|
+
* ```
|
|
4428
|
+
*
|
|
4397
4429
|
* @example
|
|
4398
4430
|
* ```html
|
|
4399
4431
|
* <div dbxStyleBody></div>
|
|
@@ -4427,6 +4459,20 @@ declare const DEFAULT_DBX_STYLE_CONFIG_TOKEN: InjectionToken<unknown>;
|
|
|
4427
4459
|
*
|
|
4428
4460
|
* Consumers can set a default style config, override it with an observable config,
|
|
4429
4461
|
* and toggle style suffixes to switch between style variants at runtime.
|
|
4462
|
+
*
|
|
4463
|
+
* Provided via `provideDbxStyleService()` from `style.providers`.
|
|
4464
|
+
*
|
|
4465
|
+
* @dbxWebComponent
|
|
4466
|
+
* @dbxWebSlug style-service
|
|
4467
|
+
* @dbxWebCategory layout
|
|
4468
|
+
* @dbxWebRelated style, set-style, style-body, color-service
|
|
4469
|
+
*
|
|
4470
|
+
* @example
|
|
4471
|
+
* ```ts
|
|
4472
|
+
* const styleService = inject(DbxStyleService);
|
|
4473
|
+
* styleService.toggleDarkSuffix(); // toggle dark mode on/off
|
|
4474
|
+
* styleService.setStyleClassSuffix('dark'); // force dark mode
|
|
4475
|
+
* ```
|
|
4430
4476
|
*/
|
|
4431
4477
|
declare class DbxStyleService implements Destroyable {
|
|
4432
4478
|
private readonly _defaultConfig;
|
|
@@ -4503,9 +4549,22 @@ declare abstract class DbxColorServiceConfig {
|
|
|
4503
4549
|
* Service that registers named {@link DbxColorConfigTemplate} entries and expands
|
|
4504
4550
|
* {@link DbxColorConfig} values that reference a template by key.
|
|
4505
4551
|
*
|
|
4506
|
-
*
|
|
4507
|
-
*
|
|
4508
|
-
*
|
|
4552
|
+
* Seeded via `provideDbxStyleService({ dbxColorServiceConfig: { templates: [...] } })`,
|
|
4553
|
+
* then injected by {@link DbxColorDirective} and {@link DbxTextColorDirective} to resolve
|
|
4554
|
+
* template references at render time.
|
|
4555
|
+
*
|
|
4556
|
+
* @dbxWebComponent
|
|
4557
|
+
* @dbxWebSlug color-service
|
|
4558
|
+
* @dbxWebCategory layout
|
|
4559
|
+
* @dbxWebRelated color, text-color, style-service
|
|
4560
|
+
*
|
|
4561
|
+
* @example
|
|
4562
|
+
* ```ts
|
|
4563
|
+
* const colorService = inject(DbxColorService);
|
|
4564
|
+
* colorService.register({ key: 'brand-positive', config: { color: '#1f9b59', contrast: 'white', tone: 18 } });
|
|
4565
|
+
* colorService.expandColorConfig({ template: 'brand-positive' });
|
|
4566
|
+
* // -> { template: 'brand-positive', color: '#1f9b59', contrast: 'white', tone: 18 }
|
|
4567
|
+
* ```
|
|
4509
4568
|
*/
|
|
4510
4569
|
declare class DbxColorService {
|
|
4511
4570
|
private readonly _templates;
|
|
@@ -4604,6 +4663,14 @@ declare function provideDbxStyleService(config: ProvideDbxStyleServiceConfig): E
|
|
|
4604
4663
|
* object carrying an arbitrary CSS color value. Unlike {@link DbxColorDirective} which sets the background,
|
|
4605
4664
|
* this directive only sets the foreground text color.
|
|
4606
4665
|
*
|
|
4666
|
+
* @dbxWebComponent
|
|
4667
|
+
* @dbxWebSlug text-color
|
|
4668
|
+
* @dbxWebCategory layout
|
|
4669
|
+
* @dbxWebRelated color, color-service
|
|
4670
|
+
* @dbxWebMinimalExample ```html
|
|
4671
|
+
* <span [dbxTextColor]="'primary'"></span>
|
|
4672
|
+
* ```
|
|
4673
|
+
*
|
|
4607
4674
|
* @example
|
|
4608
4675
|
* ```html
|
|
4609
4676
|
* <mat-icon [dbxTextColor]="'warn'">error</mat-icon>
|