@taiga-ui/core 4.52.0-canary.bf9131e → 4.52.0-canary.c91900a
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/README.md +1 -1
- package/classes/accessors.d.ts +1 -1
- package/components/calendar/calendar-sheet.options.d.ts +1 -3
- package/components/calendar/calendar-spin.component.d.ts +1 -0
- package/components/data-list/data-list.component.d.ts +7 -11
- package/components/data-list/data-list.d.ts +2 -4
- package/components/data-list/data-list.tokens.d.ts +1 -5
- package/components/data-list/index.d.ts +0 -2
- package/components/data-list/opt-group.directive.d.ts +2 -2
- package/components/data-list/option/option-content.d.ts +6 -8
- package/components/data-list/option/option.directive.d.ts +7 -8
- package/components/dialog/dialog.component.d.ts +2 -3
- package/components/dialog/dialog.options.d.ts +2 -3
- package/components/dialog/dialog.providers.d.ts +1 -2
- package/components/dialog/index.d.ts +0 -1
- package/components/index.d.ts +0 -2
- package/components/link/link.directive.d.ts +2 -2
- package/components/link/link.options.d.ts +1 -3
- package/components/loader/loader.options.d.ts +1 -3
- package/components/modal/modal.component.d.ts +3 -3
- package/components/modal/modal.service.d.ts +3 -3
- package/components/notification/index.d.ts +3 -0
- package/components/notification/notification.component.d.ts +14 -0
- package/components/notification/notification.d.ts +3 -0
- package/components/notification/notification.directive.d.ts +7 -12
- package/components/notification/notification.options.d.ts +10 -7
- package/components/notification/notification.service.d.ts +17 -0
- package/components/root/root.component.d.ts +1 -1
- package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
- package/components/scrollbar/scrollbar.component.d.ts +2 -2
- package/components/scrollbar/scrollbar.directive.d.ts +2 -2
- package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
- package/components/textfield/textfield-multi/textfield-multi.component.d.ts +9 -13
- package/components/textfield/textfield.component.d.ts +21 -34
- package/components/textfield/textfield.directive.d.ts +12 -19
- package/directives/{notification/notification.directive.d.ts → alert/alert.directive.d.ts} +3 -3
- package/directives/{notification/notification.service.d.ts → alert/alert.service.d.ts} +3 -3
- package/directives/alert/index.d.ts +2 -0
- package/directives/date-format/date-format.directive.d.ts +3 -7
- package/directives/dropdown/dropdown-hover.directive.d.ts +5 -10
- package/directives/dropdown/dropdown-hover.options.d.ts +1 -3
- package/directives/dropdown/dropdown-manual.directive.d.ts +2 -2
- package/directives/dropdown/dropdown-open.directive.d.ts +9 -12
- package/directives/dropdown/dropdown-position-sided.directive.d.ts +3 -3
- package/directives/dropdown/dropdown-position.directive.d.ts +5 -5
- package/directives/dropdown/dropdown-selection.directive.d.ts +4 -5
- package/directives/dropdown/dropdown.bindings.d.ts +0 -1
- package/directives/dropdown/dropdown.d.ts +1 -2
- package/directives/dropdown/dropdown.directive.d.ts +5 -6
- package/directives/dropdown/index.d.ts +0 -1
- package/directives/group/group.directive.d.ts +7 -7
- package/directives/group/group.options.d.ts +1 -3
- package/directives/index.d.ts +1 -1
- package/directives/number-format/number-format.directive.d.ts +3 -7
- package/fesm2022/taiga-ui-core-classes.mjs +6 -8
- package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-calendar.mjs +14 -21
- package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-data-list.mjs +44 -204
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-dialog.mjs +8 -77
- package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-error.mjs +2 -1
- package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-icon.mjs +1 -2
- package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-link.mjs +10 -16
- package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-loader.mjs +3 -8
- package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-modal.mjs +10 -10
- package/fesm2022/taiga-ui-core-components-modal.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs +98 -41
- package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +5 -7
- package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs +36 -45
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +114 -224
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components.mjs +0 -2
- package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-alert.mjs +73 -0
- package/fesm2022/taiga-ui-core-directives-alert.mjs.map +1 -0
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +6 -6
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-date-format.mjs +24 -18
- package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs +110 -225
- package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-group.mjs +17 -29
- package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-hint.mjs +7 -9
- package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-icons.mjs +2 -2
- package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +1 -4
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-number-format.mjs +30 -18
- package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-popup.mjs +1 -1
- package/fesm2022/taiga-ui-core-directives-popup.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives.mjs +1 -1
- package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +23 -4
- package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -1
- package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -1
- package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -1
- package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-format-number.mjs +19 -13
- package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -1
- package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -1
- package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-pipes.mjs +0 -1
- package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs +22 -21
- package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
- package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +7 -16
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
- package/package.json +13 -22
- package/{utils/format/string-hash-to-hsl.d.ts → pipes/auto-color/auto-color.d.ts} +1 -1
- package/pipes/auto-color/index.d.ts +1 -0
- package/pipes/format-number/format-number.pipe.d.ts +6 -4
- package/pipes/index.d.ts +0 -1
- package/styles/components/link.less +1 -0
- package/styles/mixins/appearance.less +1 -1
- package/styles/mixins/mixins.less +0 -5
- package/styles/mixins/mixins.scss +0 -5
- package/styles/mixins/slider.scss +1 -2
- package/styles/theme/variables.less +2 -4
- package/tokens/common-icons.d.ts +1 -3
- package/tokens/date-format.d.ts +2 -3
- package/tokens/icons.d.ts +0 -4
- package/tokens/number-format.d.ts +2 -3
- package/types/index.d.ts +0 -2
- package/types/size.d.ts +0 -11
- package/utils/format/index.d.ts +0 -1
- package/utils/miscellaneous/get-duration.d.ts +2 -0
- package/utils/miscellaneous/index.d.ts +1 -1
- package/components/alert/alert.component.d.ts +0 -14
- package/components/alert/alert.directive.d.ts +0 -8
- package/components/alert/alert.interfaces.d.ts +0 -13
- package/components/alert/alert.service.d.ts +0 -11
- package/components/alert/alert.tokens.d.ts +0 -6
- package/components/alert/index.d.ts +0 -5
- package/components/data-list/data-list.directive.d.ts +0 -7
- package/components/data-list/option/option-legacy.component.d.ts +0 -24
- package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
- package/components/dialog/dialogs.component.d.ts +0 -8
- package/components/header/header.directive.d.ts +0 -17
- package/components/header/index.d.ts +0 -1
- package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
- package/directives/notification/index.d.ts +0 -2
- package/fesm2022/taiga-ui-core-components-alert.mjs +0 -110
- package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
- package/fesm2022/taiga-ui-core-components-header.mjs +0 -42
- package/fesm2022/taiga-ui-core-components-header.mjs.map +0 -1
- package/fesm2022/taiga-ui-core-directives-notification.mjs +0 -73
- package/fesm2022/taiga-ui-core-directives-notification.mjs.map +0 -1
- package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -30
- package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
- package/pipes/month/index.d.ts +0 -1
- package/pipes/month/month.pipe.d.ts +0 -10
- package/types/range-state.d.ts +0 -4
- package/types/value-content-context.d.ts +0 -4
- package/utils/miscellaneous/to-animation-options.d.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-utils-format.mjs","sources":["../../../projects/core/utils/format/number-to-string-without-exp.ts","../../../projects/core/utils/format/get-fractional-part-padded.ts","../../../projects/core/utils/format/format-number.ts","../../../projects/core/utils/format/
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-utils-format.mjs","sources":["../../../projects/core/utils/format/number-to-string-without-exp.ts","../../../projects/core/utils/format/get-fractional-part-padded.ts","../../../projects/core/utils/format/format-number.ts","../../../projects/core/utils/format/taiga-ui-core-utils-format.ts"],"sourcesContent":["/**\n * Convert number to string with replacing exponent part on decimals\n *\n * @param value the number\n * @return string representation of a number\n */\nexport function tuiNumberToStringWithoutExp(value: number): string {\n const valueAsString = String(value);\n const [numberPart, expPart] = valueAsString.split('e-');\n\n let valueWithoutExp = valueAsString;\n\n if (expPart) {\n const [, fractionalPart = ''] = numberPart?.split('.') ?? [];\n const decimalDigits = Number(expPart) + (fractionalPart?.length || 0);\n\n valueWithoutExp = value.toFixed(decimalDigits);\n }\n\n return valueWithoutExp;\n}\n","import {tuiIsNumber} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {tuiNumberToStringWithoutExp} from './number-to-string-without-exp';\n\n/**\n * Return fractional part of number\n *\n * @param value the number\n * @param precision number of digits of decimal part, null to keep untouched\n * @return the fractional part of number\n */\nexport function tuiGetFractionPartPadded(\n value: number,\n precision?: number | null,\n): string {\n const [, fractionPartPadded = ''] = tuiNumberToStringWithoutExp(value).split('.');\n\n return tuiIsNumber(precision)\n ? fractionPartPadded.slice(0, Math.max(0, precision))\n : fractionPartPadded;\n}\n","import {CHAR_HYPHEN} from '@taiga-ui/cdk/constants';\nimport {tuiRoundWith} from '@taiga-ui/cdk/utils/math';\nimport {\n TUI_DEFAULT_NUMBER_FORMAT,\n type TuiNumberFormatSettings,\n} from '@taiga-ui/core/tokens';\n\nimport {tuiGetFractionPartPadded} from './get-fractional-part-padded';\n\n/**\n * Formats number adding a thousand separators and correct decimal separator\n * padding decimal part with zeroes to given length\n *\n * @param value the input number\n * @param settings See {@link TuiNumberFormatSettings}\n * @return the formatted string\n */\nexport function tuiFormatNumber(\n value: number,\n settings: Partial<TuiNumberFormatSettings> = {},\n): string {\n const {precision, decimalSeparator, thousandSeparator, decimalMode, rounding} = {\n ...TUI_DEFAULT_NUMBER_FORMAT,\n decimalMode: 'always',\n precision: Infinity,\n ...settings,\n };\n\n const rounded = Number.isFinite(precision)\n ? tuiRoundWith({value, precision, method: rounding})\n : value;\n const integerPartString = String(Math.floor(Math.abs(rounded)));\n\n let fractionPartPadded = tuiGetFractionPartPadded(rounded, precision);\n const hasFraction = Number(fractionPartPadded) > 0;\n\n if (Number.isFinite(precision)) {\n if (decimalMode === 'always' || (hasFraction && decimalMode === 'pad')) {\n const zeroPaddingSize: number = Math.max(\n precision - fractionPartPadded.length,\n 0,\n );\n const zeroPartString = '0'.repeat(zeroPaddingSize);\n\n fractionPartPadded = `${fractionPartPadded}${zeroPartString}`;\n } else {\n fractionPartPadded = fractionPartPadded.replace(/0*$/, '');\n }\n }\n\n const remainder = integerPartString.length % 3;\n const sign = value < 0 ? CHAR_HYPHEN : '';\n let result = sign + integerPartString.charAt(0);\n\n for (let i = 1; i < integerPartString.length; i++) {\n if (i % 3 === remainder && integerPartString.length > 3) {\n result += thousandSeparator;\n }\n\n result += integerPartString.charAt(i);\n }\n\n return fractionPartPadded ? result + decimalSeparator + fractionPartPadded : result;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;;;;;AAKG;AACG,SAAU,2BAA2B,CAAC,KAAa,EAAA;AACrD,IAAA,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC;AACnC,IAAA,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC;IAEvD,IAAI,eAAe,GAAG,aAAa;IAEnC,IAAI,OAAO,EAAE;AACT,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} from '@taiga-ui/cdk/utils/dom';
|
|
6
6
|
import { REMOVE_STYLES_ON_COMPONENT_DESTROY } from '@angular/platform-browser';
|
|
7
7
|
import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
8
|
-
import { TUI_DARK_MODE
|
|
8
|
+
import { TUI_DARK_MODE } from '@taiga-ui/core/tokens';
|
|
9
9
|
import { provideEventPlugins } from '@taiga-ui/event-plugins';
|
|
10
10
|
|
|
11
11
|
function tuiEnableFontScaling() {
|
|
@@ -15,6 +15,11 @@ function tuiEnableFontScaling() {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
const TUI_ANIMATIONS_DEFAULT_DURATION = 300;
|
|
19
|
+
function tuiGetDuration(speed) {
|
|
20
|
+
return speed && TUI_ANIMATIONS_DEFAULT_DURATION / speed;
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
const KEYS = [
|
|
19
24
|
'Spacebar',
|
|
20
25
|
'Backspace',
|
|
@@ -113,23 +118,9 @@ function tuiSizeBigger(size, biggerThanSize = 's') {
|
|
|
113
118
|
return SIZES[size] > SIZES[biggerThanSize];
|
|
114
119
|
}
|
|
115
120
|
|
|
116
|
-
const TUI_ANIMATIONS_DEFAULT_DURATION = 300;
|
|
117
|
-
function tuiToAnimationOptions(speed = inject(TUI_ANIMATIONS_SPEED), easing) {
|
|
118
|
-
return {
|
|
119
|
-
value: '',
|
|
120
|
-
params: {
|
|
121
|
-
duration: tuiGetDuration(speed),
|
|
122
|
-
easing,
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function tuiGetDuration(speed) {
|
|
127
|
-
return speed && TUI_ANIMATIONS_DEFAULT_DURATION / speed;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
121
|
/**
|
|
131
122
|
* Generated bundle index. Do not edit.
|
|
132
123
|
*/
|
|
133
124
|
|
|
134
|
-
export { TUI_ANIMATIONS_DEFAULT_DURATION, TUI_OPTIONS, provideTaiga, tuiEnableFontScaling, tuiGetDuration, tuiIsEditingKey, tuiIsObscured, tuiOverrideOptions, tuiSizeBigger
|
|
125
|
+
export { TUI_ANIMATIONS_DEFAULT_DURATION, TUI_OPTIONS, provideTaiga, tuiEnableFontScaling, tuiGetDuration, tuiIsEditingKey, tuiIsObscured, tuiOverrideOptions, tuiSizeBigger };
|
|
135
126
|
//# sourceMappingURL=taiga-ui-core-utils-miscellaneous.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-utils-miscellaneous.mjs","sources":["../../../projects/core/utils/miscellaneous/font-scaling.ts","../../../projects/core/utils/miscellaneous/
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-utils-miscellaneous.mjs","sources":["../../../projects/core/utils/miscellaneous/font-scaling.ts","../../../projects/core/utils/miscellaneous/get-duration.ts","../../../projects/core/utils/miscellaneous/is-editing-key.ts","../../../projects/core/utils/miscellaneous/is-obscured.ts","../../../projects/core/utils/miscellaneous/override-options.ts","../../../projects/core/utils/miscellaneous/provide-taiga.ts","../../../projects/core/utils/miscellaneous/size-bigger.ts","../../../projects/core/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject, type Provider} from '@angular/core';\nimport {TUI_FONT_SIZE_HANDLER} from '@taiga-ui/cdk/directives/font-size';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nexport function tuiEnableFontScaling(): Provider {\n return {\n provide: TUI_FONT_SIZE_HANDLER,\n useFactory:\n ({documentElement} = inject(DOCUMENT)) =>\n (size: number): void =>\n documentElement.style.setProperty(\n '--tui-font-offset',\n `${tuiClamp(size, 17, 28) - 17}px`,\n ),\n };\n}\n","export const TUI_ANIMATIONS_DEFAULT_DURATION = 300;\n\nexport function tuiGetDuration(speed: number): number {\n return speed && TUI_ANIMATIONS_DEFAULT_DURATION / speed;\n}\n","const KEYS: readonly string[] = [\n 'Spacebar',\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Left',\n 'Right',\n 'End',\n 'Home',\n];\n\n/**\n * Check if pressed key is interactive in terms of input field\n */\nexport function tuiIsEditingKey(key = ''): boolean {\n return key.length === 1 || KEYS.includes(key);\n}\n","import {tuiGetElementObscures} from '@taiga-ui/cdk/utils/dom';\n\n/**\n * @internal\n */\nexport function tuiIsObscured(el: HTMLElement, exceptSelector = 'tui-popups'): boolean {\n return !!tuiGetElementObscures(el)?.some((el) => !el.closest(exceptSelector));\n}\n","export function tuiOverrideOptions<T>(\n override: Partial<T>,\n fallback: T,\n): (directive: T | null, options: T | null) => T {\n return (directive, options) => {\n const result: T = directive || {...(options || fallback)};\n\n Object.keys(override).forEach((key) => {\n // Update directive props with new defaults before inputs are processed\n (result as Record<string, unknown>)[key] = override[key as keyof T];\n });\n\n return result;\n };\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n effect,\n type EnvironmentProviders,\n inject,\n InjectionToken,\n provideAppInitializer,\n type Provider,\n} from '@angular/core';\nimport {REMOVE_STYLES_ON_COMPONENT_DESTROY} from '@angular/platform-browser';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_DARK_MODE} from '@taiga-ui/core/tokens';\nimport {provideEventPlugins} from '@taiga-ui/event-plugins';\n\nimport {tuiEnableFontScaling} from './font-scaling';\n\ninterface ExperimentalAPIs {\n readonly all: boolean;\n}\n\nexport interface TuiOptions {\n readonly mode?: 'dark' | 'light';\n readonly apis: Partial<ExperimentalAPIs> | 'stable';\n readonly fontScaling: boolean;\n readonly scrollbars: 'custom' | 'native';\n}\n\nconst DEFAULT: TuiOptions = {\n apis: 'stable',\n fontScaling: true,\n scrollbars: 'custom',\n};\n\nexport const TUI_OPTIONS = new InjectionToken<TuiOptions>(ngDevMode ? 'TUI_OPTIONS' : '');\n\nexport function provideTaiga(\n config: Partial<TuiOptions> = {},\n): Array<EnvironmentProviders | Provider> {\n const options = {...DEFAULT, ...config};\n const providers: Array<EnvironmentProviders | Provider> = [\n {\n provide: REMOVE_STYLES_ON_COMPONENT_DESTROY,\n useValue: false,\n },\n {\n provide: TUI_OPTIONS,\n useValue: options,\n },\n provideEventPlugins(),\n provideAppInitializer(() => {\n const doc = inject(DOCUMENT);\n const mode = inject(TUI_DARK_MODE);\n\n if (options.scrollbars === 'custom') {\n doc.documentElement.classList.add('tui-zero-scrollbar');\n }\n\n if (tuiIsPresent(options.mode)) {\n mode.set(options.mode === 'dark');\n }\n\n effect(() => {\n if (mode()) {\n doc.body.setAttribute('tuiTheme', 'dark');\n } else {\n doc.body.removeAttribute('tuiTheme');\n }\n });\n }),\n ];\n\n if (options.fontScaling) {\n providers.push(tuiEnableFontScaling());\n }\n\n return providers;\n}\n","import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core/types';\n\nconst SIZES: Record<TuiSizeXXL | TuiSizeXXS, number> = {\n xxs: 0,\n xs: 1,\n s: 2,\n m: 3,\n l: 4,\n xl: 5,\n xxl: 6,\n};\n\n/**\n * Compares size constants to determine if first size is bigger than the second\n *\n * @param size size that we need to compare\n * @param biggerThanSize size to compare with, 's' by default\n */\nexport function tuiSizeBigger(\n size: TuiSizeXXL | TuiSizeXXS,\n biggerThanSize: TuiSizeXXL | TuiSizeXXS = 's',\n): boolean {\n return SIZES[size] > SIZES[biggerThanSize];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;SAKgB,oBAAoB,GAAA;IAChC,OAAO;AACH,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,UAAU,EACN,CAAC,EAAC,eAAe,EAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,KACrC,CAAC,IAAY,KACT,eAAe,CAAC,KAAK,CAAC,WAAW,CAC7B,mBAAmB,EACnB,GAAG,QAAQ,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,CACrC;KACZ;AAC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,IAAA,CAAC,EAAE,CAAC;AACJ,IAAA,EAAE,EAAE,CAAC;AACL,IAAA,GAAG,EAAE,CAAC;CACT;AAED;;;;;AAKG;SACa,aAAa,CACzB,IAA6B,EAC7B,iBAA0C,GAAG,EAAA;IAE7C,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC;AAC9C;;ACvBA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "4.52.0-canary.
|
|
3
|
+
"version": "4.52.0-canary.c91900a",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
"directive"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://github.com/taiga-family/taiga-ui",
|
|
15
|
-
"repository":
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/taiga-family/taiga-ui"
|
|
18
|
+
},
|
|
16
19
|
"license": "Apache-2.0",
|
|
17
20
|
"exports": {
|
|
18
21
|
"./styles/*": "./styles/*",
|
|
@@ -59,10 +62,6 @@
|
|
|
59
62
|
"types": "./utils/index.d.ts",
|
|
60
63
|
"default": "./fesm2022/taiga-ui-core-utils.mjs"
|
|
61
64
|
},
|
|
62
|
-
"./components/alert": {
|
|
63
|
-
"types": "./components/alert/index.d.ts",
|
|
64
|
-
"default": "./fesm2022/taiga-ui-core-components-alert.mjs"
|
|
65
|
-
},
|
|
66
65
|
"./components/button": {
|
|
67
66
|
"types": "./components/button/index.d.ts",
|
|
68
67
|
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
@@ -91,10 +90,6 @@
|
|
|
91
90
|
"types": "./components/expand/index.d.ts",
|
|
92
91
|
"default": "./fesm2022/taiga-ui-core-components-expand.mjs"
|
|
93
92
|
},
|
|
94
|
-
"./components/header": {
|
|
95
|
-
"types": "./components/header/index.d.ts",
|
|
96
|
-
"default": "./fesm2022/taiga-ui-core-components-header.mjs"
|
|
97
|
-
},
|
|
98
93
|
"./components/icon": {
|
|
99
94
|
"types": "./components/icon/index.d.ts",
|
|
100
95
|
"default": "./fesm2022/taiga-ui-core-components-icon.mjs"
|
|
@@ -135,6 +130,10 @@
|
|
|
135
130
|
"types": "./components/textfield/index.d.ts",
|
|
136
131
|
"default": "./fesm2022/taiga-ui-core-components-textfield.mjs"
|
|
137
132
|
},
|
|
133
|
+
"./directives/alert": {
|
|
134
|
+
"types": "./directives/alert/index.d.ts",
|
|
135
|
+
"default": "./fesm2022/taiga-ui-core-directives-alert.mjs"
|
|
136
|
+
},
|
|
138
137
|
"./directives/appearance": {
|
|
139
138
|
"types": "./directives/appearance/index.d.ts",
|
|
140
139
|
"default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
|
|
@@ -143,14 +142,14 @@
|
|
|
143
142
|
"types": "./directives/date-format/index.d.ts",
|
|
144
143
|
"default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
|
|
145
144
|
},
|
|
146
|
-
"./directives/dropdown": {
|
|
147
|
-
"types": "./directives/dropdown/index.d.ts",
|
|
148
|
-
"default": "./fesm2022/taiga-ui-core-directives-dropdown.mjs"
|
|
149
|
-
},
|
|
150
145
|
"./directives/group": {
|
|
151
146
|
"types": "./directives/group/index.d.ts",
|
|
152
147
|
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
153
148
|
},
|
|
149
|
+
"./directives/dropdown": {
|
|
150
|
+
"types": "./directives/dropdown/index.d.ts",
|
|
151
|
+
"default": "./fesm2022/taiga-ui-core-directives-dropdown.mjs"
|
|
152
|
+
},
|
|
154
153
|
"./directives/hint": {
|
|
155
154
|
"types": "./directives/hint/index.d.ts",
|
|
156
155
|
"default": "./fesm2022/taiga-ui-core-directives-hint.mjs"
|
|
@@ -163,10 +162,6 @@
|
|
|
163
162
|
"types": "./directives/items-handlers/index.d.ts",
|
|
164
163
|
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
165
164
|
},
|
|
166
|
-
"./directives/notification": {
|
|
167
|
-
"types": "./directives/notification/index.d.ts",
|
|
168
|
-
"default": "./fesm2022/taiga-ui-core-directives-notification.mjs"
|
|
169
|
-
},
|
|
170
165
|
"./directives/number-format": {
|
|
171
166
|
"types": "./directives/number-format/index.d.ts",
|
|
172
167
|
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
@@ -203,10 +198,6 @@
|
|
|
203
198
|
"types": "./pipes/initials/index.d.ts",
|
|
204
199
|
"default": "./fesm2022/taiga-ui-core-pipes-initials.mjs"
|
|
205
200
|
},
|
|
206
|
-
"./pipes/month": {
|
|
207
|
-
"types": "./pipes/month/index.d.ts",
|
|
208
|
-
"default": "./fesm2022/taiga-ui-core-pipes-month.mjs"
|
|
209
|
-
},
|
|
210
201
|
"./pipes/order-week-days": {
|
|
211
202
|
"types": "./pipes/order-week-days/index.d.ts",
|
|
212
203
|
"default": "./fesm2022/taiga-ui-core-pipes-order-week-days.mjs"
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { type PipeTransform } from '@angular/core';
|
|
2
2
|
import { type TuiNumberFormatSettings } from '@taiga-ui/core/tokens';
|
|
3
|
-
import { type Observable } from 'rxjs';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class TuiFormatNumberPipe implements PipeTransform {
|
|
6
|
-
private readonly
|
|
5
|
+
private readonly format;
|
|
6
|
+
private readonly value;
|
|
7
|
+
private readonly settings;
|
|
8
|
+
private readonly formatted;
|
|
7
9
|
/**
|
|
8
|
-
* Formats number adding thousand separators and correct decimal separator
|
|
10
|
+
* Formats number adding a thousand separators and correct decimal separator
|
|
9
11
|
* padding decimal part with zeroes to given length
|
|
10
12
|
* @param value number
|
|
11
13
|
* @param settings See {@link TuiNumberFormatSettings}
|
|
12
14
|
*/
|
|
13
|
-
transform(value: number, settings?: Partial<TuiNumberFormatSettings>):
|
|
15
|
+
transform(value: number, settings?: Partial<TuiNumberFormatSettings>): string;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFormatNumberPipe, never>;
|
|
15
17
|
static ɵpipe: i0.ɵɵPipeDeclaration<TuiFormatNumberPipe, "tuiFormatNumber", true>;
|
|
16
18
|
}
|
package/pipes/index.d.ts
CHANGED
|
@@ -4,5 +4,4 @@ export * from '@taiga-ui/core/pipes/flag';
|
|
|
4
4
|
export * from '@taiga-ui/core/pipes/format-date';
|
|
5
5
|
export * from '@taiga-ui/core/pipes/format-number';
|
|
6
6
|
export * from '@taiga-ui/core/pipes/initials';
|
|
7
|
-
export * from '@taiga-ui/core/pipes/month';
|
|
8
7
|
export * from '@taiga-ui/core/pipes/order-week-days';
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
@import 'browsers.less';
|
|
2
2
|
|
|
3
3
|
.interactive(@ruleset) {
|
|
4
|
-
// TODO remove after dropping Safari 13 support
|
|
5
|
-
&:matches(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
|
|
6
|
-
@ruleset();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
4
|
&:is(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
|
|
10
5
|
@ruleset();
|
|
11
6
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
@import 'browsers.scss';
|
|
2
2
|
|
|
3
3
|
@mixin interactive {
|
|
4
|
-
// TODO remove after dropping Safari 13 support
|
|
5
|
-
&:matches(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
|
|
6
|
-
@content;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
4
|
&:is(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
|
|
10
5
|
@content;
|
|
11
6
|
}
|
|
@@ -60,12 +60,11 @@ $track-inset: (
|
|
|
60
60
|
--t-offset: calc(var(--tui-radius-l) / 2 + $thumb / 2);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
tui-input-range:not([new]) + &, /* TODO(v5): delete */
|
|
64
63
|
tui-range + & {
|
|
65
64
|
--t-offset: $thumb;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
|
-
tui-input-range
|
|
67
|
+
tui-input-range + & {
|
|
69
68
|
--t-offset: calc(map-get($track-inset, $input-size) + $thumb);
|
|
70
69
|
}
|
|
71
70
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
@font-fallback: -apple-system, 'BlinkMacSystemFont', system-ui, 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif;
|
|
2
|
-
|
|
3
1
|
&:root,
|
|
4
2
|
&:host {
|
|
5
3
|
// Fonts
|
|
6
|
-
--tui-font-heading: 'Manrope',
|
|
7
|
-
--tui-font-text: 'Manrope',
|
|
4
|
+
--tui-font-heading: 'Manrope', system-ui, sans-serif;
|
|
5
|
+
--tui-font-text: 'Manrope', system-ui, sans-serif;
|
|
8
6
|
--tui-font-offset: ~'0rem';
|
|
9
7
|
// Heading
|
|
10
8
|
--tui-font-heading-1: bold calc(var(--tui-font-offset) + 3.125rem) / 3.5rem var(--tui-font-heading);
|
package/tokens/common-icons.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
export interface TuiCommonIcons {
|
|
3
2
|
readonly check: string;
|
|
4
3
|
readonly close: string;
|
|
@@ -7,5 +6,4 @@ export interface TuiCommonIcons {
|
|
|
7
6
|
readonly search: string;
|
|
8
7
|
readonly ellipsis: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const TUI_COMMON_ICONS: InjectionToken<TuiCommonIcons
|
|
11
|
-
export declare function tuiCommonIconsProvider(icons: Partial<TuiCommonIcons>): Provider;
|
|
9
|
+
export declare const TUI_COMMON_ICONS: import("@angular/core").InjectionToken<TuiCommonIcons>, tuiCommonIconsProvider: (item: Partial<TuiCommonIcons> | (() => Partial<TuiCommonIcons>)) => import("@angular/core").FactoryProvider;
|
package/tokens/date-format.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
1
|
+
import { InjectionToken, type Provider, type Signal } from '@angular/core';
|
|
2
2
|
import { type TuiDateMode } from '@taiga-ui/cdk/date-time';
|
|
3
|
-
import { type Observable } from 'rxjs';
|
|
4
3
|
/**
|
|
5
4
|
* Formatting configuration for displayed dates
|
|
6
5
|
*/
|
|
@@ -19,5 +18,5 @@ export declare const TUI_DEFAULT_DATE_FORMAT: TuiDateFormatSettings;
|
|
|
19
18
|
/**
|
|
20
19
|
* Formatting configuration for displayed dates
|
|
21
20
|
*/
|
|
22
|
-
export declare const TUI_DATE_FORMAT: InjectionToken<
|
|
21
|
+
export declare const TUI_DATE_FORMAT: InjectionToken<Signal<TuiDateFormatSettings>>;
|
|
23
22
|
export declare function tuiDateFormatProvider(options: Partial<TuiDateFormatSettings>): Provider;
|
package/tokens/icons.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { type FactoryProvider, InjectionToken } from '@angular/core';
|
|
2
2
|
export declare const TUI_ICON_REGISTRY: InjectionToken<Record<string, string>>;
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated: use {@link TUI_ICON_REGISTRY}
|
|
5
|
-
*/
|
|
6
|
-
export declare const TUI_ICON_STARTS: InjectionToken<Record<string, string>>;
|
|
7
3
|
export declare function tuiIconsProvider(icons: Record<string, string>): FactoryProvider;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
1
|
+
import { InjectionToken, type Provider, type Signal } from '@angular/core';
|
|
2
2
|
import { type TuiRounding } from '@taiga-ui/cdk/types';
|
|
3
|
-
import { type Observable } from 'rxjs';
|
|
4
3
|
export type TuiDecimalMode = 'always' | 'not-zero' | 'pad';
|
|
5
4
|
export type TuiDecimalSymbol = ',' | '.';
|
|
6
5
|
/**
|
|
@@ -35,5 +34,5 @@ export declare const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings;
|
|
|
35
34
|
/**
|
|
36
35
|
* Formatting configuration for displayed numbers
|
|
37
36
|
*/
|
|
38
|
-
export declare const TUI_NUMBER_FORMAT: InjectionToken<
|
|
37
|
+
export declare const TUI_NUMBER_FORMAT: InjectionToken<Signal<TuiNumberFormatSettings>>;
|
|
39
38
|
export declare function tuiNumberFormatProvider(options: Partial<TuiNumberFormatSettings>): Provider;
|
package/types/index.d.ts
CHANGED
package/types/size.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Various sizes for components
|
|
3
|
-
*
|
|
4
|
-
* 'xxs' - extra extra small
|
|
5
|
-
* 'xs' - extra small
|
|
6
|
-
* 's' - small
|
|
7
|
-
* 'm' - medium (typically default)
|
|
8
|
-
* 'l' - large
|
|
9
|
-
* 'xl' - extra large
|
|
10
|
-
* 'xxl' - extra extra large
|
|
11
|
-
*/
|
|
12
1
|
export type TuiSizeM = 'm';
|
|
13
2
|
export type TuiSizeS = TuiSizeM | 's';
|
|
14
3
|
export type TuiSizeL = TuiSizeM | 'l';
|
package/utils/format/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './font-scaling';
|
|
2
|
+
export * from './get-duration';
|
|
2
3
|
export * from './is-editing-key';
|
|
3
4
|
export * from './is-obscured';
|
|
4
5
|
export * from './override-options';
|
|
5
6
|
export * from './provide-taiga';
|
|
6
7
|
export * from './size-bigger';
|
|
7
|
-
export * from './to-animation-options';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type TuiPortalContext } from '@taiga-ui/cdk/portals';
|
|
2
|
-
import { type TuiAlertOptions } from './alert.interfaces';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
5
|
-
import * as i2 from "@taiga-ui/core/directives";
|
|
6
|
-
export declare class TuiAlertComponent<O, I> {
|
|
7
|
-
private readonly el;
|
|
8
|
-
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
9
|
-
protected readonly close: import("@angular/core").Signal<string>;
|
|
10
|
-
protected readonly item: TuiPortalContext<TuiAlertOptions<I>, O>;
|
|
11
|
-
protected readonly sub: import("rxjs").Subscription;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlertComponent<any, any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiAlertComponent<any, any>, "tui-alert", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiNotificationDirective; inputs: {}; outputs: {}; }]>;
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type TuiAlertOptions } from './alert.interfaces';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@taiga-ui/cdk/portals";
|
|
4
|
-
export declare class TuiAlert<T> {
|
|
5
|
-
readonly tuiAlertOptions: import("@angular/core").InputSignal<Partial<TuiAlertOptions<T>>>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlert<any>, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAlert<any>, "ng-template[tuiAlert]", never, { "tuiAlertOptions": { "alias": "tuiAlertOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.TuiPortalDirective; inputs: { "options": "tuiAlertOptions"; "open": "tuiAlert"; }; outputs: { "openChange": "tuiAlertChange"; }; }]>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type TuiPopoverContext } from '@taiga-ui/cdk/services';
|
|
2
|
-
import { type TuiHandler } from '@taiga-ui/cdk/types';
|
|
3
|
-
import { type TuiNotificationOptions } from '@taiga-ui/core/components/notification';
|
|
4
|
-
import { type TuiPositionOptions } from '@taiga-ui/core/directives';
|
|
5
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
6
|
-
export interface TuiAlertOptions<I = undefined> extends Omit<TuiNotificationOptions, 'size'>, TuiPositionOptions {
|
|
7
|
-
readonly autoClose: TuiHandler<string, number> | number;
|
|
8
|
-
readonly data: I;
|
|
9
|
-
readonly closable: boolean;
|
|
10
|
-
readonly label: PolymorpheusContent<TuiAlertOptions<I>>;
|
|
11
|
-
}
|
|
12
|
-
export interface TuiAlertContext<O = void, I = undefined> extends TuiPopoverContext<O>, TuiAlertOptions<I> {
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TuiNotificationService } from '@taiga-ui/core/directives/notification';
|
|
2
|
-
import { TuiAlertComponent } from './alert.component';
|
|
3
|
-
import { type TuiAlertOptions } from './alert.interfaces';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TuiAlertService extends TuiNotificationService<TuiAlertOptions<any>> {
|
|
6
|
-
protected readonly options: TuiAlertOptions<undefined>;
|
|
7
|
-
protected readonly component: typeof TuiAlertComponent;
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlertService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TuiAlertService>;
|
|
11
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type FactoryProvider, InjectionToken } from '@angular/core';
|
|
2
|
-
import { type TuiAlertOptions } from './alert.interfaces';
|
|
3
|
-
export declare const TUI_ALERT_CONCURRENCY: InjectionToken<number>;
|
|
4
|
-
export declare const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'>;
|
|
5
|
-
export declare const TUI_ALERT_OPTIONS: InjectionToken<TuiAlertOptions<undefined>>;
|
|
6
|
-
export declare function tuiAlertOptionsProvider(options: Partial<TuiAlertOptions>): FactoryProvider;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Provider, type Type } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiDataListDirective {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDataListDirective, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDataListDirective, "ng-template[tuiDataList]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
7
|
-
export declare function tuiAsDataList(list: Type<TuiDataListDirective>): Provider;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type OnDestroy, type TemplateRef } from '@angular/core';
|
|
2
|
-
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
3
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@taiga-ui/core/directives/icons";
|
|
6
|
-
/**
|
|
7
|
-
* TODO(v5): delete
|
|
8
|
-
* @deprecated use `<button tuiOption new />` / `<a tuiOption new /> / `<label tuiOption new /> instead
|
|
9
|
-
*/
|
|
10
|
-
export declare class TuiOption<T = unknown> implements OnDestroy {
|
|
11
|
-
private readonly isMobile;
|
|
12
|
-
private readonly el;
|
|
13
|
-
private readonly dataList;
|
|
14
|
-
private readonly host;
|
|
15
|
-
protected readonly content: PolymorpheusContent<TuiContext<TemplateRef<Record<string, unknown>>>>;
|
|
16
|
-
protected readonly dropdown: import("@angular/core").WritableSignal<import("@angular/core").ComponentRef<unknown> | null> | undefined;
|
|
17
|
-
disabled: boolean;
|
|
18
|
-
value?: T;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
protected onClick(): void;
|
|
21
|
-
protected onMouseMove(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiOption<any>, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiOption<any>, "button[tuiOption]:not([new]), a[tuiOption]:not([new]), label[tuiOption]:not([new])", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.TuiWithIcons; inputs: {}; outputs: {}; }]>;
|
|
24
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type OnDestroy, type OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@taiga-ui/cdk/directives/active-zone";
|
|
4
|
-
export declare class TuiActiveZoneAdapter implements OnDestroy, OnInit {
|
|
5
|
-
private readonly current;
|
|
6
|
-
private readonly parent;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
ngOnDestroy(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiActiveZoneAdapter, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiActiveZoneAdapter, "[tuiActiveZoneAdapter]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }]>;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type Signal } from '@angular/core';
|
|
2
|
-
import { type TuiPopover } from '@taiga-ui/cdk/services';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TuiDialogs {
|
|
5
|
-
protected readonly dialogs: Signal<ReadonlyArray<TuiPopover<any, any>>>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDialogs, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDialogs, "tui-dialogs", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare const TUI_HEADER_OPTIONS: import("@angular/core").InjectionToken<{
|
|
3
|
-
size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
|
-
}>, tuiHeaderOptionsProvider: (item: Partial<{
|
|
5
|
-
size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6
|
-
}> | (() => Partial<{
|
|
7
|
-
size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
8
|
-
}>)) => import("@angular/core").FactoryProvider;
|
|
9
|
-
export declare class TuiHeader {
|
|
10
|
-
protected readonly nothing: undefined;
|
|
11
|
-
protected readonly options: {
|
|
12
|
-
size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
-
};
|
|
14
|
-
readonly tuiHeader: import("@angular/core").InputSignal<"" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHeader, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHeader, "[tuiHeader]", never, { "tuiHeader": { "alias": "tuiHeader"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './header.directive';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated TODO: remove in v.5 when legacy controls are dropped
|
|
4
|
-
*/
|
|
5
|
-
export declare class TuiDropdownOpenLegacy {
|
|
6
|
-
private readonly openStateSub;
|
|
7
|
-
readonly tuiDropdownOpenChange: import("rxjs").Observable<boolean>;
|
|
8
|
-
set tuiDropdownOpen(open: boolean);
|
|
9
|
-
emitOpenChange(open: boolean): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownOpenLegacy, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownOpenLegacy, "[tuiDropdownOpen]:not([tuiDropdown]),[tuiDropdownOpenChange]:not([tuiDropdown])", never, { "tuiDropdownOpen": { "alias": "tuiDropdownOpen"; "required": false; }; }, { "tuiDropdownOpenChange": "tuiDropdownOpenChange"; }, never, never, true, never>;
|
|
12
|
-
}
|