@anglr/common 21.2.0-beta.20241003043628 → 21.2.0-beta.20241003044256

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/changelog.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 21.2.0 (2024-10-03)
4
+
5
+ ### Features
6
+
7
+ - new `WithFullscreenContentCssClass` decorator, that applies 'fullscreen-content' css class to components host
8
+
3
9
  ## Version 21.1.0 (2024-07-30)
4
10
 
5
11
  ### Features
@@ -5,6 +5,7 @@ export * from './componentDisplayFlex/componentDisplayFlex.decorator';
5
5
  export * from './componentHostStyle/componentHostStyle.decorator';
6
6
  export * from './scrollableContent/scrollableContent.decorator';
7
7
  export * from './typeProvider/typeProvider.decorator';
8
+ export * from './withFullscreenContentCssClass/withFullscreenContentCssClass.decorator';
8
9
  export * from './withPageContentCssClass/withPageContentCssClass.decorator';
9
10
  export * from './withScrollableCssClass/withScrollableCssClass.decorator';
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC","sourcesContent":["export * from './asSignal/asSignal.decorator';\nexport * from './componentDisplay/componentDisplay.decorator';\nexport * from './componentDisplayBlock/componentDisplayBlock.decorator';\nexport * from './componentDisplayFlex/componentDisplayFlex.decorator';\nexport * from './componentHostStyle/componentHostStyle.decorator';\nexport * from './scrollableContent/scrollableContent.decorator';\nexport * from './typeProvider/typeProvider.decorator';\nexport * from './withPageContentCssClass/withPageContentCssClass.decorator';\nexport * from './withScrollableCssClass/withScrollableCssClass.decorator';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,yEAAyE,CAAC;AACxF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC","sourcesContent":["export * from './asSignal/asSignal.decorator';\nexport * from './componentDisplay/componentDisplay.decorator';\nexport * from './componentDisplayBlock/componentDisplayBlock.decorator';\nexport * from './componentDisplayFlex/componentDisplayFlex.decorator';\nexport * from './componentHostStyle/componentHostStyle.decorator';\nexport * from './scrollableContent/scrollableContent.decorator';\nexport * from './typeProvider/typeProvider.decorator';\nexport * from './withFullscreenContentCssClass/withFullscreenContentCssClass.decorator';\nexport * from './withPageContentCssClass/withPageContentCssClass.decorator';\nexport * from './withScrollableCssClass/withScrollableCssClass.decorator';\n"]}
@@ -0,0 +1,18 @@
1
+ import { ɵɵclassProp } from '@angular/core';
2
+ /**
3
+ * Applies 'fullscreen-content' css class to components host
4
+ */
5
+ export function WithFullscreenContentCssClass() {
6
+ return function (target) {
7
+ const original = target.ɵcmp.hostBindings;
8
+ target.ɵcmp.hostVars = (target.ɵcmp.hostVars ?? 0) + 2;
9
+ target.ɵcmp.hostBindings = function NotFoundComponent_HostBindings(rf, _ctx) {
10
+ original?.(rf, _ctx);
11
+ if (rf & 2) {
12
+ ɵɵclassProp('fullscreen-content', true);
13
+ }
14
+ };
15
+ return target;
16
+ };
17
+ }
18
+ //# sourceMappingURL=withFullscreenContentCssClass.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withFullscreenContentCssClass.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/withFullscreenContentCssClass/withFullscreenContentCssClass.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAgC,MAAM,eAAe,CAAC;AAGzE;;GAEG;AACH,MAAM,UAAU,6BAA6B;IAEzC,OAAO,UAAsC,MAAiB;QAE1D,MAAM,QAAQ,GAAK,MAA6C,CAAC,IAA+B,CAAC,YAAY,CAAC;QAE5G,MAA6C,CAAC,IAAyC,CAAC,QAAQ,GAAG,CAAG,MAA6C,CAAC,IAA+B,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACvM,MAA6C,CAAC,IAAyC,CAAC,YAAY,GAAG,SAAS,8BAA8B,CAAC,EAAU,EAAE,IAAa;YAEtK,QAAQ,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;YAErB,IAAI,EAAE,GAAG,CAAC,EACV,CAAC;gBACG,WAAW,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;YAC5C,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {ɵɵclassProp, ɵComponentType, ɵComponentDef} from '@angular/core';\nimport {Writable} from '@jscrpt/common';\n\n/**\n * Applies 'fullscreen-content' css class to components host\n */\nexport function WithFullscreenContentCssClass(): ClassDecorator\n{\n return function<TFunction extends Function> (target: TFunction): TFunction\n {\n const original = ((target as unknown as ɵComponentType<unknown>).ɵcmp as ɵComponentDef<unknown>).hostBindings;\n\n ((target as unknown as ɵComponentType<unknown>).ɵcmp as Writable<ɵComponentDef<unknown>>).hostVars = (((target as unknown as ɵComponentType<unknown>).ɵcmp as ɵComponentDef<unknown>).hostVars ?? 0) + 2;\n ((target as unknown as ɵComponentType<unknown>).ɵcmp as Writable<ɵComponentDef<unknown>>).hostBindings = function NotFoundComponent_HostBindings(rf: number, _ctx: unknown)\n {\n original?.(rf, _ctx);\n\n if (rf & 2)\n {\n ɵɵclassProp('fullscreen-content', true);\n }\n };\n\n return target;\n };\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "21.2.0-beta.20241003043628",
3
+ "version": "21.2.0-beta.20241003044256",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -5,6 +5,7 @@ export * from './componentDisplayFlex/componentDisplayFlex.decorator';
5
5
  export * from './componentHostStyle/componentHostStyle.decorator';
6
6
  export * from './scrollableContent/scrollableContent.decorator';
7
7
  export * from './typeProvider/typeProvider.decorator';
8
+ export * from './withFullscreenContentCssClass/withFullscreenContentCssClass.decorator';
8
9
  export * from './withPageContentCssClass/withPageContentCssClass.decorator';
9
10
  export * from './withScrollableCssClass/withScrollableCssClass.decorator';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,yEAAyE,CAAC;AACxF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Applies 'fullscreen-content' css class to components host
3
+ */
4
+ export declare function WithFullscreenContentCssClass(): ClassDecorator;
5
+ //# sourceMappingURL=withFullscreenContentCssClass.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withFullscreenContentCssClass.decorator.d.ts","sourceRoot":"","sources":["withFullscreenContentCssClass.decorator.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,6BAA6B,IAAI,cAAc,CAmB9D"}
package/version.bak CHANGED
@@ -1 +1 @@
1
- 21.2.0-beta.20241003043628
1
+ 21.2.0-beta.20241003044256