@eui/ecl 19.3.1-snapshot-1750754090216 → 19.3.1-snapshot-1750768867060
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/components/ecl-help-block/ecl-help-block.directive.d.ts +13 -0
- package/components/ecl-help-block/ecl-help-block.directive.d.ts.map +1 -1
- package/docs/dependencies.html +2 -2
- package/docs/directives/EclHelpBlockDirective.html +34 -0
- package/docs/js/search/search_index.js +2 -2
- package/fesm2022/eui-ecl-components-ecl-help-block.mjs +13 -0
- package/fesm2022/eui-ecl-components-ecl-help-block.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,11 +3,24 @@ import { booleanAttribute, HostBinding, Input, Directive, NgModule } from '@angu
|
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Directive for rendering a help block element following the ECL design system.
|
|
8
|
+
*
|
|
9
|
+
* This directive allows conditional styling for disabled state.
|
|
10
|
+
*/
|
|
6
11
|
class EclHelpBlockDirective extends ECLBaseDirective {
|
|
7
12
|
constructor() {
|
|
8
13
|
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the help block is in a disabled state.
|
|
16
|
+
* When true, the `ecl-help-block--disabled` class is added.
|
|
17
|
+
*/
|
|
9
18
|
this.isDisabled = false;
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Applies ECL base class and optional modifier to the host element.
|
|
22
|
+
* Returns a space-separated list of CSS classes.
|
|
23
|
+
*/
|
|
11
24
|
get cssClasses() {
|
|
12
25
|
return [super.getCssClasses('ecl-help-block'), this.isDisabled ? 'ecl-help-block--disabled' : ''].join(' ').trim();
|
|
13
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-help-block.mjs","sources":["../../components/ecl-help-block/ecl-help-block.directive.ts","../../components/ecl-help-block/ecl-help-block.module.ts","../../components/ecl-help-block/eui-ecl-components-ecl-help-block.ts"],"sourcesContent":["import { Directive, HostBinding, Input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: '[eclHelpBlock]',\n standalone: false,\n})\nexport class EclHelpBlockDirective extends ECLBaseDirective {\n @Input({ transform: booleanAttribute }) isDisabled = false;\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-help-block'), this.isDisabled ? 'ecl-help-block--disabled' : ''].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EclHelpBlockDirective } from './ecl-help-block.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [EclHelpBlockDirective],\n exports: [EclHelpBlockDirective],\n})\nexport class EclHelpBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-help-block.mjs","sources":["../../components/ecl-help-block/ecl-help-block.directive.ts","../../components/ecl-help-block/ecl-help-block.module.ts","../../components/ecl-help-block/eui-ecl-components-ecl-help-block.ts"],"sourcesContent":["import { Directive, HostBinding, Input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for rendering a help block element following the ECL design system.\n * \n * This directive allows conditional styling for disabled state.\n */\n@Directive({\n selector: '[eclHelpBlock]',\n standalone: false,\n})\nexport class EclHelpBlockDirective extends ECLBaseDirective {\n /**\n * Indicates whether the help block is in a disabled state.\n * When true, the `ecl-help-block--disabled` class is added.\n */\n @Input({ transform: booleanAttribute }) isDisabled = false;\n\n /**\n * Applies ECL base class and optional modifier to the host element.\n * Returns a space-separated list of CSS classes.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-help-block'), this.isDisabled ? 'ecl-help-block--disabled' : ''].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EclHelpBlockDirective } from './ecl-help-block.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [EclHelpBlockDirective],\n exports: [EclHelpBlockDirective],\n})\nexport class EclHelpBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;;AAIG;AAKG,MAAO,qBAAsB,SAAQ,gBAAgB,CAAA;AAJ3D,IAAA,WAAA,GAAA;;AAKI;;;AAGG;QACqC,IAAA,CAAA,UAAU,GAAG,KAAK;AAU7D;AARG;;;AAGG;AACH,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,UAAU,GAAG,0BAA0B,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;;+GAb7G,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,sGAKV,gBAAgB,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAL3B,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,KAAK;AACpB,iBAAA;8BAM2C,UAAU,EAAA,CAAA;sBAAjD,KAAK;uBAAC,EAAE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