@simplysm/angular 14.0.56 → 14.0.58

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.
@@ -1,7 +1,7 @@
1
1
  import { type Signal, type WritableSignal } from "@angular/core";
2
2
  export declare function useSelectionManager<TItem, TKey>(options: {
3
3
  displayItems: Signal<TItem[]>;
4
- selectedKeys: WritableSignal<NonNullable<TKey>[]>;
4
+ selectedKeys: WritableSignal<TKey[]>;
5
5
  selectMode: Signal<"single" | "multi" | undefined>;
6
6
  getItemSelectableFn: Signal<((item: TItem) => boolean | string) | undefined>;
7
7
  trackByFn: Signal<(item: TItem, index: number) => TKey>;
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectionManager.d.ts","sourceRoot":"","sources":["../../../src/core/selection/useSelectionManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAG3E,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;IACxD,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAC9B,YAAY,EAAE,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClD,UAAU,EAAE,MAAM,CAAC,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IACnD,mBAAmB,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC;IAC7E,SAAS,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,CAAC;CACzD,GAAG;IACF,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/B,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,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AO,CAAC;IAC3C,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAC1B,SAAS,IAAI,IAAI,CAAC;IAClB,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CAClC,CAsIA"}
@@ -1,4 +1,4 @@
1
- import { TemplateRef } from "@angular/core";
1
+ import { type TemplateRef } from "@angular/core";
2
2
  import type { SdViewType } from "../../core/routing/injectViewTypeSignal";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SdBaseContainer {
@@ -12,10 +12,11 @@ export declare class SdBaseContainer {
12
12
  viewType: import("@angular/core").InputSignal<SdViewType>;
13
13
  topbarTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
14
14
  commandTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
15
+ contentTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
15
16
  bottomCommandTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
16
17
  constructor();
17
18
  protected readonly tablerAlertTriangle = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"stroke-width:var(--ng-icon__stroke-width, 2)\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M12 9v4\"></path><path d=\"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z\"></path><path d=\"M12 16h.01\"></path></svg>";
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<SdBaseContainer, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<SdBaseContainer, "sd-base-container", never, { "ready": { "alias": "ready"; "required": false; "isSignal": true; }; "initialized": { "alias": "initialized"; "required": false; "isSignal": true; }; "busyCount": { "alias": "busyCount"; "required": false; "isSignal": true; }; "restricted": { "alias": "restricted"; "required": false; "isSignal": true; }; "viewType": { "alias": "viewType"; "required": true; "isSignal": true; }; }, { "ready": "readyChange"; "busyCount": "busyCountChange"; }, ["topbarTplRef", "commandTplRef", "bottomCommandTplRef"], ["*"], true, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdBaseContainer, "sd-base-container", never, { "ready": { "alias": "ready"; "required": false; "isSignal": true; }; "initialized": { "alias": "initialized"; "required": false; "isSignal": true; }; "busyCount": { "alias": "busyCount"; "required": false; "isSignal": true; }; "restricted": { "alias": "restricted"; "required": false; "isSignal": true; }; "viewType": { "alias": "viewType"; "required": true; "isSignal": true; }; }, { "ready": "readyChange"; "busyCount": "busyCountChange"; }, ["topbarTplRef", "commandTplRef", "contentTplRef", "bottomCommandTplRef"], never, true, never>;
20
21
  }
21
22
  //# sourceMappingURL=sd-base-container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-base-container.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-base-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;;AAK1E,qBAsDa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgC;IAC9D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IAEpD,SAAS,yCAA2B;IAEpC,KAAK,+CAAgB;IACrB,WAAW,+CAAgB;IAC3B,SAAS,8CAAY;IAErB,UAAU,+CAAgB;IAE1B,QAAQ,kDAAgC;IAExC,YAAY,gEAAgD;IAC5D,aAAa,gEAAiD;IAC9D,mBAAmB,gEAAuD;;IAoB1E,SAAS,CAAC,QAAQ,CAAC,mBAAmB,ifAAuB;yCApClD,eAAe;2CAAf,eAAe;CAqC3B"}
1
+ {"version":3,"file":"sd-base-container.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-base-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AAOvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;;AAK1E,qBAwDa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgC;IAC9D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IAEpD,SAAS,yCAA2B;IAEpC,KAAK,+CAAgB;IACrB,WAAW,+CAAgB;IAC3B,SAAS,8CAAY;IAErB,UAAU,+CAAgB;IAE1B,QAAQ,kDAAgC;IAExC,YAAY,gEAAgD;IAC5D,aAAa,gEAAiD;IAC9D,aAAa,gEAAiD;IAC9D,mBAAmB,gEAAuD;;IAoB1E,SAAS,CAAC,QAAQ,CAAC,mBAAmB,ifAAuB;yCArClD,eAAe;2CAAf,eAAe;CAsC3B"}
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, contentChild, effect, inject, input, model, TemplateRef, untracked, ViewEncapsulation, } from "@angular/core";
1
+ import { ChangeDetectionStrategy, Component, contentChild, effect, inject, input, model, untracked, ViewEncapsulation, } from "@angular/core";
2
2
  import { injectViewTitleSignal } from "../../core/routing/injectViewTitleSignal";
3
3
  import { SdBusyContainer } from "../../core/busy/sd-busy-container";
4
4
  import { SdSharedDataProvider } from "../../core/shared-data/sd-shared-data.provider";
@@ -11,8 +11,8 @@ import { NgTemplateOutlet } from "@angular/common";
11
11
  import * as i0 from "@angular/core";
12
12
  const _c0 = ["topbarTpl"];
13
13
  const _c1 = ["commandTpl"];
14
- const _c2 = ["bottomCommandTpl"];
15
- const _c3 = ["*"];
14
+ const _c2 = ["contentTpl"];
15
+ const _c3 = ["bottomCommandTpl"];
16
16
  function SdBaseContainer_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
17
17
  i0.ɵɵelementStart(0, "div", 2);
18
18
  i0.ɵɵelement(1, "br")(2, "ng-icon", 4)(3, "br")(4, "br");
@@ -69,6 +69,13 @@ function SdBaseContainer_ng_template_2_Conditional_1_Template(rf, ctx) { if (rf
69
69
  i0.ɵɵadvance();
70
70
  i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.commandTplRef());
71
71
  } }
72
+ function SdBaseContainer_ng_template_2_Conditional_3_ng_template_0_Template(rf, ctx) { }
73
+ function SdBaseContainer_ng_template_2_Conditional_3_Template(rf, ctx) { if (rf & 1) {
74
+ i0.ɵɵtemplate(0, SdBaseContainer_ng_template_2_Conditional_3_ng_template_0_Template, 0, 0, "ng-template", 3);
75
+ } if (rf & 2) {
76
+ const ctx_r0 = i0.ɵɵnextContext(2);
77
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.contentTplRef());
78
+ } }
72
79
  function SdBaseContainer_ng_template_2_Conditional_4_ng_template_1_Template(rf, ctx) { }
73
80
  function SdBaseContainer_ng_template_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
74
81
  i0.ɵɵelementStart(0, "div", 8);
@@ -83,7 +90,7 @@ function SdBaseContainer_ng_template_2_Template(rf, ctx) { if (rf & 1) {
83
90
  i0.ɵɵelementStart(0, "div", 5);
84
91
  i0.ɵɵconditionalCreate(1, SdBaseContainer_ng_template_2_Conditional_1_Template, 2, 1, "div", 6);
85
92
  i0.ɵɵelementStart(2, "div", 7);
86
- i0.ɵɵprojection(3);
93
+ i0.ɵɵconditionalCreate(3, SdBaseContainer_ng_template_2_Conditional_3_Template, 1, 1, null, 3);
87
94
  i0.ɵɵelementEnd();
88
95
  i0.ɵɵconditionalCreate(4, SdBaseContainer_ng_template_2_Conditional_4_Template, 2, 1, "div", 8);
89
96
  i0.ɵɵelementEnd();
@@ -91,7 +98,9 @@ function SdBaseContainer_ng_template_2_Template(rf, ctx) { if (rf & 1) {
91
98
  const ctx_r0 = i0.ɵɵnextContext();
92
99
  i0.ɵɵadvance();
93
100
  i0.ɵɵconditional(ctx_r0.commandTplRef() ? 1 : -1);
94
- i0.ɵɵadvance(3);
101
+ i0.ɵɵadvance(2);
102
+ i0.ɵɵconditional(ctx_r0.contentTplRef() ? 3 : -1);
103
+ i0.ɵɵadvance();
95
104
  i0.ɵɵconditional(ctx_r0.bottomCommandTplRef() ? 4 : -1);
96
105
  } }
97
106
  export class SdBaseContainer {
@@ -105,6 +114,7 @@ export class SdBaseContainer {
105
114
  viewType = input.required(...(ngDevMode ? [{ debugName: "viewType" }] : /* istanbul ignore next */ []));
106
115
  topbarTplRef = contentChild("topbarTpl", ...(ngDevMode ? [{ debugName: "topbarTplRef" }] : /* istanbul ignore next */ []));
107
116
  commandTplRef = contentChild("commandTpl", ...(ngDevMode ? [{ debugName: "commandTplRef" }] : /* istanbul ignore next */ []));
117
+ contentTplRef = contentChild("contentTpl", ...(ngDevMode ? [{ debugName: "contentTplRef" }] : /* istanbul ignore next */ []));
108
118
  bottomCommandTplRef = contentChild("bottomCommandTpl", ...(ngDevMode ? [{ debugName: "bottomCommandTplRef" }] : /* istanbul ignore next */ []));
109
119
  constructor() {
110
120
  effect(() => {
@@ -125,15 +135,14 @@ export class SdBaseContainer {
125
135
  tablerAlertTriangle = tablerAlertTriangle;
126
136
  static ɵfac = function SdBaseContainer_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdBaseContainer)(); };
127
137
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdBaseContainer, selectors: [["sd-base-container"]], contentQueries: function SdBaseContainer_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
128
- i0.ɵɵcontentQuerySignal(dirIndex, ctx.topbarTplRef, _c0, 5)(dirIndex, ctx.commandTplRef, _c1, 5)(dirIndex, ctx.bottomCommandTplRef, _c2, 5);
138
+ i0.ɵɵcontentQuerySignal(dirIndex, ctx.topbarTplRef, _c0, 5)(dirIndex, ctx.commandTplRef, _c1, 5)(dirIndex, ctx.contentTplRef, _c2, 5)(dirIndex, ctx.bottomCommandTplRef, _c3, 5);
129
139
  } if (rf & 2) {
130
- i0.ɵɵqueryAdvance(3);
131
- } }, inputs: { ready: [1, "ready"], initialized: [1, "initialized"], busyCount: [1, "busyCount"], restricted: [1, "restricted"], viewType: [1, "viewType"] }, outputs: { ready: "readyChange", busyCount: "busyCountChange" }, ngContentSelectors: _c3, decls: 4, vars: 2, consts: [["content", ""], [3, "busy"], [1, "fill", "tx-theme-gray-light", "p-xxl", "tx-center"], [3, "ngTemplateOutlet"], [3, "svg", "size"], [1, "flex-column", "fill"], [1, "p-default", "flex-row", "gap-default", "bdb", "bdb-theme-gray-lightest"], [1, "flex-fill"], [1, "p-sm-default", "flex-row", "main-align-end", "gap-sm", "bdt", "bdt-theme-gray-lightest"]], template: function SdBaseContainer_Template(rf, ctx) { if (rf & 1) {
132
- i0.ɵɵprojectionDef();
140
+ i0.ɵɵqueryAdvance(4);
141
+ } }, inputs: { ready: [1, "ready"], initialized: [1, "initialized"], busyCount: [1, "busyCount"], restricted: [1, "restricted"], viewType: [1, "viewType"] }, outputs: { ready: "readyChange", busyCount: "busyCountChange" }, decls: 4, vars: 2, consts: [["content", ""], [3, "busy"], [1, "fill", "tx-theme-gray-light", "p-xxl", "tx-center"], [3, "ngTemplateOutlet"], [3, "svg", "size"], [1, "flex-column", "fill"], [1, "p-default", "flex-row", "gap-default", "bdb", "bdb-theme-gray-lightest"], [1, "flex-fill"], [1, "p-sm-default", "flex-row", "main-align-end", "gap-sm", "bdt", "bdt-theme-gray-lightest"]], template: function SdBaseContainer_Template(rf, ctx) { if (rf & 1) {
133
142
  i0.ɵɵelementStart(0, "sd-busy-container", 1);
134
143
  i0.ɵɵconditionalCreate(1, SdBaseContainer_Conditional_1_Template, 3, 1);
135
144
  i0.ɵɵelementEnd();
136
- i0.ɵɵtemplate(2, SdBaseContainer_ng_template_2_Template, 5, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
145
+ i0.ɵɵtemplate(2, SdBaseContainer_ng_template_2_Template, 5, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
137
146
  } if (rf & 2) {
138
147
  i0.ɵɵproperty("busy", ctx.initialized() && ctx.busyCount() > 0);
139
148
  i0.ɵɵadvance();
@@ -184,7 +193,9 @@ export class SdBaseContainer {
184
193
  }
185
194
 
186
195
  <div class="flex-fill">
187
- <ng-content />
196
+ @if (contentTplRef()) {
197
+ <ng-template [ngTemplateOutlet]="contentTplRef()" />
198
+ }
188
199
  </div>
189
200
 
190
201
  @if (bottomCommandTplRef()) {
@@ -196,5 +207,5 @@ export class SdBaseContainer {
196
207
  </ng-template>
197
208
  `,
198
209
  }]
199
- }], () => [], { ready: [{ type: i0.Input, args: [{ isSignal: true, alias: "ready", required: false }] }, { type: i0.Output, args: ["readyChange"] }], initialized: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialized", required: false }] }], busyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyCount", required: false }] }, { type: i0.Output, args: ["busyCountChange"] }], restricted: [{ type: i0.Input, args: [{ isSignal: true, alias: "restricted", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewType", required: true }] }], topbarTplRef: [{ type: i0.ContentChild, args: ["topbarTpl", { isSignal: true }] }], commandTplRef: [{ type: i0.ContentChild, args: ["commandTpl", { isSignal: true }] }], bottomCommandTplRef: [{ type: i0.ContentChild, args: ["bottomCommandTpl", { isSignal: true }] }] }); })();
200
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdBaseContainer, { className: "SdBaseContainer", filePath: "packages/angular/src/data/crud/sd-base-container.ts", lineNumber: 78 }); })();
210
+ }], () => [], { ready: [{ type: i0.Input, args: [{ isSignal: true, alias: "ready", required: false }] }, { type: i0.Output, args: ["readyChange"] }], initialized: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialized", required: false }] }], busyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyCount", required: false }] }, { type: i0.Output, args: ["busyCountChange"] }], restricted: [{ type: i0.Input, args: [{ isSignal: true, alias: "restricted", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewType", required: true }] }], topbarTplRef: [{ type: i0.ContentChild, args: ["topbarTpl", { isSignal: true }] }], commandTplRef: [{ type: i0.ContentChild, args: ["commandTpl", { isSignal: true }] }], contentTplRef: [{ type: i0.ContentChild, args: ["contentTpl", { isSignal: true }] }], bottomCommandTplRef: [{ type: i0.ContentChild, args: ["bottomCommandTpl", { isSignal: true }] }] }); })();
211
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdBaseContainer, { className: "SdBaseContainer", filePath: "packages/angular/src/data/crud/sd-base-container.ts", lineNumber: 80 }); })();
@@ -13,10 +13,11 @@ export declare class SdCrudDetail {
13
13
  formCtrl: import("@angular/core").Signal<SdForm | undefined>;
14
14
  submit: import("@angular/core").OutputEmitterRef<void>;
15
15
  commandTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
16
+ contentTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
16
17
  bottomCommandTplRef: import("@angular/core").Signal<TemplateRef<void> | undefined>;
17
18
  onSaveButtonClick(): void;
18
19
  protected readonly tablerDeviceFloppy = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"stroke-width:var(--ng-icon__stroke-width, 2)\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path><path d=\"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2\"></path><path d=\"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0\"></path><path d=\"M14 4l0 4l-6 0l0 -4\"></path></svg>";
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<SdCrudDetail, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<SdCrudDetail, "sd-crud-detail", never, { "ready": { "alias": "ready"; "required": false; "isSignal": true; }; "initialized": { "alias": "initialized"; "required": false; "isSignal": true; }; "busyCount": { "alias": "busyCount"; "required": false; "isSignal": true; }; "restricted": { "alias": "restricted"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "viewType": { "alias": "viewType"; "required": true; "isSignal": true; }; }, { "ready": "readyChange"; "busyCount": "busyCountChange"; "submit": "submit"; }, ["commandTplRef", "bottomCommandTplRef"], ["*"], true, [{ directive: typeof i1.SdCommandDirective; inputs: {}; outputs: { "sdSaveCommand": "sdSaveCommand"; }; }]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SdCrudDetail, "sd-crud-detail", never, { "ready": { "alias": "ready"; "required": false; "isSignal": true; }; "initialized": { "alias": "initialized"; "required": false; "isSignal": true; }; "busyCount": { "alias": "busyCount"; "required": false; "isSignal": true; }; "restricted": { "alias": "restricted"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "viewType": { "alias": "viewType"; "required": true; "isSignal": true; }; }, { "ready": "readyChange"; "busyCount": "busyCountChange"; "submit": "submit"; }, ["commandTplRef", "contentTplRef", "bottomCommandTplRef"], never, true, [{ directive: typeof i1.SdCommandDirective; inputs: {}; outputs: { "sdSaveCommand": "sdSaveCommand"; }; }]>;
21
22
  }
22
23
  //# sourceMappingURL=sd-crud-detail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-crud-detail.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-crud-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;;;AAM1E,qBAiFa,YAAY;IACvB,KAAK,+CAAgB;IACrB,WAAW,+CAAgB;IAC3B,SAAS,8CAAY;IACrB,UAAU,+CAAgB;IAC1B,QAAQ,+CAAgB;IACxB,QAAQ,kDAAgC;IAExC,QAAQ,qDAAiC;IAEzC,MAAM,iDAAY;IAElB,aAAa,gEAAiD;IAC9D,mBAAmB,gEAAuD;IAE1E,iBAAiB;IAIjB,SAAS,CAAC,QAAQ,CAAC,kBAAkB,sdAAsB;yCAnBhD,YAAY;2CAAZ,YAAY;CAoBxB"}
1
+ {"version":3,"file":"sd-crud-detail.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-crud-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,WAAW,EAGjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;;;AAM1E,qBAgFa,YAAY;IACvB,KAAK,+CAAgB;IACrB,WAAW,+CAAgB;IAC3B,SAAS,8CAAY;IACrB,UAAU,+CAAgB;IAC1B,QAAQ,+CAAgB;IACxB,QAAQ,kDAAgC;IAExC,QAAQ,qDAAiC;IAEzC,MAAM,iDAAY;IAElB,aAAa,gEAAiD;IAC9D,aAAa,gEAAiD;IAC9D,mBAAmB,gEAAuD;IAE1E,iBAAiB;IAIjB,SAAS,CAAC,QAAQ,CAAC,kBAAkB,sdAAsB;yCApBhD,YAAY;2CAAZ,YAAY;CAqBxB"}
@@ -9,127 +9,131 @@ import { tablerDeviceFloppy } from "@ng-icons/tabler-icons";
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "../../core/commands/sd-command";
11
11
  const _c0 = ["commandTpl"];
12
- const _c1 = ["bottomCommandTpl"];
13
- const _c2 = ["formCtrl"];
14
- const _c3 = ["*"];
12
+ const _c1 = ["contentTpl"];
13
+ const _c2 = ["bottomCommandTpl"];
14
+ const _c3 = ["formCtrl"];
15
15
  function SdCrudDetail_Conditional_1_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
16
- const _r2 = i0.ɵɵgetCurrentView();
17
- i0.ɵɵelementStart(0, "sd-button", 10);
18
- i0.ɵɵlistener("click", function SdCrudDetail_Conditional_1_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { let tmp_6_0; i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView((tmp_6_0 = ctx_r2.formCtrl()) == null ? null : tmp_6_0.requestSubmit()); });
19
- i0.ɵɵelement(1, "ng-icon", 11);
16
+ const _r1 = i0.ɵɵgetCurrentView();
17
+ i0.ɵɵelementStart(0, "sd-button", 8);
18
+ i0.ɵɵlistener("click", function SdCrudDetail_Conditional_1_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { let tmp_5_0; i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView((tmp_5_0 = ctx_r1.formCtrl()) == null ? null : tmp_5_0.requestSubmit()); });
19
+ i0.ɵɵelement(1, "ng-icon", 9);
20
20
  i0.ɵɵtext(2, " \uC800\uC7A5 ");
21
21
  i0.ɵɵelementStart(3, "small");
22
22
  i0.ɵɵtext(4, "(CTRL+S)");
23
23
  i0.ɵɵelementEnd()();
24
24
  } if (rf & 2) {
25
- const ctx_r2 = i0.ɵɵnextContext(3);
25
+ const ctx_r1 = i0.ɵɵnextContext(3);
26
26
  i0.ɵɵproperty("theme", "link-primary");
27
27
  i0.ɵɵadvance();
28
- i0.ɵɵproperty("svg", ctx_r2.tablerDeviceFloppy);
28
+ i0.ɵɵproperty("svg", ctx_r1.tablerDeviceFloppy);
29
29
  } }
30
30
  function SdCrudDetail_Conditional_1_ng_template_0_ng_template_1_Template(rf, ctx) { }
31
31
  function SdCrudDetail_Conditional_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
32
- i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_1_ng_template_0_Conditional_0_Template, 5, 2, "sd-button", 8);
33
- i0.ɵɵtemplate(1, SdCrudDetail_Conditional_1_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 9);
32
+ i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_1_ng_template_0_Conditional_0_Template, 5, 2, "sd-button", 6);
33
+ i0.ɵɵtemplate(1, SdCrudDetail_Conditional_1_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 7);
34
34
  } if (rf & 2) {
35
- const ctx_r2 = i0.ɵɵnextContext(2);
36
- i0.ɵɵconditional(!ctx_r2.readonly() ? 0 : -1);
35
+ const ctx_r1 = i0.ɵɵnextContext(2);
36
+ i0.ɵɵconditional(!ctx_r1.readonly() ? 0 : -1);
37
37
  i0.ɵɵadvance();
38
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.commandTplRef());
38
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.commandTplRef());
39
39
  } }
40
40
  function SdCrudDetail_Conditional_1_Template(rf, ctx) { if (rf & 1) {
41
- i0.ɵɵtemplate(0, SdCrudDetail_Conditional_1_ng_template_0_Template, 2, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
41
+ i0.ɵɵtemplate(0, SdCrudDetail_Conditional_1_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
42
42
  } }
43
43
  function SdCrudDetail_Conditional_2_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
44
- const _r4 = i0.ɵɵgetCurrentView();
45
- i0.ɵɵelementStart(0, "sd-button", 10);
46
- i0.ɵɵlistener("click", function SdCrudDetail_Conditional_2_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onSaveButtonClick()); });
47
- i0.ɵɵelement(1, "ng-icon", 11);
44
+ const _r3 = i0.ɵɵgetCurrentView();
45
+ i0.ɵɵelementStart(0, "sd-button", 8);
46
+ i0.ɵɵlistener("click", function SdCrudDetail_Conditional_2_ng_template_0_Conditional_0_Template_sd_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onSaveButtonClick()); });
47
+ i0.ɵɵelement(1, "ng-icon", 9);
48
48
  i0.ɵɵtext(2, " \uC800\uC7A5 ");
49
49
  i0.ɵɵelementStart(3, "small");
50
50
  i0.ɵɵtext(4, "(CTRL+S)");
51
51
  i0.ɵɵelementEnd()();
52
52
  } if (rf & 2) {
53
- const ctx_r2 = i0.ɵɵnextContext(3);
53
+ const ctx_r1 = i0.ɵɵnextContext(3);
54
54
  i0.ɵɵproperty("theme", "primary");
55
55
  i0.ɵɵadvance();
56
- i0.ɵɵproperty("svg", ctx_r2.tablerDeviceFloppy);
56
+ i0.ɵɵproperty("svg", ctx_r1.tablerDeviceFloppy);
57
57
  } }
58
58
  function SdCrudDetail_Conditional_2_ng_template_0_ng_template_1_Template(rf, ctx) { }
59
59
  function SdCrudDetail_Conditional_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
60
- i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_2_ng_template_0_Conditional_0_Template, 5, 2, "sd-button", 8);
61
- i0.ɵɵtemplate(1, SdCrudDetail_Conditional_2_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 9);
60
+ i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_2_ng_template_0_Conditional_0_Template, 5, 2, "sd-button", 6);
61
+ i0.ɵɵtemplate(1, SdCrudDetail_Conditional_2_ng_template_0_ng_template_1_Template, 0, 0, "ng-template", 7);
62
62
  } if (rf & 2) {
63
- const ctx_r2 = i0.ɵɵnextContext(2);
64
- i0.ɵɵconditional(!ctx_r2.readonly() ? 0 : -1);
63
+ const ctx_r1 = i0.ɵɵnextContext(2);
64
+ i0.ɵɵconditional(!ctx_r1.readonly() ? 0 : -1);
65
65
  i0.ɵɵadvance();
66
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.commandTplRef());
66
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.commandTplRef());
67
67
  } }
68
68
  function SdCrudDetail_Conditional_2_Template(rf, ctx) { if (rf & 1) {
69
- i0.ɵɵtemplate(0, SdCrudDetail_Conditional_2_ng_template_0_Template, 2, 2, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
69
+ i0.ɵɵtemplate(0, SdCrudDetail_Conditional_2_ng_template_0_Template, 2, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
70
70
  } }
71
71
  function SdCrudDetail_Conditional_3_ng_template_0_ng_template_0_Template(rf, ctx) { }
72
72
  function SdCrudDetail_Conditional_3_ng_template_0_Template(rf, ctx) { if (rf & 1) {
73
- i0.ɵɵtemplate(0, SdCrudDetail_Conditional_3_ng_template_0_ng_template_0_Template, 0, 0, "ng-template", 9);
73
+ i0.ɵɵtemplate(0, SdCrudDetail_Conditional_3_ng_template_0_ng_template_0_Template, 0, 0, "ng-template", 7);
74
74
  } if (rf & 2) {
75
- const ctx_r2 = i0.ɵɵnextContext(2);
76
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.commandTplRef());
75
+ const ctx_r1 = i0.ɵɵnextContext(2);
76
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.commandTplRef());
77
77
  } }
78
78
  function SdCrudDetail_Conditional_3_Template(rf, ctx) { if (rf & 1) {
79
- i0.ɵɵtemplate(0, SdCrudDetail_Conditional_3_ng_template_0_Template, 1, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
79
+ i0.ɵɵtemplate(0, SdCrudDetail_Conditional_3_ng_template_0_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
80
80
  } }
81
81
  function SdCrudDetail_Conditional_4_ng_template_0_Conditional_0_ng_template_1_Template(rf, ctx) { }
82
82
  function SdCrudDetail_Conditional_4_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
83
- i0.ɵɵelementStart(0, "div", 12);
84
- i0.ɵɵtemplate(1, SdCrudDetail_Conditional_4_ng_template_0_Conditional_0_ng_template_1_Template, 0, 0, "ng-template", 9);
83
+ i0.ɵɵelementStart(0, "div", 10);
84
+ i0.ɵɵtemplate(1, SdCrudDetail_Conditional_4_ng_template_0_Conditional_0_ng_template_1_Template, 0, 0, "ng-template", 7);
85
85
  i0.ɵɵelementEnd();
86
86
  } if (rf & 2) {
87
- const ctx_r2 = i0.ɵɵnextContext(3);
87
+ const ctx_r1 = i0.ɵɵnextContext(3);
88
88
  i0.ɵɵadvance();
89
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.bottomCommandTplRef());
89
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.bottomCommandTplRef());
90
90
  } }
91
91
  function SdCrudDetail_Conditional_4_ng_template_0_Template(rf, ctx) { if (rf & 1) {
92
- const _r5 = i0.ɵɵgetCurrentView();
93
- i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_4_ng_template_0_Conditional_0_Template, 2, 1, "div", 12);
94
- i0.ɵɵelementStart(1, "sd-button", 13);
95
- i0.ɵɵlistener("click", function SdCrudDetail_Conditional_4_ng_template_0_Template_sd_button_click_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onSaveButtonClick()); });
92
+ const _r4 = i0.ɵɵgetCurrentView();
93
+ i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_4_ng_template_0_Conditional_0_Template, 2, 1, "div", 10);
94
+ i0.ɵɵelementStart(1, "sd-button", 11);
95
+ i0.ɵɵlistener("click", function SdCrudDetail_Conditional_4_ng_template_0_Template_sd_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onSaveButtonClick()); });
96
96
  i0.ɵɵtext(2, " \uD655\uC778 ");
97
97
  i0.ɵɵelementEnd();
98
98
  } if (rf & 2) {
99
- const ctx_r2 = i0.ɵɵnextContext(2);
100
- i0.ɵɵconditional(ctx_r2.bottomCommandTplRef() ? 0 : -1);
99
+ const ctx_r1 = i0.ɵɵnextContext(2);
100
+ i0.ɵɵconditional(ctx_r1.bottomCommandTplRef() ? 0 : -1);
101
101
  i0.ɵɵadvance();
102
102
  i0.ɵɵproperty("size", "sm")("theme", "primary");
103
103
  } }
104
104
  function SdCrudDetail_Conditional_4_Template(rf, ctx) { if (rf & 1) {
105
- i0.ɵɵtemplate(0, SdCrudDetail_Conditional_4_ng_template_0_Template, 3, 3, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
105
+ i0.ɵɵtemplate(0, SdCrudDetail_Conditional_4_ng_template_0_Template, 3, 3, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
106
106
  } }
107
- function SdCrudDetail_ng_template_5_Template(rf, ctx) { if (rf & 1) {
108
- i0.ɵɵprojection(0);
109
- } }
110
- function SdCrudDetail_Conditional_7_ng_template_1_Template(rf, ctx) { }
111
- function SdCrudDetail_Conditional_7_Template(rf, ctx) { if (rf & 1) {
112
- i0.ɵɵelementStart(0, "div", 6);
113
- i0.ɵɵtemplate(1, SdCrudDetail_Conditional_7_ng_template_1_Template, 0, 0, "ng-template", 9);
107
+ function SdCrudDetail_Conditional_5_ng_template_0_Conditional_0_ng_template_1_Template(rf, ctx) { }
108
+ function SdCrudDetail_Conditional_5_ng_template_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
109
+ i0.ɵɵelementStart(0, "div", 12);
110
+ i0.ɵɵtemplate(1, SdCrudDetail_Conditional_5_ng_template_0_Conditional_0_ng_template_1_Template, 0, 0, "ng-template", 7);
114
111
  i0.ɵɵelementEnd();
115
112
  } if (rf & 2) {
116
- i0.ɵɵnextContext();
117
- const contentTpl_r6 = i0.ɵɵreference(6);
113
+ const ctx_r1 = i0.ɵɵnextContext(3);
118
114
  i0.ɵɵadvance();
119
- i0.ɵɵproperty("ngTemplateOutlet", contentTpl_r6);
115
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.contentTplRef());
120
116
  } }
121
- function SdCrudDetail_Conditional_8_ng_template_2_Template(rf, ctx) { }
122
- function SdCrudDetail_Conditional_8_Template(rf, ctx) { if (rf & 1) {
123
- const _r7 = i0.ɵɵgetCurrentView();
117
+ function SdCrudDetail_Conditional_5_ng_template_0_Conditional_1_ng_template_2_Template(rf, ctx) { }
118
+ function SdCrudDetail_Conditional_5_ng_template_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
119
+ const _r5 = i0.ɵɵgetCurrentView();
124
120
  i0.ɵɵelementStart(0, "sd-form", 14, 4);
125
- i0.ɵɵlistener("formSubmit", function SdCrudDetail_Conditional_8_Template_sd_form_formSubmit_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.submit.emit()); });
126
- i0.ɵɵtemplate(2, SdCrudDetail_Conditional_8_ng_template_2_Template, 0, 0, "ng-template", 9);
121
+ i0.ɵɵlistener("formSubmit", function SdCrudDetail_Conditional_5_ng_template_0_Conditional_1_Template_sd_form_formSubmit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.submit.emit()); });
122
+ i0.ɵɵtemplate(2, SdCrudDetail_Conditional_5_ng_template_0_Conditional_1_ng_template_2_Template, 0, 0, "ng-template", 7);
127
123
  i0.ɵɵelementEnd();
128
124
  } if (rf & 2) {
129
- i0.ɵɵnextContext();
130
- const contentTpl_r6 = i0.ɵɵreference(6);
125
+ const ctx_r1 = i0.ɵɵnextContext(3);
131
126
  i0.ɵɵadvance(2);
132
- i0.ɵɵproperty("ngTemplateOutlet", contentTpl_r6);
127
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.contentTplRef());
128
+ } }
129
+ function SdCrudDetail_Conditional_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
130
+ i0.ɵɵconditionalCreate(0, SdCrudDetail_Conditional_5_ng_template_0_Conditional_0_Template, 2, 1, "div", 12)(1, SdCrudDetail_Conditional_5_ng_template_0_Conditional_1_Template, 3, 1, "sd-form", 13);
131
+ } if (rf & 2) {
132
+ const ctx_r1 = i0.ɵɵnextContext(2);
133
+ i0.ɵɵconditional(ctx_r1.readonly() ? 0 : 1);
134
+ } }
135
+ function SdCrudDetail_Conditional_5_Template(rf, ctx) { if (rf & 1) {
136
+ i0.ɵɵtemplate(0, SdCrudDetail_Conditional_5_ng_template_0_Template, 2, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
133
137
  } }
134
138
  export class SdCrudDetail {
135
139
  ready = model(false, ...(ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []));
@@ -141,6 +145,7 @@ export class SdCrudDetail {
141
145
  formCtrl = viewChild("formCtrl", ...(ngDevMode ? [{ debugName: "formCtrl" }] : /* istanbul ignore next */ []));
142
146
  submit = output();
143
147
  commandTplRef = contentChild("commandTpl", ...(ngDevMode ? [{ debugName: "commandTplRef" }] : /* istanbul ignore next */ []));
148
+ contentTplRef = contentChild("contentTpl", ...(ngDevMode ? [{ debugName: "contentTplRef" }] : /* istanbul ignore next */ []));
144
149
  bottomCommandTplRef = contentChild("bottomCommandTpl", ...(ngDevMode ? [{ debugName: "bottomCommandTplRef" }] : /* istanbul ignore next */ []));
145
150
  onSaveButtonClick() {
146
151
  this.formCtrl()?.requestSubmit();
@@ -148,24 +153,21 @@ export class SdCrudDetail {
148
153
  tablerDeviceFloppy = tablerDeviceFloppy;
149
154
  static ɵfac = function SdCrudDetail_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SdCrudDetail)(); };
150
155
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SdCrudDetail, selectors: [["sd-crud-detail"]], contentQueries: function SdCrudDetail_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
151
- i0.ɵɵcontentQuerySignal(dirIndex, ctx.commandTplRef, _c0, 5)(dirIndex, ctx.bottomCommandTplRef, _c1, 5);
156
+ i0.ɵɵcontentQuerySignal(dirIndex, ctx.commandTplRef, _c0, 5)(dirIndex, ctx.contentTplRef, _c1, 5)(dirIndex, ctx.bottomCommandTplRef, _c2, 5);
152
157
  } if (rf & 2) {
153
- i0.ɵɵqueryAdvance(2);
158
+ i0.ɵɵqueryAdvance(3);
154
159
  } }, viewQuery: function SdCrudDetail_Query(rf, ctx) { if (rf & 1) {
155
- i0.ɵɵviewQuerySignal(ctx.formCtrl, _c2, 5);
160
+ i0.ɵɵviewQuerySignal(ctx.formCtrl, _c3, 5);
156
161
  } if (rf & 2) {
157
162
  i0.ɵɵqueryAdvance();
158
163
  } }, hostBindings: function SdCrudDetail_HostBindings(rf, ctx) { if (rf & 1) {
159
164
  i0.ɵɵlistener("sdSaveCommand", function SdCrudDetail_sdSaveCommand_HostBindingHandler() { return ctx.onSaveButtonClick(); });
160
- } }, inputs: { ready: [1, "ready"], initialized: [1, "initialized"], busyCount: [1, "busyCount"], restricted: [1, "restricted"], readonly: [1, "readonly"], viewType: [1, "viewType"] }, outputs: { ready: "readyChange", busyCount: "busyCountChange", submit: "submit" }, features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.SdCommandDirective, outputs: ["sdSaveCommand", "sdSaveCommand"] }])], ngContentSelectors: _c3, decls: 9, vars: 8, consts: [["contentTpl", ""], ["topbarTpl", ""], ["commandTpl", ""], ["bottomCommandTpl", ""], ["formCtrl", ""], [3, "readyChange", "busyCountChange", "ready", "initialized", "busyCount", "restricted", "viewType"], [1, "fill"], [1, "block", "fill"], [3, "theme"], [3, "ngTemplateOutlet"], [3, "click", "theme"], [3, "svg"], [1, "flex-fill", "flex-row", "main-align-start", "gap-sm"], [3, "click", "size", "theme"], [1, "block", "fill", 3, "formSubmit"]], template: function SdCrudDetail_Template(rf, ctx) { if (rf & 1) {
161
- const _r1 = i0.ɵɵgetCurrentView();
162
- i0.ɵɵprojectionDef();
165
+ } }, inputs: { ready: [1, "ready"], initialized: [1, "initialized"], busyCount: [1, "busyCount"], restricted: [1, "restricted"], readonly: [1, "readonly"], viewType: [1, "viewType"] }, outputs: { ready: "readyChange", busyCount: "busyCountChange", submit: "submit" }, features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.SdCommandDirective, outputs: ["sdSaveCommand", "sdSaveCommand"] }])], decls: 6, vars: 8, consts: [["topbarTpl", ""], ["commandTpl", ""], ["bottomCommandTpl", ""], ["contentTpl", ""], ["formCtrl", ""], [3, "readyChange", "busyCountChange", "ready", "initialized", "busyCount", "restricted", "viewType"], [3, "theme"], [3, "ngTemplateOutlet"], [3, "click", "theme"], [3, "svg"], [1, "flex-fill", "flex-row", "main-align-start", "gap-sm"], [3, "click", "size", "theme"], [1, "fill"], [1, "block", "fill"], [1, "block", "fill", 3, "formSubmit"]], template: function SdCrudDetail_Template(rf, ctx) { if (rf & 1) {
163
166
  i0.ɵɵelementStart(0, "sd-base-container", 5);
164
- i0.ɵɵtwoWayListener("readyChange", function SdCrudDetail_Template_sd_base_container_readyChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.ready, $event) || (ctx.ready = $event); return i0.ɵɵresetView($event); })("busyCountChange", function SdCrudDetail_Template_sd_base_container_busyCountChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.busyCount, $event) || (ctx.busyCount = $event); return i0.ɵɵresetView($event); });
167
+ i0.ɵɵtwoWayListener("readyChange", function SdCrudDetail_Template_sd_base_container_readyChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.ready, $event) || (ctx.ready = $event); return $event; })("busyCountChange", function SdCrudDetail_Template_sd_base_container_busyCountChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.busyCount, $event) || (ctx.busyCount = $event); return $event; });
165
168
  i0.ɵɵconditionalCreate(1, SdCrudDetail_Conditional_1_Template, 2, 0)(2, SdCrudDetail_Conditional_2_Template, 2, 0)(3, SdCrudDetail_Conditional_3_Template, 2, 0);
166
169
  i0.ɵɵconditionalCreate(4, SdCrudDetail_Conditional_4_Template, 2, 0);
167
- i0.ɵɵtemplate(5, SdCrudDetail_ng_template_5_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
168
- i0.ɵɵconditionalCreate(7, SdCrudDetail_Conditional_7_Template, 2, 1, "div", 6)(8, SdCrudDetail_Conditional_8_Template, 3, 1, "sd-form", 7);
170
+ i0.ɵɵconditionalCreate(5, SdCrudDetail_Conditional_5_Template, 2, 0);
169
171
  i0.ɵɵelementEnd();
170
172
  } if (rf & 2) {
171
173
  i0.ɵɵtwoWayProperty("ready", ctx.ready);
@@ -176,8 +178,8 @@ export class SdCrudDetail {
176
178
  i0.ɵɵconditional(ctx.viewType() === "page" && (!ctx.readonly() || ctx.commandTplRef()) ? 1 : ctx.viewType() === "control" && (!ctx.readonly() || ctx.commandTplRef()) ? 2 : ctx.commandTplRef() ? 3 : -1);
177
179
  i0.ɵɵadvance(3);
178
180
  i0.ɵɵconditional(ctx.viewType() === "modal" || ctx.bottomCommandTplRef() ? 4 : -1);
179
- i0.ɵɵadvance(3);
180
- i0.ɵɵconditional(ctx.readonly() ? 7 : 8);
181
+ i0.ɵɵadvance();
182
+ i0.ɵɵconditional(ctx.contentTplRef() ? 5 : -1);
181
183
  } }, dependencies: [SdBaseContainer, SdButton, NgIcon, NgTemplateOutlet, SdForm], encapsulation: 2, changeDetection: 0 });
182
184
  }
183
185
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SdCrudDetail, [{
@@ -246,22 +248,21 @@ export class SdCrudDetail {
246
248
  </ng-template>
247
249
  }
248
250
 
249
- <!-- CONTENT -->
250
- <ng-template #contentTpl>
251
- <ng-content />
252
- </ng-template>
253
-
254
- @if (readonly()) {
255
- <div class="fill">
256
- <ng-template [ngTemplateOutlet]="contentTpl" />
257
- </div>
258
- } @else {
259
- <sd-form #formCtrl (formSubmit)="submit.emit()" class="block fill">
260
- <ng-template [ngTemplateOutlet]="contentTpl" />
261
- </sd-form>
251
+ @if (contentTplRef()) {
252
+ <ng-template #contentTpl>
253
+ @if (readonly()) {
254
+ <div class="fill">
255
+ <ng-template [ngTemplateOutlet]="contentTplRef()" />
256
+ </div>
257
+ } @else {
258
+ <sd-form #formCtrl (formSubmit)="submit.emit()" class="block fill">
259
+ <ng-template [ngTemplateOutlet]="contentTplRef()" />
260
+ </sd-form>
261
+ }
262
+ </ng-template>
262
263
  }
263
264
  </sd-base-container>
264
265
  `,
265
266
  }]
266
- }], null, { ready: [{ type: i0.Input, args: [{ isSignal: true, alias: "ready", required: false }] }, { type: i0.Output, args: ["readyChange"] }], initialized: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialized", required: false }] }], busyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyCount", required: false }] }, { type: i0.Output, args: ["busyCountChange"] }], restricted: [{ type: i0.Input, args: [{ isSignal: true, alias: "restricted", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewType", required: true }] }], formCtrl: [{ type: i0.ViewChild, args: ["formCtrl", { isSignal: true }] }], submit: [{ type: i0.Output, args: ["submit"] }], commandTplRef: [{ type: i0.ContentChild, args: ["commandTpl", { isSignal: true }] }], bottomCommandTplRef: [{ type: i0.ContentChild, args: ["bottomCommandTpl", { isSignal: true }] }] }); })();
267
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdCrudDetail, { className: "SdCrudDetail", filePath: "packages/angular/src/data/crud/sd-crud-detail.ts", lineNumber: 102 }); })();
267
+ }], null, { ready: [{ type: i0.Input, args: [{ isSignal: true, alias: "ready", required: false }] }, { type: i0.Output, args: ["readyChange"] }], initialized: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialized", required: false }] }], busyCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyCount", required: false }] }, { type: i0.Output, args: ["busyCountChange"] }], restricted: [{ type: i0.Input, args: [{ isSignal: true, alias: "restricted", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], viewType: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewType", required: true }] }], formCtrl: [{ type: i0.ViewChild, args: ["formCtrl", { isSignal: true }] }], submit: [{ type: i0.Output, args: ["submit"] }], commandTplRef: [{ type: i0.ContentChild, args: ["commandTpl", { isSignal: true }] }], contentTplRef: [{ type: i0.ContentChild, args: ["contentTpl", { isSignal: true }] }], bottomCommandTplRef: [{ type: i0.ContentChild, args: ["bottomCommandTpl", { isSignal: true }] }] }); })();
268
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SdCrudDetail, { className: "SdCrudDetail", filePath: "packages/angular/src/data/crud/sd-crud-detail.ts", lineNumber: 101 }); })();
@@ -1,4 +1,4 @@
1
- import { TemplateRef } from "@angular/core";
1
+ import { type TemplateRef } from "@angular/core";
2
2
  import { SdForm } from "../../controls/form/sd-form";
3
3
  import { SdSheetColumn } from "../sheet/sd-sheet-column";
4
4
  import type { SdViewType } from "../../core/routing/injectViewTypeSignal";
@@ -1 +1 @@
1
- {"version":3,"file":"sd-crud-list.d.ts","sourceRoot":"","sources":["../../../src/data/crud/sd-crud-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;;;AAYzE,qBA8La,UAAU,CAAC,KAAK,EAAE,IAAI;IACjC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAwD;IAE1F,KAAK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