@ng-prism/core 21.4.0 → 21.4.1

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.
@@ -9,64 +9,65 @@ import { PrismNavigationService } from '../../services/prism-navigation.service.
9
9
  import { PrismPluginService } from '../../services/prism-plugin.service.js';
10
10
  import { PrismRendererService } from '../../services/prism-renderer.service.js';
11
11
  import * as i0 from "@angular/core";
12
- const _c0 = a0 => ({ inputMeta: a0 });
12
+ const _c0 = (a0, a1) => ({ inputMeta: a0, rendererService: a1 });
13
13
  const _c1 = () => [];
14
14
  const _forTrack0 = ($index, $item) => $item.name;
15
15
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
16
16
  i0.ɵɵelementContainer(0, 3);
17
17
  } if (rf & 2) {
18
18
  const input_r1 = i0.ɵɵnextContext().$implicit;
19
- i0.ɵɵproperty("ngComponentOutlet", ctx.component)("ngComponentOutletInputs", i0.ɵɵpureFunction1(2, _c0, input_r1));
19
+ const ctx_r1 = i0.ɵɵnextContext(2);
20
+ i0.ɵɵproperty("ngComponentOutlet", ctx.component)("ngComponentOutletInputs", i0.ɵɵpureFunction2(2, _c0, input_r1, ctx_r1.rendererService));
20
21
  } }
21
22
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_0_Template(rf, ctx) { if (rf & 1) {
22
- const _r2 = i0.ɵɵgetCurrentView();
23
+ const _r3 = i0.ɵɵgetCurrentView();
23
24
  i0.ɵɵelementStart(0, "prism-boolean-control", 6);
24
- i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_0_Template_prism_boolean_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r2); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.rendererService.updateInput(input_r1.name, $event)); });
25
+ i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_0_Template_prism_boolean_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.rendererService.updateInput(input_r1.name, $event)); });
25
26
  i0.ɵɵelementEnd();
26
27
  } if (rf & 2) {
27
28
  const input_r1 = i0.ɵɵnextContext(2).$implicit;
28
- const ctx_r2 = i0.ɵɵnextContext(2);
29
- i0.ɵɵproperty("value", ctx_r2.asBoolean(ctx_r2.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "");
29
+ const ctx_r1 = i0.ɵɵnextContext(2);
30
+ i0.ɵɵproperty("value", ctx_r1.asBoolean(ctx_r1.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "");
30
31
  } }
31
32
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_1_Template(rf, ctx) { if (rf & 1) {
32
33
  const _r4 = i0.ɵɵgetCurrentView();
33
34
  i0.ɵɵelementStart(0, "prism-number-control", 6);
34
- i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_1_Template_prism_number_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.rendererService.updateInput(input_r1.name, $event)); });
35
+ i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_1_Template_prism_number_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.rendererService.updateInput(input_r1.name, $event)); });
35
36
  i0.ɵɵelementEnd();
36
37
  } if (rf & 2) {
37
38
  const input_r1 = i0.ɵɵnextContext(2).$implicit;
38
- const ctx_r2 = i0.ɵɵnextContext(2);
39
- i0.ɵɵproperty("value", ctx_r2.asNumber(ctx_r2.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "");
39
+ const ctx_r1 = i0.ɵɵnextContext(2);
40
+ i0.ɵɵproperty("value", ctx_r1.asNumber(ctx_r1.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "");
40
41
  } }
41
42
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_2_Template(rf, ctx) { if (rf & 1) {
42
43
  const _r5 = i0.ɵɵgetCurrentView();
43
44
  i0.ɵɵelementStart(0, "prism-union-control", 7);
44
- i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_2_Template_prism_union_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.rendererService.updateInput(input_r1.name, $event)); });
45
+ i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_2_Template_prism_union_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.rendererService.updateInput(input_r1.name, $event)); });
45
46
  i0.ɵɵelementEnd();
46
47
  } if (rf & 2) {
47
48
  const input_r1 = i0.ɵɵnextContext(2).$implicit;
48
- const ctx_r2 = i0.ɵɵnextContext(2);
49
- i0.ɵɵproperty("value", ctx_r2.asString(ctx_r2.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "")("options", input_r1.values ?? i0.ɵɵpureFunction0(4, _c1));
49
+ const ctx_r1 = i0.ɵɵnextContext(2);
50
+ i0.ɵɵproperty("value", ctx_r1.asString(ctx_r1.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "")("options", input_r1.values ?? i0.ɵɵpureFunction0(4, _c1));
50
51
  } }
51
52
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_3_Template(rf, ctx) { if (rf & 1) {
52
53
  const _r6 = i0.ɵɵgetCurrentView();
53
54
  i0.ɵɵelementStart(0, "prism-string-control", 6);
54
- i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_3_Template_prism_string_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.rendererService.updateInput(input_r1.name, $event)); });
55
+ i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_3_Template_prism_string_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.rendererService.updateInput(input_r1.name, $event)); });
55
56
  i0.ɵɵelementEnd();
56
57
  } if (rf & 2) {
57
58
  const input_r1 = i0.ɵɵnextContext(2).$implicit;
58
- const ctx_r2 = i0.ɵɵnextContext(2);
59
- i0.ɵɵproperty("value", ctx_r2.asString(ctx_r2.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "");
59
+ const ctx_r1 = i0.ɵɵnextContext(2);
60
+ i0.ɵɵproperty("value", ctx_r1.asString(ctx_r1.rendererService.inputValues()[input_r1.name]))("label", input_r1.name)("typeName", input_r1.rawType ?? "");
60
61
  } }
61
62
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_4_Template(rf, ctx) { if (rf & 1) {
62
63
  const _r7 = i0.ɵɵgetCurrentView();
63
64
  i0.ɵɵelementStart(0, "prism-json-control", 6);
64
- i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_4_Template_prism_json_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r7); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.rendererService.updateInput(input_r1.name, $event)); });
65
+ i0.ɵɵlistener("valueChange", function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_4_Template_prism_json_control_valueChange_0_listener($event) { i0.ɵɵrestoreView(_r7); const input_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.rendererService.updateInput(input_r1.name, $event)); });
65
66
  i0.ɵɵelementEnd();
66
67
  } if (rf & 2) {
67
68
  const input_r1 = i0.ɵɵnextContext(2).$implicit;
68
- const ctx_r2 = i0.ɵɵnextContext(2);
69
- i0.ɵɵproperty("value", ctx_r2.rendererService.inputValues()[input_r1.name])("label", input_r1.name)("typeName", input_r1.rawType ?? "");
69
+ const ctx_r1 = i0.ɵɵnextContext(2);
70
+ i0.ɵɵproperty("value", ctx_r1.rendererService.inputValues()[input_r1.name])("label", input_r1.name)("typeName", input_r1.rawType ?? "");
70
71
  } }
71
72
  function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
72
73
  i0.ɵɵconditionalCreate(0, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_0_Template, 1, 3, "prism-boolean-control", 4)(1, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_1_Template, 1, 3, "prism-number-control", 4)(2, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_2_Template, 1, 5, "prism-union-control", 5)(3, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_3_Template, 1, 3, "prism-string-control", 4)(4, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Case_4_Template, 1, 3, "prism-json-control", 4);
@@ -77,14 +78,14 @@ function PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Template(
77
78
  } }
78
79
  function PrismControlsPanelComponent_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
79
80
  i0.ɵɵelementStart(0, "div", 1);
80
- i0.ɵɵconditionalCreate(1, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_1_Template, 1, 4, "ng-container", 3)(2, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Template, 5, 1);
81
+ i0.ɵɵconditionalCreate(1, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_1_Template, 1, 5, "ng-container", 3)(2, PrismControlsPanelComponent_Conditional_0_For_2_Conditional_2_Template, 5, 1);
81
82
  i0.ɵɵelementEnd();
82
83
  } if (rf & 2) {
83
84
  let tmp_12_0;
84
85
  const input_r1 = ctx.$implicit;
85
- const ctx_r2 = i0.ɵɵnextContext(2);
86
+ const ctx_r1 = i0.ɵɵnextContext(2);
86
87
  i0.ɵɵadvance();
87
- i0.ɵɵconditional((tmp_12_0 = ctx_r2.getCustomControl(input_r1)) ? 1 : 2, tmp_12_0);
88
+ i0.ɵɵconditional((tmp_12_0 = ctx_r1.getCustomControl(input_r1)) ? 1 : 2, tmp_12_0);
88
89
  } }
89
90
  function PrismControlsPanelComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
90
91
  i0.ɵɵelementStart(0, "p", 2);
@@ -149,7 +150,7 @@ export class PrismControlsPanelComponent {
149
150
  @if (getCustomControl(input); as customCtrl) {
150
151
  <ng-container
151
152
  [ngComponentOutlet]="customCtrl.component"
152
- [ngComponentOutletInputs]="{ inputMeta: input }"
153
+ [ngComponentOutletInputs]="{ inputMeta: input, rendererService: rendererService }"
153
154
  />
154
155
  } @else {
155
156
  @switch (input.type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-prism/core",
3
- "version": "21.4.0",
3
+ "version": "21.4.1",
4
4
  "description": "Lightweight Angular-native component showcase — no story files needed.",
5
5
  "keywords": [
6
6
  "angular",