@dereekb/dbx-form 13.8.0 → 13.9.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.
Files changed (48) hide show
  1. package/fesm2022/dereekb-dbx-form-calendar.mjs +10 -18
  2. package/fesm2022/dereekb-dbx-form-calendar.mjs.map +1 -1
  3. package/fesm2022/dereekb-dbx-form-flex.wrapper.component-CpOHCk87.mjs +39 -0
  4. package/fesm2022/dereekb-dbx-form-flex.wrapper.component-CpOHCk87.mjs.map +1 -0
  5. package/fesm2022/dereekb-dbx-form-info.wrapper.component-18n632L-.mjs +61 -0
  6. package/fesm2022/dereekb-dbx-form-info.wrapper.component-18n632L-.mjs.map +1 -0
  7. package/fesm2022/dereekb-dbx-form-mapbox.mjs +26 -16
  8. package/fesm2022/dereekb-dbx-form-mapbox.mjs.map +1 -1
  9. package/fesm2022/dereekb-dbx-form-section.wrapper.component-vq21oG6v.mjs +52 -0
  10. package/fesm2022/dereekb-dbx-form-section.wrapper.component-vq21oG6v.mjs.map +1 -0
  11. package/fesm2022/dereekb-dbx-form-style.wrapper.component-BbKj-IHD.mjs +42 -0
  12. package/fesm2022/dereekb-dbx-form-style.wrapper.component-BbKj-IHD.mjs.map +1 -0
  13. package/fesm2022/dereekb-dbx-form.mjs +4398 -2865
  14. package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
  15. package/lib/forge/_forge.scss +14 -0
  16. package/lib/forge/field/_field.scss +0 -2
  17. package/lib/forge/field/selection/_selection.scss +3 -0
  18. package/lib/forge/field/selection/list/_list.scss +17 -0
  19. package/lib/forge/field/selection/pickable/_pickable.scss +26 -1
  20. package/lib/forge/field/selection/sourceselect/_sourceselect.scss +16 -32
  21. package/lib/forge/field/wrapper/_wrapper.scss +16 -6
  22. package/lib/{formly/form/_form.scss → forge/preset/_preset.scss} +3 -12
  23. package/lib/forge/style/_shared.scss +13 -3
  24. package/lib/form/_form.scss +21 -7
  25. package/lib/formly/field/selection/sourceselect/_sourceselect.scss +0 -7
  26. package/lib/style/_all-core.scss +2 -4
  27. package/lib/style/_all-theme.scss +2 -4
  28. package/lib/style/_all-typography.scss +1 -1
  29. package/package.json +10 -10
  30. package/types/dereekb-dbx-form-calendar.d.ts +9 -20
  31. package/types/dereekb-dbx-form-mapbox.d.ts +15 -12
  32. package/types/dereekb-dbx-form.d.ts +4554 -3948
  33. package/fesm2022/dereekb-dbx-form-array.field.component-1wYSd4d3.mjs +0 -169
  34. package/fesm2022/dereekb-dbx-form-array.field.component-1wYSd4d3.mjs.map +0 -1
  35. package/fesm2022/dereekb-dbx-form-formfield.field.component-BQyujXe3.mjs +0 -70
  36. package/fesm2022/dereekb-dbx-form-formfield.field.component-BQyujXe3.mjs.map +0 -1
  37. package/fesm2022/dereekb-dbx-form-info.wrapper.field.component-Crm4wVr5.mjs +0 -35
  38. package/fesm2022/dereekb-dbx-form-info.wrapper.field.component-Crm4wVr5.mjs.map +0 -1
  39. package/fesm2022/dereekb-dbx-form-section.field.component-DliafLqL.mjs +0 -63
  40. package/fesm2022/dereekb-dbx-form-section.field.component-DliafLqL.mjs.map +0 -1
  41. package/fesm2022/dereekb-dbx-form-style.field.component-C3ZNiotx.mjs +0 -71
  42. package/fesm2022/dereekb-dbx-form-style.field.component-C3ZNiotx.mjs.map +0 -1
  43. package/fesm2022/dereekb-dbx-form-working.field.component-CO8vK2bH.mjs +0 -53
  44. package/fesm2022/dereekb-dbx-form-working.field.component-CO8vK2bH.mjs.map +0 -1
  45. package/fesm2022/dereekb-dbx-form-working.wrapper.field.component-BtD7_5i5.mjs +0 -54
  46. package/fesm2022/dereekb-dbx-form-working.wrapper.field.component-BtD7_5i5.mjs.map +0 -1
  47. package/fesm2022/dereekb-dbx-form-wrapper.content.component-Cy4ND_se.mjs +0 -87
  48. package/fesm2022/dereekb-dbx-form-wrapper.content.component-Cy4ND_se.mjs.map +0 -1
@@ -0,0 +1,42 @@
1
+ import { NgClass, NgStyle } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { viewChild, ViewContainerRef, input, ChangeDetectionStrategy, Component } from '@angular/core';
4
+ import { valueFromObservableOrValue } from '@dereekb/rxjs';
5
+ import { toObservable, toSignal } from '@angular/core/rxjs-interop';
6
+
7
+ /**
8
+ * Forge wrapper component that applies dynamic CSS classes and
9
+ * inline styles to a container around child fields.
10
+ */
11
+ class DbxForgeStyleWrapperComponent {
12
+ fieldComponent = viewChild.required('fieldComponent', { read: ViewContainerRef });
13
+ classGetter = input(...(ngDevMode ? [undefined, { debugName: "classGetter" }] : /* istanbul ignore next */ []));
14
+ styleGetter = input(...(ngDevMode ? [undefined, { debugName: "styleGetter" }] : /* istanbul ignore next */ []));
15
+ classValue$ = toObservable(this.classGetter).pipe(valueFromObservableOrValue());
16
+ styleValue$ = toObservable(this.styleGetter).pipe(valueFromObservableOrValue());
17
+ classValueSignal = toSignal(this.classValue$);
18
+ styleValueSignal = toSignal(this.styleValue$);
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxForgeStyleWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: DbxForgeStyleWrapperComponent, isStandalone: true, selector: "dbx-forge-style-wrapper", inputs: { classGetter: { classPropertyName: "classGetter", publicName: "classGetter", isSignal: true, isRequired: false, transformFunction: null }, styleGetter: { classPropertyName: "styleGetter", publicName: "styleGetter", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "fieldComponent", first: true, predicate: ["fieldComponent"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `
21
+ <div class="dbx-form-style-wrapper" [ngClass]="classValueSignal()" [ngStyle]="styleValueSignal()">
22
+ <ng-container #fieldComponent></ng-container>
23
+ </div>
24
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxForgeStyleWrapperComponent, decorators: [{
27
+ type: Component,
28
+ args: [{
29
+ selector: 'dbx-forge-style-wrapper',
30
+ template: `
31
+ <div class="dbx-form-style-wrapper" [ngClass]="classValueSignal()" [ngStyle]="styleValueSignal()">
32
+ <ng-container #fieldComponent></ng-container>
33
+ </div>
34
+ `,
35
+ imports: [NgClass, NgStyle],
36
+ changeDetection: ChangeDetectionStrategy.OnPush,
37
+ standalone: true
38
+ }]
39
+ }], propDecorators: { fieldComponent: [{ type: i0.ViewChild, args: ['fieldComponent', { ...{ read: ViewContainerRef }, isSignal: true }] }], classGetter: [{ type: i0.Input, args: [{ isSignal: true, alias: "classGetter", required: false }] }], styleGetter: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleGetter", required: false }] }] } });
40
+
41
+ export { DbxForgeStyleWrapperComponent };
42
+ //# sourceMappingURL=dereekb-dbx-form-style.wrapper.component-BbKj-IHD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dereekb-dbx-form-style.wrapper.component-BbKj-IHD.mjs","sources":["../../../../packages/dbx-form/src/lib/forge/field/wrapper/style/style.wrapper.component.ts"],"sourcesContent":["import { NgClass, NgStyle } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, viewChild, ViewContainerRef } from '@angular/core';\nimport { type FieldWrapperContract } from '@ng-forge/dynamic-forms';\nimport { type MaybeObservableOrValue, valueFromObservableOrValue } from '@dereekb/rxjs';\nimport type { DbxForgeStyleObject } from './style.wrapper';\nimport { toObservable, toSignal } from '@angular/core/rxjs-interop';\n\n/**\n * Forge wrapper component that applies dynamic CSS classes and\n * inline styles to a container around child fields.\n */\n@Component({\n selector: 'dbx-forge-style-wrapper',\n template: `\n <div class=\"dbx-form-style-wrapper\" [ngClass]=\"classValueSignal()\" [ngStyle]=\"styleValueSignal()\">\n <ng-container #fieldComponent></ng-container>\n </div>\n `,\n imports: [NgClass, NgStyle],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true\n})\nexport class DbxForgeStyleWrapperComponent implements FieldWrapperContract {\n readonly fieldComponent = viewChild.required('fieldComponent', { read: ViewContainerRef });\n\n readonly classGetter = input<MaybeObservableOrValue<string>>();\n readonly styleGetter = input<MaybeObservableOrValue<DbxForgeStyleObject>>();\n\n readonly classValue$ = toObservable(this.classGetter).pipe(valueFromObservableOrValue());\n readonly styleValue$ = toObservable(this.styleGetter).pipe(valueFromObservableOrValue());\n\n readonly classValueSignal = toSignal(this.classValue$);\n readonly styleValueSignal = toSignal(this.styleValue$);\n}\n"],"names":[],"mappings":";;;;;;AAOA;;;AAGG;MAYU,6BAA6B,CAAA;AAC/B,IAAA,cAAc,GAAG,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAEjF,WAAW,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,aAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAkC;IACrD,WAAW,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,aAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAA+C;AAElE,IAAA,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,0BAA0B,EAAE,CAAC;AAC/E,IAAA,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,0BAA0B,EAAE,CAAC;AAE/E,IAAA,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;AAC7C,IAAA,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;uGA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