ngx-axis-appforge 1.0.15 → 1.0.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.
|
@@ -50,11 +50,11 @@ class Desc extends Base {
|
|
|
50
50
|
return this.options.items().map(_ => new DescItemOptions());
|
|
51
51
|
}
|
|
52
52
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Desc, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Desc, isStandalone: true, selector: "axis-desc", usesInheritance: true, ngImport: i0, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track item;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"], dependencies: [{ kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i1.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i1.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Desc, isStandalone: true, selector: "axis-desc", usesInheritance: true, ngImport: i0, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track item;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div style=\"display:contents;\" [attr.data-index]=\"i\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"], dependencies: [{ kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i1.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i1.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
54
|
}
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Desc, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
|
-
args: [{ selector: 'axis-desc', imports: [NzDescriptionsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track item;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"] }]
|
|
57
|
+
args: [{ selector: 'axis-desc', imports: [NzDescriptionsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track item;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div style=\"display:contents;\" [attr.data-index]=\"i\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>", styles: [":host{display:block;width:100%}::ng-deep nz-descriptions span.ant-descriptions-item-content{display:contents!important}\n"] }]
|
|
58
58
|
}], ctorParameters: () => [] });
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-desc.mjs","sources":["../../../axis-components/desc/desc.options.ts","../../../axis-components/desc/desc.ts","../../../axis-components/desc/desc.html","../../../axis-components/desc/ngx-axis-appforge-axis-components-desc.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class DescOptions extends DataOptions {\n\n readonly title = signal(\"\");\n readonly column = signal(3);\n readonly bordered = signal(false);\n readonly size = signal<'default' | 'middle' | 'small'>(\"default\");\n readonly colon = signal(true);\n readonly extra = signal<any>(undefined);\n readonly items = signal<DescItemOptions[]>([]);\n\n}\n\nexport class DescItemOptions {\n\n readonly inuse = signal(true);\n readonly title = signal(\"未命名\");\n readonly field = signal(\"\");\n readonly span = signal(1);\n readonly child = signal<any>(undefined);\n\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { DescItemOptions, DescOptions } from './desc.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';\n\n@Component({\n selector: 'axis-desc',\n imports: [NzDescriptionsModule, DynamicDirective],\n templateUrl: './desc.html',\n styleUrl: './desc.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Desc extends Base<DescOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.items().forEach((p, i) => {\n p.inuse.set(false);\n this.bindWithConfig(this.options.items()[i], { options: p, tag: `bindItems.${i}` });\n });\n });\n }\n override options: DescOptions = new DescOptions();\n readonly items = computed(() => this.buildItems());\n\n private buildItems(): DescItemOptions[] {\n return this.options.items().map(_ => new DescItemOptions());\n }\n}\n","<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track item;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div [attr.data-index]=\"i\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './desc';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,WAAY,SAAQ,WAAW,CAAA;IAE/B,KAAK,GAAG,MAAM,CAAC,EAAE;8EAAC;IAClB,MAAM,GAAG,MAAM,CAAC,CAAC;+EAAC;IAClB,QAAQ,GAAG,MAAM,CAAC,KAAK;iFAAC;IACxB,IAAI,GAAG,MAAM,CAAiC,SAAS;6EAAC;IACxD,KAAK,GAAG,MAAM,CAAC,IAAI;8EAAC;IACpB,KAAK,GAAG,MAAM,CAAM,SAAS;8EAAC;IAC9B,KAAK,GAAG,MAAM,CAAoB,EAAE;8EAAC;AAEjD;MAEY,eAAe,CAAA;IAEf,KAAK,GAAG,MAAM,CAAC,IAAI;8EAAC;IACpB,KAAK,GAAG,MAAM,CAAC,KAAK;8EAAC;IACrB,KAAK,GAAG,MAAM,CAAC,EAAE;8EAAC;IAClB,IAAI,GAAG,MAAM,CAAC,CAAC;6EAAC;IAChB,KAAK,GAAG,MAAM,CAAM,SAAS;8EAAC;AAE1C;;ACXK,MAAO,IAAK,SAAQ,IAAiB,CAAA;AAEzC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAI;AAC5B,gBAAA,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;gBAClB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,CAAA,UAAA,EAAa,CAAC,CAAA,CAAE,EAAE,CAAC;AACrF,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;IACJ;AACS,IAAA,OAAO,GAAgB,IAAI,WAAW,EAAE;IACxC,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE;8EAAC;IAE1C,UAAU,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,eAAe,EAAE,CAAC;IAC7D;uGAhBW,IAAI,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAJ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,IAAI,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZjB,
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-desc.mjs","sources":["../../../axis-components/desc/desc.options.ts","../../../axis-components/desc/desc.ts","../../../axis-components/desc/desc.html","../../../axis-components/desc/ngx-axis-appforge-axis-components-desc.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { DataOptions } from \"ngx-axis-appforge/core\";\n\nexport class DescOptions extends DataOptions {\n\n readonly title = signal(\"\");\n readonly column = signal(3);\n readonly bordered = signal(false);\n readonly size = signal<'default' | 'middle' | 'small'>(\"default\");\n readonly colon = signal(true);\n readonly extra = signal<any>(undefined);\n readonly items = signal<DescItemOptions[]>([]);\n\n}\n\nexport class DescItemOptions {\n\n readonly inuse = signal(true);\n readonly title = signal(\"未命名\");\n readonly field = signal(\"\");\n readonly span = signal(1);\n readonly child = signal<any>(undefined);\n\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { DescItemOptions, DescOptions } from './desc.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';\n\n@Component({\n selector: 'axis-desc',\n imports: [NzDescriptionsModule, DynamicDirective],\n templateUrl: './desc.html',\n styleUrl: './desc.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Desc extends Base<DescOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.items().forEach((p, i) => {\n p.inuse.set(false);\n this.bindWithConfig(this.options.items()[i], { options: p, tag: `bindItems.${i}` });\n });\n });\n }\n override options: DescOptions = new DescOptions();\n readonly items = computed(() => this.buildItems());\n\n private buildItems(): DescItemOptions[] {\n return this.options.items().map(_ => new DescItemOptions());\n }\n}\n","<nz-descriptions [nzTitle]=\"options.title()\" [nzColumn]=\"options.column()\" [nzBordered]=\"options.bordered()\"\n [nzSize]=\"options.size()\" [nzColon]=\"options.colon()\" [nzExtra]=\"extraTpl\">\n @for (item of items(); track item;let i=$index) {\n @if (item.inuse()) {\n <nz-descriptions-item [nzTitle]=\"item.title()\" [nzSpan]=\"item.span()\">\n <div style=\"display:contents;\" [attr.data-index]=\"i\">\n @if (item.child()) {\n <ng-container [axisDynamic]=\"item.child()\"></ng-container>\n }@else if(item.field()){\n {{options.data()?.[item.field()]}}\n }\n </div>\n </nz-descriptions-item>\n }\n }\n</nz-descriptions>\n<ng-template #extraTpl>\n <ng-container [axisDynamic]=\"options.extra()\"></ng-container>\n</ng-template>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './desc';\n"],"names":[],"mappings":";;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