@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
|
@@ -359,13 +359,13 @@
|
|
|
359
359
|
|
|
360
360
|
/** Default values for hint options */
|
|
361
361
|
var TUI_HINT_DEFAULT_OPTIONS = {
|
|
362
|
-
direction:
|
|
362
|
+
direction: 'bottom-left',
|
|
363
363
|
showDelay: 500,
|
|
364
364
|
hideDelay: 200,
|
|
365
|
-
appearance:
|
|
366
|
-
icon:
|
|
365
|
+
appearance: '',
|
|
366
|
+
icon: 'tuiIconTooltipLarge',
|
|
367
367
|
};
|
|
368
|
-
var TUI_HINT_OPTIONS = new i0.InjectionToken(
|
|
368
|
+
var TUI_HINT_OPTIONS = new i0.InjectionToken('[TUI_HINT_OPTIONS] Default parameters for hint directive', {
|
|
369
369
|
factory: function () { return TUI_HINT_DEFAULT_OPTIONS; },
|
|
370
370
|
});
|
|
371
371
|
var tuiHintOptionsProvider = function (override) { return ({
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
function TuiHintOptionsDirective(options) {
|
|
382
382
|
var _this = _super.call(this) || this;
|
|
383
383
|
_this.options = options;
|
|
384
|
-
_this.content =
|
|
384
|
+
_this.content = '';
|
|
385
385
|
_this.direction = _this.options.direction;
|
|
386
386
|
_this.appearance = _this.options.appearance;
|
|
387
387
|
_this.showDelay = _this.options.showDelay;
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintOptionsDirective, decorators: [{
|
|
417
417
|
type: i0.Directive,
|
|
418
418
|
args: [{
|
|
419
|
-
selector:
|
|
419
|
+
selector: '[tuiHintContent]',
|
|
420
420
|
providers: [
|
|
421
421
|
{
|
|
422
422
|
provide: TUI_HINT_OPTIONS,
|
|
@@ -433,19 +433,19 @@
|
|
|
433
433
|
}] }];
|
|
434
434
|
}, propDecorators: { content: [{
|
|
435
435
|
type: i0.Input,
|
|
436
|
-
args: [
|
|
436
|
+
args: ['tuiHintContent']
|
|
437
437
|
}], direction: [{
|
|
438
438
|
type: i0.Input,
|
|
439
|
-
args: [
|
|
439
|
+
args: ['tuiHintDirection']
|
|
440
440
|
}], appearance: [{
|
|
441
441
|
type: i0.Input,
|
|
442
|
-
args: [
|
|
442
|
+
args: ['tuiHintAppearance']
|
|
443
443
|
}], showDelay: [{
|
|
444
444
|
type: i0.Input,
|
|
445
|
-
args: [
|
|
445
|
+
args: ['tuiHintShowDelay']
|
|
446
446
|
}], hideDelay: [{
|
|
447
447
|
type: i0.Input,
|
|
448
|
-
args: [
|
|
448
|
+
args: ['tuiHintHideDelay']
|
|
449
449
|
}] } });
|
|
450
450
|
|
|
451
451
|
var TuiHintHoverDirective = /** @class */ (function (_super) {
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
|
|
477
477
|
type: i0.Directive,
|
|
478
478
|
args: [{
|
|
479
|
-
selector:
|
|
479
|
+
selector: '[tuiHint]:not(ng-container)',
|
|
480
480
|
providers: [i3$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
|
|
481
481
|
}]
|
|
482
482
|
}], ctorParameters: function () {
|
|
@@ -489,13 +489,13 @@
|
|
|
489
489
|
}] }];
|
|
490
490
|
}, propDecorators: { showDelay: [{
|
|
491
491
|
type: i0.Input,
|
|
492
|
-
args: [
|
|
492
|
+
args: ['tuiHintShowDelay']
|
|
493
493
|
}], hideDelay: [{
|
|
494
494
|
type: i0.Input,
|
|
495
|
-
args: [
|
|
495
|
+
args: ['tuiHintHideDelay']
|
|
496
496
|
}], toggle: [{
|
|
497
497
|
type: i0.HostListener,
|
|
498
|
-
args: [
|
|
498
|
+
args: ['click', ['true']]
|
|
499
499
|
}] } });
|
|
500
500
|
|
|
501
501
|
var TuiHintPointerDirective = /** @class */ (function (_super) {
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
|
|
523
523
|
type: i0.Directive,
|
|
524
524
|
args: [{
|
|
525
|
-
selector:
|
|
525
|
+
selector: '[tuiHint][tuiHintPointer]',
|
|
526
526
|
providers: [
|
|
527
527
|
i3$1.tuiAsRectAccessor(TuiHintPointerDirective),
|
|
528
528
|
i3$1.tuiAsDriver(TuiHintPointerDirective),
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
}]
|
|
531
531
|
}], propDecorators: { onMove: [{
|
|
532
532
|
type: i0.HostListener,
|
|
533
|
-
args: [
|
|
533
|
+
args: ['mousemove.silent', ['$event']]
|
|
534
534
|
}] } });
|
|
535
535
|
|
|
536
536
|
var TuiHintComponent = /** @class */ (function () {
|
|
@@ -544,7 +544,7 @@
|
|
|
544
544
|
this.hover = hover;
|
|
545
545
|
this.pointer = pointer;
|
|
546
546
|
this.mode = mode;
|
|
547
|
-
this.animation = Object.assign({ value:
|
|
547
|
+
this.animation = Object.assign({ value: '' }, this.options);
|
|
548
548
|
this.appearance = this.polymorpheus.$implicit.appearance || ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.mode);
|
|
549
549
|
this.untouchable = !!this.pointer;
|
|
550
550
|
position$.pipe(operators.takeUntil(destroy$)).subscribe(function (_b) {
|
|
@@ -582,8 +582,8 @@
|
|
|
582
582
|
var beakLeft = rect.left + rect.width / 2 - safeLeft;
|
|
583
583
|
style.top = i3.tuiPx(top);
|
|
584
584
|
style.left = i3.tuiPx(safeLeft);
|
|
585
|
-
style.setProperty(
|
|
586
|
-
style.setProperty(
|
|
585
|
+
style.setProperty('--top', i3.tuiPx(i3.tuiClamp(beakTop, 0.5, height - 1)));
|
|
586
|
+
style.setProperty('--left', i3.tuiPx(i3.tuiClamp(beakLeft, 0.5, width - 1)));
|
|
587
587
|
};
|
|
588
588
|
return TuiHintComponent;
|
|
589
589
|
}());
|
|
@@ -595,9 +595,9 @@
|
|
|
595
595
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
|
|
596
596
|
type: i0.Component,
|
|
597
597
|
args: [{
|
|
598
|
-
selector:
|
|
598
|
+
selector: 'tui-hint',
|
|
599
599
|
template: "\n <ng-container *polymorpheusOutlet=\"content as text; context: context\">\n {{ text }}\n </ng-container>\n ",
|
|
600
|
-
styleUrls: [
|
|
600
|
+
styleUrls: ['./hint.style.less'],
|
|
601
601
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
602
602
|
providers: [i3.TuiDestroyService, i2$1.TuiPositionService, i3.TuiHoveredService],
|
|
603
603
|
animations: [animations.tuiFadeIn],
|
|
@@ -642,16 +642,16 @@
|
|
|
642
642
|
}] }];
|
|
643
643
|
}, propDecorators: { animation: [{
|
|
644
644
|
type: i0.HostBinding,
|
|
645
|
-
args: [
|
|
645
|
+
args: ['@tuiFadeIn']
|
|
646
646
|
}], appearance: [{
|
|
647
647
|
type: i0.HostBinding,
|
|
648
|
-
args: [
|
|
648
|
+
args: ['attr.data-appearance']
|
|
649
649
|
}], untouchable: [{
|
|
650
650
|
type: i0.HostBinding,
|
|
651
|
-
args: [
|
|
651
|
+
args: ['class._untouchable']
|
|
652
652
|
}], onClick: [{
|
|
653
653
|
type: i0.HostListener,
|
|
654
|
-
args: [
|
|
654
|
+
args: ['document:click', ['$event.target']]
|
|
655
655
|
}], update: [] } });
|
|
656
656
|
|
|
657
657
|
var TUI_HINT_COMPONENT = new i0.InjectionToken("[TUI_HINT_COMPONENT] A component to display a hint", {
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
this.hintService = hintService;
|
|
666
666
|
this.options = options;
|
|
667
667
|
this.activeZone = activeZone;
|
|
668
|
-
this.content =
|
|
668
|
+
this.content = '';
|
|
669
669
|
this.tuiHintAppearance = null;
|
|
670
670
|
}
|
|
671
671
|
Object.defineProperty(TuiHintDirective.prototype, "appearance", {
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
|
|
717
717
|
type: i0.Directive,
|
|
718
718
|
args: [{
|
|
719
|
-
selector:
|
|
719
|
+
selector: '[tuiHint]:not(ng-container)',
|
|
720
720
|
providers: [
|
|
721
721
|
i3$1.tuiAsRectAccessor(TuiHintDirective),
|
|
722
722
|
i3$1.tuiAsVehicle(TuiHintDirective),
|
|
@@ -748,10 +748,10 @@
|
|
|
748
748
|
}] }];
|
|
749
749
|
}, propDecorators: { content: [{
|
|
750
750
|
type: i0.Input,
|
|
751
|
-
args: [
|
|
751
|
+
args: ['tuiHint']
|
|
752
752
|
}], context: [{
|
|
753
753
|
type: i0.Input,
|
|
754
|
-
args: [
|
|
754
|
+
args: ['tuiHintContext']
|
|
755
755
|
}], tuiHintAppearance: [{
|
|
756
756
|
type: i0.Input
|
|
757
757
|
}] } });
|
|
@@ -764,13 +764,13 @@
|
|
|
764
764
|
_this.hover$ = hover$;
|
|
765
765
|
_this.documentRef = documentRef;
|
|
766
766
|
_this.elementRef = elementRef;
|
|
767
|
-
_this.focus$ = i3.tuiTypedFromEvent(_this.documentRef,
|
|
767
|
+
_this.focus$ = i3.tuiTypedFromEvent(_this.documentRef, 'keydown', {
|
|
768
768
|
capture: true,
|
|
769
769
|
}).pipe(operators.switchMap(function () { return _this.focused
|
|
770
770
|
? i2.of(false)
|
|
771
|
-
: i2.merge(i3.tuiTypedFromEvent(_this.documentRef,
|
|
771
|
+
: i2.merge(i3.tuiTypedFromEvent(_this.documentRef, 'keyup'), i3.tuiTypedFromEvent(_this.element, 'blur')).pipe(operators.map(function () { return _this.focused; })); }), operators.debounce(function (visible) { return (visible ? i2.timer(1000) : i2.of(null)); }), operators.startWith(false), operators.distinctUntilChanged(), operators.skip(1), i3.tuiZoneOptimized(_this.ngZone));
|
|
772
772
|
_this.stream$ = i2.merge(_this.hover$, _this.focus$);
|
|
773
|
-
_this.tuiHintDescribe =
|
|
773
|
+
_this.tuiHintDescribe = '';
|
|
774
774
|
return _this;
|
|
775
775
|
}
|
|
776
776
|
Object.defineProperty(TuiHintDescribeDirective.prototype, "focused", {
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
|
|
799
799
|
type: i0.Directive,
|
|
800
800
|
args: [{
|
|
801
|
-
selector:
|
|
801
|
+
selector: '[tuiHintDescribe]',
|
|
802
802
|
providers: [i3$1.tuiAsDriver(TuiHintDescribeDirective)],
|
|
803
803
|
}]
|
|
804
804
|
}], ctorParameters: function () {
|
|
@@ -831,7 +831,7 @@
|
|
|
831
831
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
|
|
832
832
|
type: i0.Directive,
|
|
833
833
|
args: [{
|
|
834
|
-
selector:
|
|
834
|
+
selector: '[tuiHint]',
|
|
835
835
|
providers: [i3.TuiDestroyService],
|
|
836
836
|
}]
|
|
837
837
|
}] });
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
|
|
853
853
|
type: i0.Directive,
|
|
854
854
|
args: [{
|
|
855
|
-
selector:
|
|
855
|
+
selector: '[tuiHint][tuiHintHost]',
|
|
856
856
|
providers: [i3$1.tuiAsRectAccessor(TuiHintHostDirective)],
|
|
857
857
|
}]
|
|
858
858
|
}], propDecorators: { tuiHintHost: [{
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
|
|
878
878
|
type: i0.Directive,
|
|
879
879
|
args: [{
|
|
880
|
-
selector:
|
|
880
|
+
selector: '[tuiHint][tuiHintManual]',
|
|
881
881
|
providers: [i3$1.tuiAsDriver(TuiHintManualDirective)],
|
|
882
882
|
}]
|
|
883
883
|
}], ctorParameters: function () { return []; }, propDecorators: { tuiHintManual: [{
|
|
@@ -906,30 +906,30 @@
|
|
|
906
906
|
var hostRect = this.accessor.getClientRect();
|
|
907
907
|
var leftCenter = hostRect.left + hostRect.width / 2;
|
|
908
908
|
var topCenter = hostRect.top + hostRect.height / 2;
|
|
909
|
-
this.points[
|
|
910
|
-
this.points[
|
|
911
|
-
this.points.top[TOP] = this.points[
|
|
909
|
+
this.points['top-left'][TOP] = hostRect.top - height - OFFSET;
|
|
910
|
+
this.points['top-left'][LEFT] = leftCenter - width + ARROW_OFFSET;
|
|
911
|
+
this.points.top[TOP] = this.points['top-left'][TOP];
|
|
912
912
|
this.points.top[LEFT] = leftCenter - width / 2;
|
|
913
|
-
this.points[
|
|
914
|
-
this.points[
|
|
915
|
-
this.points[
|
|
916
|
-
this.points[
|
|
917
|
-
this.points.bottom[TOP] = this.points[
|
|
913
|
+
this.points['top-right'][TOP] = this.points['top-left'][TOP];
|
|
914
|
+
this.points['top-right'][LEFT] = leftCenter - ARROW_OFFSET;
|
|
915
|
+
this.points['bottom-left'][TOP] = hostRect.bottom + OFFSET;
|
|
916
|
+
this.points['bottom-left'][LEFT] = this.points['top-left'][LEFT];
|
|
917
|
+
this.points.bottom[TOP] = this.points['bottom-left'][TOP];
|
|
918
918
|
this.points.bottom[LEFT] = this.points.top[LEFT];
|
|
919
|
-
this.points[
|
|
920
|
-
this.points[
|
|
921
|
-
this.points[
|
|
922
|
-
this.points[
|
|
919
|
+
this.points['bottom-right'][TOP] = this.points['bottom-left'][TOP];
|
|
920
|
+
this.points['bottom-right'][LEFT] = this.points['top-right'][LEFT];
|
|
921
|
+
this.points['left-top'][TOP] = topCenter - height + ARROW_OFFSET;
|
|
922
|
+
this.points['left-top'][LEFT] = hostRect.left - width - OFFSET;
|
|
923
923
|
this.points.left[TOP] = topCenter - height / 2;
|
|
924
|
-
this.points.left[LEFT] = this.points[
|
|
925
|
-
this.points[
|
|
926
|
-
this.points[
|
|
927
|
-
this.points[
|
|
928
|
-
this.points[
|
|
924
|
+
this.points.left[LEFT] = this.points['left-top'][LEFT];
|
|
925
|
+
this.points['left-bottom'][TOP] = topCenter - ARROW_OFFSET;
|
|
926
|
+
this.points['left-bottom'][LEFT] = this.points['left-top'][LEFT];
|
|
927
|
+
this.points['right-top'][TOP] = this.points['left-top'][TOP];
|
|
928
|
+
this.points['right-top'][LEFT] = hostRect.right + OFFSET;
|
|
929
929
|
this.points.right[TOP] = this.points.left[TOP];
|
|
930
|
-
this.points.right[LEFT] = this.points[
|
|
931
|
-
this.points[
|
|
932
|
-
this.points[
|
|
930
|
+
this.points.right[LEFT] = this.points['right-top'][LEFT];
|
|
931
|
+
this.points['right-bottom'][TOP] = this.points['left-bottom'][TOP];
|
|
932
|
+
this.points['right-bottom'][LEFT] = this.points['right-top'][LEFT];
|
|
933
933
|
if (this.checkPosition(this.points[this.direction], width, height)) {
|
|
934
934
|
return this.points[this.direction];
|
|
935
935
|
}
|
|
@@ -939,8 +939,8 @@
|
|
|
939
939
|
Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
|
|
940
940
|
get: function () {
|
|
941
941
|
return this.points.top[TOP] > this.windowRef.innerHeight - this.points.bottom[TOP]
|
|
942
|
-
?
|
|
943
|
-
:
|
|
942
|
+
? 'top'
|
|
943
|
+
: 'bottom';
|
|
944
944
|
},
|
|
945
945
|
enumerable: false,
|
|
946
946
|
configurable: true
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
|
|
964
964
|
type: i0.Directive,
|
|
965
965
|
args: [{
|
|
966
|
-
selector:
|
|
966
|
+
selector: '[tuiHint]:not([tuiHintCustomPosition])',
|
|
967
967
|
providers: [i3$1.tuiAsPositionAccessor(TuiHintPositionDirective)],
|
|
968
968
|
}]
|
|
969
969
|
}], ctorParameters: function () {
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
}] }];
|
|
980
980
|
}, propDecorators: { direction: [{
|
|
981
981
|
type: i0.Input,
|
|
982
|
-
args: [
|
|
982
|
+
args: ['tuiHintDirection']
|
|
983
983
|
}] } });
|
|
984
984
|
|
|
985
985
|
var TuiHintModule = /** @class */ (function () {
|