@taiga-ui/kit 5.0.0-canary.26e65fa → 5.0.0-canary.2da416d
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/components/calendar-month/calendar-month.component.d.ts +4 -3
- package/components/combo-box/combo-box.directive.d.ts +1 -0
- package/components/copy/button-copy.component.d.ts +17 -0
- package/components/copy/copy.d.ts +2 -1
- package/components/copy/copy.directive.d.ts +5 -2
- package/components/copy/copy.options.d.ts +1 -3
- package/components/copy/index.d.ts +1 -0
- package/components/index.d.ts +0 -3
- package/components/input-chip/input-chip.component.d.ts +5 -0
- package/components/input-chip/input-chip.directive.d.ts +1 -1
- package/components/input-date/input-date.directive.d.ts +2 -2
- package/components/input-date/input-date.options.d.ts +2 -4
- package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
- package/components/input-month/input-month.directive.d.ts +1 -1
- package/components/input-month/input-month.options.d.ts +1 -7
- package/components/input-month-range/input-month-range.directive.d.ts +1 -1
- package/components/input-month-range/input-month-range.options.d.ts +1 -3
- package/components/input-number/input-number.directive.d.ts +1 -0
- package/components/input-number/number-mask.directive.d.ts +1 -1
- package/components/input-range/input-range.component.d.ts +1 -0
- package/components/input-slider/input-slider.d.ts +1 -1
- package/components/input-time/input-time.directive.d.ts +1 -1
- package/components/input-time/input-time.options.d.ts +1 -3
- package/components/input-year/input-year.directive.d.ts +1 -1
- package/components/line-clamp/line-clamp-box.component.d.ts +2 -0
- package/components/line-clamp/line-clamp.component.d.ts +2 -0
- package/components/range/range.component.d.ts +2 -2
- package/components/select/select-option/select-option.component.d.ts +1 -1
- package/components/switch/switch.component.d.ts +1 -1
- package/components/switch/switch.options.d.ts +1 -1
- package/components/tabs/tabs-with-more.component.d.ts +3 -3
- package/directives/password/password.options.d.ts +2 -4
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +6 -7
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +2 -4
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge.mjs +3 -2
- package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs +1 -3
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-block.mjs +3 -2
- package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +2 -4
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +24 -16
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-carousel.mjs +2 -6
- package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-chip.mjs +4 -3
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs +6 -2
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -4
- package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -2
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-copy.mjs +87 -24
- package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +6 -10
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-filter.mjs +1 -3
- package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs +16 -10
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-color.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -5
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +1 -3
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date.mjs +6 -5
- package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -2
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -10
- package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-number.mjs +25 -16
- package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-range.mjs +6 -2
- package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-time.mjs +4 -3
- package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-year.mjs +3 -2
- package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +1 -3
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-like.mjs +3 -2
- package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +17 -8
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-message.mjs +3 -2
- package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs +5 -7
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +3 -5
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pagination.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pin.mjs +5 -3
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +10 -14
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-progress.mjs +8 -10
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-push.mjs +3 -5
- package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-range.mjs +17 -14
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +1 -3
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +3 -9
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-select.mjs +6 -9
- package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-status.mjs +5 -3
- package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-switch.mjs +4 -3
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +24 -21
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-textarea.mjs +5 -7
- package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tiles.mjs +1 -3
- package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-toast.mjs +4 -5
- package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tree.mjs +4 -12
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components.mjs +0 -3
- package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs +3 -5
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-connected.mjs +1 -3
- package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +1 -3
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-password.mjs +1 -7
- package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +1 -3
- package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs +1 -3
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-flag.mjs +1 -3
- package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-initials.mjs +1 -3
- package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +1 -3
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +1 -3
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs +18 -54
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
- package/package.json +41 -54
- package/tokens/i18n.d.ts +0 -1
- package/components/checkbox/checkbox.component.d.ts +0 -10
- package/components/checkbox/checkbox.options.d.ts +0 -10
- package/components/checkbox/index.d.ts +0 -2
- package/components/radio/index.d.ts +0 -4
- package/components/radio/radio.component.d.ts +0 -18
- package/components/radio/radio.d.ts +0 -3
- package/components/radio/radio.directive.d.ts +0 -8
- package/components/radio/radio.options.d.ts +0 -7
- package/components/slider/helpers/key-steps.d.ts +0 -27
- package/components/slider/helpers/slider-key-steps.directive.d.ts +0 -32
- package/components/slider/helpers/slider-readonly.directive.d.ts +0 -15
- package/components/slider/helpers/slider-thumb-label.component.d.ts +0 -13
- package/components/slider/index.d.ts +0 -6
- package/components/slider/slider.component.d.ts +0 -22
- package/components/slider/slider.d.ts +0 -5
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs +0 -36
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-radio.mjs +0 -93
- package/fesm2022/taiga-ui-kit-components-radio.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-slider.mjs +0 -343
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +0 -1
- package/styles/components/avatar.less +0 -188
- package/styles/components/badge.less +0 -127
- package/styles/components/block.less +0 -118
- package/styles/components/checkbox.less +0 -84
- package/styles/components/chip.less +0 -139
- package/styles/components/comment.less +0 -64
- package/styles/components/compass.less +0 -49
- package/styles/components/like.less +0 -67
- package/styles/components/message.less +0 -33
- package/styles/components/pin.less +0 -164
- package/styles/components/progress-bar.less +0 -117
- package/styles/components/radio.less +0 -59
- package/styles/components/status.less +0 -40
- package/styles/components/switch.less +0 -103
- package/styles/components/toast.less +0 -44
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { tuiExtractI18n } from '@taiga-ui/i18n/utils';
|
|
3
3
|
|
|
4
|
-
const TUI_CONFIRM_WORDS = new InjectionToken(ngDevMode ? 'TUI_CONFIRM_WORDS' : '', {
|
|
5
|
-
factory: tuiExtractI18n('confirm'),
|
|
6
|
-
});
|
|
4
|
+
const TUI_CONFIRM_WORDS = new InjectionToken(ngDevMode ? 'TUI_CONFIRM_WORDS' : '', { factory: tuiExtractI18n('confirm') });
|
|
7
5
|
const TUI_CANCEL_WORD = new InjectionToken(ngDevMode ? 'TUI_CANCEL_WORD' : '', {
|
|
8
6
|
factory: tuiExtractI18n('cancel'),
|
|
9
7
|
});
|
|
@@ -16,66 +14,32 @@ const TUI_MORE_WORD = new InjectionToken(ngDevMode ? 'TUI_MORE_WORD' : '', {
|
|
|
16
14
|
const TUI_HIDE_TEXT = new InjectionToken(ngDevMode ? 'TUI_HIDE_TEXT' : '', {
|
|
17
15
|
factory: tuiExtractI18n('hide'),
|
|
18
16
|
});
|
|
19
|
-
const TUI_SHOW_ALL_TEXT = new InjectionToken(ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '', {
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
});
|
|
25
|
-
const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '', {
|
|
26
|
-
factory: tuiExtractI18n('mobileCalendarTexts'),
|
|
27
|
-
});
|
|
28
|
-
const TUI_FROM_TO_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FROM_TO_TEXTS' : '', {
|
|
29
|
-
factory: tuiExtractI18n('range'),
|
|
30
|
-
});
|
|
31
|
-
const TUI_PLUS_MINUS_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '', {
|
|
32
|
-
factory: tuiExtractI18n('countTexts'),
|
|
33
|
-
});
|
|
17
|
+
const TUI_SHOW_ALL_TEXT = new InjectionToken(ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '', { factory: tuiExtractI18n('showAll') });
|
|
18
|
+
const TUI_OTHER_DATE_TEXT = new InjectionToken(ngDevMode ? 'TUI_OTHER_DATE_TEXT' : '', { factory: tuiExtractI18n('otherDate') });
|
|
19
|
+
const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '', { factory: tuiExtractI18n('mobileCalendarTexts') });
|
|
20
|
+
const TUI_FROM_TO_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FROM_TO_TEXTS' : '', { factory: tuiExtractI18n('range') });
|
|
21
|
+
const TUI_PLUS_MINUS_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '', { factory: tuiExtractI18n('countTexts') });
|
|
34
22
|
const TUI_TIME_TEXTS = new InjectionToken(ngDevMode ? 'TUI_TIME_TEXTS' : '', {
|
|
35
23
|
factory: tuiExtractI18n('time'),
|
|
36
24
|
});
|
|
37
|
-
const TUI_DATE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_DATE_TEXTS' : '', {
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '', {
|
|
41
|
-
factory: tuiExtractI18n('digitalInformationUnits'),
|
|
42
|
-
});
|
|
25
|
+
const TUI_DATE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_DATE_TEXTS' : '', { factory: tuiExtractI18n('dateTexts') });
|
|
26
|
+
const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '', { factory: tuiExtractI18n('digitalInformationUnits') });
|
|
43
27
|
const TUI_COPY_TEXTS = new InjectionToken(ngDevMode ? 'TUI_COPY_TEXTS' : '', {
|
|
44
28
|
factory: tuiExtractI18n('copyTexts'),
|
|
45
29
|
});
|
|
46
|
-
const TUI_PASSWORD_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PASSWORD_TEXTS' : '', {
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
const TUI_CALENDAR_MONTHS = new InjectionToken(ngDevMode ? 'TUI_CALENDAR_MONTHS' : '', {
|
|
50
|
-
factory: tuiExtractI18n('shortCalendarMonths'),
|
|
51
|
-
});
|
|
30
|
+
const TUI_PASSWORD_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PASSWORD_TEXTS' : '', { factory: tuiExtractI18n('passwordTexts') });
|
|
31
|
+
const TUI_CALENDAR_MONTHS = new InjectionToken(ngDevMode ? 'TUI_CALENDAR_MONTHS' : '', { factory: tuiExtractI18n('shortCalendarMonths') });
|
|
52
32
|
const TUI_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FILE_TEXTS' : '', {
|
|
53
33
|
factory: tuiExtractI18n('fileTexts'),
|
|
54
34
|
});
|
|
55
|
-
const TUI_PAGINATION_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PAGINATION_TEXTS' : '', {
|
|
56
|
-
|
|
57
|
-
});
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
});
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
});
|
|
64
|
-
const TUI_COUNTRIES = new InjectionToken(ngDevMode ? 'TUI_COUNTRIES' : '', {
|
|
65
|
-
factory: tuiExtractI18n('countries'),
|
|
66
|
-
});
|
|
67
|
-
const TUI_PREVIEW_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PREVIEW_TEXTS' : '', {
|
|
68
|
-
factory: tuiExtractI18n('previewTexts'),
|
|
69
|
-
});
|
|
70
|
-
const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '', {
|
|
71
|
-
factory: tuiExtractI18n('zoomTexts'),
|
|
72
|
-
});
|
|
73
|
-
const TUI_INTERNATIONAL_SEARCH = new InjectionToken(ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '', {
|
|
74
|
-
factory: tuiExtractI18n('phoneSearch'),
|
|
75
|
-
});
|
|
76
|
-
const TUI_DAY_RANGE_PERIODS = new InjectionToken(ngDevMode ? 'TUI_DAY_RANGE_PERIODS' : '', {
|
|
77
|
-
factory: tuiExtractI18n('dayRangePeriods'),
|
|
78
|
-
});
|
|
35
|
+
const TUI_PAGINATION_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PAGINATION_TEXTS' : '', { factory: tuiExtractI18n('pagination') });
|
|
36
|
+
const TUI_INPUT_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_INPUT_FILE_TEXTS' : '', { factory: tuiExtractI18n('inputFileTexts') });
|
|
37
|
+
const TUI_MULTI_SELECT_TEXTS = new InjectionToken(ngDevMode ? 'TUI_MULTI_SELECT_TEXTS' : '', { factory: tuiExtractI18n('multiSelectTexts') });
|
|
38
|
+
const TUI_COUNTRIES = new InjectionToken(ngDevMode ? 'TUI_COUNTRIES' : '', { factory: tuiExtractI18n('countries') });
|
|
39
|
+
const TUI_PREVIEW_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PREVIEW_TEXTS' : '', { factory: tuiExtractI18n('previewTexts') });
|
|
40
|
+
const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '', { factory: tuiExtractI18n('zoomTexts') });
|
|
41
|
+
const TUI_INTERNATIONAL_SEARCH = new InjectionToken(ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '', { factory: tuiExtractI18n('phoneSearch') });
|
|
42
|
+
const TUI_DAY_RANGE_PERIODS = new InjectionToken(ngDevMode ? 'TUI_DAY_RANGE_PERIODS' : '', { factory: tuiExtractI18n('dayRangePeriods') });
|
|
79
43
|
|
|
80
44
|
/**
|
|
81
45
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-tokens.mjs","sources":["../../../projects/kit/tokens/i18n.ts","../../../projects/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken, type Signal} from '@angular/core';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\nexport const TUI_CONFIRM_WORDS = new InjectionToken(\n ngDevMode ? 'TUI_CONFIRM_WORDS' : '',\n {
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-tokens.mjs","sources":["../../../projects/kit/tokens/i18n.ts","../../../projects/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken, type Signal} from '@angular/core';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\nexport const TUI_CONFIRM_WORDS = new InjectionToken(\n ngDevMode ? 'TUI_CONFIRM_WORDS' : '',\n {factory: tuiExtractI18n('confirm')},\n);\n\nexport const TUI_CANCEL_WORD = new InjectionToken(ngDevMode ? 'TUI_CANCEL_WORD' : '', {\n factory: tuiExtractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(ngDevMode ? 'TUI_DONE_WORD' : '', {\n factory: tuiExtractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(ngDevMode ? 'TUI_MORE_WORD' : '', {\n factory: tuiExtractI18n('more'),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(ngDevMode ? 'TUI_HIDE_TEXT' : '', {\n factory: tuiExtractI18n('hide'),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '',\n {factory: tuiExtractI18n('showAll')},\n);\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_OTHER_DATE_TEXT' : '',\n {factory: tuiExtractI18n('otherDate')},\n);\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '',\n {factory: tuiExtractI18n('mobileCalendarTexts')},\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_FROM_TO_TEXTS' : '',\n {factory: tuiExtractI18n('range')},\n);\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '',\n {factory: tuiExtractI18n('countTexts')},\n);\n\nexport const TUI_TIME_TEXTS = new InjectionToken(ngDevMode ? 'TUI_TIME_TEXTS' : '', {\n factory: tuiExtractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Signal<Record<TuiDateMode, string>>>(\n ngDevMode ? 'TUI_DATE_TEXTS' : '',\n {factory: tuiExtractI18n('dateTexts')},\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '',\n {factory: tuiExtractI18n('digitalInformationUnits')},\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(ngDevMode ? 'TUI_COPY_TEXTS' : '', {\n factory: tuiExtractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PASSWORD_TEXTS' : '',\n {factory: tuiExtractI18n('passwordTexts')},\n);\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(\n ngDevMode ? 'TUI_CALENDAR_MONTHS' : '',\n {factory: tuiExtractI18n('shortCalendarMonths')},\n);\n\nexport const TUI_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FILE_TEXTS' : '', {\n factory: tuiExtractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PAGINATION_TEXTS' : '',\n {factory: tuiExtractI18n('pagination')},\n);\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_FILE_TEXTS' : '',\n {factory: tuiExtractI18n('inputFileTexts')},\n);\n\nexport const TUI_MULTI_SELECT_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_MULTI_SELECT_TEXTS' : '',\n {factory: tuiExtractI18n('multiSelectTexts')},\n);\n\nexport const TUI_COUNTRIES = new InjectionToken<\n Signal<Record<TuiCountryIsoCode, string>>\n>(ngDevMode ? 'TUI_COUNTRIES' : '', {factory: tuiExtractI18n('countries')});\n\nexport const TUI_PREVIEW_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_TEXTS' : '',\n {factory: tuiExtractI18n('previewTexts')},\n);\n\nexport const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '',\n {factory: tuiExtractI18n('zoomTexts')},\n);\n\nexport const TUI_INTERNATIONAL_SEARCH = new InjectionToken(\n ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '',\n {factory: tuiExtractI18n('phoneSearch')},\n);\n\nexport const TUI_DAY_RANGE_PERIODS = new InjectionToken(\n ngDevMode ? 'TUI_DAY_RANGE_PERIODS' : '',\n {factory: tuiExtractI18n('dayRangePeriods')},\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2da416d",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -15,8 +15,30 @@
|
|
|
15
15
|
"url": "https://github.com/taiga-family/taiga-ui"
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@angular/common": ">=19.0.0",
|
|
20
|
+
"@angular/core": ">=19.0.0",
|
|
21
|
+
"@angular/forms": ">=19.0.0",
|
|
22
|
+
"@angular/router": ">=19.0.0",
|
|
23
|
+
"@maskito/angular": "^5.1.1",
|
|
24
|
+
"@maskito/core": "^5.1.1",
|
|
25
|
+
"@maskito/kit": "^5.1.1",
|
|
26
|
+
"@maskito/phone": "^5.1.1",
|
|
27
|
+
"@ng-web-apis/common": "^5.1.0",
|
|
28
|
+
"@ng-web-apis/intersection-observer": "^5.1.0",
|
|
29
|
+
"@ng-web-apis/mutation-observer": "^5.1.0",
|
|
30
|
+
"@ng-web-apis/platform": "^5.1.0",
|
|
31
|
+
"@ng-web-apis/resize-observer": "^5.1.0",
|
|
32
|
+
"@taiga-ui/cdk": "^5.0.0-rc.3",
|
|
33
|
+
"@taiga-ui/core": "^5.0.0-rc.3",
|
|
34
|
+
"@taiga-ui/i18n": "^5.0.0-rc.3",
|
|
35
|
+
"@taiga-ui/polymorpheus": "^5.0.0",
|
|
36
|
+
"@taiga-ui/styles": "^5.0.0-rc.3",
|
|
37
|
+
"rxjs": ">=7.0.0"
|
|
38
|
+
},
|
|
39
|
+
"module": "fesm2022/taiga-ui-kit.mjs",
|
|
40
|
+
"typings": "index.d.ts",
|
|
18
41
|
"exports": {
|
|
19
|
-
"./styles/*": "./styles/*",
|
|
20
42
|
"./package.json": {
|
|
21
43
|
"default": "./package.json"
|
|
22
44
|
},
|
|
@@ -32,21 +54,13 @@
|
|
|
32
54
|
"types": "./directives/index.d.ts",
|
|
33
55
|
"default": "./fesm2022/taiga-ui-kit-directives.mjs"
|
|
34
56
|
},
|
|
35
|
-
"./pipes": {
|
|
36
|
-
"types": "./pipes/index.d.ts",
|
|
37
|
-
"default": "./fesm2022/taiga-ui-kit-pipes.mjs"
|
|
38
|
-
},
|
|
39
57
|
"./tokens": {
|
|
40
58
|
"types": "./tokens/index.d.ts",
|
|
41
59
|
"default": "./fesm2022/taiga-ui-kit-tokens.mjs"
|
|
42
60
|
},
|
|
43
|
-
"./
|
|
44
|
-
"types": "./
|
|
45
|
-
"default": "./fesm2022/taiga-ui-kit-
|
|
46
|
-
},
|
|
47
|
-
"./components/avatar": {
|
|
48
|
-
"types": "./components/avatar/index.d.ts",
|
|
49
|
-
"default": "./fesm2022/taiga-ui-kit-components-avatar.mjs"
|
|
61
|
+
"./pipes": {
|
|
62
|
+
"types": "./pipes/index.d.ts",
|
|
63
|
+
"default": "./fesm2022/taiga-ui-kit-pipes.mjs"
|
|
50
64
|
},
|
|
51
65
|
"./utils": {
|
|
52
66
|
"types": "./utils/index.d.ts",
|
|
@@ -56,6 +70,14 @@
|
|
|
56
70
|
"types": "./components/accordion/index.d.ts",
|
|
57
71
|
"default": "./fesm2022/taiga-ui-kit-components-accordion.mjs"
|
|
58
72
|
},
|
|
73
|
+
"./components/action-bar": {
|
|
74
|
+
"types": "./components/action-bar/index.d.ts",
|
|
75
|
+
"default": "./fesm2022/taiga-ui-kit-components-action-bar.mjs"
|
|
76
|
+
},
|
|
77
|
+
"./components/avatar": {
|
|
78
|
+
"types": "./components/avatar/index.d.ts",
|
|
79
|
+
"default": "./fesm2022/taiga-ui-kit-components-avatar.mjs"
|
|
80
|
+
},
|
|
59
81
|
"./components/badge": {
|
|
60
82
|
"types": "./components/badge/index.d.ts",
|
|
61
83
|
"default": "./fesm2022/taiga-ui-kit-components-badge.mjs"
|
|
@@ -92,10 +114,6 @@
|
|
|
92
114
|
"types": "./components/carousel/index.d.ts",
|
|
93
115
|
"default": "./fesm2022/taiga-ui-kit-components-carousel.mjs"
|
|
94
116
|
},
|
|
95
|
-
"./components/checkbox": {
|
|
96
|
-
"types": "./components/checkbox/index.d.ts",
|
|
97
|
-
"default": "./fesm2022/taiga-ui-kit-components-checkbox.mjs"
|
|
98
|
-
},
|
|
99
117
|
"./components/chip": {
|
|
100
118
|
"types": "./components/chip/index.d.ts",
|
|
101
119
|
"default": "./fesm2022/taiga-ui-kit-components-chip.mjs"
|
|
@@ -260,10 +278,6 @@
|
|
|
260
278
|
"types": "./components/push/index.d.ts",
|
|
261
279
|
"default": "./fesm2022/taiga-ui-kit-components-push.mjs"
|
|
262
280
|
},
|
|
263
|
-
"./components/radio": {
|
|
264
|
-
"types": "./components/radio/index.d.ts",
|
|
265
|
-
"default": "./fesm2022/taiga-ui-kit-components-radio.mjs"
|
|
266
|
-
},
|
|
267
281
|
"./components/radio-list": {
|
|
268
282
|
"types": "./components/radio-list/index.d.ts",
|
|
269
283
|
"default": "./fesm2022/taiga-ui-kit-components-radio-list.mjs"
|
|
@@ -288,10 +302,6 @@
|
|
|
288
302
|
"types": "./components/select/index.d.ts",
|
|
289
303
|
"default": "./fesm2022/taiga-ui-kit-components-select.mjs"
|
|
290
304
|
},
|
|
291
|
-
"./components/slider": {
|
|
292
|
-
"types": "./components/slider/index.d.ts",
|
|
293
|
-
"default": "./fesm2022/taiga-ui-kit-components-slider.mjs"
|
|
294
|
-
},
|
|
295
305
|
"./components/status": {
|
|
296
306
|
"types": "./components/status/index.d.ts",
|
|
297
307
|
"default": "./fesm2022/taiga-ui-kit-components-status.mjs"
|
|
@@ -300,17 +310,17 @@
|
|
|
300
310
|
"types": "./components/stepper/index.d.ts",
|
|
301
311
|
"default": "./fesm2022/taiga-ui-kit-components-stepper.mjs"
|
|
302
312
|
},
|
|
303
|
-
"./components/
|
|
304
|
-
"types": "./components/
|
|
305
|
-
"default": "./fesm2022/taiga-ui-kit-components-
|
|
313
|
+
"./components/switch": {
|
|
314
|
+
"types": "./components/switch/index.d.ts",
|
|
315
|
+
"default": "./fesm2022/taiga-ui-kit-components-switch.mjs"
|
|
306
316
|
},
|
|
307
317
|
"./components/tabs": {
|
|
308
318
|
"types": "./components/tabs/index.d.ts",
|
|
309
319
|
"default": "./fesm2022/taiga-ui-kit-components-tabs.mjs"
|
|
310
320
|
},
|
|
311
|
-
"./components/
|
|
312
|
-
"types": "./components/
|
|
313
|
-
"default": "./fesm2022/taiga-ui-kit-components-
|
|
321
|
+
"./components/textarea": {
|
|
322
|
+
"types": "./components/textarea/index.d.ts",
|
|
323
|
+
"default": "./fesm2022/taiga-ui-kit-components-textarea.mjs"
|
|
314
324
|
},
|
|
315
325
|
"./components/tiles": {
|
|
316
326
|
"types": "./components/tiles/index.d.ts",
|
|
@@ -429,29 +439,6 @@
|
|
|
429
439
|
"default": "./fesm2022/taiga-ui-kit-pipes-stringify-content.mjs"
|
|
430
440
|
}
|
|
431
441
|
},
|
|
432
|
-
"peerDependencies": {
|
|
433
|
-
"@angular/common": ">=19.0.0",
|
|
434
|
-
"@angular/core": ">=19.0.0",
|
|
435
|
-
"@angular/forms": ">=19.0.0",
|
|
436
|
-
"@angular/router": ">=19.0.0",
|
|
437
|
-
"@maskito/angular": "^5.0.1",
|
|
438
|
-
"@maskito/core": "^5.0.1",
|
|
439
|
-
"@maskito/kit": "^5.0.1",
|
|
440
|
-
"@maskito/phone": "^5.0.1",
|
|
441
|
-
"@ng-web-apis/common": "^5.0.3",
|
|
442
|
-
"@ng-web-apis/intersection-observer": "^5.0.3",
|
|
443
|
-
"@ng-web-apis/mutation-observer": "^5.0.3",
|
|
444
|
-
"@ng-web-apis/platform": "^5.0.3",
|
|
445
|
-
"@ng-web-apis/resize-observer": "^5.0.3",
|
|
446
|
-
"@taiga-ui/cdk": "^5.0.0-rc.1",
|
|
447
|
-
"@taiga-ui/core": "^5.0.0-rc.1",
|
|
448
|
-
"@taiga-ui/design-tokens": "~0.275.0",
|
|
449
|
-
"@taiga-ui/i18n": "^5.0.0-rc.1",
|
|
450
|
-
"@taiga-ui/polymorpheus": "^5.0.0",
|
|
451
|
-
"rxjs": ">=7.0.0"
|
|
452
|
-
},
|
|
453
|
-
"module": "fesm2022/taiga-ui-kit.mjs",
|
|
454
|
-
"typings": "index.d.ts",
|
|
455
442
|
"sideEffects": false,
|
|
456
443
|
"dependencies": {
|
|
457
444
|
"tslib": ">=2.8.1"
|
package/tokens/i18n.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export declare const TUI_TIME_TEXTS: InjectionToken<Signal<{
|
|
|
25
25
|
'HH AA': string;
|
|
26
26
|
HH: string;
|
|
27
27
|
'MM:SS.MSS': string;
|
|
28
|
-
'MM.SS.MSS': string;
|
|
29
28
|
'SS.MSS': string;
|
|
30
29
|
}>>;
|
|
31
30
|
export declare const TUI_DATE_TEXTS: InjectionToken<Signal<Record<TuiDateMode, string>>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TuiRadioComponent } from '@taiga-ui/kit/components/radio';
|
|
2
|
-
import { type TuiCheckboxOptions } from './checkbox.options';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@taiga-ui/core/directives/icons";
|
|
5
|
-
export declare class TuiCheckbox extends TuiRadioComponent<TuiCheckboxOptions> {
|
|
6
|
-
protected readonly check: import("@angular/core").Signal<string>;
|
|
7
|
-
protected readonly indeterminate: import("@angular/core").Signal<string>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiCheckbox, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiCheckbox, "input[type=\"checkbox\"][tuiCheckbox]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiIcons; inputs: {}; outputs: {}; }]>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type TuiStringHandler } from '@taiga-ui/cdk/types';
|
|
2
|
-
import { type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
|
-
import { type TuiRadioOptions } from '@taiga-ui/kit/components/radio';
|
|
4
|
-
export interface TuiCheckboxOptions extends TuiRadioOptions {
|
|
5
|
-
readonly icons: Readonly<{
|
|
6
|
-
checked: TuiStringHandler<TuiSizeS>;
|
|
7
|
-
indeterminate: TuiStringHandler<TuiSizeS>;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
export declare const TUI_CHECKBOX_OPTIONS: import("@angular/core").InjectionToken<TuiCheckboxOptions>, tuiCheckboxOptionsProvider: (item: Partial<TuiCheckboxOptions> | (() => Partial<TuiCheckboxOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type DoCheck, type OnInit } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
import { type TuiRadioOptions } from './radio.options';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@taiga-ui/core/directives/appearance";
|
|
6
|
-
import * as i2 from "@taiga-ui/cdk/directives/native-validator";
|
|
7
|
-
export declare class TuiRadioComponent<T extends TuiRadioOptions> implements DoCheck, OnInit {
|
|
8
|
-
private readonly destroyRef;
|
|
9
|
-
protected readonly el: HTMLInputElement;
|
|
10
|
-
protected readonly options: T;
|
|
11
|
-
protected readonly appearance: import("@angular/core").WritableSignal<string>;
|
|
12
|
-
protected readonly control: NgControl | null;
|
|
13
|
-
readonly size: import("@angular/core").InputSignal<import("@taiga-ui/core/types").TuiSizeS>;
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
ngDoCheck(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiRadioComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiRadioComponent<any>, "input[type=\"radio\"][tuiRadio]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.TuiAppearance; inputs: { "tuiAppearanceState": "tuiAppearanceState"; "tuiAppearanceFocus": "tuiAppearanceFocus"; "tuiAppearanceMode": "tuiAppearanceMode"; }; outputs: {}; }, { directive: typeof i2.TuiNativeValidator; inputs: {}; outputs: {}; }]>;
|
|
18
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type TuiIdentityMatcher } from '@taiga-ui/cdk/types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiRadioDirective<T> {
|
|
4
|
-
readonly identityMatcher: import("@angular/core").InputSignal<TuiIdentityMatcher<T>>;
|
|
5
|
-
constructor();
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiRadioDirective<any>, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRadioDirective<any>, "input[type=\"radio\"][tuiRadio][identityMatcher]", never, { "identityMatcher": { "alias": "identityMatcher"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TuiStringHandler } from '@taiga-ui/cdk/types';
|
|
2
|
-
import { type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
|
-
export interface TuiRadioOptions {
|
|
4
|
-
readonly appearance: TuiStringHandler<HTMLInputElement>;
|
|
5
|
-
readonly size: TuiSizeS;
|
|
6
|
-
}
|
|
7
|
-
export declare const TUI_RADIO_OPTIONS: import("@angular/core").InjectionToken<TuiRadioOptions>, tuiRadioOptionsProvider: (item: Partial<TuiRadioOptions> | (() => Partial<TuiRadioOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type TuiValueTransformer } from '@taiga-ui/cdk/classes';
|
|
2
|
-
/**
|
|
3
|
-
* Used as a limit for eliminating JS issues with floating point math
|
|
4
|
-
*/
|
|
5
|
-
export declare const TUI_FLOATING_PRECISION = 7;
|
|
6
|
-
/**
|
|
7
|
-
* Steps for splitting sliders into different linear dependencies.
|
|
8
|
-
* Each element of the array has the form [percent, value]
|
|
9
|
-
*
|
|
10
|
-
* Thus, to set a field from 50,000 to 30,000,000 in steps:
|
|
11
|
-
* 1) From 50 000 to 200 000 by 5000 per step (30 steps)
|
|
12
|
-
* 2) From 200 000 to 1 000 000 by 50 000 per step (16 steps)
|
|
13
|
-
* 3) From 1 000 000 to 30 000 000 by 500 000 per step (58 steps)
|
|
14
|
-
*
|
|
15
|
-
* You need to pass the following keyStep (where 104 = 30 + 16 + 58 is the total number of steps):
|
|
16
|
-
* [
|
|
17
|
-
* [0, 50_000],
|
|
18
|
-
* [100 / 104 * 30, 200_000],
|
|
19
|
-
* [100 / 104 * (30 + 16), 1_000_000],
|
|
20
|
-
* [100, 30_000_000],
|
|
21
|
-
* ];
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export type TuiKeySteps = [[0, number], ...Array<[number, number]>, [100, number]];
|
|
25
|
-
export declare function tuiPercentageToKeyStepValue(valuePercentage: number, keySteps: TuiKeySteps): number;
|
|
26
|
-
export declare function tuiKeyStepValueToPercentage(value: number, keySteps: TuiKeySteps): number;
|
|
27
|
-
export declare function tuiCreateKeyStepsTransformer(keySteps: TuiKeySteps): TuiValueTransformer<number, number>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type OnInit } from '@angular/core';
|
|
2
|
-
import { TuiControl, type TuiValueTransformer } from '@taiga-ui/cdk/classes';
|
|
3
|
-
import { TuiSliderComponent } from '../slider.component';
|
|
4
|
-
import { type TuiKeySteps } from './key-steps';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TuiSliderKeyStepsBase implements OnInit {
|
|
7
|
-
private readonly injector;
|
|
8
|
-
private readonly control;
|
|
9
|
-
protected readonly min: import("@angular/core").WritableSignal<number | undefined>;
|
|
10
|
-
protected readonly max: import("@angular/core").WritableSignal<number | undefined>;
|
|
11
|
-
protected readonly sync: import("@angular/core").EffectRef;
|
|
12
|
-
slider: TuiSliderComponent;
|
|
13
|
-
readonly step: import("@angular/core").InputSignal<number>;
|
|
14
|
-
readonly keySteps: import("@angular/core").InputSignal<[[0, number], ...[number, number][], [100, number]] | undefined>;
|
|
15
|
-
readonly transformer: import("@angular/core").WritableSignal<TuiValueTransformer<number, number> | undefined>;
|
|
16
|
-
controlValue: import("@angular/core").Signal<number | undefined>;
|
|
17
|
-
readonly totalSteps: import("@angular/core").Signal<number>;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
takeStep(coefficient: number): number;
|
|
20
|
-
toSliderValue(fraction: number): number;
|
|
21
|
-
setControlValue(controlValue: number): void;
|
|
22
|
-
getControlValue(): number;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderKeyStepsBase, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSliderKeyStepsBase, "input[tuiSlider][keySteps]", never, { "step": { "alias": "step"; "required": false; "isSignal": true; }; "keySteps": { "alias": "keySteps"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
26
|
-
export declare class TuiSliderKeySteps extends TuiControl<number> {
|
|
27
|
-
protected readonly base: TuiSliderKeyStepsBase;
|
|
28
|
-
set keySteps(steps: TuiKeySteps | null | undefined);
|
|
29
|
-
protected setValue(sliderValue: number): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderKeySteps, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSliderKeySteps, "input[tuiSlider][keySteps][ngModel],input[tuiSlider][keySteps][formControl],input[tuiSlider][keySteps][formControlName]", never, { "keySteps": { "alias": "keySteps"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Native <input type='range' readonly> doesn't work.
|
|
4
|
-
* This directive imitates this native behaviour.
|
|
5
|
-
*/
|
|
6
|
-
export declare class TuiSliderReadonly {
|
|
7
|
-
private readonly el;
|
|
8
|
-
private readonly doc;
|
|
9
|
-
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
10
|
-
constructor();
|
|
11
|
-
protected preventEvent(event: Event): void;
|
|
12
|
-
protected preventKeyboardInteraction(event: KeyboardEvent): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderReadonly, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSliderReadonly, "input[tuiSlider][readonly]", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type AfterContentInit } from '@angular/core';
|
|
2
|
-
import { NgControl } from '@angular/forms';
|
|
3
|
-
import { TuiSliderComponent } from '../slider.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TuiSliderThumbLabel implements AfterContentInit {
|
|
6
|
-
protected readonly slider: import("@angular/core").Signal<TuiSliderComponent | undefined>;
|
|
7
|
-
protected readonly control: import("@angular/core").Signal<NgControl | undefined>;
|
|
8
|
-
ngAfterContentInit(): void;
|
|
9
|
-
protected get ratio(): number;
|
|
10
|
-
protected get ghostStart(): number;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderThumbLabel, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiSliderThumbLabel, "[tuiSliderThumbLabel]", never, {}, {}, ["slider", "control"], ["*", "input[type=range]"], true, never>;
|
|
13
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './helpers/key-steps';
|
|
2
|
-
export * from './helpers/slider-key-steps.directive';
|
|
3
|
-
export * from './helpers/slider-readonly.directive';
|
|
4
|
-
export * from './helpers/slider-thumb-label.component';
|
|
5
|
-
export * from './slider';
|
|
6
|
-
export * from './slider.component';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TuiSliderKeyStepsBase } from './helpers/slider-key-steps.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiSliderComponent {
|
|
4
|
-
private readonly control;
|
|
5
|
-
protected readonly ticksGradient: import("@angular/core").Signal<string>;
|
|
6
|
-
readonly segments: import("@angular/core").InputSignalWithTransform<readonly number[], number | readonly number[]>;
|
|
7
|
-
readonly el: HTMLInputElement;
|
|
8
|
-
readonly keySteps: TuiSliderKeyStepsBase | null;
|
|
9
|
-
constructor();
|
|
10
|
-
get valueRatio(): number;
|
|
11
|
-
get min(): number;
|
|
12
|
-
set min(x: number);
|
|
13
|
-
get max(): number;
|
|
14
|
-
set max(x: number);
|
|
15
|
-
get step(): number;
|
|
16
|
-
set step(x: number);
|
|
17
|
-
get value(): number;
|
|
18
|
-
set value(newValue: number);
|
|
19
|
-
protected getTicksGradient(segments: readonly number[]): string;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiSliderComponent, "input[type=range][tuiSlider]", never, { "segments": { "alias": "segments"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TuiSliderKeySteps, TuiSliderKeyStepsBase } from './helpers/slider-key-steps.directive';
|
|
2
|
-
import { TuiSliderReadonly } from './helpers/slider-readonly.directive';
|
|
3
|
-
import { TuiSliderThumbLabel } from './helpers/slider-thumb-label.component';
|
|
4
|
-
import { TuiSliderComponent } from './slider.component';
|
|
5
|
-
export declare const TuiSlider: readonly [typeof TuiSliderComponent, typeof TuiSliderThumbLabel, typeof TuiSliderKeyStepsBase, typeof TuiSliderKeySteps, typeof TuiSliderReadonly];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { computed, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
-
import { tuiCreateOptions, tuiProvide } from '@taiga-ui/cdk/utils/di';
|
|
4
|
-
import * as i1 from '@taiga-ui/core/directives/icons';
|
|
5
|
-
import { tuiIconStart, tuiIconEnd, TuiIcons } from '@taiga-ui/core/directives/icons';
|
|
6
|
-
import { TuiRadioComponent, TUI_RADIO_OPTIONS } from '@taiga-ui/kit/components/radio';
|
|
7
|
-
|
|
8
|
-
const [TUI_CHECKBOX_OPTIONS, tuiCheckboxOptionsProvider] = tuiCreateOptions({
|
|
9
|
-
size: 'm',
|
|
10
|
-
appearance: (el) => el.checked || el.indeterminate ? 'primary' : 'outline-grayscale',
|
|
11
|
-
icons: {
|
|
12
|
-
checked: () => '@tui.check',
|
|
13
|
-
indeterminate: () => '@tui.minus',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
class TuiCheckbox extends TuiRadioComponent {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.check = tuiIconStart(computed(() => this.options.icons.checked(this.size())));
|
|
21
|
-
this.indeterminate = tuiIconEnd(computed(() => this.options.icons.indeterminate(this.size())));
|
|
22
|
-
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: TuiCheckbox, isStandalone: true, selector: "input[type=\"checkbox\"][tuiCheckbox]", providers: [tuiProvide(TUI_RADIO_OPTIONS, TUI_CHECKBOX_OPTIONS)], usesInheritance: true, hostDirectives: [{ directive: i1.TuiIcons }], ngImport: i0, template: '', isInline: true, styles: ["[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);inline-size:var(--t-size);block-size:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;block-size:100%;inline-size:100%;font-size:1rem;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>');mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>');transform:scale(0);transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:after{display:none}[tuiCheckbox]:disabled._readonly._readonly{opacity:1;pointer-events:none}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-icon-start);mask-image:var(--t-icon-start);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition-duration:inherit}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-icon-end);mask-image:var(--t-icon-end)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}[tuiCheckbox][data-size=s]:before{font-size:.875rem}[tuiCheckbox]:invalid:not([data-mode]),[tuiCheckbox][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiCheckbox, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{ selector: 'input[type="checkbox"][tuiCheckbox]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TUI_RADIO_OPTIONS, TUI_CHECKBOX_OPTIONS)], hostDirectives: [TuiIcons], styles: ["[tuiCheckbox]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);inline-size:var(--t-size);block-size:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[tuiCheckbox]:before{position:absolute;block-size:100%;inline-size:100%;font-size:1rem;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>');mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\"></svg>');transform:scale(0);transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out}[tuiCheckbox]:after{display:none}[tuiCheckbox]:disabled._readonly._readonly{opacity:1;pointer-events:none}[tuiCheckbox]:checked:before,[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-icon-start);mask-image:var(--t-icon-start);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition-duration:inherit}[tuiCheckbox]:indeterminate:before{-webkit-mask-image:var(--t-icon-end);mask-image:var(--t-icon-end)}[tuiCheckbox][data-size=s]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}[tuiCheckbox][data-size=s]:before{font-size:.875rem}[tuiCheckbox]:invalid:not([data-mode]),[tuiCheckbox][data-mode~=invalid]{color:#fff}\n"] }]
|
|
29
|
-
}] });
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Generated bundle index. Do not edit.
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
export { TUI_CHECKBOX_OPTIONS, TuiCheckbox, tuiCheckboxOptionsProvider };
|
|
36
|
-
//# sourceMappingURL=taiga-ui-kit-components-checkbox.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-checkbox.mjs","sources":["../../../projects/kit/components/checkbox/checkbox.options.ts","../../../projects/kit/components/checkbox/checkbox.component.ts","../../../projects/kit/components/checkbox/taiga-ui-kit-components-checkbox.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {type TuiRadioOptions} from '@taiga-ui/kit/components/radio';\n\nexport interface TuiCheckboxOptions extends TuiRadioOptions {\n readonly icons: Readonly<{\n checked: TuiStringHandler<TuiSizeS>;\n indeterminate: TuiStringHandler<TuiSizeS>;\n }>;\n}\n\nexport const [TUI_CHECKBOX_OPTIONS, tuiCheckboxOptionsProvider] =\n tuiCreateOptions<TuiCheckboxOptions>({\n size: 'm',\n appearance: (el) =>\n el.checked || el.indeterminate ? 'primary' : 'outline-grayscale',\n icons: {\n checked: () => '@tui.check',\n indeterminate: () => '@tui.minus',\n },\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\nimport {tuiIconEnd, TuiIcons, tuiIconStart} from '@taiga-ui/core/directives/icons';\nimport {TUI_RADIO_OPTIONS, TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\nimport {TUI_CHECKBOX_OPTIONS, type TuiCheckboxOptions} from './checkbox.options';\n\n@Component({\n selector: 'input[type=\"checkbox\"][tuiCheckbox]',\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/checkbox.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiProvide(TUI_RADIO_OPTIONS, TUI_CHECKBOX_OPTIONS)],\n hostDirectives: [TuiIcons],\n})\nexport class TuiCheckbox extends TuiRadioComponent<TuiCheckboxOptions> {\n protected readonly check = tuiIconStart(\n computed(() => this.options.icons.checked(this.size())),\n );\n\n protected readonly indeterminate = tuiIconEnd(\n computed(() => this.options.icons.indeterminate(this.size())),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAYa,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,GAC3D,gBAAgB,CAAqB;AACjC,IAAA,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,CAAC,EAAE,KACX,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,aAAa,GAAG,SAAS,GAAG,mBAAmB;AACpE,IAAA,KAAK,EAAE;AACH,QAAA,OAAO,EAAE,MAAM,YAAY;AAC3B,QAAA,aAAa,EAAE,MAAM,YAAY;AACpC,KAAA;AACJ,CAAA;;ACAC,MAAO,WAAY,SAAQ,iBAAqC,CAAA;AATtE,IAAA,WAAA,GAAA;;QAUuB,IAAK,CAAA,KAAA,GAAG,YAAY,CACnC,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAC1D;QAEkB,IAAa,CAAA,aAAA,GAAG,UAAU,CACzC,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAChE;AACJ;+GARY,WAAW,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uCAAA,EAAA,SAAA,EAHT,CAAC,UAAU,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJtD,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qtCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAOH,WAAW,EAAA,UAAA,EAAA,CAAA;kBATvB,SAAS;+BACI,qCAAqC,EAAA,QAAA,EACrC,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,UAAU,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC,EAAA,cAAA,EAChD,CAAC,QAAQ,CAAC,EAAA,MAAA,EAAA,CAAA,qtCAAA,CAAA,EAAA;;;ACnB9B;;AAEG;;;;"}
|