@taiga-ui/cdk 3.44.0-canary.b3de48e → 3.44.1-canary.aa80e1e
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/bundles/taiga-ui-cdk-abstract.umd.js +4 -1
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +86 -123
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +6 -10
- package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2015/abstract/interactive.js +5 -2
- package/esm2015/constants/version.js +2 -2
- package/esm2015/tokens/active-element.js +38 -40
- package/esm2015/tokens/default-renderer.js +6 -6
- package/esm2015/tokens/ensure-base-href.js +12 -13
- package/esm2015/tokens/is-android.js +4 -5
- package/esm2015/tokens/is-apple.js +4 -6
- package/esm2015/tokens/is-chromium.js +4 -5
- package/esm2015/tokens/is-cypress.js +4 -5
- package/esm2015/tokens/is-e2e.js +4 -5
- package/esm2015/tokens/is-firefox.js +6 -7
- package/esm2015/tokens/is-ios.js +4 -6
- package/esm2015/tokens/is-mobile.js +5 -6
- package/esm2015/tokens/is-playwright.js +3 -5
- package/esm2015/tokens/is-stackblitz.js +4 -5
- package/esm2015/tokens/is-webkit.js +6 -7
- package/esm2015/tokens/range.js +4 -5
- package/esm2015/tokens/removed-element.js +13 -14
- package/esm2015/tokens/take-only-trusted-events.js +3 -5
- package/esm2015/tokens/touch-supported.js +4 -5
- package/esm2015/tokens/window-height.js +4 -5
- package/esm2015/utils/miscellaneous/create-options.js +3 -5
- package/esm2015/utils/miscellaneous/create-token.js +2 -4
- package/fesm2015/taiga-ui-cdk-abstract.js +5 -2
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +79 -116
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +6 -10
- package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/tests/schematic-ng-add-standalone.spec.d.ts +1 -0
- package/schematics/ng-add/tests/schematic-ng-add-standalone.spec.js +381 -0
- package/schematics/ng-add/tests/schematic-ng-add.spec.d.ts +1 -0
- package/schematics/ng-add/tests/schematic-ng-add.spec.js +270 -0
- package/schematics/ng-update/v3/tests/schematic-date-time.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-date-time.spec.js +117 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.js +102 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.js +107 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.js +113 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.js +380 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.js +119 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.js +123 -0
- package/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.js +81 -0
- package/schematics/ng-update/v3/tests/schematic-rename-types.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-rename-types.spec.js +157 -0
- package/schematics/ng-update/v3/tests/schematic-replace-consts.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-consts.spec.js +135 -0
- package/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.js +53 -0
- package/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.js +835 -0
- package/schematics/ng-update/v3/tests/schematic-replace-enums.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-enums.spec.js +68 -0
- package/schematics/ng-update/v3/tests/schematic-replace-functions.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-functions.spec.js +195 -0
- package/schematics/ng-update/v3/tests/schematic-replace-html.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-html.spec.js +611 -0
- package/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.js +100 -0
- package/schematics/ng-update/v3/tests/schematic-replace-services.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-services.spec.js +102 -0
- package/schematics/ng-update/v3/tests/schematic-replace-styles.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-replace-styles.spec.js +286 -0
- package/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.js +141 -0
- package/schematics/ng-update/v3/tests/schematic-warnings.spec.d.ts +1 -0
- package/schematics/ng-update/v3/tests/schematic-warnings.spec.js +104 -0
- package/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.d.ts +1 -0
- package/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.js +87 -0
- package/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.d.ts +1 -0
- package/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.js +101 -0
- package/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.d.ts +1 -0
- package/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.js +117 -0
- package/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.d.ts +1 -0
- package/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.js +90 -0
- package/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.d.ts +1 -0
- package/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.js +74 -0
- package/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.d.ts +1 -0
- package/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.js +72 -0
- package/tokens/active-element.d.ts +1 -2
- package/tokens/default-renderer.d.ts +2 -2
- package/tokens/ensure-base-href.d.ts +1 -2
- package/tokens/is-android.d.ts +1 -2
- package/tokens/is-apple.d.ts +1 -2
- package/tokens/is-chromium.d.ts +1 -2
- package/tokens/is-cypress.d.ts +1 -2
- package/tokens/is-e2e.d.ts +1 -2
- package/tokens/is-firefox.d.ts +1 -2
- package/tokens/is-ios.d.ts +1 -2
- package/tokens/is-mobile.d.ts +1 -2
- package/tokens/is-playwright.d.ts +1 -2
- package/tokens/is-stackblitz.d.ts +1 -2
- package/tokens/is-webkit.d.ts +1 -2
- package/tokens/range.d.ts +1 -2
- package/tokens/removed-element.d.ts +1 -3
- package/tokens/take-only-trusted-events.d.ts +1 -2
- package/tokens/touch-supported.d.ts +1 -2
- package/tokens/window-height.d.ts +1 -3
@@ -0,0 +1,835 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
/* eslint-disable rxjs/no-topromise */
|
5
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
6
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
7
|
+
const ng_morph_1 = require("ng-morph");
|
8
|
+
const path_1 = require("path");
|
9
|
+
const create_angular_json_1 = require("../../../utils/create-angular-json");
|
10
|
+
const collectionPath = path_1.join(__dirname, `../../../migration.json`);
|
11
|
+
const BEFORE = `
|
12
|
+
import {controlPoint, describeSector, drawCurve, drawLine, draw, lineAngle} from '@taiga-ui/addon-charts';
|
13
|
+
import {
|
14
|
+
formatCurrency,
|
15
|
+
getCurrencySymbol,
|
16
|
+
getPaymentSystem,
|
17
|
+
isMaestro,
|
18
|
+
isMastercard,
|
19
|
+
isMir,
|
20
|
+
isElectron,
|
21
|
+
isVisa,
|
22
|
+
isCardLengthValid,
|
23
|
+
isCardNumberValid,
|
24
|
+
isExpireValid,
|
25
|
+
} from '@taiga-ui/addon-commerce';
|
26
|
+
import {
|
27
|
+
tryParseMarkdownCodeBlock,
|
28
|
+
coerceValue,
|
29
|
+
rgbToHex,
|
30
|
+
hexToRgb,
|
31
|
+
generateRoutes,
|
32
|
+
inspectAny,
|
33
|
+
rawLoadRecord,
|
34
|
+
transliterateKeyboardLayout,
|
35
|
+
} from '@taiga-ui/addon-doc';
|
36
|
+
import {
|
37
|
+
isEmptyParagraph,
|
38
|
+
getElementPoint,
|
39
|
+
getGradientData,
|
40
|
+
getMarkRange,
|
41
|
+
hexToRgb,
|
42
|
+
hsvToRgb,
|
43
|
+
isSelectionIn,
|
44
|
+
parseColor,
|
45
|
+
parseGradient,
|
46
|
+
rgbToHex,
|
47
|
+
rgbToHsv,
|
48
|
+
toGradient,
|
49
|
+
} from '@taiga-ui/addon-editor';
|
50
|
+
import {defaultSort} from '@taiga-ui/addon-table';
|
51
|
+
import {
|
52
|
+
mockCurrentDate,
|
53
|
+
restoreRealDate,
|
54
|
+
mockDateInside,
|
55
|
+
pendingIfNotMoscowTimeZone,
|
56
|
+
dragAndDropFrom,
|
57
|
+
focusVisibleObservable,
|
58
|
+
itemsQueryListObservable,
|
59
|
+
mouseDragFinishFrom,
|
60
|
+
mustBePresent,
|
61
|
+
pressedObservable,
|
62
|
+
preventDefault,
|
63
|
+
stopPropagation,
|
64
|
+
typedFromEvent,
|
65
|
+
watch,
|
66
|
+
isEdgeOlderThan,
|
67
|
+
isEdge,
|
68
|
+
isFirefox,
|
69
|
+
isIE,
|
70
|
+
isSafari,
|
71
|
+
canScroll,
|
72
|
+
containsOrAfter,
|
73
|
+
getActualTarget,
|
74
|
+
getClipboardDataText,
|
75
|
+
getDocumentOrShadowRoot,
|
76
|
+
getElementObscurers,
|
77
|
+
getElementOffset,
|
78
|
+
getScrollParent,
|
79
|
+
isCurrentTarget,
|
80
|
+
isInsideIframe,
|
81
|
+
isNodeIn,
|
82
|
+
blurNativeFocused,
|
83
|
+
getClosestKeyboardFocusable,
|
84
|
+
getNativeFocused,
|
85
|
+
isNativeFocusedIn,
|
86
|
+
isNativeFocused,
|
87
|
+
isNativeKeyboardFocusable,
|
88
|
+
isNativeMouseFocusable,
|
89
|
+
moveFocus,
|
90
|
+
setNativeMouseFocused,
|
91
|
+
px,
|
92
|
+
clamp,
|
93
|
+
inRange,
|
94
|
+
normalizeToIntNumber,
|
95
|
+
quantize,
|
96
|
+
round,
|
97
|
+
ceil,
|
98
|
+
floor,
|
99
|
+
sum,
|
100
|
+
toInt,
|
101
|
+
toRadians,
|
102
|
+
distanceBetweenTouches,
|
103
|
+
easeInOutQuad,
|
104
|
+
flatLength,
|
105
|
+
getOriginalArrayFromQueryList,
|
106
|
+
getSwipeDirection,
|
107
|
+
isElementEditable,
|
108
|
+
isNumber,
|
109
|
+
isPresent,
|
110
|
+
markControlAsTouchedAndValidate,
|
111
|
+
nullableSame,
|
112
|
+
uniqBy,
|
113
|
+
isApplePlatform,
|
114
|
+
isApple,
|
115
|
+
isIos,
|
116
|
+
svgLinearGradientProcessor,
|
117
|
+
} from '@taiga-ui/cdk';
|
118
|
+
import {
|
119
|
+
textfieldWatchedControllerFactory,
|
120
|
+
smartSearch,
|
121
|
+
isMobileResFactory,
|
122
|
+
modeFactory,
|
123
|
+
watchedControllerFactory,
|
124
|
+
areCssVarsSupported,
|
125
|
+
checkFixedPosition,
|
126
|
+
getSafeAreaSize,
|
127
|
+
getScreenWidth,
|
128
|
+
processIcon,
|
129
|
+
capitalizeFirstLetter,
|
130
|
+
capitalize,
|
131
|
+
formatNumber,
|
132
|
+
formatPhone,
|
133
|
+
getFractionPartPadded,
|
134
|
+
numberToStringWithoutExp,
|
135
|
+
otherDecimalSymbol,
|
136
|
+
pluralize,
|
137
|
+
maskedMoneyValueIsEmpty,
|
138
|
+
maskedNumberStringToNumber,
|
139
|
+
getBorder,
|
140
|
+
iconsPathFactory,
|
141
|
+
isEditingKey,
|
142
|
+
isPresumedHTMLString,
|
143
|
+
sizeBigger,
|
144
|
+
} from '@taiga-ui/core';
|
145
|
+
import {extractI18n} from '@taiga-ui/i18n';
|
146
|
+
import {
|
147
|
+
extractValueFromEvent,
|
148
|
+
getWordRange,
|
149
|
+
scrollToElement,
|
150
|
+
setRangeOffset,
|
151
|
+
formatSize,
|
152
|
+
getAcceptArray,
|
153
|
+
stringHashToHsl,
|
154
|
+
normalizeDateValue,
|
155
|
+
getPrecision,
|
156
|
+
isFlat,
|
157
|
+
} from '@taiga-ui/kit';
|
158
|
+
|
159
|
+
const args: any[] = [];
|
160
|
+
|
161
|
+
controlPoint(...args);
|
162
|
+
describeSector(...args);
|
163
|
+
drawCurve(...args);
|
164
|
+
drawLine(...args);
|
165
|
+
draw(...args);
|
166
|
+
lineAngle(...args);
|
167
|
+
formatCurrency(...args);
|
168
|
+
getCurrencySymbol(...args);
|
169
|
+
getPaymentSystem(...args);
|
170
|
+
isMaestro(...args);
|
171
|
+
isMastercard(...args);
|
172
|
+
isMir(...args);
|
173
|
+
isElectron(...args);
|
174
|
+
isVisa(...args);
|
175
|
+
isCardLengthValid(...args);
|
176
|
+
isCardNumberValid(...args);
|
177
|
+
isExpireValid(...args);
|
178
|
+
tryParseMarkdownCodeBlock(...args);
|
179
|
+
coerceValue(...args);
|
180
|
+
rgbToHex(...args);
|
181
|
+
hexToRgb(...args);
|
182
|
+
generateRoutes(...args);
|
183
|
+
inspectAny(...args);
|
184
|
+
rawLoadRecord(...args);
|
185
|
+
transliterateKeyboardLayout(...args);
|
186
|
+
isEmptyParagraph(...args);
|
187
|
+
getElementPoint(...args);
|
188
|
+
getGradientData(...args);
|
189
|
+
getMarkRange(...args);
|
190
|
+
hexToRgb(...args);
|
191
|
+
hsvToRgb(...args);
|
192
|
+
isSelectionIn(...args);
|
193
|
+
parseColor(...args);
|
194
|
+
parseGradient(...args);
|
195
|
+
rgbToHex(...args);
|
196
|
+
rgbToHsv(...args);
|
197
|
+
toGradient(...args);
|
198
|
+
defaultSort(...args);
|
199
|
+
mockCurrentDate(...args);
|
200
|
+
restoreRealDate(...args);
|
201
|
+
mockDateInside(...args);
|
202
|
+
pendingIfNotMoscowTimeZone(...args);
|
203
|
+
dragAndDropFrom(...args);
|
204
|
+
focusVisibleObservable(...args);
|
205
|
+
itemsQueryListObservable(...args);
|
206
|
+
mouseDragFinishFrom(...args);
|
207
|
+
mustBePresent(...args);
|
208
|
+
pressedObservable(...args);
|
209
|
+
preventDefault(...args);
|
210
|
+
stopPropagation(...args);
|
211
|
+
typedFromEvent(...args);
|
212
|
+
watch(...args);
|
213
|
+
isEdgeOlderThan(...args);
|
214
|
+
isEdge(...args);
|
215
|
+
isFirefox(...args);
|
216
|
+
isSafari(...args);
|
217
|
+
canScroll(...args);
|
218
|
+
containsOrAfter(...args);
|
219
|
+
getActualTarget(...args);
|
220
|
+
getClipboardDataText(...args);
|
221
|
+
getDocumentOrShadowRoot(...args);
|
222
|
+
getElementObscurers(...args);
|
223
|
+
getElementOffset(...args);
|
224
|
+
getScrollParent(...args);
|
225
|
+
isCurrentTarget(...args);
|
226
|
+
isInsideIframe(...args);
|
227
|
+
isNodeIn(...args);
|
228
|
+
blurNativeFocused(...args);
|
229
|
+
getClosestKeyboardFocusable(...args);
|
230
|
+
getNativeFocused(...args);
|
231
|
+
isNativeFocusedIn(...args);
|
232
|
+
isNativeFocused(...args);
|
233
|
+
isNativeKeyboardFocusable(...args);
|
234
|
+
isNativeMouseFocusable(...args);
|
235
|
+
moveFocus(...args);
|
236
|
+
setNativeMouseFocused(...args);
|
237
|
+
px(...args);
|
238
|
+
clamp(...args);
|
239
|
+
inRange(...args);
|
240
|
+
normalizeToIntNumber(...args);
|
241
|
+
quantize(...args);
|
242
|
+
round(...args);
|
243
|
+
ceil(...args);
|
244
|
+
floor(...args);
|
245
|
+
sum(...args);
|
246
|
+
toInt(...args);
|
247
|
+
toRadians(...args);
|
248
|
+
distanceBetweenTouches(...args);
|
249
|
+
easeInOutQuad(...args);
|
250
|
+
flatLength(...args);
|
251
|
+
getOriginalArrayFromQueryList(...args);
|
252
|
+
getSwipeDirection(...args);
|
253
|
+
isElementEditable(...args);
|
254
|
+
isNumber(...args);
|
255
|
+
isPresent(...args);
|
256
|
+
markControlAsTouchedAndValidate(...args);
|
257
|
+
nullableSame(...args);
|
258
|
+
uniqBy(...args);
|
259
|
+
isApplePlatform(...args);
|
260
|
+
isApple(...args);
|
261
|
+
isIos(...args);
|
262
|
+
svgLinearGradientProcessor(...args);
|
263
|
+
textfieldWatchedControllerFactory(...args);
|
264
|
+
smartSearch(...args);
|
265
|
+
isMobileResFactory(...args);
|
266
|
+
modeFactory(...args);
|
267
|
+
watchedControllerFactory(...args);
|
268
|
+
areCssVarsSupported(...args);
|
269
|
+
checkFixedPosition(...args);
|
270
|
+
getSafeAreaSize(...args);
|
271
|
+
getScreenWidth(...args);
|
272
|
+
processIcon(...args);
|
273
|
+
capitalizeFirstLetter(...args);
|
274
|
+
capitalize(...args);
|
275
|
+
formatNumber(...args);
|
276
|
+
formatPhone(...args);
|
277
|
+
getFractionPartPadded(...args);
|
278
|
+
numberToStringWithoutExp(...args);
|
279
|
+
otherDecimalSymbol(...args);
|
280
|
+
pluralize(...args);
|
281
|
+
maskedMoneyValueIsEmpty(...args);
|
282
|
+
maskedNumberStringToNumber(...args);
|
283
|
+
getBorder(...args);
|
284
|
+
iconsPathFactory(...args);
|
285
|
+
isEditingKey(...args);
|
286
|
+
isPresumedHTMLString(...args);
|
287
|
+
sizeBigger(...args);
|
288
|
+
extractI18n(...args);
|
289
|
+
extractValueFromEvent(...args);
|
290
|
+
getWordRange(...args);
|
291
|
+
scrollToElement(...args);
|
292
|
+
setRangeOffset(...args);
|
293
|
+
formatSize(...args);
|
294
|
+
getAcceptArray(...args);
|
295
|
+
stringHashToHsl(...args);
|
296
|
+
normalizeDateValue(...args);
|
297
|
+
getPrecision(...args);
|
298
|
+
isFlat(...args);
|
299
|
+
|
300
|
+
class Component {
|
301
|
+
ngOnInit() {
|
302
|
+
controlPoint();
|
303
|
+
describeSector();
|
304
|
+
drawCurve();
|
305
|
+
drawLine();
|
306
|
+
draw();
|
307
|
+
lineAngle();
|
308
|
+
formatCurrency();
|
309
|
+
getCurrencySymbol();
|
310
|
+
getPaymentSystem();
|
311
|
+
isMaestro();
|
312
|
+
isMastercard();
|
313
|
+
isMir();
|
314
|
+
isElectron();
|
315
|
+
isVisa();
|
316
|
+
isCardLengthValid();
|
317
|
+
isCardNumberValid();
|
318
|
+
isExpireValid();
|
319
|
+
tryParseMarkdownCodeBlock();
|
320
|
+
coerceValue();
|
321
|
+
rgbToHex();
|
322
|
+
hexToRgb();
|
323
|
+
generateRoutes();
|
324
|
+
inspectAny();
|
325
|
+
rawLoadRecord();
|
326
|
+
transliterateKeyboardLayout();
|
327
|
+
isEmptyParagraph();
|
328
|
+
getElementPoint();
|
329
|
+
getGradientData();
|
330
|
+
getMarkRange();
|
331
|
+
hexToRgb();
|
332
|
+
hsvToRgb();
|
333
|
+
isSelectionIn();
|
334
|
+
parseColor();
|
335
|
+
parseGradient();
|
336
|
+
rgbToHex();
|
337
|
+
rgbToHsv();
|
338
|
+
toGradient();
|
339
|
+
defaultSort();
|
340
|
+
mockCurrentDate();
|
341
|
+
restoreRealDate();
|
342
|
+
mockDateInside();
|
343
|
+
pendingIfNotMoscowTimeZone();
|
344
|
+
dragAndDropFrom();
|
345
|
+
focusVisibleObservable();
|
346
|
+
itemsQueryListObservable();
|
347
|
+
mouseDragFinishFrom();
|
348
|
+
mustBePresent();
|
349
|
+
pressedObservable();
|
350
|
+
preventDefault();
|
351
|
+
stopPropagation();
|
352
|
+
typedFromEvent();
|
353
|
+
watch();
|
354
|
+
isEdgeOlderThan();
|
355
|
+
isEdge();
|
356
|
+
isFirefox();
|
357
|
+
isIE();
|
358
|
+
isSafari();
|
359
|
+
canScroll();
|
360
|
+
containsOrAfter();
|
361
|
+
getActualTarget();
|
362
|
+
getClipboardDataText();
|
363
|
+
getDocumentOrShadowRoot();
|
364
|
+
getElementObscurers();
|
365
|
+
getElementOffset();
|
366
|
+
getScrollParent();
|
367
|
+
isCurrentTarget();
|
368
|
+
isInsideIframe();
|
369
|
+
isNodeIn();
|
370
|
+
blurNativeFocused();
|
371
|
+
getClosestKeyboardFocusable();
|
372
|
+
getNativeFocused();
|
373
|
+
isNativeFocusedIn();
|
374
|
+
isNativeFocused();
|
375
|
+
isNativeKeyboardFocusable();
|
376
|
+
isNativeMouseFocusable();
|
377
|
+
moveFocus();
|
378
|
+
setNativeMouseFocused();
|
379
|
+
px();
|
380
|
+
clamp();
|
381
|
+
inRange();
|
382
|
+
normalizeToIntNumber();
|
383
|
+
quantize();
|
384
|
+
round();
|
385
|
+
ceil();
|
386
|
+
floor();
|
387
|
+
sum();
|
388
|
+
toInt();
|
389
|
+
toRadians();
|
390
|
+
distanceBetweenTouches();
|
391
|
+
easeInOutQuad();
|
392
|
+
flatLength();
|
393
|
+
getOriginalArrayFromQueryList();
|
394
|
+
getSwipeDirection();
|
395
|
+
isElementEditable();
|
396
|
+
isNumber();
|
397
|
+
isPresent();
|
398
|
+
markControlAsTouchedAndValidate();
|
399
|
+
nullableSame();
|
400
|
+
uniqBy();
|
401
|
+
isApplePlatform();
|
402
|
+
isApple();
|
403
|
+
isIos();
|
404
|
+
svgLinearGradientProcessor();
|
405
|
+
textfieldWatchedControllerFactory();
|
406
|
+
smartSearch();
|
407
|
+
isMobileResFactory();
|
408
|
+
modeFactory();
|
409
|
+
watchedControllerFactory();
|
410
|
+
areCssVarsSupported();
|
411
|
+
checkFixedPosition();
|
412
|
+
getSafeAreaSize();
|
413
|
+
getScreenWidth();
|
414
|
+
processIcon();
|
415
|
+
capitalizeFirstLetter();
|
416
|
+
capitalize();
|
417
|
+
formatNumber();
|
418
|
+
formatPhone();
|
419
|
+
getFractionPartPadded();
|
420
|
+
numberToStringWithoutExp();
|
421
|
+
otherDecimalSymbol();
|
422
|
+
pluralize();
|
423
|
+
maskedMoneyValueIsEmpty();
|
424
|
+
maskedNumberStringToNumber();
|
425
|
+
getBorder();
|
426
|
+
iconsPathFactory();
|
427
|
+
isEditingKey();
|
428
|
+
isPresumedHTMLString();
|
429
|
+
sizeBigger();
|
430
|
+
extractI18n();
|
431
|
+
extractValueFromEvent();
|
432
|
+
getWordRange();
|
433
|
+
scrollToElement();
|
434
|
+
setRangeOffset();
|
435
|
+
formatSize();
|
436
|
+
getAcceptArray();
|
437
|
+
stringHashToHsl();
|
438
|
+
normalizeDateValue();
|
439
|
+
getPrecision();
|
440
|
+
isFlat();
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
// Even simple comment can cause schematics error :)
|
445
|
+
typedFromEvent(nativeElement, 'dragover').subscribe();
|
446
|
+
`;
|
447
|
+
const AFTER = `
|
448
|
+
import {tuiControlPoint, tuiDescribeSector, tuiDrawCurve, tuiDrawLine, tuiDraw, tuiLineAngle} from '@taiga-ui/addon-charts';
|
449
|
+
import {
|
450
|
+
tuiFormatCurrency,
|
451
|
+
tuiGetCurrencySymbol,
|
452
|
+
tuiGetPaymentSystem,
|
453
|
+
tuiIsMaestro,
|
454
|
+
tuiIsMastercard,
|
455
|
+
tuiIsMir,
|
456
|
+
tuiIsElectron,
|
457
|
+
tuiIsVisa,
|
458
|
+
tuiIsCardLengthValid,
|
459
|
+
tuiIsCardNumberValid,
|
460
|
+
tuiIsExpireValid,
|
461
|
+
} from '@taiga-ui/addon-commerce';
|
462
|
+
import {
|
463
|
+
tuiTryParseMarkdownCodeBlock,
|
464
|
+
tuiCoerceValue,
|
465
|
+
tuiGenerateRoutes,
|
466
|
+
tuiInspectAny,
|
467
|
+
tuiRawLoadRecord,
|
468
|
+
tuiTransliterateKeyboardLayout,
|
469
|
+
} from '@taiga-ui/addon-doc';
|
470
|
+
import {
|
471
|
+
tuiIsEmptyParagraph,
|
472
|
+
tuiGetElementPoint,
|
473
|
+
tuiGetGradientData,
|
474
|
+
tuiGetMarkRange,
|
475
|
+
tuiIsSelectionIn,
|
476
|
+
tuiParseGradient,
|
477
|
+
tuiToGradient,
|
478
|
+
} from '@taiga-ui/addon-editor';
|
479
|
+
import {tuiDefaultSort} from '@taiga-ui/addon-table';
|
480
|
+
import { tuiMockCurrentDate, tuiRestoreRealDate, tuiMockDateInside, tuiPendingIfNotMoscowTimeZone, tuiDragAndDropFrom, tuiFocusVisibleObservable, tuiQueryListChanges, tuiMouseDragFinishFrom, tuiMustBePresent, tuiPressedObservable, tuiPreventDefault, tuiStopPropagation, tuiTypedFromEvent, tuiWatch, tuiIsEdgeOlderThan, tuiIsEdge, tuiIsFirefox, tuiIsIE, tuiIsSafari, tuiCanScroll, tuiContainsOrAfter, tuiGetActualTarget, tuiGetClipboardDataText, tuiGetDocumentOrShadowRoot, tuiGetElementObscures, tuiGetElementOffset, tuiGetScrollParent, tuiIsCurrentTarget, tuiIsInsideIframe, tuiIsNodeIn, tuiBlurNativeFocused, tuiGetNativeFocused, tuiIsNativeFocusedIn, tuiIsNativeFocused, tuiIsNativeKeyboardFocusable, tuiIsNativeMouseFocusable, tuiMoveFocus, tuiSetNativeMouseFocused, tuiPx, tuiClamp, tuiInRange, tuiNormalizeToIntNumber, tuiQuantize, tuiRound, tuiCeil, tuiFloor, tuiSum, tuiToInt, tuiToRadians, tuiDistanceBetweenTouches, tuiEaseInOutQuad, tuiFlatLength, tuiGetOriginalArrayFromQueryList, tuiGetSwipeDirection, tuiIsElementEditable, tuiIsNumber, tuiIsPresent, tuiMarkControlAsTouchedAndValidate, tuiNullableSame, tuiUniqBy, tuiIsApplePlatform, tuiIsApple, tuiIsIos, tuiSvgLinearGradientProcessor, tuiGetClosestFocusable, tuiHexToRgb, tuiHsvToRgb, tuiParseColor, tuiRgbToHex, tuiRgbToHsv } from '@taiga-ui/cdk';
|
481
|
+
import {
|
482
|
+
tuiTextfieldWatchedControllerFactory,
|
483
|
+
tuiSmartSearch,
|
484
|
+
tuiIsMobileResFactory,
|
485
|
+
tuiModeFactory,
|
486
|
+
tuiWatchedControllerFactory,
|
487
|
+
tuiAreCssVarsSupported,
|
488
|
+
tuiCheckFixedPosition,
|
489
|
+
tuiGetSafeAreaSize,
|
490
|
+
tuiGetScreenWidth,
|
491
|
+
tuiProcessIcon,
|
492
|
+
tuiCapitalizeFirstLetter,
|
493
|
+
tuiCapitalize,
|
494
|
+
tuiFormatNumber,
|
495
|
+
tuiFormatPhone,
|
496
|
+
tuiGetFractionPartPadded,
|
497
|
+
tuiNumberToStringWithoutExp,
|
498
|
+
tuiOtherDecimalSymbol,
|
499
|
+
tuiPluralize,
|
500
|
+
tuiMaskedMoneyValueIsEmpty,
|
501
|
+
tuiMaskedNumberStringToNumber,
|
502
|
+
tuiGetBorder,
|
503
|
+
tuiIconsPathFactory,
|
504
|
+
tuiIsEditingKey,
|
505
|
+
tuiIsPresumedHTMLString,
|
506
|
+
tuiSizeBigger,
|
507
|
+
} from '@taiga-ui/core';
|
508
|
+
import {tuiExtractI18n} from '@taiga-ui/i18n';
|
509
|
+
import {
|
510
|
+
tuiExtractValueFromEvent,
|
511
|
+
tuiGetWordRange,
|
512
|
+
tuiScrollToElement,
|
513
|
+
tuiSetRangeOffset,
|
514
|
+
tuiFormatSize,
|
515
|
+
tuiGetAcceptArray,
|
516
|
+
tuiStringHashToHsl,
|
517
|
+
tuiNormalizeDateValue,
|
518
|
+
tuiGetPrecision,
|
519
|
+
tuiIsFlat,
|
520
|
+
} from '@taiga-ui/kit';
|
521
|
+
|
522
|
+
const args: any[] = [];
|
523
|
+
|
524
|
+
tuiControlPoint(...args);
|
525
|
+
tuiDescribeSector(...args);
|
526
|
+
tuiDrawCurve(...args);
|
527
|
+
tuiDrawLine(...args);
|
528
|
+
tuiDraw(...args);
|
529
|
+
tuiLineAngle(...args);
|
530
|
+
tuiFormatCurrency(...args);
|
531
|
+
tuiGetCurrencySymbol(...args);
|
532
|
+
tuiGetPaymentSystem(...args);
|
533
|
+
tuiIsMaestro(...args);
|
534
|
+
tuiIsMastercard(...args);
|
535
|
+
tuiIsMir(...args);
|
536
|
+
tuiIsElectron(...args);
|
537
|
+
tuiIsVisa(...args);
|
538
|
+
tuiIsCardLengthValid(...args);
|
539
|
+
tuiIsCardNumberValid(...args);
|
540
|
+
tuiIsExpireValid(...args);
|
541
|
+
tuiTryParseMarkdownCodeBlock(...args);
|
542
|
+
tuiCoerceValue(...args);
|
543
|
+
tuiRgbToHex(...args);
|
544
|
+
tuiHexToRgb(...args);
|
545
|
+
tuiGenerateRoutes(...args);
|
546
|
+
tuiInspectAny(...args);
|
547
|
+
tuiRawLoadRecord(...args);
|
548
|
+
tuiTransliterateKeyboardLayout(...args);
|
549
|
+
tuiIsEmptyParagraph(...args);
|
550
|
+
tuiGetElementPoint(...args);
|
551
|
+
tuiGetGradientData(...args);
|
552
|
+
tuiGetMarkRange(...args);
|
553
|
+
tuiHexToRgb(...args);
|
554
|
+
tuiHsvToRgb(...args);
|
555
|
+
tuiIsSelectionIn(...args);
|
556
|
+
tuiParseColor(...args);
|
557
|
+
tuiParseGradient(...args);
|
558
|
+
tuiRgbToHex(...args);
|
559
|
+
tuiRgbToHsv(...args);
|
560
|
+
tuiToGradient(...args);
|
561
|
+
tuiDefaultSort(...args);
|
562
|
+
tuiMockCurrentDate(...args);
|
563
|
+
tuiRestoreRealDate(...args);
|
564
|
+
tuiMockDateInside(...args);
|
565
|
+
tuiPendingIfNotMoscowTimeZone(...args);
|
566
|
+
tuiDragAndDropFrom(...args);
|
567
|
+
tuiFocusVisibleObservable(...args);
|
568
|
+
tuiQueryListChanges(...args);
|
569
|
+
tuiMouseDragFinishFrom(...args);
|
570
|
+
tuiMustBePresent(...args);
|
571
|
+
tuiPressedObservable(...args);
|
572
|
+
tuiPreventDefault(...args);
|
573
|
+
tuiStopPropagation(...args);
|
574
|
+
tuiTypedFromEvent(...args);
|
575
|
+
tuiWatch(...args);
|
576
|
+
tuiIsEdgeOlderThan(...args);
|
577
|
+
tuiIsEdge(...args);
|
578
|
+
tuiIsFirefox(...args);
|
579
|
+
tuiIsSafari(...args);
|
580
|
+
tuiCanScroll(...args);
|
581
|
+
tuiContainsOrAfter(...args);
|
582
|
+
tuiGetActualTarget(...args);
|
583
|
+
tuiGetClipboardDataText(...args);
|
584
|
+
tuiGetDocumentOrShadowRoot(...args);
|
585
|
+
tuiGetElementObscures(...args);
|
586
|
+
tuiGetElementOffset(...args);
|
587
|
+
tuiGetScrollParent(...args);
|
588
|
+
tuiIsCurrentTarget(...args);
|
589
|
+
tuiIsInsideIframe(...args);
|
590
|
+
tuiIsNodeIn(...args);
|
591
|
+
tuiBlurNativeFocused(...args);
|
592
|
+
tuiGetClosestFocusable(...args);
|
593
|
+
tuiGetNativeFocused(...args);
|
594
|
+
tuiIsNativeFocusedIn(...args);
|
595
|
+
tuiIsNativeFocused(...args);
|
596
|
+
tuiIsNativeKeyboardFocusable(...args);
|
597
|
+
tuiIsNativeMouseFocusable(...args);
|
598
|
+
tuiMoveFocus(...args);
|
599
|
+
tuiSetNativeMouseFocused(...args);
|
600
|
+
tuiPx(...args);
|
601
|
+
tuiClamp(...args);
|
602
|
+
tuiInRange(...args);
|
603
|
+
tuiNormalizeToIntNumber(...args);
|
604
|
+
tuiQuantize(...args);
|
605
|
+
tuiRound(...args);
|
606
|
+
tuiCeil(...args);
|
607
|
+
tuiFloor(...args);
|
608
|
+
tuiSum(...args);
|
609
|
+
tuiToInt(...args);
|
610
|
+
tuiToRadians(...args);
|
611
|
+
tuiDistanceBetweenTouches(...args);
|
612
|
+
tuiEaseInOutQuad(...args);
|
613
|
+
tuiFlatLength(...args);
|
614
|
+
tuiGetOriginalArrayFromQueryList(...args);
|
615
|
+
tuiGetSwipeDirection(...args);
|
616
|
+
tuiIsElementEditable(...args);
|
617
|
+
tuiIsNumber(...args);
|
618
|
+
tuiIsPresent(...args);
|
619
|
+
tuiMarkControlAsTouchedAndValidate(...args);
|
620
|
+
tuiNullableSame(...args);
|
621
|
+
tuiUniqBy(...args);
|
622
|
+
tuiIsApplePlatform(...args);
|
623
|
+
tuiIsApple(...args);
|
624
|
+
tuiIsIos(...args);
|
625
|
+
tuiSvgLinearGradientProcessor(...args);
|
626
|
+
tuiTextfieldWatchedControllerFactory(...args);
|
627
|
+
tuiSmartSearch(...args);
|
628
|
+
tuiIsMobileResFactory(...args);
|
629
|
+
tuiModeFactory(...args);
|
630
|
+
tuiWatchedControllerFactory(...args);
|
631
|
+
tuiAreCssVarsSupported(...args);
|
632
|
+
tuiCheckFixedPosition(...args);
|
633
|
+
tuiGetSafeAreaSize(...args);
|
634
|
+
tuiGetScreenWidth(...args);
|
635
|
+
tuiProcessIcon(...args);
|
636
|
+
tuiCapitalizeFirstLetter(...args);
|
637
|
+
tuiCapitalize(...args);
|
638
|
+
tuiFormatNumber(...args);
|
639
|
+
tuiFormatPhone(...args);
|
640
|
+
tuiGetFractionPartPadded(...args);
|
641
|
+
tuiNumberToStringWithoutExp(...args);
|
642
|
+
tuiOtherDecimalSymbol(...args);
|
643
|
+
tuiPluralize(...args);
|
644
|
+
tuiMaskedMoneyValueIsEmpty(...args);
|
645
|
+
tuiMaskedNumberStringToNumber(...args);
|
646
|
+
tuiGetBorder(...args);
|
647
|
+
tuiIconsPathFactory(...args);
|
648
|
+
tuiIsEditingKey(...args);
|
649
|
+
tuiIsPresumedHTMLString(...args);
|
650
|
+
tuiSizeBigger(...args);
|
651
|
+
tuiExtractI18n(...args);
|
652
|
+
tuiExtractValueFromEvent(...args);
|
653
|
+
tuiGetWordRange(...args);
|
654
|
+
tuiScrollToElement(...args);
|
655
|
+
tuiSetRangeOffset(...args);
|
656
|
+
tuiFormatSize(...args);
|
657
|
+
tuiGetAcceptArray(...args);
|
658
|
+
tuiStringHashToHsl(...args);
|
659
|
+
tuiNormalizeDateValue(...args);
|
660
|
+
tuiGetPrecision(...args);
|
661
|
+
tuiIsFlat(...args);
|
662
|
+
|
663
|
+
class Component {
|
664
|
+
ngOnInit() {
|
665
|
+
tuiControlPoint();
|
666
|
+
tuiDescribeSector();
|
667
|
+
tuiDrawCurve();
|
668
|
+
tuiDrawLine();
|
669
|
+
tuiDraw();
|
670
|
+
tuiLineAngle();
|
671
|
+
tuiFormatCurrency();
|
672
|
+
tuiGetCurrencySymbol();
|
673
|
+
tuiGetPaymentSystem();
|
674
|
+
tuiIsMaestro();
|
675
|
+
tuiIsMastercard();
|
676
|
+
tuiIsMir();
|
677
|
+
tuiIsElectron();
|
678
|
+
tuiIsVisa();
|
679
|
+
tuiIsCardLengthValid();
|
680
|
+
tuiIsCardNumberValid();
|
681
|
+
tuiIsExpireValid();
|
682
|
+
tuiTryParseMarkdownCodeBlock();
|
683
|
+
tuiCoerceValue();
|
684
|
+
tuiRgbToHex();
|
685
|
+
tuiHexToRgb();
|
686
|
+
tuiGenerateRoutes();
|
687
|
+
tuiInspectAny();
|
688
|
+
tuiRawLoadRecord();
|
689
|
+
tuiTransliterateKeyboardLayout();
|
690
|
+
tuiIsEmptyParagraph();
|
691
|
+
tuiGetElementPoint();
|
692
|
+
tuiGetGradientData();
|
693
|
+
tuiGetMarkRange();
|
694
|
+
tuiHexToRgb();
|
695
|
+
tuiHsvToRgb();
|
696
|
+
tuiIsSelectionIn();
|
697
|
+
tuiParseColor();
|
698
|
+
tuiParseGradient();
|
699
|
+
tuiRgbToHex();
|
700
|
+
tuiRgbToHsv();
|
701
|
+
tuiToGradient();
|
702
|
+
tuiDefaultSort();
|
703
|
+
tuiMockCurrentDate();
|
704
|
+
tuiRestoreRealDate();
|
705
|
+
tuiMockDateInside();
|
706
|
+
tuiPendingIfNotMoscowTimeZone();
|
707
|
+
tuiDragAndDropFrom();
|
708
|
+
tuiFocusVisibleObservable();
|
709
|
+
tuiQueryListChanges();
|
710
|
+
tuiMouseDragFinishFrom();
|
711
|
+
tuiMustBePresent();
|
712
|
+
tuiPressedObservable();
|
713
|
+
tuiPreventDefault();
|
714
|
+
tuiStopPropagation();
|
715
|
+
tuiTypedFromEvent();
|
716
|
+
tuiWatch();
|
717
|
+
tuiIsEdgeOlderThan();
|
718
|
+
tuiIsEdge();
|
719
|
+
tuiIsFirefox();
|
720
|
+
tuiIsIE();
|
721
|
+
tuiIsSafari();
|
722
|
+
tuiCanScroll();
|
723
|
+
tuiContainsOrAfter();
|
724
|
+
tuiGetActualTarget();
|
725
|
+
tuiGetClipboardDataText();
|
726
|
+
tuiGetDocumentOrShadowRoot();
|
727
|
+
tuiGetElementObscures();
|
728
|
+
tuiGetElementOffset();
|
729
|
+
tuiGetScrollParent();
|
730
|
+
tuiIsCurrentTarget();
|
731
|
+
tuiIsInsideIframe();
|
732
|
+
tuiIsNodeIn();
|
733
|
+
tuiBlurNativeFocused();
|
734
|
+
tuiGetClosestFocusable();
|
735
|
+
tuiGetNativeFocused();
|
736
|
+
tuiIsNativeFocusedIn();
|
737
|
+
tuiIsNativeFocused();
|
738
|
+
tuiIsNativeKeyboardFocusable();
|
739
|
+
tuiIsNativeMouseFocusable();
|
740
|
+
tuiMoveFocus();
|
741
|
+
tuiSetNativeMouseFocused();
|
742
|
+
tuiPx();
|
743
|
+
tuiClamp();
|
744
|
+
tuiInRange();
|
745
|
+
tuiNormalizeToIntNumber();
|
746
|
+
tuiQuantize();
|
747
|
+
tuiRound();
|
748
|
+
tuiCeil();
|
749
|
+
tuiFloor();
|
750
|
+
tuiSum();
|
751
|
+
tuiToInt();
|
752
|
+
tuiToRadians();
|
753
|
+
tuiDistanceBetweenTouches();
|
754
|
+
tuiEaseInOutQuad();
|
755
|
+
tuiFlatLength();
|
756
|
+
tuiGetOriginalArrayFromQueryList();
|
757
|
+
tuiGetSwipeDirection();
|
758
|
+
tuiIsElementEditable();
|
759
|
+
tuiIsNumber();
|
760
|
+
tuiIsPresent();
|
761
|
+
tuiMarkControlAsTouchedAndValidate();
|
762
|
+
tuiNullableSame();
|
763
|
+
tuiUniqBy();
|
764
|
+
tuiIsApplePlatform();
|
765
|
+
tuiIsApple();
|
766
|
+
tuiIsIos();
|
767
|
+
tuiSvgLinearGradientProcessor();
|
768
|
+
tuiTextfieldWatchedControllerFactory();
|
769
|
+
tuiSmartSearch();
|
770
|
+
tuiIsMobileResFactory();
|
771
|
+
tuiModeFactory();
|
772
|
+
tuiWatchedControllerFactory();
|
773
|
+
tuiAreCssVarsSupported();
|
774
|
+
tuiCheckFixedPosition();
|
775
|
+
tuiGetSafeAreaSize();
|
776
|
+
tuiGetScreenWidth();
|
777
|
+
tuiProcessIcon();
|
778
|
+
tuiCapitalizeFirstLetter();
|
779
|
+
tuiCapitalize();
|
780
|
+
tuiFormatNumber();
|
781
|
+
tuiFormatPhone();
|
782
|
+
tuiGetFractionPartPadded();
|
783
|
+
tuiNumberToStringWithoutExp();
|
784
|
+
tuiOtherDecimalSymbol();
|
785
|
+
tuiPluralize();
|
786
|
+
tuiMaskedMoneyValueIsEmpty();
|
787
|
+
tuiMaskedNumberStringToNumber();
|
788
|
+
tuiGetBorder();
|
789
|
+
tuiIconsPathFactory();
|
790
|
+
tuiIsEditingKey();
|
791
|
+
tuiIsPresumedHTMLString();
|
792
|
+
tuiSizeBigger();
|
793
|
+
tuiExtractI18n();
|
794
|
+
tuiExtractValueFromEvent();
|
795
|
+
tuiGetWordRange();
|
796
|
+
tuiScrollToElement();
|
797
|
+
tuiSetRangeOffset();
|
798
|
+
tuiFormatSize();
|
799
|
+
tuiGetAcceptArray();
|
800
|
+
tuiStringHashToHsl();
|
801
|
+
tuiNormalizeDateValue();
|
802
|
+
tuiGetPrecision();
|
803
|
+
tuiIsFlat();
|
804
|
+
}
|
805
|
+
}
|
806
|
+
|
807
|
+
// Even simple comment can cause schematics error :)
|
808
|
+
tuiTypedFromEvent(nativeElement, 'dragover').subscribe();
|
809
|
+
`;
|
810
|
+
describe(`replace functions`, () => {
|
811
|
+
let host;
|
812
|
+
let runner;
|
813
|
+
beforeEach(() => {
|
814
|
+
host = new testing_1.UnitTestTree(new schematics_1.HostTree());
|
815
|
+
runner = new testing_1.SchematicTestRunner(`schematics`, collectionPath);
|
816
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(host));
|
817
|
+
createMainFiles();
|
818
|
+
ng_morph_1.saveActiveProject();
|
819
|
+
});
|
820
|
+
it(`should replace functions`, () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
821
|
+
const tree = yield runner
|
822
|
+
.runSchematicAsync(`updateToV3`, { 'skip-logs': process.env[`TUI_CI`] === `true` }, host)
|
823
|
+
.toPromise();
|
824
|
+
expect(tree.readContent(`test/app/app.component.ts`)).toEqual(AFTER);
|
825
|
+
}));
|
826
|
+
afterEach(() => {
|
827
|
+
ng_morph_1.resetActiveProject();
|
828
|
+
});
|
829
|
+
});
|
830
|
+
function createMainFiles() {
|
831
|
+
ng_morph_1.createSourceFile(`test/app/app.component.ts`, BEFORE);
|
832
|
+
ng_morph_1.createSourceFile(`test/app/app.template.html`, `<app></app>`);
|
833
|
+
create_angular_json_1.createAngularJson();
|
834
|
+
ng_morph_1.createSourceFile(`package.json`, `{"dependencies": {"@angular/core": "~13.0.0"}}`);
|
835
|
+
}
|