cmat 0.0.111 → 0.0.113
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/cmat-components-adapter.mjs +531 -536
- package/fesm2022/cmat-components-adapter.mjs.map +1 -1
- package/fesm2022/cmat-components-breadcrumb.mjs +521 -356
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +150 -42
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-carousel.mjs +1120 -629
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +861 -441
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +580 -335
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-code-editor.mjs +197 -105
- package/fesm2022/cmat-components-code-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-color-picker.mjs +1762 -825
- package/fesm2022/cmat-components-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +5196 -2531
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-data-picker.mjs +1901 -1073
- package/fesm2022/cmat-components-data-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +701 -456
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-date-time-display.mjs +137 -30
- package/fesm2022/cmat-components-date-time-display.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +410 -258
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-empty-state.mjs +201 -41
- package/fesm2022/cmat-components-empty-state.mjs.map +1 -1
- package/fesm2022/cmat-components-file-preview.mjs +198 -35
- package/fesm2022/cmat-components-file-preview.mjs.map +1 -1
- package/fesm2022/cmat-components-filter-toolbar.mjs +320 -72
- package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-form-actions.mjs +102 -26
- package/fesm2022/cmat-components-form-actions.mjs.map +1 -1
- package/fesm2022/cmat-components-fullscreen.mjs +167 -47
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +203 -112
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-image-viewer.mjs +489 -215
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
- package/fesm2022/cmat-components-inline-loading.mjs +117 -27
- package/fesm2022/cmat-components-inline-loading.mjs.map +1 -1
- package/fesm2022/cmat-components-json-editor.mjs +276 -230
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs +615 -420
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
- package/fesm2022/cmat-components-loading-overlay.mjs +53 -25
- package/fesm2022/cmat-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +120 -40
- package/fesm2022/cmat-components-masonry.mjs.map +1 -1
- package/fesm2022/cmat-components-material-color-picker.mjs +332 -155
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +4283 -2504
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +3080 -1404
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +540 -466
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
- package/fesm2022/cmat-components-org-chart.mjs +528 -125
- package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
- package/fesm2022/cmat-components-page-header.mjs +141 -32
- package/fesm2022/cmat-components-page-header.mjs.map +1 -1
- package/fesm2022/cmat-components-pagination.mjs +866 -534
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +873 -434
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +1012 -731
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-progress-bar.mjs +98 -35
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-qrcode.mjs +463 -287
- package/fesm2022/cmat-components-qrcode.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +377 -203
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-rich-text-editor.mjs +153 -39
- package/fesm2022/cmat-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +926 -496
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs +1280 -842
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +998 -690
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-skeleton.mjs +143 -57
- package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +457 -303
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-status-tag.mjs +136 -44
- package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
- package/fesm2022/cmat-components-table-toolbar.mjs +120 -28
- package/fesm2022/cmat-components-table-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +464 -168
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +346 -262
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +1427 -593
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +372 -112
- package/fesm2022/cmat-components-treetable.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +904 -410
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-components-x6-angular-shape.mjs +153 -170
- package/fesm2022/cmat-components-x6-angular-shape.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +220 -138
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/cmat-directives-arrow-cursor.mjs +246 -193
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
- package/fesm2022/cmat-directives-autofocus.mjs +43 -25
- package/fesm2022/cmat-directives-autofocus.mjs.map +1 -1
- package/fesm2022/cmat-directives-data-exporter.mjs +537 -338
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
- package/fesm2022/cmat-directives-debounce.mjs +162 -76
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
- package/fesm2022/cmat-directives-digit-only.mjs +457 -356
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs +70 -53
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +180 -132
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs.map +1 -1
- package/fesm2022/cmat-lib-mock-api.mjs +207 -195
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-pipes-bytes.mjs +50 -30
- package/fesm2022/cmat-pipes-bytes.mjs.map +1 -1
- package/fesm2022/cmat-pipes-date-format.mjs +41 -25
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
- package/fesm2022/cmat-pipes-find-by-key.mjs +44 -26
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
- package/fesm2022/cmat-pipes-group-by.mjs +50 -38
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
- package/fesm2022/cmat-pipes-keys.mjs +44 -31
- package/fesm2022/cmat-pipes-keys.mjs.map +1 -1
- package/fesm2022/cmat-pipes-secure.mjs +60 -49
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
- package/fesm2022/cmat-pipes-uppercase.mjs +39 -22
- package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -1
- package/fesm2022/cmat-reports.mjs +2761 -0
- package/fesm2022/cmat-reports.mjs.map +1 -0
- package/fesm2022/cmat-services-alert.mjs +249 -277
- package/fesm2022/cmat-services-alert.mjs.map +1 -1
- package/fesm2022/cmat-services-config.mjs +110 -81
- package/fesm2022/cmat-services-config.mjs.map +1 -1
- package/fesm2022/cmat-services-confirmation.mjs +184 -73
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +136 -125
- package/fesm2022/cmat-services-data.mjs.map +1 -1
- package/fesm2022/cmat-services-export-as.mjs +165 -183
- package/fesm2022/cmat-services-export-as.mjs.map +1 -1
- package/fesm2022/cmat-services-loading.mjs +116 -95
- package/fesm2022/cmat-services-loading.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs +75 -66
- package/fesm2022/cmat-services-local-storage.mjs.map +1 -1
- package/fesm2022/cmat-services-media-watcher.mjs +69 -64
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
- package/fesm2022/cmat-services-platform.mjs +48 -45
- package/fesm2022/cmat-services-platform.mjs.map +1 -1
- package/fesm2022/cmat-services-print.mjs +984 -1109
- package/fesm2022/cmat-services-print.mjs.map +1 -1
- package/fesm2022/cmat-services-splash-screen.mjs +53 -38
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +57 -47
- package/fesm2022/cmat-services-title.mjs.map +1 -1
- package/fesm2022/cmat-services-translation.mjs +79 -68
- package/fesm2022/cmat-services-translation.mjs.map +1 -1
- package/fesm2022/cmat-services-utils.mjs +424 -517
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/fesm2022/cmat-validators.mjs +23 -33
- package/fesm2022/cmat-validators.mjs.map +1 -1
- package/fesm2022/cmat-version.mjs +12 -16
- package/fesm2022/cmat-version.mjs.map +1 -1
- package/fesm2022/cmat.mjs +39805 -22511
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +5 -1
- package/types/cmat-components-adapter.d.ts +145 -156
- package/types/cmat-components-breadcrumb.d.ts +108 -86
- package/types/cmat-components-card.d.ts +34 -18
- package/types/cmat-components-carousel.d.ts +251 -134
- package/types/cmat-components-cascade.d.ts +158 -117
- package/types/cmat-components-chip-input.d.ts +105 -71
- package/types/cmat-components-code-editor.d.ts +59 -34
- package/types/cmat-components-color-picker.d.ts +378 -236
- package/types/cmat-components-custom-formly.d.ts +776 -814
- package/types/cmat-components-data-picker.d.ts +502 -360
- package/types/cmat-components-date-range.d.ts +106 -77
- package/types/cmat-components-date-time-display.d.ts +36 -13
- package/types/cmat-components-drawer.d.ts +91 -61
- package/types/cmat-components-empty-state.d.ts +47 -17
- package/types/cmat-components-file-preview.d.ts +42 -14
- package/types/cmat-components-filter-toolbar.d.ts +57 -25
- package/types/cmat-components-form-actions.d.ts +18 -10
- package/types/cmat-components-fullscreen.d.ts +21 -13
- package/types/cmat-components-highlight.d.ts +33 -26
- package/types/cmat-components-image-viewer.d.ts +119 -58
- package/types/cmat-components-inline-loading.d.ts +24 -11
- package/types/cmat-components-json-editor.d.ts +39 -28
- package/types/cmat-components-knob-input.d.ts +172 -101
- package/types/cmat-components-loading-overlay.d.ts +8 -11
- package/types/cmat-components-masonry.d.ts +27 -14
- package/types/cmat-components-material-color-picker.d.ts +56 -42
- package/types/cmat-components-material-datetimepicker.d.ts +817 -454
- package/types/cmat-components-navigation.d.ts +295 -221
- package/types/cmat-components-opt-input.d.ts +111 -90
- package/types/cmat-components-org-chart.d.ts +53 -35
- package/types/cmat-components-page-header.d.ts +37 -14
- package/types/cmat-components-pagination.d.ts +144 -107
- package/types/cmat-components-password-strength.d.ts +197 -86
- package/types/cmat-components-popover.d.ts +264 -166
- package/types/cmat-components-progress-bar.d.ts +17 -14
- package/types/cmat-components-qrcode.d.ts +111 -42
- package/types/cmat-components-rating.d.ts +105 -59
- package/types/cmat-components-rich-text-editor.d.ts +39 -16
- package/types/cmat-components-select-search.d.ts +195 -99
- package/types/cmat-components-select-table.d.ts +241 -142
- package/types/cmat-components-select-tree.d.ts +185 -118
- package/types/cmat-components-skeleton.d.ts +55 -32
- package/types/cmat-components-speed-dial.d.ts +86 -61
- package/types/cmat-components-status-tag.d.ts +42 -24
- package/types/cmat-components-table-toolbar.d.ts +30 -12
- package/types/cmat-components-timeline.d.ts +83 -51
- package/types/cmat-components-toast.d.ts +84 -85
- package/types/cmat-components-transfer-picker.d.ts +228 -181
- package/types/cmat-components-treetable.d.ts +63 -39
- package/types/cmat-components-upload.d.ts +205 -106
- package/types/cmat-components-x6-angular-shape.d.ts +29 -37
- package/types/cmat-directives-animate-on-scroll.d.ts +48 -30
- package/types/cmat-directives-arrow-cursor.d.ts +55 -35
- package/types/cmat-directives-autofocus.d.ts +8 -11
- package/types/cmat-directives-data-exporter.d.ts +71 -40
- package/types/cmat-directives-debounce.d.ts +31 -28
- package/types/cmat-directives-digit-only.d.ts +90 -53
- package/types/cmat-directives-equal-validator.d.ts +11 -14
- package/types/cmat-directives-seamless-auto-scroll.d.ts +42 -29
- package/types/cmat-lib-mock-api.d.ts +46 -55
- package/types/cmat-pipes-bytes.d.ts +7 -10
- package/types/cmat-pipes-date-format.d.ts +7 -10
- package/types/cmat-pipes-find-by-key.d.ts +8 -12
- package/types/cmat-pipes-group-by.d.ts +11 -15
- package/types/cmat-pipes-keys.d.ts +10 -13
- package/types/cmat-pipes-secure.d.ts +14 -17
- package/types/cmat-pipes-uppercase.d.ts +7 -10
- package/types/cmat-reports.d.ts +1138 -0
- package/types/cmat-services-alert.d.ts +80 -87
- package/types/cmat-services-config.d.ts +37 -43
- package/types/cmat-services-confirmation.d.ts +31 -37
- package/types/cmat-services-data.d.ts +18 -21
- package/types/cmat-services-export-as.d.ts +28 -33
- package/types/cmat-services-loading.d.ts +27 -31
- package/types/cmat-services-local-storage.d.ts +17 -21
- package/types/cmat-services-media-watcher.d.ts +14 -18
- package/types/cmat-services-platform.d.ts +8 -11
- package/types/cmat-services-print.d.ts +97 -102
- package/types/cmat-services-splash-screen.d.ts +11 -14
- package/types/cmat-services-title.d.ts +9 -12
- package/types/cmat-services-translation.d.ts +19 -22
- package/types/cmat-services-utils.d.ts +76 -80
- package/types/cmat-validators.d.ts +5 -8
- package/types/cmat-version.d.ts +8 -10
- package/types/cmat.d.ts +7551 -5204
|
@@ -1,357 +1,458 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive, ElementRef, HostListener, inject, input } from "@angular/core";
|
|
3
|
+
var CmatDigitOnlyDirective = class CmatDigitOnlyDirective {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.decimal = input(false, ...ngDevMode ? [{ debugName: "decimal" }] : /* istanbul ignore next */ []);
|
|
6
|
+
this.decimalSeparator = input(".", ...ngDevMode ? [{ debugName: "decimalSeparator" }] : /* istanbul ignore next */ []);
|
|
7
|
+
this.allowNegatives = input(false, ...ngDevMode ? [{ debugName: "allowNegatives" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.allowPaste = input(true, ...ngDevMode ? [{ debugName: "allowPaste" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.negativeSign = input("-", ...ngDevMode ? [{ debugName: "negativeSign" }] : /* istanbul ignore next */ []);
|
|
10
|
+
this.min = input(-Infinity, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.max = input(Infinity, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.pattern = input(...ngDevMode ? [void 0, { debugName: "pattern" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.value = "";
|
|
14
|
+
this.el = inject(ElementRef);
|
|
15
|
+
this._regex = null;
|
|
16
|
+
this._hasDecimalPoint = false;
|
|
17
|
+
this._hasNegativeSign = false;
|
|
18
|
+
this._navigationKeys = [
|
|
19
|
+
"Backspace",
|
|
20
|
+
"Delete",
|
|
21
|
+
"Tab",
|
|
22
|
+
"Escape",
|
|
23
|
+
"Enter",
|
|
24
|
+
"Home",
|
|
25
|
+
"End",
|
|
26
|
+
"ArrowLeft",
|
|
27
|
+
"ArrowRight",
|
|
28
|
+
"Clear",
|
|
29
|
+
"Copy",
|
|
30
|
+
"Paste"
|
|
31
|
+
];
|
|
32
|
+
const el = this.el;
|
|
33
|
+
this.inputElement = el.nativeElement;
|
|
34
|
+
}
|
|
35
|
+
onBeforeInput(e) {
|
|
36
|
+
if (isNaN(Number(e.data))) {
|
|
37
|
+
if (e.data === this.decimalSeparator() || e.data === this.negativeSign() && this.allowNegatives()) return;
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
e.stopPropagation();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
onInputChange(event) {
|
|
43
|
+
const reg = /^-?(0|[1-9][0-9]*)(\.[0-9]*)?$/;
|
|
44
|
+
const value = event.target?.value ?? "";
|
|
45
|
+
if (!isNaN(+value) && reg.test(value) || value === "" || value === "-") this.value = value;
|
|
46
|
+
this.inputElement.value = this.value;
|
|
47
|
+
}
|
|
48
|
+
onKeyDown(e) {
|
|
49
|
+
if (e.key === "Process") {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (this._navigationKeys.includes(e.key) || (e.key === "a" || e.code === "KeyA") && e.ctrlKey === true || (e.key === "c" || e.code === "KeyC") && e.ctrlKey === true || (e.key === "v" || e.code === "KeyV") && e.ctrlKey === true || (e.key === "x" || e.code === "KeyX") && e.ctrlKey === true || (e.key === "a" || e.code === "KeyA") && e.metaKey === true || (e.key === "c" || e.code === "KeyC") && e.metaKey === true || (e.key === "v" || e.code === "KeyV") && e.metaKey === true || (e.key === "x" || e.code === "KeyX") && e.metaKey === true) return;
|
|
54
|
+
let newValue = "";
|
|
55
|
+
const decimalSeparator = this.decimalSeparator();
|
|
56
|
+
if (this.decimal() && e.key === decimalSeparator) {
|
|
57
|
+
newValue = this._forecastValue(e.key);
|
|
58
|
+
if (newValue.split(decimalSeparator).length > 2) {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
return;
|
|
61
|
+
} else {
|
|
62
|
+
this._hasDecimalPoint = newValue.includes(decimalSeparator);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const negativeSign = this.negativeSign();
|
|
67
|
+
if (e.key === negativeSign && this.allowNegatives()) {
|
|
68
|
+
newValue = this._forecastValue(e.key);
|
|
69
|
+
if (newValue.startsWith(negativeSign) || newValue.split(negativeSign).length > 2) {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
return;
|
|
72
|
+
} else {
|
|
73
|
+
this._hasNegativeSign = newValue.split(negativeSign).length > -1;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (e.key === " " || isNaN(Number(e.key))) {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
newValue = newValue || this._forecastValue(e.key);
|
|
82
|
+
if (this._regex) {
|
|
83
|
+
if (!this._regex.test(newValue)) {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const newNumber = Number(newValue);
|
|
89
|
+
const min = Number(this.min());
|
|
90
|
+
if (newNumber > Number(this.max()) || newNumber < min) e.preventDefault();
|
|
91
|
+
}
|
|
92
|
+
onPaste(event) {
|
|
93
|
+
if (this.allowPaste() === true) {
|
|
94
|
+
let pastedInput = "";
|
|
95
|
+
const legacyWindow = window;
|
|
96
|
+
if (legacyWindow.clipboardData) pastedInput = legacyWindow.clipboardData.getData("text");
|
|
97
|
+
else if (event.clipboardData?.getData) pastedInput = event.clipboardData.getData("text/plain");
|
|
98
|
+
this._pasteData(pastedInput);
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
} else {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
event.stopPropagation();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
onDrop(event) {
|
|
106
|
+
const textData = event.dataTransfer?.getData("text") ?? "";
|
|
107
|
+
this.inputElement.focus();
|
|
108
|
+
this._pasteData(textData);
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
}
|
|
111
|
+
ngOnChanges(changes) {
|
|
112
|
+
if (changes["pattern"]) {
|
|
113
|
+
const pattern = this.pattern();
|
|
114
|
+
this._regex = pattern ? RegExp(pattern) : null;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
_pasteData(pastedContent) {
|
|
118
|
+
const sanitizedContent = this._sanitizeInput(pastedContent);
|
|
119
|
+
const negativeSign = this.negativeSign();
|
|
120
|
+
if (sanitizedContent.includes(negativeSign) && this._hasNegativeSign && !this._getSelection().includes(negativeSign)) return;
|
|
121
|
+
if (this.inputElement.setRangeText) {
|
|
122
|
+
const { selectionStart: start, selectionEnd: end } = this.inputElement;
|
|
123
|
+
this.inputElement.setRangeText(sanitizedContent, start ?? 0, end ?? 0, "end");
|
|
124
|
+
this.inputElement.dispatchEvent(new Event("input", { cancelable: true }));
|
|
125
|
+
} else this._insertAtCursor(this.inputElement, sanitizedContent);
|
|
126
|
+
if (this.decimal()) this._hasDecimalPoint = this.inputElement.value.includes(this.decimalSeparator());
|
|
127
|
+
this._hasNegativeSign = this.inputElement.value.includes(negativeSign);
|
|
128
|
+
}
|
|
129
|
+
_insertAtCursor(myField, myValue) {
|
|
130
|
+
const startPos = myField.selectionStart ?? 0;
|
|
131
|
+
const endPos = myField.selectionEnd ?? 0;
|
|
132
|
+
myField.value = myField.value.substring(0, startPos) + myValue + myField.value.substring(endPos, myField.value.length);
|
|
133
|
+
const pos = startPos + myValue.length;
|
|
134
|
+
myField.focus();
|
|
135
|
+
myField.setSelectionRange(pos, pos);
|
|
136
|
+
this._triggerEvent(myField, "input");
|
|
137
|
+
}
|
|
138
|
+
_triggerEvent(el, type) {
|
|
139
|
+
if ("createEvent" in document) {
|
|
140
|
+
const e = document.createEvent("HTMLEvents");
|
|
141
|
+
e.initEvent(type, false, true);
|
|
142
|
+
el.dispatchEvent(e);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
_sanitizeInput(input) {
|
|
146
|
+
let result;
|
|
147
|
+
let regex;
|
|
148
|
+
if (this.decimal() && this._isValidDecimal(input)) regex = new RegExp(`${this._getNegativeSignRegExp()}[^0-9${this.decimalSeparator()}]`, "g");
|
|
149
|
+
else regex = new RegExp(`${this._getNegativeSignRegExp()}[^0-9]`, "g");
|
|
150
|
+
result = input.replace(regex, "");
|
|
151
|
+
const maxLength = this.inputElement.maxLength;
|
|
152
|
+
if (maxLength > 0) {
|
|
153
|
+
const allowedLength = maxLength - this.inputElement.value.length + (result.includes(`${this.negativeSign()}`) ? 1 : 0);
|
|
154
|
+
result = allowedLength > 0 ? result.substring(0, allowedLength) : "";
|
|
155
|
+
}
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
_getNegativeSignRegExp() {
|
|
159
|
+
const negativeSign = this.negativeSign();
|
|
160
|
+
return this.allowNegatives() && (!this._hasNegativeSign || this._getSelection().includes(negativeSign)) ? `(?!^${negativeSign})` : "";
|
|
161
|
+
}
|
|
162
|
+
_isValidDecimal(str) {
|
|
163
|
+
if (!this._hasDecimalPoint) return str.split(this.decimalSeparator()).length <= 2;
|
|
164
|
+
else {
|
|
165
|
+
const selectedText = this._getSelection();
|
|
166
|
+
const decimalSeparator = this.decimalSeparator();
|
|
167
|
+
if (selectedText?.includes(decimalSeparator)) return str.split(decimalSeparator).length <= 2;
|
|
168
|
+
else return !str.includes(decimalSeparator);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
_getSelection() {
|
|
172
|
+
return this.inputElement.value.substring(this.inputElement.selectionStart ?? 0, this.inputElement.selectionEnd ?? 0);
|
|
173
|
+
}
|
|
174
|
+
_forecastValue(key) {
|
|
175
|
+
const selectionStart = this.inputElement.selectionStart ?? 0;
|
|
176
|
+
const selectionEnd = this.inputElement.selectionEnd ?? 0;
|
|
177
|
+
const oldValue = this.inputElement.value;
|
|
178
|
+
return oldValue.substring(0, selectionStart) + key + oldValue.substring(selectionEnd);
|
|
179
|
+
}
|
|
180
|
+
static {
|
|
181
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
182
|
+
minVersion: "12.0.0",
|
|
183
|
+
version: "22.2.3",
|
|
184
|
+
ngImport: i0,
|
|
185
|
+
type: CmatDigitOnlyDirective,
|
|
186
|
+
deps: [],
|
|
187
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
static {
|
|
191
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
192
|
+
minVersion: "17.1.0",
|
|
193
|
+
version: "22.2.3",
|
|
194
|
+
type: CmatDigitOnlyDirective,
|
|
195
|
+
isStandalone: true,
|
|
196
|
+
selector: "[cmatDigitOnly]",
|
|
197
|
+
inputs: {
|
|
198
|
+
decimal: {
|
|
199
|
+
classPropertyName: "decimal",
|
|
200
|
+
publicName: "decimal",
|
|
201
|
+
isSignal: true,
|
|
202
|
+
isRequired: false,
|
|
203
|
+
transformFunction: null
|
|
204
|
+
},
|
|
205
|
+
decimalSeparator: {
|
|
206
|
+
classPropertyName: "decimalSeparator",
|
|
207
|
+
publicName: "decimalSeparator",
|
|
208
|
+
isSignal: true,
|
|
209
|
+
isRequired: false,
|
|
210
|
+
transformFunction: null
|
|
211
|
+
},
|
|
212
|
+
allowNegatives: {
|
|
213
|
+
classPropertyName: "allowNegatives",
|
|
214
|
+
publicName: "allowNegatives",
|
|
215
|
+
isSignal: true,
|
|
216
|
+
isRequired: false,
|
|
217
|
+
transformFunction: null
|
|
218
|
+
},
|
|
219
|
+
allowPaste: {
|
|
220
|
+
classPropertyName: "allowPaste",
|
|
221
|
+
publicName: "allowPaste",
|
|
222
|
+
isSignal: true,
|
|
223
|
+
isRequired: false,
|
|
224
|
+
transformFunction: null
|
|
225
|
+
},
|
|
226
|
+
negativeSign: {
|
|
227
|
+
classPropertyName: "negativeSign",
|
|
228
|
+
publicName: "negativeSign",
|
|
229
|
+
isSignal: true,
|
|
230
|
+
isRequired: false,
|
|
231
|
+
transformFunction: null
|
|
232
|
+
},
|
|
233
|
+
min: {
|
|
234
|
+
classPropertyName: "min",
|
|
235
|
+
publicName: "min",
|
|
236
|
+
isSignal: true,
|
|
237
|
+
isRequired: false,
|
|
238
|
+
transformFunction: null
|
|
239
|
+
},
|
|
240
|
+
max: {
|
|
241
|
+
classPropertyName: "max",
|
|
242
|
+
publicName: "max",
|
|
243
|
+
isSignal: true,
|
|
244
|
+
isRequired: false,
|
|
245
|
+
transformFunction: null
|
|
246
|
+
},
|
|
247
|
+
pattern: {
|
|
248
|
+
classPropertyName: "pattern",
|
|
249
|
+
publicName: "pattern",
|
|
250
|
+
isSignal: true,
|
|
251
|
+
isRequired: false,
|
|
252
|
+
transformFunction: null
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
host: { listeners: {
|
|
256
|
+
"beforeinput": "onBeforeInput($event)",
|
|
257
|
+
"input": "onInputChange($event)",
|
|
258
|
+
"keydown": "onKeyDown($event)",
|
|
259
|
+
"paste": "onPaste($event)",
|
|
260
|
+
"drop": "onDrop($event)"
|
|
261
|
+
} },
|
|
262
|
+
usesOnChanges: true,
|
|
263
|
+
ngImport: i0
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
268
|
+
minVersion: "12.0.0",
|
|
269
|
+
version: "22.2.3",
|
|
270
|
+
ngImport: i0,
|
|
271
|
+
type: CmatDigitOnlyDirective,
|
|
272
|
+
decorators: [{
|
|
273
|
+
type: Directive,
|
|
274
|
+
args: [{ selector: "[cmatDigitOnly]" }]
|
|
275
|
+
}],
|
|
276
|
+
ctorParameters: () => [],
|
|
277
|
+
propDecorators: {
|
|
278
|
+
decimal: [{
|
|
279
|
+
type: i0.Input,
|
|
280
|
+
args: [{
|
|
281
|
+
isSignal: true,
|
|
282
|
+
alias: "decimal",
|
|
283
|
+
required: false
|
|
284
|
+
}]
|
|
285
|
+
}],
|
|
286
|
+
decimalSeparator: [{
|
|
287
|
+
type: i0.Input,
|
|
288
|
+
args: [{
|
|
289
|
+
isSignal: true,
|
|
290
|
+
alias: "decimalSeparator",
|
|
291
|
+
required: false
|
|
292
|
+
}]
|
|
293
|
+
}],
|
|
294
|
+
allowNegatives: [{
|
|
295
|
+
type: i0.Input,
|
|
296
|
+
args: [{
|
|
297
|
+
isSignal: true,
|
|
298
|
+
alias: "allowNegatives",
|
|
299
|
+
required: false
|
|
300
|
+
}]
|
|
301
|
+
}],
|
|
302
|
+
allowPaste: [{
|
|
303
|
+
type: i0.Input,
|
|
304
|
+
args: [{
|
|
305
|
+
isSignal: true,
|
|
306
|
+
alias: "allowPaste",
|
|
307
|
+
required: false
|
|
308
|
+
}]
|
|
309
|
+
}],
|
|
310
|
+
negativeSign: [{
|
|
311
|
+
type: i0.Input,
|
|
312
|
+
args: [{
|
|
313
|
+
isSignal: true,
|
|
314
|
+
alias: "negativeSign",
|
|
315
|
+
required: false
|
|
316
|
+
}]
|
|
317
|
+
}],
|
|
318
|
+
min: [{
|
|
319
|
+
type: i0.Input,
|
|
320
|
+
args: [{
|
|
321
|
+
isSignal: true,
|
|
322
|
+
alias: "min",
|
|
323
|
+
required: false
|
|
324
|
+
}]
|
|
325
|
+
}],
|
|
326
|
+
max: [{
|
|
327
|
+
type: i0.Input,
|
|
328
|
+
args: [{
|
|
329
|
+
isSignal: true,
|
|
330
|
+
alias: "max",
|
|
331
|
+
required: false
|
|
332
|
+
}]
|
|
333
|
+
}],
|
|
334
|
+
pattern: [{
|
|
335
|
+
type: i0.Input,
|
|
336
|
+
args: [{
|
|
337
|
+
isSignal: true,
|
|
338
|
+
alias: "pattern",
|
|
339
|
+
required: false
|
|
340
|
+
}]
|
|
341
|
+
}],
|
|
342
|
+
onBeforeInput: [{
|
|
343
|
+
type: HostListener,
|
|
344
|
+
args: ["beforeinput", ["$event"]]
|
|
345
|
+
}],
|
|
346
|
+
onInputChange: [{
|
|
347
|
+
type: HostListener,
|
|
348
|
+
args: ["input", ["$event"]]
|
|
349
|
+
}],
|
|
350
|
+
onKeyDown: [{
|
|
351
|
+
type: HostListener,
|
|
352
|
+
args: ["keydown", ["$event"]]
|
|
353
|
+
}],
|
|
354
|
+
onPaste: [{
|
|
355
|
+
type: HostListener,
|
|
356
|
+
args: ["paste", ["$event"]]
|
|
357
|
+
}],
|
|
358
|
+
onDrop: [{
|
|
359
|
+
type: HostListener,
|
|
360
|
+
args: ["drop", ["$event"]]
|
|
361
|
+
}]
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
var CmatMaskDirective = class CmatMaskDirective {
|
|
365
|
+
constructor() {
|
|
366
|
+
this.el = inject(ElementRef);
|
|
367
|
+
this.value = "";
|
|
368
|
+
this.regex = /* @__PURE__ */ new RegExp("");
|
|
369
|
+
this._navigationKeys = [
|
|
370
|
+
"Backspace",
|
|
371
|
+
"Delete",
|
|
372
|
+
"Tab",
|
|
373
|
+
"Escape",
|
|
374
|
+
"Enter",
|
|
375
|
+
"Home",
|
|
376
|
+
"End",
|
|
377
|
+
"ArrowLeft",
|
|
378
|
+
"ArrowRight",
|
|
379
|
+
"Clear",
|
|
380
|
+
"Copy",
|
|
381
|
+
"Paste"
|
|
382
|
+
];
|
|
383
|
+
const el = this.el;
|
|
384
|
+
this.inputElement = el.nativeElement;
|
|
385
|
+
}
|
|
386
|
+
onInputChange(event) {
|
|
387
|
+
const value = event.target?.value ?? "";
|
|
388
|
+
if (this.regex.test(value)) this.value = value;
|
|
389
|
+
this.inputElement.value = this.value;
|
|
390
|
+
}
|
|
391
|
+
onKeyDown(e) {
|
|
392
|
+
if (e.key === "Process") {
|
|
393
|
+
e.preventDefault();
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
if (this._navigationKeys.includes(e.key) || (e.key === "a" || e.code === "KeyA") && e.ctrlKey === true || (e.key === "c" || e.code === "KeyC") && e.ctrlKey === true || (e.key === "v" || e.code === "KeyV") && e.ctrlKey === true || (e.key === "x" || e.code === "KeyX") && e.ctrlKey === true || (e.key === "a" || e.code === "KeyA") && e.metaKey === true || (e.key === "c" || e.code === "KeyC") && e.metaKey === true || (e.key === "v" || e.code === "KeyV") && e.metaKey === true || (e.key === "x" || e.code === "KeyX") && e.metaKey === true) return;
|
|
397
|
+
const newValue = this._forecastValue(e.key);
|
|
398
|
+
if (!this.regex.test(newValue)) e.preventDefault();
|
|
399
|
+
}
|
|
400
|
+
ngOnInit() {
|
|
401
|
+
this.regex = new RegExp(this.inputElement.pattern);
|
|
402
|
+
}
|
|
403
|
+
_forecastValue(key) {
|
|
404
|
+
const selectionStart = this.inputElement.selectionStart ?? 0;
|
|
405
|
+
const selectionEnd = this.inputElement.selectionEnd ?? 0;
|
|
406
|
+
const oldValue = this.inputElement.value;
|
|
407
|
+
const selection = oldValue.substring(selectionStart, selectionEnd);
|
|
408
|
+
return selection ? oldValue.replace(selection, key) : oldValue.substring(0, selectionStart) + key + oldValue.substring(selectionStart);
|
|
409
|
+
}
|
|
410
|
+
static {
|
|
411
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
412
|
+
minVersion: "12.0.0",
|
|
413
|
+
version: "22.2.3",
|
|
414
|
+
ngImport: i0,
|
|
415
|
+
type: CmatMaskDirective,
|
|
416
|
+
deps: [],
|
|
417
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
static {
|
|
421
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
422
|
+
minVersion: "14.0.0",
|
|
423
|
+
version: "22.2.3",
|
|
424
|
+
type: CmatMaskDirective,
|
|
425
|
+
isStandalone: true,
|
|
426
|
+
selector: "[cmatMask]",
|
|
427
|
+
host: { listeners: {
|
|
428
|
+
"input": "onInputChange($event)",
|
|
429
|
+
"keydown": "onKeyDown($event)"
|
|
430
|
+
} },
|
|
431
|
+
ngImport: i0
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
436
|
+
minVersion: "12.0.0",
|
|
437
|
+
version: "22.2.3",
|
|
438
|
+
ngImport: i0,
|
|
439
|
+
type: CmatMaskDirective,
|
|
440
|
+
decorators: [{
|
|
441
|
+
type: Directive,
|
|
442
|
+
args: [{ selector: "[cmatMask]" }]
|
|
443
|
+
}],
|
|
444
|
+
ctorParameters: () => [],
|
|
445
|
+
propDecorators: {
|
|
446
|
+
onInputChange: [{
|
|
447
|
+
type: HostListener,
|
|
448
|
+
args: ["input", ["$event"]]
|
|
449
|
+
}],
|
|
450
|
+
onKeyDown: [{
|
|
451
|
+
type: HostListener,
|
|
452
|
+
args: ["keydown", ["$event"]]
|
|
453
|
+
}]
|
|
454
|
+
}
|
|
455
|
+
});
|
|
356
456
|
export { CmatDigitOnlyDirective, CmatMaskDirective };
|
|
357
|
-
|
|
457
|
+
|
|
458
|
+
//# sourceMappingURL=cmat-directives-digit-only.mjs.map
|