@nativescript-community/ui-material-core 7.2.38 → 7.2.41

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/index.ios.js ADDED
@@ -0,0 +1,408 @@
1
+ import { Button, Color, ControlStateChangeListener, GestureTypes, PercentLength, TouchAction, Utils, View, backgroundInternalProperty } from '@nativescript/core';
2
+ import { CornerFamily, applyMixins } from './index.common';
3
+ import { cssProperty, dynamicElevationOffsetProperty, elevationProperty, rippleColorAlphaProperty, rippleColorProperty } from './cssproperties';
4
+ export * from './cssproperties';
5
+ export { applyMixins };
6
+ function createCornerFamily(cornerFamily) {
7
+ switch (cornerFamily) {
8
+ case CornerFamily.CUT:
9
+ return 1 /* MDCShapeCornerFamily.Cut */;
10
+ default:
11
+ case CornerFamily.ROUNDED:
12
+ return 0 /* MDCShapeCornerFamily.Rounded */;
13
+ }
14
+ }
15
+ function cornerTreatment(cornerFamily, cornerSize) {
16
+ let corner;
17
+ if (typeof cornerSize === 'object') {
18
+ if (cornerFamily === CornerFamily.CUT) {
19
+ if (cornerSize.unit === '%') {
20
+ corner = MDCCornerTreatment.cornerWithCutValueType(cornerSize.value, 1);
21
+ }
22
+ else {
23
+ corner = MDCCornerTreatment.cornerWithCutValueType(Utils.layout.toDeviceIndependentPixels(PercentLength.toDevicePixels(cornerSize)), 0);
24
+ }
25
+ }
26
+ else {
27
+ if (cornerSize.unit === '%') {
28
+ corner = MDCCornerTreatment.cornerWithRadiusValueType(cornerSize.value, 1);
29
+ }
30
+ else {
31
+ corner = MDCCornerTreatment.cornerWithRadiusValueType(Utils.layout.toDeviceIndependentPixels(PercentLength.toDevicePixels(cornerSize)), 0);
32
+ }
33
+ }
34
+ }
35
+ else {
36
+ if (cornerFamily === CornerFamily.ROUNDED) {
37
+ corner = MDCCornerTreatment.cornerWithRadius(Utils.layout.toDeviceIndependentPixels(PercentLength.toDevicePixels(cornerSize)));
38
+ }
39
+ else {
40
+ corner = MDCCornerTreatment.cornerWithCut(Utils.layout.toDeviceIndependentPixels(PercentLength.toDevicePixels(cornerSize)));
41
+ }
42
+ }
43
+ return corner;
44
+ }
45
+ function getIOSColor(value) {
46
+ return (value instanceof Color ? value : new Color(value)).ios;
47
+ }
48
+ export class Themer {
49
+ constructor() {
50
+ this._shapes = {};
51
+ // create a default one to prevent multiple creations on widget side
52
+ this.appColorScheme = MDCSemanticColorScheme.alloc().init().initWithDefaults(2 /* MDCColorSchemeDefaults.Material201907 */);
53
+ if (this.appColorScheme.primaryColor) {
54
+ this.appColorScheme.primaryColorVariant = this.appColorScheme.primaryColor.colorWithAlphaComponent(0.24);
55
+ }
56
+ }
57
+ getOrcreateAppColorScheme() {
58
+ if (!this.appColorScheme) {
59
+ this.appColorScheme = MDCSemanticColorScheme.new();
60
+ }
61
+ return this.appColorScheme;
62
+ }
63
+ getAppColorScheme() {
64
+ return this.appColorScheme;
65
+ }
66
+ setPrimaryColor(value) {
67
+ this.primaryColor = value;
68
+ const colorTheme = this.getOrcreateAppColorScheme();
69
+ colorTheme.primaryColor = getIOSColor(value);
70
+ this.appColorScheme.primaryColorVariant = this.appColorScheme.primaryColor.colorWithAlphaComponent(0.24);
71
+ }
72
+ getPrimaryColor() {
73
+ return this.primaryColor;
74
+ }
75
+ setOnPrimaryColor(value) {
76
+ this.onPrimaryColor = value;
77
+ const colorTheme = this.getOrcreateAppColorScheme();
78
+ colorTheme.onPrimaryColor = getIOSColor(value);
79
+ }
80
+ getOnPrimaryColor() {
81
+ return this.onPrimaryColor;
82
+ }
83
+ setSecondaryColor(value) {
84
+ this.secondaryColor = value;
85
+ const colorTheme = this.getOrcreateAppColorScheme();
86
+ colorTheme.secondaryColor = getIOSColor(value);
87
+ }
88
+ getSecondaryColor() {
89
+ return this.secondaryColor;
90
+ }
91
+ setAccentColor(value) {
92
+ this.setSecondaryColor(value);
93
+ }
94
+ getAccentColor() {
95
+ return this.getSecondaryColor();
96
+ }
97
+ setSurfaceColor(value) {
98
+ this.surfaceColor = value;
99
+ const colorTheme = this.getOrcreateAppColorScheme();
100
+ const color = getIOSColor(value);
101
+ colorTheme.surfaceColor = color;
102
+ colorTheme.onSurfaceColor = color;
103
+ }
104
+ getSurfaceColor() {
105
+ return this.surfaceColor;
106
+ }
107
+ setOnSurfaceColor(value) {
108
+ this.onSurfaceColor = value;
109
+ const colorTheme = this.getOrcreateAppColorScheme();
110
+ colorTheme.onSurfaceColor = getIOSColor(value);
111
+ }
112
+ getOnSurfaceColor() {
113
+ return this.onSurfaceColor;
114
+ }
115
+ setPrimaryColorVariant(value) {
116
+ this.primaryColorVariant = value;
117
+ this.getOrcreateAppColorScheme().primaryColorVariant = getIOSColor(value);
118
+ }
119
+ getPrimaryColorVariant() {
120
+ return this.primaryColorVariant;
121
+ }
122
+ setBackgroundColor(value) {
123
+ this.backgroundColor = value;
124
+ const colorTheme = this.getOrcreateAppColorScheme();
125
+ colorTheme.backgroundColor = getIOSColor(value);
126
+ }
127
+ getBackgroundColor() {
128
+ return this.backgroundColor;
129
+ }
130
+ setOnBackgroundColor(value) {
131
+ this.onBackgroundColor = value;
132
+ const colorTheme = this.getOrcreateAppColorScheme();
133
+ colorTheme.onBackgroundColor = getIOSColor(value);
134
+ }
135
+ getOnBackgroundColor() {
136
+ return this.onBackgroundColor;
137
+ }
138
+ getOrcreateAppTypographyScheme() {
139
+ if (!this.appTypoScheme) {
140
+ this.appTypoScheme = MDCTypographyScheme.new();
141
+ }
142
+ return this.appTypoScheme;
143
+ }
144
+ getAppTypographyScheme() {
145
+ return this.appTypoScheme;
146
+ }
147
+ setButtonTypography(args) {
148
+ // const typoTheme = this.getOrcreateAppTypographyScheme();
149
+ // let currentFont = typoTheme.button;
150
+ // if (args.fontFamily) {
151
+ // currentFont = currentFont.withFontFamily(args.fontFamily);
152
+ // }
153
+ }
154
+ getShape(key) {
155
+ return this._shapes[key] || null;
156
+ }
157
+ createShape(key, options) {
158
+ const shapeScheme = MDCShapeScheme.new();
159
+ const shapeCategory = MDCShapeCategory.new();
160
+ if (options.cornerFamily && options.cornerSize !== undefined) {
161
+ const corner = cornerTreatment(options.cornerFamily, options.cornerSize);
162
+ shapeCategory.bottomLeftCorner = corner;
163
+ shapeCategory.bottomRightCorner = corner;
164
+ shapeCategory.topLeftCorner = corner;
165
+ shapeCategory.topRightCorner = corner;
166
+ }
167
+ if (options.cornerSizeBottomLeft !== undefined) {
168
+ shapeCategory.bottomLeftCorner = cornerTreatment(options.cornerFamilyBottomLeft || options.cornerFamily, options.cornerSizeBottomLeft);
169
+ }
170
+ if (options.cornerSizeBottomRight !== undefined) {
171
+ shapeCategory.bottomRightCorner = cornerTreatment(options.cornerFamilyBottomRight || options.cornerFamily, options.cornerSizeBottomRight);
172
+ }
173
+ if (options.cornerSizeTopLeft !== undefined) {
174
+ shapeCategory.topLeftCorner = cornerTreatment(options.cornerFamilyTopLeft || options.cornerFamily, options.cornerSizeTopLeft);
175
+ }
176
+ if (options.cornerSizeTopRight !== undefined) {
177
+ shapeCategory.topRightCorner = cornerTreatment(options.cornerFamilyTopRight || options.cornerFamily, options.cornerSizeTopRight);
178
+ }
179
+ shapeScheme.smallComponentShape = shapeCategory;
180
+ shapeScheme.mediumComponentShape = shapeCategory;
181
+ shapeScheme.largeComponentShape = shapeCategory;
182
+ this._shapes[key] = shapeScheme;
183
+ }
184
+ }
185
+ export const themer = new Themer();
186
+ export function install() { }
187
+ export function getRippleColor(color, alpha = 61.5) {
188
+ if (color) {
189
+ const temp = color instanceof Color ? color : new Color(color);
190
+ if (temp.a !== 255) {
191
+ return temp.ios;
192
+ }
193
+ // TODO: we cant use setAlpha until it is fixed in Nativescript or ios will be undefined
194
+ return new Color(alpha || 61.5, temp.r, temp.g, temp.b).ios;
195
+ }
196
+ return null;
197
+ }
198
+ export function overrideViewBase() {
199
+ const NSView = require('@nativescript/core').View;
200
+ class ViewWithElevationAndRipple extends View {
201
+ constructor() {
202
+ super(...arguments);
203
+ this._shadowElevations = {};
204
+ }
205
+ getOrCreateRippleController() {
206
+ if (!this.inkTouchController) {
207
+ // create the shadow Layer
208
+ this.inkTouchController = MDCRippleTouchController.alloc().initWithView(this.nativeViewProtected);
209
+ // this.inkTouchController.addInkView();
210
+ // const colorScheme = themer.getAppColorScheme();
211
+ // MDCInkColorThemer.applyColorSchemeToInkView(colorScheme, this.inkTouchController.defaultInkView);
212
+ this.inkTouchController.rippleView.usesSuperviewShadowLayerAsMask = true;
213
+ // if (this.style.backgroundInternal) {
214
+ // this.inkTouchController.rippleView.layer.cornerRadius = Utils.layout.toDeviceIndependentPixels(this.style.backgroundInternal.borderTopLeftRadius);
215
+ // }
216
+ }
217
+ return this.inkTouchController;
218
+ }
219
+ getOrCreateShadowLayer() {
220
+ if (!this.shadowLayer) {
221
+ this._shadowElevations = this._shadowElevations || {};
222
+ // create the shadow Layer
223
+ //@ts-ignore
224
+ // const shadowView = ShadowView.alloc().init();
225
+ // this.shadowView = shadowView;
226
+ // this.shadowView.userInteractionEnabled = false;
227
+ // shadowView.clipsToBounds = false;
228
+ const layer = (this.shadowLayer = MDCShadowLayer.alloc().init());
229
+ // const layer = (this.shadowLayer = shadowView.layer);
230
+ layer.shouldRasterize = true;
231
+ layer.rasterizationScale = UIScreen.mainScreen.scale;
232
+ // shadowView.frame = this.nativeViewProtected.layer.bounds;
233
+ layer.frame = this.nativeViewProtected.layer.bounds;
234
+ // this.nativeViewProtected.addSubview(shadowView);
235
+ this.nativeViewProtected.layer.addSublayer(this.shadowLayer);
236
+ // we need to set clipToBounds to false. For now it overrides user choice.
237
+ this['clipToBounds'] = false;
238
+ this.nativeViewProtected.clipsToBounds = false;
239
+ layer.cornerRadius = this.nativeViewProtected.layer.cornerRadius;
240
+ layer.mask = this.nativeViewProtected.layer.mask;
241
+ // if (this.style.backgroundInternal) {
242
+ // layer.cornerRadius = Utils.layout.toDeviceIndependentPixels(this.style.backgroundInternal.borderTopLeftRadius);
243
+ // }
244
+ if (this.nativeViewProtected instanceof UIControl) {
245
+ this.startElevationStateChangeHandler();
246
+ }
247
+ }
248
+ return this.shadowLayer;
249
+ }
250
+ updateLayers() {
251
+ const layer = this.nativeViewProtected?.layer;
252
+ if (layer) {
253
+ const mask = layer.mask;
254
+ if (layer && this.inkTouchController) {
255
+ this.inkTouchController.rippleView.layer.cornerRadius = layer.cornerRadius;
256
+ this.inkTouchController.rippleView.layer.mask = layer.mask;
257
+ }
258
+ if (layer && this.shadowLayer) {
259
+ this.shadowLayer.frame = this.nativeViewProtected.layer.bounds;
260
+ this.shadowLayer.cornerRadius = layer.cornerRadius;
261
+ this.shadowLayer.mask = layer.mask;
262
+ }
263
+ layer.mask = mask;
264
+ }
265
+ }
266
+ _onSizeChanged() {
267
+ this.updateLayers();
268
+ }
269
+ _setNativeClipToBounds() {
270
+ if (this.shadowLayer) {
271
+ this.nativeViewProtected.clipsToBounds = false;
272
+ }
273
+ }
274
+ onUnloaded() {
275
+ if (this._elevationStateChangedHandler) {
276
+ if (this._elevationStateChangedHandler.stop) {
277
+ this._elevationStateChangedHandler.stop();
278
+ }
279
+ else {
280
+ this.off(GestureTypes.touch, this._elevationStateChangedHandler);
281
+ }
282
+ }
283
+ }
284
+ updateShadowElevation(state) {
285
+ if (this.shadowLayer) {
286
+ const elevation = this._shadowElevations[state];
287
+ this.shadowLayer.elevation = elevation;
288
+ }
289
+ }
290
+ requestFocus() {
291
+ this.focus();
292
+ }
293
+ clearFocus() {
294
+ this.nativeViewProtected.resignFirstResponder();
295
+ }
296
+ [rippleColorProperty.setNative](color) {
297
+ this.getOrCreateRippleController();
298
+ this.inkTouchController.rippleView.rippleColor = getRippleColor(color, this.rippleColorAlpha);
299
+ }
300
+ [rippleColorAlphaProperty.setNative](value) {
301
+ const rippleColor = this.rippleColor;
302
+ if (rippleColor) {
303
+ this[rippleColorProperty.setNative](rippleColor);
304
+ }
305
+ }
306
+ startElevationStateChangeHandler() {
307
+ if (!this._elevationStateChangedHandler) {
308
+ if (this.nativeViewProtected instanceof UIControl) {
309
+ this._elevationStateChangedHandler =
310
+ this._elevationStateChangedHandler ||
311
+ new ControlStateChangeListener(this.nativeViewProtected, (s) => {
312
+ this.updateShadowElevation(s);
313
+ });
314
+ this._elevationStateChangedHandler.start();
315
+ }
316
+ else {
317
+ this._elevationStateChangedHandler =
318
+ this._elevationStateChangedHandler ||
319
+ ((args) => {
320
+ switch (args.action) {
321
+ case TouchAction.up:
322
+ this.updateShadowElevation('normal');
323
+ break;
324
+ case TouchAction.down:
325
+ this.updateShadowElevation('highlighted');
326
+ break;
327
+ }
328
+ });
329
+ this.on(GestureTypes.touch, this._elevationStateChangedHandler);
330
+ }
331
+ }
332
+ }
333
+ getDefaultElevation() {
334
+ return this instanceof Button ? 2 : 0;
335
+ }
336
+ getDefaultDynamicElevationOffset() {
337
+ return this instanceof Button ? 6 : 0;
338
+ }
339
+ [elevationProperty.getDefault]() {
340
+ return this.getDefaultElevation();
341
+ }
342
+ [elevationProperty.setNative](value) {
343
+ this.getOrCreateShadowLayer();
344
+ let dynamicElevationOffset = this.dynamicElevationOffset;
345
+ if (typeof dynamicElevationOffset === 'undefined' || dynamicElevationOffset === null) {
346
+ dynamicElevationOffset = this.getDefaultDynamicElevationOffset();
347
+ }
348
+ if (dynamicElevationOffset !== 0) {
349
+ this.startElevationStateChangeHandler();
350
+ }
351
+ this._shadowElevations['normal'] = value;
352
+ this._shadowElevations['highlighted'] = value + dynamicElevationOffset;
353
+ this.shadowLayer.elevation = value;
354
+ }
355
+ [dynamicElevationOffsetProperty.getDefault]() {
356
+ return this.getDefaultDynamicElevationOffset();
357
+ }
358
+ [dynamicElevationOffsetProperty.setNative](value) {
359
+ this.getOrCreateShadowLayer();
360
+ this.startElevationStateChangeHandler();
361
+ let elevation = this.elevation;
362
+ if (typeof elevation === 'undefined' || elevation === null) {
363
+ elevation = this.getDefaultElevation();
364
+ }
365
+ this._shadowElevations['normal'] = elevation;
366
+ this._shadowElevations['highlighted'] = value + elevation;
367
+ }
368
+ [backgroundInternalProperty.setNative](value) {
369
+ const layer = this.nativeViewProtected.layer;
370
+ if (this.inkTouchController) {
371
+ this.inkTouchController.rippleView.layer.cornerRadius = layer.cornerRadius;
372
+ this.inkTouchController.rippleView.layer.mask = layer.mask;
373
+ }
374
+ if (this.shadowLayer) {
375
+ this.shadowLayer.cornerRadius = layer.cornerRadius;
376
+ this.shadowLayer.mask = layer.mask;
377
+ }
378
+ }
379
+ _redrawNativeBackground(value) {
380
+ this.updateLayers();
381
+ }
382
+ }
383
+ __decorate([
384
+ cssProperty
385
+ ], ViewWithElevationAndRipple.prototype, "elevation", void 0);
386
+ __decorate([
387
+ cssProperty
388
+ ], ViewWithElevationAndRipple.prototype, "dynamicElevationOffset", void 0);
389
+ __decorate([
390
+ cssProperty
391
+ ], ViewWithElevationAndRipple.prototype, "rippleColor", void 0);
392
+ __decorate([
393
+ cssProperty
394
+ ], ViewWithElevationAndRipple.prototype, "rippleColorAlpha", void 0);
395
+ // we need mixins to be applied after (run default implementation first) because of _setNativeClipToBounds.
396
+ // it needs to be applied after for shadows to be drawn correctly
397
+ applyMixins(NSView, [ViewWithElevationAndRipple], {
398
+ after: true
399
+ });
400
+ }
401
+ let mixinInstalled = false;
402
+ export function installMixins() {
403
+ if (!mixinInstalled) {
404
+ mixinInstalled = true;
405
+ overrideViewBase();
406
+ }
407
+ }
408
+ //# sourceMappingURL=index.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../src/core/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,MAAM,EACN,KAAK,EACL,0BAA0B,EAE1B,YAAY,EACZ,aAAa,EACb,WAAW,EAEX,KAAK,EACL,IAAI,EACJ,0BAA0B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,8BAA8B,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB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W,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;aACtC;QACL,CAAC;QAED,uBAAuB,CAAC,KAAK;YACzB,IAAI,CAAC,YAAY,EAAE,CAAC;QACxB,CAAC;KACJ;IApMgB;QAAZ,WAAW;iEAAmB;IAClB;QAAZ,WAAW;8EAAgC;IAC/B;QAAZ,WAAW;mEAAoB;IACnB;QAAZ,WAAW;wEAA0B;IAkM1C,2GAA2G;IAC3G,iEAAiE;IACjE,WAAW,CAAC,MAAM,EAAE,CAAC,0BAA0B,CAAC,EAAE;QAC9C,KAAK,EAAE,IAAI;KACd,CAAC,CAAC;AACP,CAAC;AAED,IAAI,cAAc,GAAG,KAAK,CAAC;AAC3B,MAAM,UAAU,aAAa;IACzB,IAAI,CAAC,cAAc,EAAE;QACjB,cAAc,GAAG,IAAI,CAAC;QACtB,gBAAgB,EAAE,CAAC;KACtB;AACL,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-material-core",
3
- "version": "7.2.38",
3
+ "version": "7.2.41",
4
4
  "description": "Material Core component",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
7
7
  "typings": "./index.d.ts",
8
+ "scripts": {
9
+ "tsc": "cpy '**/*.d.ts' '../../packages/core' --cwd=../../src/core --parents && tsc -d",
10
+ "tsc-win": "cpy **/*.d.ts ..\\..\\packages\\core --cwd=..\\..\\src\\core --parents && tsc -d",
11
+ "build": "npm run tsc",
12
+ "build.watch": "npm run tsc -- -w",
13
+ "build.win": "npm run tsc-win",
14
+ "build.all": "npm run build",
15
+ "build.all.win": "npm run build.win",
16
+ "clean": "rimraf ./*.d.ts ./*.js ./*.js.map android"
17
+ },
8
18
  "nativescript": {
9
19
  "platforms": {
10
20
  "android": "6.2.0",
@@ -28,5 +38,5 @@
28
38
  "homepage": "https://github.com/nativescript-community/ui-material-components",
29
39
  "repository": "https://github.com/nativescript-community/ui-material-components",
30
40
  "readmeFilename": "README.md",
31
- "gitHead": "5420f127d24222f2c55e0e53ca1534a70b2b608f"
41
+ "gitHead": "b56f0b5c4776605e91f6ca76ba1f2ed4fd103989"
32
42
  }
@@ -0,0 +1,16 @@
1
+ import { Color, CoreTypes, CssProperty, Style } from '@nativescript/core';
2
+ export declare const errorColorProperty: CssProperty<Style, Color>;
3
+ export declare const helperProperty: CssProperty<Style, string>;
4
+ export declare const helperColorProperty: CssProperty<Style, Color>;
5
+ export declare const errorProperty: CssProperty<Style, string>;
6
+ export declare const counterMaxLengthProperty: CssProperty<Style, number>;
7
+ export declare const floatingProperty: CssProperty<Style, boolean>;
8
+ export declare const floatingColorProperty: CssProperty<Style, Color>;
9
+ export declare const floatingInactiveColorProperty: CssProperty<Style, Color>;
10
+ export declare const strokeColorProperty: CssProperty<Style, Color>;
11
+ export declare const strokeInactiveColorProperty: CssProperty<Style, Color>;
12
+ export declare const strokeDisabledColorProperty: CssProperty<Style, Color>;
13
+ export declare const buttonColorProperty: CssProperty<Style, Color>;
14
+ export declare const digitsProperty: CssProperty<Style, string>;
15
+ export declare const strokeWidthProperty: CssProperty<Style, CoreTypes.LengthType>;
16
+ export declare const strokeWidthFocusedProperty: CssProperty<Style, CoreTypes.LengthType>;
@@ -0,0 +1,103 @@
1
+ import { Color, CssProperty, Length, Style, booleanConverter } from '@nativescript/core';
2
+ function convertColor(value) {
3
+ if (typeof value === 'string') {
4
+ return new Color(value);
5
+ }
6
+ return value;
7
+ }
8
+ export const errorColorProperty = new CssProperty({
9
+ name: 'errorColor',
10
+ cssName: 'error-color',
11
+ equalityComparer: Color.equals,
12
+ valueConverter: convertColor
13
+ });
14
+ errorColorProperty.register(Style);
15
+ export const helperProperty = new CssProperty({
16
+ name: 'helper',
17
+ cssName: 'helper'
18
+ });
19
+ helperProperty.register(Style);
20
+ export const helperColorProperty = new CssProperty({
21
+ name: 'helperColor',
22
+ cssName: 'helper-color',
23
+ equalityComparer: Color.equals,
24
+ valueConverter: convertColor
25
+ });
26
+ helperColorProperty.register(Style);
27
+ export const errorProperty = new CssProperty({
28
+ name: 'error',
29
+ cssName: 'error'
30
+ });
31
+ errorProperty.register(Style);
32
+ export const counterMaxLengthProperty = new CssProperty({
33
+ name: 'counterMaxLength',
34
+ cssName: 'counter-max-length',
35
+ valueConverter: (v) => parseFloat(v)
36
+ });
37
+ counterMaxLengthProperty.register(Style);
38
+ export const floatingProperty = new CssProperty({
39
+ name: 'floating',
40
+ cssName: 'floating',
41
+ valueConverter: booleanConverter
42
+ });
43
+ floatingProperty.register(Style);
44
+ export const floatingColorProperty = new CssProperty({
45
+ name: 'floatingColor',
46
+ cssName: 'floating-color',
47
+ equalityComparer: Color.equals,
48
+ valueConverter: convertColor
49
+ });
50
+ floatingColorProperty.register(Style);
51
+ export const floatingInactiveColorProperty = new CssProperty({
52
+ name: 'floatingInactiveColor',
53
+ cssName: 'floating-inactive-color',
54
+ equalityComparer: Color.equals,
55
+ valueConverter: convertColor
56
+ });
57
+ floatingInactiveColorProperty.register(Style);
58
+ export const strokeColorProperty = new CssProperty({
59
+ name: 'strokeColor',
60
+ cssName: 'stroke-color',
61
+ equalityComparer: Color.equals,
62
+ valueConverter: convertColor
63
+ });
64
+ strokeColorProperty.register(Style);
65
+ export const strokeInactiveColorProperty = new CssProperty({
66
+ name: 'strokeInactiveColor',
67
+ cssName: 'stroke-inactive-color',
68
+ equalityComparer: Color.equals,
69
+ valueConverter: convertColor
70
+ });
71
+ strokeInactiveColorProperty.register(Style);
72
+ export const strokeDisabledColorProperty = new CssProperty({
73
+ name: 'strokeDisabledColor',
74
+ cssName: 'stroke-disabled-color',
75
+ equalityComparer: Color.equals,
76
+ valueConverter: convertColor
77
+ });
78
+ strokeDisabledColorProperty.register(Style);
79
+ export const buttonColorProperty = new CssProperty({
80
+ name: 'buttonColor',
81
+ cssName: 'button-color',
82
+ equalityComparer: Color.equals,
83
+ valueConverter: convertColor
84
+ });
85
+ buttonColorProperty.register(Style);
86
+ export const digitsProperty = new CssProperty({
87
+ name: 'digits',
88
+ cssName: 'digits'
89
+ });
90
+ digitsProperty.register(Style);
91
+ export const strokeWidthProperty = new CssProperty({
92
+ name: 'strokeWidth',
93
+ cssName: 'stroke-width',
94
+ valueConverter: Length.parse
95
+ });
96
+ strokeWidthProperty.register(Style);
97
+ export const strokeWidthFocusedProperty = new CssProperty({
98
+ name: 'strokeWidthFocused',
99
+ cssName: 'stroke-width-focused',
100
+ valueConverter: Length.parse
101
+ });
102
+ strokeWidthFocusedProperty.register(Style);
103
+ //# sourceMappingURL=cssproperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssproperties.js","sourceRoot":"","sources":["../../../src/core/textbase/cssproperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAa,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEpG,SAAS,YAAY,CAAC,KAAK;IACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;KAC3B;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,WAAW,CAAe;IAC5D,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,aAAa;IACtB,gBAAgB,EAAE,KAAK,CAAC,MAAM;IAC9B,cAAc,EAAE,YAAY;CAC/B,CAAC,CAAC;AACH,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,WAAW,CAAgB;IACzD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,QAAQ;CACpB,CAAC,CAAC;AACH,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/B,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,WAAW,CAAe;IAC7D,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,cAAc;IACvB,gBAAgB,EAAE,KAAK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