@taiga-ui/core 3.14.0 → 3.15.0
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-core-components-alert.umd.js +11 -11
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +16 -16
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +23 -10
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-data-list.umd.js +34 -37
- package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +16 -16
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-error.umd.js +5 -5
- package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +17 -18
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-group.umd.js +17 -17
- package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +4 -4
- package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +13 -13
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-label.umd.js +6 -6
- package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-link.umd.js +14 -14
- package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +5 -5
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +10 -10
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +5 -5
- package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +5 -5
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +5 -5
- package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +58 -58
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +4 -4
- package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +7 -7
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +28 -28
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js +10 -10
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-svg.umd.js +18 -18
- package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +4 -4
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +9 -9
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +94 -91
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +61 -61
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +1 -1
- package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-mode.umd.js +2 -2
- package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +1 -1
- package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +34 -34
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-wrapper.umd.js +9 -9
- package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +3 -3
- package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +3 -3
- package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
- package/components/calendar/calendar.component.d.ts +4 -2
- package/components/expand/expand.component.d.ts +1 -1
- package/directives/dropdown/dropdown-context.directive.d.ts +4 -4
- package/directives/dropdown/dropdown-options.directive.d.ts +3 -5
- package/directives/dropdown/dropdown-position-sided.directive.d.ts +2 -1
- package/directives/dropdown/dropdown.directive.d.ts +1 -1
- package/esm2015/components/alert/alert.component.js +12 -12
- package/esm2015/components/button/button.component.js +17 -17
- package/esm2015/components/calendar/calendar.component.js +21 -12
- package/esm2015/components/data-list/data-list.component.js +17 -17
- package/esm2015/components/data-list/data-list.directive.js +2 -2
- package/esm2015/components/data-list/opt-group.directive.js +5 -5
- package/esm2015/components/data-list/option/option.component.js +14 -17
- package/esm2015/components/dialog/dialog.component.js +14 -14
- package/esm2015/components/dialog/dialog.directive.js +4 -4
- package/esm2015/components/error/error.component.js +6 -6
- package/esm2015/components/expand/expand-content.directive.js +2 -2
- package/esm2015/components/expand/expand.component.js +17 -19
- package/esm2015/components/group/group-styles.component.js +4 -4
- package/esm2015/components/group/group.directive.js +15 -15
- package/esm2015/components/hints-host/hints-host.component.js +5 -5
- package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +13 -13
- package/esm2015/components/label/label.component.js +7 -7
- package/esm2015/components/link/link.component.js +15 -15
- package/esm2015/components/loader/loader.component.js +6 -6
- package/esm2015/components/notification/notification.component.js +11 -11
- package/esm2015/components/primitive-calendar/primitive-calendar.component.js +6 -6
- package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +6 -6
- package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +6 -6
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +32 -32
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +13 -13
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +15 -15
- package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +5 -5
- package/esm2015/components/root/root.component.js +8 -8
- package/esm2015/components/scroll-controls/scroll-controls.component.js +6 -6
- package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
- package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
- package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
- package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
- package/esm2015/components/scrollbar/scrollbar.component.js +9 -9
- package/esm2015/components/svg/svg.component.js +19 -19
- package/esm2015/components/theme-night/theme-night.component.js +5 -5
- package/esm2015/components/tooltip/tooltip.component.js +10 -10
- package/esm2015/directives/dropdown/dropdown-context.directive.js +16 -16
- package/esm2015/directives/dropdown/dropdown-driver.directive.js +2 -2
- package/esm2015/directives/dropdown/dropdown-host.directive.js +2 -2
- package/esm2015/directives/dropdown/dropdown-hover.directive.js +4 -4
- package/esm2015/directives/dropdown/dropdown-manual.directive.js +2 -2
- package/esm2015/directives/dropdown/dropdown-options.directive.js +19 -15
- package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +17 -14
- package/esm2015/directives/dropdown/dropdown-position.directive.js +12 -14
- package/esm2015/directives/dropdown/dropdown-selection.directive.js +11 -11
- package/esm2015/directives/dropdown/dropdown.component.js +18 -20
- package/esm2015/directives/dropdown/dropdown.directive.js +7 -7
- package/esm2015/directives/hint/hint-describe.directive.js +5 -5
- package/esm2015/directives/hint/hint-driver.directive.js +2 -2
- package/esm2015/directives/hint/hint-host.directive.js +2 -2
- package/esm2015/directives/hint/hint-hover.directive.js +5 -5
- package/esm2015/directives/hint/hint-manual.directive.js +2 -2
- package/esm2015/directives/hint/hint-options.directive.js +12 -12
- package/esm2015/directives/hint/hint-pointer.directive.js +3 -3
- package/esm2015/directives/hint/hint-position.directive.js +25 -25
- package/esm2015/directives/hint/hint.component.js +10 -10
- package/esm2015/directives/hint/hint.directive.js +5 -5
- package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
- package/esm2015/directives/mode/mode.directive.js +3 -3
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-filler.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-icon.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
- package/esm2015/directives/textfield-controller/textfield-postfix.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-prefix.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
- package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
- package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +4 -4
- package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +4 -4
- package/fesm2015/taiga-ui-core-components-alert.js +11 -11
- package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +16 -16
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-calendar.js +20 -11
- package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-data-list.js +34 -37
- package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +16 -16
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-error.js +5 -5
- package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +17 -19
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-group.js +17 -17
- package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js +4 -4
- package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +13 -13
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-label.js +6 -6
- package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-link.js +14 -14
- package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +5 -5
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-notification.js +10 -10
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js +5 -5
- package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +5 -5
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +5 -5
- package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +59 -59
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +4 -4
- package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +7 -7
- package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +28 -28
- package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js +10 -10
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-svg.js +18 -18
- package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +4 -4
- package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +9 -9
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +96 -92
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +61 -61
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
- package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
- package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
- package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +34 -34
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
- package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +3 -3
- package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +3 -3
- package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
- package/package.json +6 -6
|
@@ -367,8 +367,8 @@
|
|
|
367
367
|
function TuiValueDecorationComponent(textfield) {
|
|
368
368
|
var _this = this;
|
|
369
369
|
this.textfield = textfield;
|
|
370
|
-
this.prefix$ = new i10.BehaviorSubject(
|
|
371
|
-
this.pre$ = this.prefix$.pipe(operators.delay(0), operators.filter(function () { var _a; return !!((_a = _this.pre) === null || _a === void 0 ? void 0 : _a.nativeElement.isConnected); }), operators.
|
|
370
|
+
this.prefix$ = new i10.BehaviorSubject('');
|
|
371
|
+
this.pre$ = this.prefix$.pipe(operators.delay(0), operators.filter(function () { var _a; return !!((_a = _this.pre) === null || _a === void 0 ? void 0 : _a.nativeElement.isConnected); }), operators.map(function () { var _a; return ((_a = _this.pre) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetWidth) || 0; }), operators.distinctUntilChanged());
|
|
372
372
|
}
|
|
373
373
|
Object.defineProperty(TuiValueDecorationComponent.prototype, "isContextTable", {
|
|
374
374
|
get: function () {
|
|
@@ -388,23 +388,23 @@
|
|
|
388
388
|
get: function () {
|
|
389
389
|
var _b = this, focused = _b.focused, placeholder = _b.placeholder, exampleText = _b.exampleText, value = _b.value, textfield = _b.textfield;
|
|
390
390
|
if (placeholder && exampleText) {
|
|
391
|
-
return
|
|
391
|
+
return '';
|
|
392
392
|
}
|
|
393
|
-
return focused ? exampleText || textfield.filler.slice(value.length) :
|
|
393
|
+
return focused ? exampleText || textfield.filler.slice(value.length) : '';
|
|
394
394
|
},
|
|
395
395
|
enumerable: false,
|
|
396
396
|
configurable: true
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(TuiValueDecorationComponent.prototype, "prefix", {
|
|
399
399
|
get: function () {
|
|
400
|
-
return this.decorationsVisible ? this.textfield.prefix :
|
|
400
|
+
return this.decorationsVisible ? this.textfield.prefix : '';
|
|
401
401
|
},
|
|
402
402
|
enumerable: false,
|
|
403
403
|
configurable: true
|
|
404
404
|
});
|
|
405
405
|
Object.defineProperty(TuiValueDecorationComponent.prototype, "postfix", {
|
|
406
406
|
get: function () {
|
|
407
|
-
return this.decorationsVisible ? this.computedPostfix :
|
|
407
|
+
return this.decorationsVisible ? this.computedPostfix : '';
|
|
408
408
|
},
|
|
409
409
|
enumerable: false,
|
|
410
410
|
configurable: true
|
|
@@ -415,14 +415,14 @@
|
|
|
415
415
|
Object.defineProperty(TuiValueDecorationComponent.prototype, "placeholder", {
|
|
416
416
|
get: function () {
|
|
417
417
|
var _a;
|
|
418
|
-
return ((_a = this.textfield.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.placeholder) ||
|
|
418
|
+
return ((_a = this.textfield.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.placeholder) || '';
|
|
419
419
|
},
|
|
420
420
|
enumerable: false,
|
|
421
421
|
configurable: true
|
|
422
422
|
});
|
|
423
423
|
Object.defineProperty(TuiValueDecorationComponent.prototype, "exampleText", {
|
|
424
424
|
get: function () {
|
|
425
|
-
return !this.value && this.focused ? this.placeholder :
|
|
425
|
+
return !this.value && this.focused ? this.placeholder : '';
|
|
426
426
|
},
|
|
427
427
|
enumerable: false,
|
|
428
428
|
configurable: true
|
|
@@ -457,9 +457,9 @@
|
|
|
457
457
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiValueDecorationComponent, decorators: [{
|
|
458
458
|
type: i0.Component,
|
|
459
459
|
args: [{
|
|
460
|
-
selector:
|
|
461
|
-
templateUrl:
|
|
462
|
-
styleUrls: [
|
|
460
|
+
selector: 'tui-value-decoration',
|
|
461
|
+
templateUrl: './value-decoration.template.html',
|
|
462
|
+
styleUrls: ['./value-decoration.style.less'],
|
|
463
463
|
// It follows Change Detection of PrimitiveTextfield
|
|
464
464
|
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
465
465
|
}]
|
|
@@ -470,13 +470,13 @@
|
|
|
470
470
|
}] }];
|
|
471
471
|
}, propDecorators: { pre: [{
|
|
472
472
|
type: i0.ViewChild,
|
|
473
|
-
args: [
|
|
473
|
+
args: ['pre', { read: i0.ElementRef, static: true }]
|
|
474
474
|
}], isContextTable: [{
|
|
475
475
|
type: i0.HostBinding,
|
|
476
|
-
args: [
|
|
476
|
+
args: ['class._table']
|
|
477
477
|
}], ngDoCheck: [{
|
|
478
478
|
type: i0.HostListener,
|
|
479
|
-
args: [
|
|
479
|
+
args: ['animationstart']
|
|
480
480
|
}] } });
|
|
481
481
|
|
|
482
482
|
var ICON_PADDING = 1.75;
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
_this.elementRef = elementRef;
|
|
494
494
|
_this.editable = true;
|
|
495
495
|
/** @deprecated use `tuiTextfieldFiller` from {@link TuiTextfieldControllerModule} instead */
|
|
496
|
-
_this.textfieldFiller =
|
|
496
|
+
_this.textfieldFiller = '';
|
|
497
497
|
/**
|
|
498
498
|
* @deprecated:
|
|
499
499
|
* use `tuiTextfieldOptionsProvider({iconCleaner: `tuiIconChevronUp`})`
|
|
@@ -503,10 +503,10 @@
|
|
|
503
503
|
_this.invalid = false;
|
|
504
504
|
_this.disabled = false;
|
|
505
505
|
/** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
|
|
506
|
-
_this.textfieldPrefix =
|
|
506
|
+
_this.textfieldPrefix = '';
|
|
507
507
|
/** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
|
|
508
|
-
_this.textfieldPostfix =
|
|
509
|
-
_this.value =
|
|
508
|
+
_this.textfieldPostfix = '';
|
|
509
|
+
_this.value = '';
|
|
510
510
|
_this.valueChange = new i0.EventEmitter();
|
|
511
511
|
_this.autofilled = false;
|
|
512
512
|
return _this;
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
get: function () {
|
|
610
610
|
return (this.focused &&
|
|
611
611
|
this.placeholderVisible &&
|
|
612
|
-
(this.size ===
|
|
612
|
+
(this.size === 's' || (this.size === 'm' && !this.placeholderRaisable)));
|
|
613
613
|
},
|
|
614
614
|
enumerable: false,
|
|
615
615
|
configurable: true
|
|
@@ -672,8 +672,8 @@
|
|
|
672
672
|
// Safari expiration date autofill workaround
|
|
673
673
|
get: function () {
|
|
674
674
|
var _a;
|
|
675
|
-
return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.autocomplete) ===
|
|
676
|
-
?
|
|
675
|
+
return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.autocomplete) === 'cc-exp'
|
|
676
|
+
? 'ccexpiryyear'
|
|
677
677
|
: null;
|
|
678
678
|
},
|
|
679
679
|
enumerable: false,
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "computedId", {
|
|
683
683
|
get: function () {
|
|
684
684
|
var _a;
|
|
685
|
-
return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.id) ||
|
|
685
|
+
return ((_a = this.nativeFocusableElement) === null || _a === void 0 ? void 0 : _a.id) || '';
|
|
686
686
|
},
|
|
687
687
|
enumerable: false,
|
|
688
688
|
configurable: true
|
|
@@ -691,13 +691,13 @@
|
|
|
691
691
|
this.updateFocused(focused);
|
|
692
692
|
};
|
|
693
693
|
TuiPrimitiveTextfieldComponent.prototype.getIndent$ = function (element) {
|
|
694
|
-
return i10.fromEvent(element,
|
|
694
|
+
return i10.fromEvent(element, 'scroll').pipe(operators.map(function () { return -1 * element.scrollLeft; }));
|
|
695
695
|
};
|
|
696
696
|
TuiPrimitiveTextfieldComponent.prototype.clear = function () {
|
|
697
697
|
if (this.nativeFocusableElement) {
|
|
698
|
-
this.nativeFocusableElement.value =
|
|
698
|
+
this.nativeFocusableElement.value = '';
|
|
699
699
|
}
|
|
700
|
-
this.updateValue(
|
|
700
|
+
this.updateValue('');
|
|
701
701
|
};
|
|
702
702
|
TuiPrimitiveTextfieldComponent.prototype.onMouseDown = function (event) {
|
|
703
703
|
var nativeFocusableElement = this.nativeFocusableElement;
|
|
@@ -715,14 +715,14 @@
|
|
|
715
715
|
};
|
|
716
716
|
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "iconPaddingLeft", {
|
|
717
717
|
get: function () {
|
|
718
|
-
return this.size ===
|
|
718
|
+
return this.size === 's' ? ICON_PADDING_S : ICON_PADDING;
|
|
719
719
|
},
|
|
720
720
|
enumerable: false,
|
|
721
721
|
configurable: true
|
|
722
722
|
});
|
|
723
723
|
Object.defineProperty(TuiPrimitiveTextfieldComponent.prototype, "placeholderRaisable", {
|
|
724
724
|
get: function () {
|
|
725
|
-
return this.size !==
|
|
725
|
+
return this.size !== 's' && !this.controller.labelOutside;
|
|
726
726
|
},
|
|
727
727
|
enumerable: false,
|
|
728
728
|
configurable: true
|
|
@@ -778,9 +778,9 @@
|
|
|
778
778
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPrimitiveTextfieldComponent, decorators: [{
|
|
779
779
|
type: i0.Component,
|
|
780
780
|
args: [{
|
|
781
|
-
selector:
|
|
782
|
-
templateUrl:
|
|
783
|
-
styleUrls: [
|
|
781
|
+
selector: 'tui-primitive-textfield',
|
|
782
|
+
templateUrl: './primitive-textfield.template.html',
|
|
783
|
+
styleUrls: ['./primitive-textfield.style.less'],
|
|
784
784
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
785
785
|
providers: [
|
|
786
786
|
i6.tuiAsFocusableItemAccessor(TuiPrimitiveTextfieldComponent),
|
|
@@ -788,9 +788,9 @@
|
|
|
788
788
|
providers.MODE_PROVIDER,
|
|
789
789
|
],
|
|
790
790
|
host: {
|
|
791
|
-
'($.data-mode.attr)':
|
|
792
|
-
'[class._autofilled]':
|
|
793
|
-
'[class._label-outside]':
|
|
791
|
+
'($.data-mode.attr)': 'mode$',
|
|
792
|
+
'[class._autofilled]': 'autofilled',
|
|
793
|
+
'[class._label-outside]': 'controller.labelOutside',
|
|
794
794
|
},
|
|
795
795
|
}]
|
|
796
796
|
}], ctorParameters: function () {
|
|
@@ -817,29 +817,29 @@
|
|
|
817
817
|
}] }];
|
|
818
818
|
}, propDecorators: { focusableElement: [{
|
|
819
819
|
type: i0.ViewChild,
|
|
820
|
-
args: [
|
|
820
|
+
args: ['focusableElement']
|
|
821
821
|
}], editable: [{
|
|
822
822
|
type: i0.Input
|
|
823
823
|
}], textfieldFiller: [{
|
|
824
824
|
type: i0.Input,
|
|
825
|
-
args: [
|
|
825
|
+
args: ['filler']
|
|
826
826
|
}], iconCleaner: [{
|
|
827
827
|
type: i0.Input
|
|
828
828
|
}], readOnly: [{
|
|
829
829
|
type: i0.Input
|
|
830
830
|
}, {
|
|
831
831
|
type: i0.HostBinding,
|
|
832
|
-
args: [
|
|
832
|
+
args: ['class._readonly']
|
|
833
833
|
}], invalid: [{
|
|
834
834
|
type: i0.Input
|
|
835
835
|
}], disabled: [{
|
|
836
836
|
type: i0.Input
|
|
837
837
|
}], textfieldPrefix: [{
|
|
838
838
|
type: i0.Input,
|
|
839
|
-
args: [
|
|
839
|
+
args: ['prefix']
|
|
840
840
|
}], textfieldPostfix: [{
|
|
841
841
|
type: i0.Input,
|
|
842
|
-
args: [
|
|
842
|
+
args: ['postfix']
|
|
843
843
|
}], value: [{
|
|
844
844
|
type: i0.Input
|
|
845
845
|
}], valueChange: [{
|
|
@@ -849,25 +849,25 @@
|
|
|
849
849
|
args: [i9.PolymorpheusOutletDirective, { descendants: true }]
|
|
850
850
|
}], size: [{
|
|
851
851
|
type: i0.HostBinding,
|
|
852
|
-
args: [
|
|
852
|
+
args: ['attr.data-size']
|
|
853
853
|
}], computedInvalid: [{
|
|
854
854
|
type: i0.HostBinding,
|
|
855
|
-
args: [
|
|
855
|
+
args: ['class._invalid']
|
|
856
856
|
}], inputHidden: [{
|
|
857
857
|
type: i0.HostBinding,
|
|
858
|
-
args: [
|
|
858
|
+
args: ['class._hidden']
|
|
859
859
|
}], borderStart: [{
|
|
860
860
|
type: i0.HostBinding,
|
|
861
|
-
args: [
|
|
861
|
+
args: ['style.--border-start.rem']
|
|
862
862
|
}], borderEnd: [{
|
|
863
863
|
type: i0.HostBinding,
|
|
864
|
-
args: [
|
|
864
|
+
args: ['style.--border-end.rem']
|
|
865
865
|
}], onFocused: [{
|
|
866
866
|
type: i0.HostListener,
|
|
867
|
-
args: [
|
|
867
|
+
args: ['focusin', ['true']]
|
|
868
868
|
}, {
|
|
869
869
|
type: i0.HostListener,
|
|
870
|
-
args: [
|
|
870
|
+
args: ['focusout', ['false']]
|
|
871
871
|
}], getIndent$: [] } });
|
|
872
872
|
|
|
873
873
|
var TuiPrimitiveTextfieldDirective = /** @class */ (function (_super) {
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiPrimitiveTextfieldDirective, decorators: [{
|
|
901
901
|
type: i0.Directive,
|
|
902
902
|
args: [{
|
|
903
|
-
selector:
|
|
903
|
+
selector: 'tui-primitive-textfield',
|
|
904
904
|
providers: [tokens.tuiAsTextfieldHost(TuiPrimitiveTextfieldDirective)],
|
|
905
905
|
}]
|
|
906
906
|
}], ctorParameters: function () {
|
|
@@ -928,23 +928,23 @@
|
|
|
928
928
|
return TuiTextfieldComponent;
|
|
929
929
|
}());
|
|
930
930
|
TuiTextfieldComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldComponent, deps: [{ token: tokens.TUI_TEXTFIELD_HOST }, { token: i1$1.TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: i0.ElementRef }, { token: i6.TuiIdService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
931
|
-
TuiTextfieldComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]", host: { attributes: { "type": "text" }, listeners: { "input": "host.onValueChange($event.target.value)" }, properties: { "attr.aria-invalid": "host.invalid", "attr.disabled": "host.disabled || null", "tabIndex": "host.focusable ? 0 : -1", "readOnly": "host.readOnly", "value": "host.value", "id": "this.id" } }, providers: [i1$1.TEXTFIELD_CONTROLLER_PROVIDER], ngImport: i0__namespace, template:
|
|
931
|
+
TuiTextfieldComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]", host: { attributes: { "type": "text" }, listeners: { "input": "host.onValueChange($event.target.value)" }, properties: { "attr.aria-invalid": "host.invalid", "attr.disabled": "host.disabled || null", "tabIndex": "host.focusable ? 0 : -1", "readOnly": "host.readOnly", "value": "host.value", "id": "this.id" } }, providers: [i1$1.TEXTFIELD_CONTROLLER_PROVIDER], ngImport: i0__namespace, template: '', isInline: true, styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}:host:-webkit-autofill,:host:-webkit-autofill:hover,:host:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}:host[data-mode=onDark] :host:-webkit-autofill,:host :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill,:host :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill,:host[data-mode=onDark] :host:-webkit-autofill:hover,:host :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill:hover,:host :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill:hover,:host[data-mode=onDark] :host:-webkit-autofill:focus,:host :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill:focus,:host :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}:host[data-size=s] :host,:host :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),:host :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=l] :host,:host :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),:host :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled :host,:host :host-context(tui-primitive-textfield._disabled),:host :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) :host,:host :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) :host:-webkit-autofill+.t-content .t-placeholder,:host :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) :host,:host :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.125rem}:host[data-size=m]:not(._label-outside) :host:-webkit-autofill+.t-content .t-placeholder,:host :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input:host,:host :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}:host::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}:host::placeholder{color:var(--tui-text-03);opacity:0}:host :host-context(tui-primitive-textfield[data-mode=\"onDark\"])::-ms-input-placeholder,:host :host-context(tui-text-area[data-mode=\"onDark\"])::-ms-input-placeholder{color:var(--tui-text-03-night)}:host :host-context(tui-primitive-textfield[data-mode=\"onDark\"])::placeholder,:host :host-context(tui-text-area[data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host :host-context(tui-primitive-textfield._focused:not(._readonly))::-ms-input-placeholder,:host :host-context(tui-text-area._focused:not(._readonly))::-ms-input-placeholder{opacity:1}:host :host-context(tui-primitive-textfield._focused:not(._readonly))::placeholder,:host :host-context(tui-text-area._focused:not(._readonly))::placeholder{opacity:1}:host::-webkit-caps-lock-indicator,:host::-webkit-contacts-auto-fill-button,:host::-webkit-credit-card-auto-fill-button,:host::-webkit-credentials-auto-fill-button,:host::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}textarea:host{white-space:normal}textarea:host :host-context(tui-text-area._ios){padding-left:.8125rem}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
932
932
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiTextfieldComponent, decorators: [{
|
|
933
933
|
type: i0.Component,
|
|
934
934
|
args: [{
|
|
935
|
-
selector:
|
|
936
|
-
template:
|
|
935
|
+
selector: 'input[tuiTextfield], textarea[tuiTextfield]',
|
|
936
|
+
template: '',
|
|
937
937
|
providers: [i1$1.TEXTFIELD_CONTROLLER_PROVIDER],
|
|
938
938
|
host: {
|
|
939
|
-
type:
|
|
940
|
-
'[attr.aria-invalid]':
|
|
941
|
-
'[attr.disabled]':
|
|
942
|
-
'[tabIndex]':
|
|
943
|
-
'[readOnly]':
|
|
944
|
-
'[value]':
|
|
945
|
-
'(input)':
|
|
939
|
+
type: 'text',
|
|
940
|
+
'[attr.aria-invalid]': 'host.invalid',
|
|
941
|
+
'[attr.disabled]': 'host.disabled || null',
|
|
942
|
+
'[tabIndex]': 'host.focusable ? 0 : -1',
|
|
943
|
+
'[readOnly]': 'host.readOnly',
|
|
944
|
+
'[value]': 'host.value',
|
|
945
|
+
'(input)': 'host.onValueChange($event.target.value)',
|
|
946
946
|
},
|
|
947
|
-
styleUrls: [
|
|
947
|
+
styleUrls: ['./textfield.style.less'],
|
|
948
948
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
949
949
|
}]
|
|
950
950
|
}], ctorParameters: function () {
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
}] }];
|
|
964
964
|
}, propDecorators: { id: [{
|
|
965
965
|
type: i0.HostBinding,
|
|
966
|
-
args: [
|
|
966
|
+
args: ['id']
|
|
967
967
|
}] } });
|
|
968
968
|
|
|
969
969
|
var TuiPrimitiveTextfieldModule = /** @class */ (function () {
|