@design-factory/angular 21.0.0-next.0 → 21.0.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.
- package/README.md +61 -1
- package/fesm2022/design-factory-angular-drawer.mjs +112 -116
- package/fesm2022/design-factory-angular-drawer.mjs.map +1 -1
- package/fesm2022/design-factory-angular-internals.mjs +3 -3
- package/fesm2022/design-factory-angular-sidenav.mjs +65 -58
- package/fesm2022/design-factory-angular-sidenav.mjs.map +1 -1
- package/package.json +5 -12
- package/types/design-factory-angular-drawer.d.ts +32 -16
- package/types/design-factory-angular-sidenav.d.ts +6 -11
- package/fesm2022/design-factory-angular-accordion.mjs +0 -55
- package/fesm2022/design-factory-angular-accordion.mjs.map +0 -1
- package/fesm2022/design-factory-angular-config.mjs +0 -22
- package/fesm2022/design-factory-angular-config.mjs.map +0 -1
- package/types/design-factory-angular-accordion.d.ts +0 -47
- package/types/design-factory-angular-config.d.ts +0 -24
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { provideDfComponentConfig, injectDfComponentConfig } from '@design-factory/angular/internals';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
// the key of the accordion config in the global DF config
|
|
6
|
-
const ACCORDION_CONFIG_KEY = 'accordion';
|
|
7
|
-
/**
|
|
8
|
-
* Provides the configuration for the accordion component.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* \@Component({
|
|
13
|
-
* providers: [provideDfAccordionConfig({ closeOthers: true })]
|
|
14
|
-
* })
|
|
15
|
-
* export class MyHomeComponent {}
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @param config - Partial configuration or a function that receives the parent configuration and returns a partial configuration.
|
|
19
|
-
*/
|
|
20
|
-
const provideDfAccordionConfig = provideDfComponentConfig(ACCORDION_CONFIG_KEY);
|
|
21
|
-
/**
|
|
22
|
-
* Injects the configuration for the accordion component.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* \@Component({
|
|
27
|
-
* providers: [provideDfAccordionConfig()]
|
|
28
|
-
* })
|
|
29
|
-
* export class MyAccordionComponent {
|
|
30
|
-
* readonly accordionConfig = injectDfAccordionConfig();
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @returns A writable signal containing the accordion configuration.
|
|
35
|
-
*/
|
|
36
|
-
const injectDfAccordionConfig = injectDfComponentConfig(ACCORDION_CONFIG_KEY);
|
|
37
|
-
|
|
38
|
-
class DfAccordionComponent {
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: DfAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: DfAccordionComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: DfAccordionComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
template: ``,
|
|
46
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
47
|
-
}]
|
|
48
|
-
}] });
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Generated bundle index. Do not edit.
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
export { ACCORDION_CONFIG_KEY, DfAccordionComponent, injectDfAccordionConfig, provideDfAccordionConfig };
|
|
55
|
-
//# sourceMappingURL=design-factory-angular-accordion.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"design-factory-angular-accordion.mjs","sources":["../../accordion/accordion.config.ts","../../accordion/accordion.ts","../../accordion/design-factory-angular-accordion.ts"],"sourcesContent":["import { injectDfComponentConfig, provideDfComponentConfig } from '@design-factory/angular/internals';\n\n// TODO to fill\nexport type DfAccordionConfig = {\n /**\n * example prop\n */\n closeOthers: boolean;\n};\n\n// the key of the accordion config in the global DF config\nexport const ACCORDION_CONFIG_KEY = 'accordion' as const;\n\n/**\n * Provides the configuration for the accordion component.\n *\n * @example\n * ```ts\n * \\@Component({\n * providers: [provideDfAccordionConfig({ closeOthers: true })]\n * })\n * export class MyHomeComponent {}\n * ```\n *\n * @param config - Partial configuration or a function that receives the parent configuration and returns a partial configuration.\n */\nexport const provideDfAccordionConfig = provideDfComponentConfig<DfAccordionConfig>(ACCORDION_CONFIG_KEY);\n\n/**\n * Injects the configuration for the accordion component.\n *\n * @example\n * ```ts\n * \\@Component({\n * providers: [provideDfAccordionConfig()]\n * })\n * export class MyAccordionComponent {\n * readonly accordionConfig = injectDfAccordionConfig();\n * }\n * ```\n *\n * @returns A writable signal containing the accordion configuration.\n */\nexport const injectDfAccordionConfig = injectDfComponentConfig<DfAccordionConfig>(ACCORDION_CONFIG_KEY);\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n template: ``,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DfAccordionComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAUA;AACO,MAAM,oBAAoB,GAAG;AAEpC;;;;;;;;;;;;AAYG;MACU,wBAAwB,GAAG,wBAAwB,CAAoB,oBAAoB;AAExG;;;;;;;;;;;;;;AAcG;MACU,uBAAuB,GAAG,uBAAuB,CAAoB,oBAAoB;;MCrCzF,oBAAoB,CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,wEAHrB,CAAA,CAAE,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA,CAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC;AAC1C,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { toAngularWritableSignal } from '@agnos-ui/angular-headless';
|
|
2
|
-
import '@design-factory/angular/accordion';
|
|
3
|
-
import { provideWidgetsConfig, injectWidgetsConfig } from '@design-factory/angular/internals';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* TODO write clear and simple doc
|
|
7
|
-
*/
|
|
8
|
-
const provideDfConfig = (config) => provideWidgetsConfig(typeof config === 'function' ? config : (parentConfig) => ({ ...parentConfig, ...(config ?? {}) }));
|
|
9
|
-
/**
|
|
10
|
-
* TODO write clear and simple doc
|
|
11
|
-
*/
|
|
12
|
-
const injectDFConfig = () => {
|
|
13
|
-
const widgetsConfigStore = injectWidgetsConfig();
|
|
14
|
-
return toAngularWritableSignal(widgetsConfigStore.own$);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Generated bundle index. Do not edit.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
export { injectDFConfig, provideDfConfig };
|
|
22
|
-
//# sourceMappingURL=design-factory-angular-config.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"design-factory-angular-config.mjs","sources":["../../config/config.ts","../../config/design-factory-angular-config.ts"],"sourcesContent":["import { toAngularWritableSignal, type WidgetsConfigStore, type Partial2Levels } from '@agnos-ui/angular-headless';\nimport type { FactoryProvider } from '@angular/core';\nimport { ACCORDION_CONFIG_KEY, DfAccordionConfig } from '@design-factory/angular/accordion';\nimport { provideWidgetsConfig, injectWidgetsConfig } from '@design-factory/angular/internals';\n\n/**\n * The configuration type for config-customizable DF components.\n */\nexport type DfConfig = {\n [ACCORDION_CONFIG_KEY]: DfAccordionConfig;\n};\n\n/**\n * TODO write clear and simple doc\n */\nexport const provideDfConfig = (\n config?: Partial2Levels<DfConfig> | ((parentConfig: Partial2Levels<DfConfig>) => Partial2Levels<DfConfig>)\n): FactoryProvider =>\n provideWidgetsConfig(\n typeof config === 'function' ? config : (parentConfig) => ({ ...parentConfig, ...(config ?? {}) })\n );\n\n/**\n * TODO write clear and simple doc\n */\nexport const injectDFConfig = () => {\n const widgetsConfigStore = injectWidgetsConfig() as WidgetsConfigStore<DfConfig>;\n return toAngularWritableSignal(widgetsConfigStore.own$);\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAYA;;AAEG;AACI,MAAM,eAAe,GAAG,CAC7B,MAA0G,KAE1G,oBAAoB,CAClB,OAAO,MAAM,KAAK,UAAU,GAAG,MAAM,GAAG,CAAC,YAAY,MAAM,EAAE,GAAG,YAAY,EAAE,IAAI,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;AAGtG;;AAEG;AACI,MAAM,cAAc,GAAG,MAAK;AACjC,IAAA,MAAM,kBAAkB,GAAG,mBAAmB,EAAkC;AAChF,IAAA,OAAO,uBAAuB,CAAC,kBAAkB,CAAC,IAAI,CAAC;AACzD;;AC5BA;;AAEG;;;;"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
|
|
3
|
-
type DfAccordionConfig = {
|
|
4
|
-
/**
|
|
5
|
-
* example prop
|
|
6
|
-
*/
|
|
7
|
-
closeOthers: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const ACCORDION_CONFIG_KEY: "accordion";
|
|
10
|
-
/**
|
|
11
|
-
* Provides the configuration for the accordion component.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* \@Component({
|
|
16
|
-
* providers: [provideDfAccordionConfig({ closeOthers: true })]
|
|
17
|
-
* })
|
|
18
|
-
* export class MyHomeComponent {}
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @param config - Partial configuration or a function that receives the parent configuration and returns a partial configuration.
|
|
22
|
-
*/
|
|
23
|
-
declare const provideDfAccordionConfig: (config?: Partial<DfAccordionConfig> | ((prevConfig: Partial<DfAccordionConfig>) => Partial<DfAccordionConfig>) | undefined) => _angular_core.FactoryProvider;
|
|
24
|
-
/**
|
|
25
|
-
* Injects the configuration for the accordion component.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* \@Component({
|
|
30
|
-
* providers: [provideDfAccordionConfig()]
|
|
31
|
-
* })
|
|
32
|
-
* export class MyAccordionComponent {
|
|
33
|
-
* readonly accordionConfig = injectDfAccordionConfig();
|
|
34
|
-
* }
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @returns A writable signal containing the accordion configuration.
|
|
38
|
-
*/
|
|
39
|
-
declare const injectDfAccordionConfig: () => _angular_core.WritableSignal<Partial<DfAccordionConfig>>;
|
|
40
|
-
|
|
41
|
-
declare class DfAccordionComponent {
|
|
42
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DfAccordionComponent, never>;
|
|
43
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DfAccordionComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { ACCORDION_CONFIG_KEY, DfAccordionComponent, injectDfAccordionConfig, provideDfAccordionConfig };
|
|
47
|
-
export type { DfAccordionConfig };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { FactoryProvider } from '@angular/core';
|
|
3
|
-
import { Partial2Levels } from '@agnos-ui/angular-headless';
|
|
4
|
-
import { ACCORDION_CONFIG_KEY, DfAccordionConfig } from '@design-factory/angular/accordion';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The configuration type for config-customizable DF components.
|
|
8
|
-
*/
|
|
9
|
-
type DfConfig = {
|
|
10
|
-
[ACCORDION_CONFIG_KEY]: DfAccordionConfig;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* TODO write clear and simple doc
|
|
14
|
-
*/
|
|
15
|
-
declare const provideDfConfig: (config?: Partial2Levels<DfConfig> | ((parentConfig: Partial2Levels<DfConfig>) => Partial2Levels<DfConfig>)) => FactoryProvider;
|
|
16
|
-
/**
|
|
17
|
-
* TODO write clear and simple doc
|
|
18
|
-
*/
|
|
19
|
-
declare const injectDFConfig: () => _angular_core.WritableSignal<Partial<{
|
|
20
|
-
accordion: Partial<DfAccordionConfig>;
|
|
21
|
-
}>>;
|
|
22
|
-
|
|
23
|
-
export { injectDFConfig, provideDfConfig };
|
|
24
|
-
export type { DfConfig };
|