ngx-axis-appforge 1.0.13 → 1.0.14
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/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-badge-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs +35 -19
- package/fesm2022/ngx-axis-appforge-axis-components-badge.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-button-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-button.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs +23 -13
- package/fesm2022/ngx-axis-appforge-axis-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-cytoscape.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs +35 -19
- package/fesm2022/ngx-axis-appforge-axis-components-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-desc-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs +29 -16
- package/fesm2022/ngx-axis-appforge-axis-components-desc.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-design-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +76 -48
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-drawer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs +33 -18
- package/fesm2022/ngx-axis-appforge-axis-components-drawer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs +15 -9
- package/fesm2022/ngx-axis-appforge-axis-components-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs +15 -9
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-container.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-dynamic-value.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-echarts-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-echarts.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs +18 -16
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs +115 -60
- package/fesm2022/ngx-axis-appforge-axis-components-edit-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs +13 -8
- package/fesm2022/ngx-axis-appforge-axis-components-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-flex-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-flex.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-form-item-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs +19 -11
- package/fesm2022/ngx-axis-appforge-axis-components-form-item.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs +7 -5
- package/fesm2022/ngx-axis-appforge-axis-components-form.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs +6 -5
- package/fesm2022/ngx-axis-appforge-axis-components-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-image-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs +10 -7
- package/fesm2022/ngx-axis-appforge-axis-components-image.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-component-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs +21 -12
- package/fesm2022/ngx-axis-appforge-axis-components-input-component.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs +60 -4
- package/fesm2022/ngx-axis-appforge-axis-components-input-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs +21 -8
- package/fesm2022/ngx-axis-appforge-axis-components-input-icon.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-json-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs +12 -8
- package/fesm2022/ngx-axis-appforge-axis-components-input-json.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-list-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-input-list.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-input-number-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs +27 -15
- package/fesm2022/ngx-axis-appforge-axis-components-input-number.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs +24 -13
- package/fesm2022/ngx-axis-appforge-axis-components-input.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task-design.mjs +7 -7
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs +17 -10
- package/fesm2022/ngx-axis-appforge-axis-components-loop-task.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs +20 -17
- package/fesm2022/ngx-axis-appforge-axis-components-menu-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs +43 -23
- package/fesm2022/ngx-axis-appforge-axis-components-menu.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs +9 -8
- package/fesm2022/ngx-axis-appforge-axis-components-modal-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs +33 -18
- package/fesm2022/ngx-axis-appforge-axis-components-modal.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-radio-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs +27 -15
- package/fesm2022/ngx-axis-appforge-axis-components-radio.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rate-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs +9 -6
- package/fesm2022/ngx-axis-appforge-axis-components-rate.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-read-file-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-read-file.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs +13 -8
- package/fesm2022/ngx-axis-appforge-axis-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs +32 -22
- package/fesm2022/ngx-axis-appforge-axis-components-scope-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs +11 -7
- package/fesm2022/ngx-axis-appforge-axis-components-scope.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-select-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs +55 -29
- package/fesm2022/ngx-axis-appforge-axis-components-select.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs +5 -4
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs +42 -22
- package/fesm2022/ngx-axis-appforge-axis-components-single-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-splitter-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs +25 -14
- package/fesm2022/ngx-axis-appforge-axis-components-splitter.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-steps-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs +45 -24
- package/fesm2022/ngx-axis-appforge-axis-components-steps.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-switch-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs +15 -9
- package/fesm2022/ngx-axis-appforge-axis-components-switch.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs +35 -23
- package/fesm2022/ngx-axis-appforge-axis-components-table-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs +73 -44
- package/fesm2022/ngx-axis-appforge-axis-components-table-helper.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs +162 -84
- package/fesm2022/ngx-axis-appforge-axis-components-table.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs +10 -10
- package/fesm2022/ngx-axis-appforge-axis-components-tabs-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs +45 -24
- package/fesm2022/ngx-axis-appforge-axis-components-tabs.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-text-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs +19 -11
- package/fesm2022/ngx-axis-appforge-axis-components-text.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-textarea-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs +22 -12
- package/fesm2022/ngx-axis-appforge-axis-components-textarea.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs +16 -13
- package/fesm2022/ngx-axis-appforge-axis-components-time-line-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs +31 -17
- package/fesm2022/ngx-axis-appforge-axis-components-time-line.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-timer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs +7 -5
- package/fesm2022/ngx-axis-appforge-axis-components-timer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs +16 -13
- package/fesm2022/ngx-axis-appforge-axis-components-transfer-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs +131 -67
- package/fesm2022/ngx-axis-appforge-axis-components-transfer.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs +14 -12
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs +87 -45
- package/fesm2022/ngx-axis-appforge-axis-components-tree-selector.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-upload-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs +51 -27
- package/fesm2022/ngx-axis-appforge-axis-components-upload.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-video-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-axis-components-video.mjs +3 -3
- package/fesm2022/ngx-axis-appforge-axis-components-video.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +274 -192
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +9 -9
- package/types/ngx-axis-appforge-axis-components-input-icon.d.ts +1 -0
- package/types/ngx-axis-appforge-axis-components-input.d.ts +1 -0
|
@@ -5,26 +5,44 @@ import * as i1 from 'ng-zorro-antd/steps';
|
|
|
5
5
|
import { NzStepsModule } from 'ng-zorro-antd/steps';
|
|
6
6
|
|
|
7
7
|
class StepsOptions extends BaseOptions {
|
|
8
|
-
type = signal("default",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
type = signal("default", /* @ts-ignore */
|
|
9
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
10
|
+
current = signal("", /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
12
|
+
direction = signal("horizontal", /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
14
|
+
labelPlacement = signal("horizontal", /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "labelPlacement" }] : /* istanbul ignore next */ []));
|
|
16
|
+
progressDot = signal(false, /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "progressDot" }] : /* istanbul ignore next */ []));
|
|
18
|
+
size = signal("default", /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
20
|
+
startIndex = signal(0, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "startIndex" }] : /* istanbul ignore next */ []));
|
|
22
|
+
status = signal(undefined, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
24
|
+
steps = signal([], /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
17
26
|
}
|
|
18
27
|
class StepOptions {
|
|
19
|
-
name = signal("",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
name = signal("", /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
30
|
+
inuse = signal(true, /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "inuse" }] : /* istanbul ignore next */ []));
|
|
32
|
+
title = signal("", /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
34
|
+
subtitle = signal("", /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
|
|
36
|
+
desc = signal("", /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "desc" }] : /* istanbul ignore next */ []));
|
|
38
|
+
icon = signal(undefined, /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
40
|
+
status = signal("wait", /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
42
|
+
disabled = signal(false, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
44
|
+
triggeEvents = signal(undefined, /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "triggeEvents" }] : /* istanbul ignore next */ []));
|
|
28
46
|
}
|
|
29
47
|
|
|
30
48
|
class Steps extends Base {
|
|
@@ -37,18 +55,21 @@ class Steps extends Base {
|
|
|
37
55
|
});
|
|
38
56
|
}
|
|
39
57
|
options = new StepsOptions();
|
|
40
|
-
steps = computed(() => this.options.steps().map(_ => new StepOptions()),
|
|
41
|
-
|
|
42
|
-
|
|
58
|
+
steps = computed(() => this.options.steps().map(_ => new StepOptions()), /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
60
|
+
displaySteps = computed(() => this.steps().filter(s => s.inuse()), /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "displaySteps" }] : /* istanbul ignore next */ []));
|
|
62
|
+
current = computed(() => this.displaySteps().findIndex(s => s.name() == this.options.current()) + this.options.startIndex(), /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
|
|
43
64
|
onIndexChange(index) {
|
|
44
65
|
const step = this.displaySteps()[index - this.options.startIndex()];
|
|
45
66
|
this.triggeEvents("stepChange", { stepName: step.name() }).subscribe();
|
|
46
67
|
this.triggeEvents("stepClick", undefined, step.triggeEvents()).subscribe();
|
|
47
68
|
}
|
|
48
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
69
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Steps, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Steps, isStandalone: true, selector: "axis-steps", usesInheritance: true, ngImport: i0, template: "<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzStepsModule }, { kind: "component", type: i1.NzStepsComponent, selector: "nz-steps", inputs: ["nzCurrent", "nzDirection", "nzLabelPlacement", "nzType", "nzSize", "nzStartIndex", "nzStatus", "nzProgressDot"], outputs: ["nzIndexChange"], exportAs: ["nzSteps"] }, { kind: "component", type: i1.NzStepComponent, selector: "nz-step", inputs: ["nzTitle", "nzSubtitle", "nzDescription", "nzDisabled", "nzPercentage", "nzSize", "nzStatus", "nzIcon"], exportAs: ["nzStep"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
71
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Steps, decorators: [{
|
|
52
73
|
type: Component,
|
|
53
74
|
args: [{ selector: 'axis-steps', imports: [NzStepsModule, DynamicDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>", styles: [":host{display:block}\n"] }]
|
|
54
75
|
}], ctorParameters: () => [] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-steps.mjs","sources":["../../../axis-components/steps/steps.options.ts","../../../axis-components/steps/steps.ts","../../../axis-components/steps/steps.html","../../../axis-components/steps/ngx-axis-appforge-axis-components-steps.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions, TriggeEventsOptions } from \"ngx-axis-appforge/core\";\n\nexport class StepsOptions extends BaseOptions {\n readonly type = signal<\"default\" | \"navigation\">(\"default\");\n readonly current = signal(\"\");\n readonly direction = signal<'vertical' | 'horizontal'>(\"horizontal\");\n readonly labelPlacement = signal<'vertical' | 'horizontal'>(\"horizontal\");\n readonly progressDot = signal(false);\n readonly size = signal<\"small\" | \"default\">(\"default\");\n readonly startIndex = signal(0);\n readonly status = signal<'wait' | 'process' | 'finish' | 'error' | undefined>(undefined);\n readonly steps = signal<any[]>([]);\n}\n\nexport class StepOptions {\n readonly name = signal(\"\");\n readonly inuse = signal(true);\n readonly title = signal(\"\");\n readonly subtitle = signal(\"\");\n readonly desc = signal(\"\");\n readonly icon = signal<any>(undefined);\n readonly status = signal<'wait' | 'process' | 'finish' | 'error'>(\"wait\");\n readonly disabled = signal(false);\n readonly triggeEvents = signal<TriggeEventsOptions | undefined>(undefined);\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { StepOptions, StepsOptions } from './steps.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzStepsModule } from 'ng-zorro-antd/steps';\n\n@Component({\n selector: 'axis-steps',\n imports: [NzStepsModule, DynamicDirective],\n templateUrl: './steps.html',\n styleUrl: './steps.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Steps extends Base<StepsOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.steps().forEach((p, i) => {\n this.bindWithConfig(this.options.steps()[i], { options: p, tag: `bindSteps.${i}` });\n });\n });\n }\n override options: StepsOptions = new StepsOptions();\n readonly steps = computed(() => this.options.steps().map(_ => new StepOptions()));\n readonly displaySteps = computed(() => this.steps().filter(s => s.inuse()));\n readonly current = computed(() => this.displaySteps().findIndex(s => s.name() == this.options.current()) + this.options.startIndex());\n\n onIndexChange(index: number) {\n const step = this.displaySteps()[index - this.options.startIndex()];\n this.triggeEvents(\"stepChange\", { stepName: step.name() }).subscribe();\n this.triggeEvents(\"stepClick\", undefined, step.triggeEvents()).subscribe();\n }\n\n}\n","<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './steps';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-steps.mjs","sources":["../../../axis-components/steps/steps.options.ts","../../../axis-components/steps/steps.ts","../../../axis-components/steps/steps.html","../../../axis-components/steps/ngx-axis-appforge-axis-components-steps.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { BaseOptions, TriggeEventsOptions } from \"ngx-axis-appforge/core\";\n\nexport class StepsOptions extends BaseOptions {\n readonly type = signal<\"default\" | \"navigation\">(\"default\");\n readonly current = signal(\"\");\n readonly direction = signal<'vertical' | 'horizontal'>(\"horizontal\");\n readonly labelPlacement = signal<'vertical' | 'horizontal'>(\"horizontal\");\n readonly progressDot = signal(false);\n readonly size = signal<\"small\" | \"default\">(\"default\");\n readonly startIndex = signal(0);\n readonly status = signal<'wait' | 'process' | 'finish' | 'error' | undefined>(undefined);\n readonly steps = signal<any[]>([]);\n}\n\nexport class StepOptions {\n readonly name = signal(\"\");\n readonly inuse = signal(true);\n readonly title = signal(\"\");\n readonly subtitle = signal(\"\");\n readonly desc = signal(\"\");\n readonly icon = signal<any>(undefined);\n readonly status = signal<'wait' | 'process' | 'finish' | 'error'>(\"wait\");\n readonly disabled = signal(false);\n readonly triggeEvents = signal<TriggeEventsOptions | undefined>(undefined);\n}","import { ChangeDetectionStrategy, Component, computed, effect } from '@angular/core';\nimport { StepOptions, StepsOptions } from './steps.options';\nimport { Base, DynamicDirective } from 'ngx-axis-appforge/core';\nimport { NzStepsModule } from 'ng-zorro-antd/steps';\n\n@Component({\n selector: 'axis-steps',\n imports: [NzStepsModule, DynamicDirective],\n templateUrl: './steps.html',\n styleUrl: './steps.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Steps extends Base<StepsOptions> {\n\n constructor() {\n super();\n effect(() => {\n this.steps().forEach((p, i) => {\n this.bindWithConfig(this.options.steps()[i], { options: p, tag: `bindSteps.${i}` });\n });\n });\n }\n override options: StepsOptions = new StepsOptions();\n readonly steps = computed(() => this.options.steps().map(_ => new StepOptions()));\n readonly displaySteps = computed(() => this.steps().filter(s => s.inuse()));\n readonly current = computed(() => this.displaySteps().findIndex(s => s.name() == this.options.current()) + this.options.startIndex());\n\n onIndexChange(index: number) {\n const step = this.displaySteps()[index - this.options.startIndex()];\n this.triggeEvents(\"stepChange\", { stepName: step.name() }).subscribe();\n this.triggeEvents(\"stepClick\", undefined, step.triggeEvents()).subscribe();\n }\n\n}\n","<nz-steps [nzType]=\"options.type()\" [nzCurrent]=\"current()\" [nzDirection]=\"options.direction()\"\n [nzLabelPlacement]=\"options.labelPlacement()\" [nzProgressDot]=\"options.progressDot()\" [nzSize]=\"options.size()\"\n [nzStartIndex]=\"options.startIndex()\" (nzIndexChange)=\"onIndexChange($event)\">\n @for (step of displaySteps(); track step.name()) {\n <nz-step [attr.data-name]=\"step.name()\" [nzTitle]=\"step.title()\" [nzSubtitle]=\"step.subtitle()\"\n [nzDescription]=\"step.desc()\" [nzIcon]=\"step.icon()?icon:undefined\"\n [nzStatus]=\"options.status() && options.current()==step.name()?options.status()??'wait':step.status()\"\n [nzDisabled]=\"step.disabled()\">\n <ng-template #icon>\n <ng-container [axisDynamic]=\"step.icon()\" [standalone]=\"true\"></ng-container>\n </ng-template>\n </nz-step>\n }\n</nz-steps>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './steps';\n"],"names":[],"mappings":";;;;;;AAGM,MAAO,YAAa,SAAQ,WAAW,CAAA;IAChC,IAAI,GAAG,MAAM,CAA2B,SAAS;6EAAC;IAClD,OAAO,GAAG,MAAM,CAAC,EAAE;gFAAC;IACpB,SAAS,GAAG,MAAM,CAA4B,YAAY;kFAAC;IAC3D,cAAc,GAAG,MAAM,CAA4B,YAAY;uFAAC;IAChE,WAAW,GAAG,MAAM,CAAC,KAAK;oFAAC;IAC3B,IAAI,GAAG,MAAM,CAAsB,SAAS;6EAAC;IAC7C,UAAU,GAAG,MAAM,CAAC,CAAC;mFAAC;IACtB,MAAM,GAAG,MAAM,CAAsD,SAAS;+EAAC;IAC/E,KAAK,GAAG,MAAM,CAAQ,EAAE;8EAAC;AACrC;MAEY,WAAW,CAAA;IACX,IAAI,GAAG,MAAM,CAAC,EAAE;6EAAC;IACjB,KAAK,GAAG,MAAM,CAAC,IAAI;8EAAC;IACpB,KAAK,GAAG,MAAM,CAAC,EAAE;8EAAC;IAClB,QAAQ,GAAG,MAAM,CAA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AA,EAAA,m4BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;AEVjD;;AAEG;;;;"}
|
|
@@ -36,10 +36,10 @@ class Setting extends FunFieldValueBase {
|
|
|
36
36
|
defaultValue: "default"
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Setting, isStandalone: true, selector: "axis-design-switch-setting", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F00\u542F\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"onValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5173\u95ED\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"offValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5F00\u542F\u6807\u7B7E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"onLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5173\u95ED\u6807\u7B7E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"offLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzCollapseModule }, { kind: "component", type: i2.NzCollapsePanelComponent, selector: "nz-collapse-panel", inputs: ["nzActive", "nzShowArrow", "nzExtra", "nzHeader", "nzExpandedIcon", "nzCollapsible"], outputs: ["nzActiveChange"], exportAs: ["nzCollapsePanel"] }, { kind: "component", type: i2.NzCollapseComponent, selector: "nz-collapse", inputs: ["nzAccordion", "nzBordered", "nzGhost", "nzExpandIconPosition", "nzSize"], exportAs: ["nzCollapse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i3.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl", "nzXXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i3.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter", "nzWrap"], exportAs: ["nzRow"] }, { kind: "directive", type: i4.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap", "nzSize", "nzVariant", "nzRequiredMark"], exportAs: ["nzForm"] }, { kind: "component", type: i4.NzFormItemComponent, selector: "nz-form-item", inputs: ["nzLayout"], exportAs: ["nzFormItem"] }, { kind: "component", type: i4.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i4.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "component", type: BaseDesignSetting, selector: "axis-base-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "component", type: ValueDesignSetting, selector: "axis-value-design-setting", inputs: ["scopeId", "exclude", "fg"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i5.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzVariant", "nzSize", "nzStatus", "disabled", "readonly"], exportAs: ["nzInput"] }, { kind: "component", type: FunField, selector: "axis-fun-field", inputs: ["scopes", "exclude", "scopeId", "onlyFun", "noListen", "disabled", "editTip", "value", "open", "showCreateListenModal", "createListenDataSourceName"], outputs: ["valueChange", "openChange", "showCreateListenModalChange", "createListenDataSourceNameChange"] }, { kind: "directive", type: DynamicDirective, selector: "[axisDynamic]", inputs: ["axisDynamic", "standalone", "isDesign", "forceRenderOnChange"], outputs: ["onRegisteValueAccess"], exportAs: ["axisDynamic"] }, { kind: "component", type: InputTrigger, selector: "axis-input-trigger", inputs: ["internalTriggers", "optionsNodeId", "value", "eventDesc", "isVisibleHandlerModal", "editEventHandler"], outputs: ["valueChange", "isVisibleHandlerModalChange", "editEventHandlerChange"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i6.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i6.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Setting, decorators: [{
|
|
43
43
|
type: Component,
|
|
44
44
|
args: [{ selector: 'axis-design-switch-setting', imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, NzInputModule, FunField, DynamicDirective, InputTrigger, NzRadioModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"\u57FA\u672C\u8BBE\u7F6E\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5F00\u542F\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"onValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5173\u95ED\u503C\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"offValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5F00\u542F\u6807\u7B7E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"onLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n \u5173\u95ED\u6807\u7B7E\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"offLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n \u5927\u5C0F\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"default\">\u5927</label>\n <label nz-radio-button nzValue=\"small\">\u5C0F</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>" }]
|
|
45
45
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-switch-design.mjs","sources":["../../../axis-components/switch/design/setting/setting.ts","../../../axis-components/switch/design/setting/setting.html","../../../axis-components/switch/design/config.ts","../../../axis-components/switch/design/ngx-axis-appforge-axis-components-switch-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-switch-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, NzInputModule, FunField, DynamicDirective, InputTrigger, NzRadioModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n onValue: [true, FormValidators.required],\n offValue: [false, FormValidators.required],\n onLabel: [],\n offLabel: [],\n size: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n onLabel: {\n defaultValue: undefined\n },\n offLabel: {\n defaultValue: undefined\n },\n size: {\n defaultValue: \"default\"\n },\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 开启值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"onValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 关闭值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"offValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 开启标签\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"onLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 关闭标签\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"offLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"default\">大</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"开关\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"开关\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"switcher\",\n }),\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element },\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAeM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAA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AA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAK9K,OAAO,EAAA,UAAA,EAAA,CAAA;kBAPnB,SAAS;+BACE,4BAA4B,EAAA,OAAA,EAC7B,CAAC,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,CAAC,EAAA,eAAA,EAGzK,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uhGAAA,EAAA;;;AEV1C,MAAM,MAAM,GAAiB;AAEhC,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,iBAAiB,CAAC,QAAkB,EAAA;QAChC,OAAO;YACH,QAAQ,EAAE,IAAI,WAAW,CAAC;gBACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE,UAAU;aACnB,CAAC;SACL;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;SAC5B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-switch-design.mjs","sources":["../../../axis-components/switch/design/setting/setting.ts","../../../axis-components/switch/design/setting/setting.html","../../../axis-components/switch/design/config.ts","../../../axis-components/switch/design/ngx-axis-appforge-axis-components-switch-design.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule, UntypedFormGroup } from '@angular/forms';\nimport { NzCollapseModule } from 'ng-zorro-antd/collapse';\nimport { NzFormModule } from 'ng-zorro-antd/form';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzRadioModule } from 'ng-zorro-antd/radio';\nimport { BaseDesignSetting, baseFbConfig, baseFunField, DynamicDirective, FormValidators, FunField, FunFieldOptions, FunFieldValueBase, InputTrigger, ValueDesignSetting, valueFbConfig, valueFunField } from 'ngx-axis-appforge/core';\n\n@Component({\n selector: 'axis-design-switch-setting',\n imports: [FormsModule, NzCollapseModule, ReactiveFormsModule, NzFormModule, BaseDesignSetting, ValueDesignSetting, NzInputModule, FunField, DynamicDirective, InputTrigger, NzRadioModule],\n templateUrl: './setting.html',\n styleUrl: './setting.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Setting extends FunFieldValueBase {\n\n override fg: UntypedFormGroup = this.fb.group({\n ...baseFbConfig,\n ...valueFbConfig,\n onValue: [true, FormValidators.required],\n offValue: [false, FormValidators.required],\n onLabel: [],\n offLabel: [],\n size: [undefined, FormValidators.requiredFun],\n });\n\n protected override funFields: FunFieldOptions = {\n ...baseFunField,\n ...valueFunField,\n onLabel: {\n defaultValue: undefined\n },\n offLabel: {\n defaultValue: undefined\n },\n size: {\n defaultValue: \"default\"\n },\n };\n\n}\n","<form [formGroup]=\"fg\" nz-form>\n <nz-collapse [nzBordered]=\"false\">\n <nz-collapse-panel nzHeader=\"基本设置\" nzActive>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 开启值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"onValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 关闭值\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <ng-container formControlName=\"offValue\"\n [axisDynamic]=\"{component:'axis-components/input-json',inuse:true}\"\n [standalone]=\"true\"></ng-container>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 开启标签\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"onLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\">\n 关闭标签\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"offLabel\">\n <input nz-input ngModel [ngModelOptions]=\"{standalone:true}\" />\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label nzSpan=\"8\" nzRequired>\n 大小\n </nz-form-label>\n <nz-form-control nzSpan=\"16\">\n <axis-fun-field formControlName=\"size\">\n <nz-radio-group ngModel [ngModelOptions]=\"{standalone:true}\" nzSize=\"small\">\n <label nz-radio-button nzValue=\"default\">大</label>\n <label nz-radio-button nzValue=\"small\">小</label>\n </nz-radio-group>\n </axis-fun-field>\n </nz-form-control>\n </nz-form-item>\n </nz-collapse-panel>\n <axis-value-design-setting [fg]=\"fg\"></axis-value-design-setting>\n <axis-base-design-setting [fg]=\"fg\"></axis-base-design-setting>\n <axis-input-trigger formControlName=\"triggeEvents\" [internalTriggers]=\"['valueChange']\"></axis-input-trigger>\n </nz-collapse>\n</form>","import { NextInfo, DesignBuildResult, DesignBindElementsResult, DesignConfig, OptionsNode, SimpleMenu } from \"ngx-axis-appforge/core\";\nimport { Setting } from \"./setting/setting\";\n\nexport const Config: DesignConfig = {\n\n componentName: \"开关\",\n buildOptionsNodes(nextInfo: NextInfo): DesignBuildResult {\n return {\n treeNode: new OptionsNode({\n parentId: nextInfo.parentId,\n scopeId: nextInfo.scopeId,\n name: \"开关\",\n canSetting: true,\n canDrag: true,\n dragType: \"component\",\n parentObj: nextInfo.parentObject,\n indexOfParentObj: nextInfo.indexOfParent,\n rootOptions: nextInfo.currentObject,\n settingType: Setting,\n contextMenu: SimpleMenu,\n icon: \"switcher\",\n }),\n };\n },\n bindElementsOptionsNode(element: HTMLElement, options: any): DesignBindElementsResult {\n return {\n [options.id]: { element },\n }\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './config';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAeM,MAAO,OAAQ,SAAQ,iBAAiB,CAAA;AAEnC,IAAA,EAAE,GAAqB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AAC5C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AACxC,QAAA,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC;AAC1C,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC;AAC9C,KAAA,CAAC;AAEiB,IAAA,SAAS,GAAoB;AAC9C,QAAA,GAAG,YAAY;AACf,QAAA,GAAG,aAAa;AAChB,QAAA,OAAO,EAAE;AACP,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,YAAY,EAAE;AACf,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,YAAY,EAAE;AACf,SAAA;KACF;uGAxBU,OAAO,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAA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,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,WAAW;gBACrB,SAAS,EAAE,QAAQ,CAAC,YAAY;gBAChC,gBAAgB,EAAE,QAAQ,CAAC,aAAa;gBACxC,WAAW,EAAE,QAAQ,CAAC,aAAa;AACnC,gBAAA,WAAW,EAAE,OAAO;AACpB,gBAAA,WAAW,EAAE,UAAU;AACvB,gBAAA,IAAI,EAAE,UAAU;aACnB,CAAC;SACL;IACL,CAAC;IACD,uBAAuB,CAAC,OAAoB,EAAE,OAAY,EAAA;QACtD,OAAO;AACH,YAAA,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE;SAC5B;IACL,CAAC;;;AC5BL;;AAEG;;;;"}
|
|
@@ -7,16 +7,22 @@ import * as i1 from 'ng-zorro-antd/switch';
|
|
|
7
7
|
import { NzSwitchModule } from 'ng-zorro-antd/switch';
|
|
8
8
|
|
|
9
9
|
class SwitchOptions extends ValueAccessOptions {
|
|
10
|
-
onValue = signal(true,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
onValue = signal(true, /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "onValue" }] : /* istanbul ignore next */ []));
|
|
12
|
+
offValue = signal(false, /* @ts-ignore */
|
|
13
|
+
...(ngDevMode ? [{ debugName: "offValue" }] : /* istanbul ignore next */ []));
|
|
14
|
+
onLabel = signal(undefined, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "onLabel" }] : /* istanbul ignore next */ []));
|
|
16
|
+
offLabel = signal(undefined, /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "offLabel" }] : /* istanbul ignore next */ []));
|
|
18
|
+
size = signal('default', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
class Switch extends ValueAccess {
|
|
18
23
|
options = new SwitchOptions();
|
|
19
|
-
switchValue = model(false,
|
|
24
|
+
switchValue = model(false, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "switchValue" }] : /* istanbul ignore next */ []));
|
|
20
26
|
writeValue(value) {
|
|
21
27
|
super.writeValue(value);
|
|
22
28
|
this.valueToSwitchValue();
|
|
@@ -32,10 +38,10 @@ class Switch extends ValueAccess {
|
|
|
32
38
|
this.value.set(value ? this.options.onValue() : this.options.offValue());
|
|
33
39
|
this.onChange?.(this.value());
|
|
34
40
|
}
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Switch, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: Switch, isStandalone: true, selector: "axis-switch", inputs: { switchValue: { classPropertyName: "switchValue", publicName: "switchValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchValue: "switchValueChange" }, usesInheritance: true, ngImport: i0, template: "<nz-switch [(ngModel)]=\"switchValue\" (ngModelChange)=\"onSwitchChange($event)\"\n [nzDisabled]=\"options.disabled() || options.readonly()\" [nzCheckedChildren]=\"options.onLabel()\"\n [nzUnCheckedChildren]=\"options.offLabel()\" [nzSize]=\"options.size()\"></nz-switch>", styles: [":host{display:block}.vertical [nz-radio]{display:block}\n"], dependencies: [{ kind: "ngmodule", type: NzSwitchModule }, { kind: "component", type: i1.NzSwitchComponent, selector: "nz-switch", inputs: ["nzLoading", "nzDisabled", "nzControl", "nzCheckedChildren", "nzUnCheckedChildren", "nzSize", "nzId"], exportAs: ["nzSwitch"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
43
|
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Switch, decorators: [{
|
|
39
45
|
type: Component,
|
|
40
46
|
args: [{ selector: 'axis-switch', imports: [NzSwitchModule, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<nz-switch [(ngModel)]=\"switchValue\" (ngModelChange)=\"onSwitchChange($event)\"\n [nzDisabled]=\"options.disabled() || options.readonly()\" [nzCheckedChildren]=\"options.onLabel()\"\n [nzUnCheckedChildren]=\"options.offLabel()\" [nzSize]=\"options.size()\"></nz-switch>", styles: [":host{display:block}.vertical [nz-radio]{display:block}\n"] }]
|
|
41
47
|
}], propDecorators: { switchValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "switchValue", required: false }] }, { type: i0.Output, args: ["switchValueChange"] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-axis-appforge-axis-components-switch.mjs","sources":["../../../axis-components/switch/switch.options.ts","../../../axis-components/switch/switch.ts","../../../axis-components/switch/switch.html","../../../axis-components/switch/ngx-axis-appforge-axis-components-switch.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class SwitchOptions extends ValueAccessOptions {\n\n readonly onValue = signal<any>(true);\n readonly offValue = signal<any>(false);\n readonly onLabel = signal<any>(undefined);\n readonly offLabel = signal<any>(undefined);\n readonly size = signal<'small' | 'default'>('default');\n}","import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { SwitchOptions } from './switch.options';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\n\n@Component({\n selector: 'axis-switch',\n imports: [NzSwitchModule, FormsModule],\n templateUrl: './switch.html',\n styleUrl: './switch.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Switch extends ValueAccess<SwitchOptions> {\n\n override options: SwitchOptions = new SwitchOptions();\n\n readonly switchValue = model(false);\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.valueToSwitchValue();\n }\n\n override setInitValue(value: any): void {\n super.setInitValue(value);\n this.valueToSwitchValue();\n }\n\n private valueToSwitchValue() {\n this.switchValue.set(this.value() === this.options.onValue());\n }\n\n onSwitchChange(value: boolean) {\n this.value.set(value ? this.options.onValue() : this.options.offValue());\n this.onChange?.(this.value());\n }\n\n}\n","<nz-switch [(ngModel)]=\"switchValue\" (ngModelChange)=\"onSwitchChange($event)\"\n [nzDisabled]=\"options.disabled() || options.readonly()\" [nzCheckedChildren]=\"options.onLabel()\"\n [nzUnCheckedChildren]=\"options.offLabel()\" [nzSize]=\"options.size()\"></nz-switch>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './switch';\n"],"names":[],"mappings":";;;;;;;;AAGM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"ngx-axis-appforge-axis-components-switch.mjs","sources":["../../../axis-components/switch/switch.options.ts","../../../axis-components/switch/switch.ts","../../../axis-components/switch/switch.html","../../../axis-components/switch/ngx-axis-appforge-axis-components-switch.ts"],"sourcesContent":["import { signal } from \"@angular/core\";\nimport { ValueAccessOptions } from \"ngx-axis-appforge/core\";\n\nexport class SwitchOptions extends ValueAccessOptions {\n\n readonly onValue = signal<any>(true);\n readonly offValue = signal<any>(false);\n readonly onLabel = signal<any>(undefined);\n readonly offLabel = signal<any>(undefined);\n readonly size = signal<'small' | 'default'>('default');\n}","import { ChangeDetectionStrategy, Component, model } from '@angular/core';\nimport { ValueAccess } from 'ngx-axis-appforge/core';\nimport { FormsModule } from '@angular/forms';\nimport { SwitchOptions } from './switch.options';\nimport { NzSwitchModule } from 'ng-zorro-antd/switch';\n\n@Component({\n selector: 'axis-switch',\n imports: [NzSwitchModule, FormsModule],\n templateUrl: './switch.html',\n styleUrl: './switch.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class Switch extends ValueAccess<SwitchOptions> {\n\n override options: SwitchOptions = new SwitchOptions();\n\n readonly switchValue = model(false);\n\n override writeValue(value: any): void {\n super.writeValue(value);\n this.valueToSwitchValue();\n }\n\n override setInitValue(value: any): void {\n super.setInitValue(value);\n this.valueToSwitchValue();\n }\n\n private valueToSwitchValue() {\n this.switchValue.set(this.value() === this.options.onValue());\n }\n\n onSwitchChange(value: boolean) {\n this.value.set(value ? this.options.onValue() : this.options.offValue());\n this.onChange?.(this.value());\n }\n\n}\n","<nz-switch [(ngModel)]=\"switchValue\" (ngModelChange)=\"onSwitchChange($event)\"\n [nzDisabled]=\"options.disabled() || options.readonly()\" [nzCheckedChildren]=\"options.onLabel()\"\n [nzUnCheckedChildren]=\"options.offLabel()\" [nzSize]=\"options.size()\"></nz-switch>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './switch';\n"],"names":[],"mappings":";;;;;;;;AAGM,MAAO,aAAc,SAAQ,kBAAkB,CAAA;IAExC,OAAO,GAAG,MAAM,CAAM,IAAI;gFAAC;IAC3B,QAAQ,GAAG,MAAM,CAAM,KAAK;iFAAC;IAC7B,OAAO,GAAG,MAAM,CAAM,SAAS;gFAAC;IAChC,QAAQ,GAAG,MAAM,CAAM,SAAS;iFAAC;IACjC,IAAI,GAAG,MAAM,CAAsB,SAAS;6EAAC;AACzD;;ACGK,MAAO,MAAO,SAAQ,WAA0B,CAAA;AAE3C,IAAA,OAAO,GAAkB,IAAI,aAAa,EAAE;IAE5C,WAAW,GAAG,KAAK,CAAC,KAAK;oFAAC;AAE1B,IAAA,UAAU,CAAC,KAA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