@taiga-ui/core 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/icon/icon.component.d.ts +5 -4
- package/components/scrollbar/scrollbar.component.d.ts +2 -1
- package/components/textfield/textfield.component.d.ts +1 -0
- package/esm2022/components/calendar/calendar-sheet.component.mjs +3 -3
- package/esm2022/components/icon/icon.component.mjs +17 -23
- package/esm2022/components/notification/notification.options.mjs +2 -2
- package/esm2022/components/root/root.component.mjs +1 -1
- package/esm2022/components/scrollbar/scrollbar.component.mjs +12 -11
- package/esm2022/components/scrollbar/scrollbar.directive.mjs +7 -5
- package/esm2022/components/textfield/textfield.component.mjs +6 -3
- package/esm2022/directives/icons/icons.directive.mjs +2 -2
- package/esm2022/pipes/month/month.pipe.mjs +2 -2
- package/esm2022/services/breakpoint.service.mjs +2 -2
- package/esm2022/services/dark-theme.service.mjs +4 -1
- package/esm2022/tokens/dark-mode.mjs +40 -0
- package/esm2022/tokens/icon-resolver.mjs +12 -10
- package/esm2022/tokens/icons.mjs +8 -4
- package/esm2022/tokens/index.mjs +2 -1
- package/esm2022/utils/format/number-to-string-without-exp.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-calendar.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-icon.mjs +16 -22
- package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs +17 -14
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +5 -2
- package/fesm2022/taiga-ui-core-components-textfield.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-pipes-month.mjs +1 -1
- package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-services.mjs +4 -1
- package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs +57 -15
- package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-format.mjs +1 -1
- package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
- package/package.json +111 -111
- package/services/dark-theme.service.d.ts +3 -0
- package/styles/components/icon.less +1 -1
- package/styles/components/icons.less +1 -0
- package/styles/components/textfield.less +1 -0
- package/tokens/dark-mode.d.ts +6 -0
- package/tokens/icon-resolver.d.ts +4 -0
- package/tokens/icons.d.ts +4 -0
- package/tokens/index.d.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-tokens.mjs","sources":["../../../projects/core/tokens/reduced-motion.ts","../../../projects/core/tokens/animations-speed.ts","../../../projects/core/tokens/assets-path.ts","../../../projects/core/tokens/common-icons.ts","../../../projects/core/tokens/date-format.ts","../../../projects/core/tokens/day-type-handler.ts","../../../projects/core/tokens/first-day-of-week.ts","../../../projects/core/tokens/i18n.ts","../../../projects/core/tokens/icon.ts","../../../projects/core/tokens/icons.ts","../../../projects/core/tokens/icon-resolver.ts","../../../projects/core/tokens/media.ts","../../../projects/core/tokens/number-format.ts","../../../projects/core/tokens/scroll-ref.ts","../../../projects/core/tokens/selection-stream.ts","../../../projects/core/tokens/spin-icons.ts","../../../projects/core/tokens/theme.ts","../../../projects/core/tokens/viewport.ts","../../../projects/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_REDUCED_MOTION = tuiCreateTokenFromFactory(\n () =>\n inject(DOCUMENT).defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)')\n .matches ?? false,\n);\n","import {inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TUI_REDUCED_MOTION} from './reduced-motion';\n\n/**\n * Speed of all Taiga UI animations. 1 equals 300ms.\n */\nexport const TUI_ANIMATIONS_SPEED = tuiCreateTokenFromFactory<number>(() =>\n inject(TUI_REDUCED_MOTION) ? 0 : 1,\n);\n","import type {ValueProvider} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_ASSETS_PATH = tuiCreateToken('assets/taiga-ui/icons');\n\nexport function tuiAssetsPathProvider(useValue: string): ValueProvider {\n return {\n provide: TUI_ASSETS_PATH,\n useValue,\n };\n}\n","import type {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nconst COMMON_ICONS: TuiCommonIcons = {\n check: '@tui.check',\n close: '@tui.x',\n error: '@tui.circle-alert',\n more: '@tui.chevron-right',\n};\n\nexport interface TuiCommonIcons {\n readonly check: string;\n readonly close: string;\n readonly error: string;\n readonly more: string;\n}\n\nexport const TUI_COMMON_ICONS = tuiCreateToken(COMMON_ICONS);\n\nexport function tuiCommonIconsProvider(icons: Partial<TuiCommonIcons>): Provider {\n return tuiProvideOptions(TUI_COMMON_ICONS, icons, COMMON_ICONS);\n}\n","import type {InjectionToken, Provider} from '@angular/core';\nimport {Optional, SkipSelf} from '@angular/core';\nimport type {TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\n/**\n * Formatting configuration for displayed dates\n */\nexport interface TuiDateFormatSettings {\n /**\n * Date format mode.\n */\n readonly mode: TuiDateMode;\n /**\n * Separator between date segments\n * @example 10.02 ('.' by default)\n */\n readonly separator: string;\n}\n\nexport const TUI_DEFAULT_DATE_FORMAT: TuiDateFormatSettings = {\n mode: 'DMY',\n separator: '.',\n};\n\n/**\n * Formatting configuration for displayed dates\n */\nexport const TUI_DATE_FORMAT: InjectionToken<Observable<TuiDateFormatSettings>> =\n tuiCreateToken(of(TUI_DEFAULT_DATE_FORMAT));\n\nexport function tuiDateFormatProvider(options: Partial<TuiDateFormatSettings>): Provider {\n return {\n provide: TUI_DATE_FORMAT,\n deps: [[new Optional(), new SkipSelf(), TUI_DATE_FORMAT]],\n useFactory: (\n parent: Observable<TuiDateFormatSettings> | null,\n ): Observable<TuiDateFormatSettings> =>\n (parent || of(TUI_DEFAULT_DATE_FORMAT)).pipe(\n map((format) => ({...format, ...options})),\n ),\n };\n}\n","import type {TuiDay} from '@taiga-ui/cdk/date-time';\nimport type {TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * Token for adding data-type attribute to calendar cell\n */\nexport const TUI_DAY_TYPE_HANDLER = tuiCreateToken<TuiHandler<TuiDay, string>>((day) =>\n day.isWeekend ? 'weekend' : 'weekday',\n);\n","import {TuiDayOfWeek} from '@taiga-ui/cdk/date-time';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * The first day of the week index\n */\nexport const TUI_FIRST_DAY_OF_WEEK = tuiCreateToken<0 | 1 | 2 | 3 | 4 | 5 | 6>(\n TuiDayOfWeek.Monday,\n);\n","import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\n/**\n * Localized months names\n */\nexport const TUI_MONTHS = tuiCreateTokenFromFactory(tuiExtractI18n('months'));\n\n/**\n * i18n 'close' word\n */\nexport const TUI_CLOSE_WORD = tuiCreateTokenFromFactory(tuiExtractI18n('close'));\n\n/**\n * i18n 'Nothing found' message\n */\nexport const TUI_NOTHING_FOUND_MESSAGE = tuiCreateTokenFromFactory(\n tuiExtractI18n('nothingFoundMessage'),\n);\n\n/**\n * i18n of error message\n */\nexport const TUI_DEFAULT_ERROR_MESSAGE = tuiCreateTokenFromFactory(\n tuiExtractI18n('defaultErrorMessage'),\n);\n\n/**\n * spin i18n texts\n */\nexport const TUI_SPIN_TEXTS = tuiCreateTokenFromFactory(tuiExtractI18n('spinTexts'));\n\n/**\n * calendars i18n texts\n */\nexport const TUI_SHORT_WEEK_DAYS = tuiCreateTokenFromFactory(\n tuiExtractI18n('shortWeekDays'),\n);\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_ICON_START = tuiCreateToken('');\nexport const TUI_ICON_END = tuiCreateToken('');\n","import type {FactoryProvider} from '@angular/core';\nimport {inject} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_ICON_STARTS = tuiCreateToken<Record<string, string>>({});\n\nexport function tuiIconsProvider(icons: Record<string, string>): FactoryProvider {\n return {\n provide: TUI_ICON_STARTS,\n useFactory: () => ({\n ...(inject(TUI_ICON_STARTS, {skipSelf: true, optional: true}) || {}),\n ...Object.fromEntries(\n Object.entries(icons).map(([key, value]) => [\n key,\n `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(value)}`,\n ]),\n ),\n }),\n };\n}\n","import type {Provider} from '@angular/core';\nimport {inject} from '@angular/core';\nimport type {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TUI_ASSETS_PATH} from './assets-path';\nimport {TUI_ICON_STARTS} from './icons';\n\nexport const TUI_ICON_START_RESOLVER = tuiCreateTokenFromFactory<\n TuiStringHandler<string>\n>(() => {\n const path = inject(TUI_ASSETS_PATH);\n\n return (icon) =>\n !icon || icon.includes('/')\n ? icon\n : `${path}/${icon.replace('@tui.', '').split('.').join('/')}.svg`;\n});\n\nexport function tuiInjectIconResolver(): TuiStringHandler<string> {\n const icons = inject(TUI_ICON_STARTS);\n const resolver = inject(TUI_ICON_START_RESOLVER);\n\n return (icon) => icons[icon] || resolver(icon);\n}\n\nexport function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider {\n return {\n provide: TUI_ICON_START_RESOLVER,\n useValue,\n };\n}\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiMedia {\n readonly desktopLarge: number;\n readonly desktopSmall: number;\n readonly mobile: number;\n readonly tablet?: number;\n}\n\n/**\n * Token for media constant\n */\nexport const TUI_MEDIA = tuiCreateToken<TuiMedia>({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n});\n","import type {InjectionToken, Provider} from '@angular/core';\nimport {Optional, SkipSelf} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport type {TuiRounding} from '@taiga-ui/cdk/types';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\nexport type TuiDecimalMode = 'always' | 'not-zero' | 'pad';\nexport type TuiDecimalSymbol = ',' | '.';\n\n/**\n * Formatting configuration for displayed numbers\n */\nexport interface TuiNumberFormatSettings {\n /**\n * Number of digits of decimal part.\n * @note Use `Infinity` to keep untouched.\n */\n readonly precision: number;\n /**\n * Separator between the integer and the decimal part.\n * @example 0,42 (',' by default)\n */\n readonly decimalSeparator: TuiDecimalSymbol;\n /**\n * Rounding method.\n */\n readonly rounding: TuiRounding;\n /**\n * Separator between thousands.\n * @example 360 000 (' ' by default)\n */\n readonly thousandSeparator: string;\n /**\n * Decimal part display mode. ('not-zero' by default)\n */\n readonly decimalMode: TuiDecimalMode;\n}\n\nexport const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings = {\n precision: NaN,\n decimalSeparator: '.',\n thousandSeparator: CHAR_NO_BREAK_SPACE,\n rounding: 'truncate',\n decimalMode: 'pad',\n};\n\n/**\n * Formatting configuration for displayed numbers\n */\nexport const TUI_NUMBER_FORMAT: InjectionToken<Observable<TuiNumberFormatSettings>> =\n tuiCreateToken(of(TUI_DEFAULT_NUMBER_FORMAT));\n\nexport function tuiNumberFormatProvider(\n options: Partial<TuiNumberFormatSettings>,\n): Provider {\n return {\n provide: TUI_NUMBER_FORMAT,\n deps: [[new Optional(), new SkipSelf(), TUI_NUMBER_FORMAT]],\n useFactory: (\n parent: Observable<TuiNumberFormatSettings> | null,\n ): Observable<TuiNumberFormatSettings> =>\n (parent || of(TUI_DEFAULT_NUMBER_FORMAT)).pipe(\n map((format) => ({...format, ...options})),\n ),\n };\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ElementRef, inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_SCROLL_REF = tuiCreateTokenFromFactory(\n () => new ElementRef(inject(DOCUMENT).documentElement),\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {merge, share, switchMap, takeUntil} from 'rxjs';\n\n/**\n * A stream of possible selection changes\n */\nexport const TUI_SELECTION_STREAM = tuiCreateTokenFromFactory<Observable<unknown>>(() => {\n const doc = inject(DOCUMENT);\n\n return merge(\n tuiTypedFromEvent(doc, 'selectionchange'),\n tuiTypedFromEvent(doc, 'mouseup'),\n tuiTypedFromEvent(doc, 'mousedown').pipe(\n switchMap(() =>\n tuiTypedFromEvent(doc, 'mousemove').pipe(\n takeUntil(tuiTypedFromEvent(doc, 'mouseup')),\n ),\n ),\n ),\n tuiTypedFromEvent(doc, 'keydown'),\n tuiTypedFromEvent(doc, 'keyup'),\n ).pipe(share());\n});\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiSpinIcons {\n readonly decrement: string;\n readonly increment: string;\n}\n\nexport const TUI_SPIN_ICONS = tuiCreateToken<TuiSpinIcons>({\n decrement: '@tui.chevron-left',\n increment: '@tui.chevron-right',\n});\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_THEME = tuiCreateToken('Taiga UI');\n","import type {Provider, Type} from '@angular/core';\nimport {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {TuiRectAccessor} from '@taiga-ui/core/classes';\n\n/**\n * Viewport accessor\n */\nexport const TUI_VIEWPORT = tuiCreateTokenFromFactory<TuiRectAccessor>(() => {\n const win = inject(WA_WINDOW);\n\n return {\n type: 'viewport',\n getClientRect() {\n const rect = {\n top: 0,\n left: 0,\n right: win.innerWidth,\n bottom: win.innerHeight,\n width: win.innerWidth,\n height: win.innerHeight,\n x: 0,\n y: 0,\n };\n\n return {\n ...rect,\n toJSON: () => JSON.stringify(rect),\n };\n },\n };\n});\n\nexport function tuiAsViewport(accessor: Type<TuiRectAccessor>): Provider {\n return tuiProvide(TUI_VIEWPORT, accessor);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAIa,kBAAkB,GAAG,yBAAyB,CACvD,MACI,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,UAAU,GAAG,kCAAkC,CAAC;KACzE,OAAO,IAAI,KAAK;;ACF7B;;AAEG;MACU,oBAAoB,GAAG,yBAAyB,CAAS,MAClE,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC;;MCNzB,eAAe,GAAG,cAAc,CAAC,uBAAuB,EAAE;AAEjE,SAAU,qBAAqB,CAAC,QAAgB,EAAA;IAClD,OAAO;AACH,QAAA,OAAO,EAAE,eAAe;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AG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,GAAG,CAAC,UAAU;gBACrB,MAAM,EAAE,GAAG,CAAC,WAAW;gBACvB,KAAK,EAAE,GAAG,CAAC,UAAU;gBACrB,MAAM,EAAE,GAAG,CAAC,WAAW;AACvB,gBAAA,CAAC,EAAE,CAAC;AACJ,gBAAA,CAAC,EAAE,CAAC;aACP,CAAC;YAEF,OAAO;AACH,gBAAA,GAAG,IAAI;gBACP,MAAM,EAAE,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aACrC,CAAC;SACL;KACJ,CAAC;AACN,CAAC,EAAE;AAEG,SAAU,aAAa,CAAC,QAA+B,EAAA;AACzD,IAAA,OAAO,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC9C;;ACpCA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-tokens.mjs","sources":["../../../projects/core/tokens/reduced-motion.ts","../../../projects/core/tokens/animations-speed.ts","../../../projects/core/tokens/assets-path.ts","../../../projects/core/tokens/common-icons.ts","../../../projects/core/tokens/dark-mode.ts","../../../projects/core/tokens/date-format.ts","../../../projects/core/tokens/day-type-handler.ts","../../../projects/core/tokens/first-day-of-week.ts","../../../projects/core/tokens/i18n.ts","../../../projects/core/tokens/icon.ts","../../../projects/core/tokens/icons.ts","../../../projects/core/tokens/icon-resolver.ts","../../../projects/core/tokens/media.ts","../../../projects/core/tokens/number-format.ts","../../../projects/core/tokens/scroll-ref.ts","../../../projects/core/tokens/selection-stream.ts","../../../projects/core/tokens/spin-icons.ts","../../../projects/core/tokens/theme.ts","../../../projects/core/tokens/viewport.ts","../../../projects/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_REDUCED_MOTION = tuiCreateTokenFromFactory(\n () =>\n inject(DOCUMENT).defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)')\n .matches ?? false,\n);\n","import {inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TUI_REDUCED_MOTION} from './reduced-motion';\n\n/**\n * Speed of all Taiga UI animations. 1 equals 300ms.\n */\nexport const TUI_ANIMATIONS_SPEED = tuiCreateTokenFromFactory<number>(() =>\n inject(TUI_REDUCED_MOTION) ? 0 : 1,\n);\n","import type {ValueProvider} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_ASSETS_PATH = tuiCreateToken('assets/taiga-ui/icons');\n\nexport function tuiAssetsPathProvider(useValue: string): ValueProvider {\n return {\n provide: TUI_ASSETS_PATH,\n useValue,\n };\n}\n","import type {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nconst COMMON_ICONS: TuiCommonIcons = {\n check: '@tui.check',\n close: '@tui.x',\n error: '@tui.circle-alert',\n more: '@tui.chevron-right',\n};\n\nexport interface TuiCommonIcons {\n readonly check: string;\n readonly close: string;\n readonly error: string;\n readonly more: string;\n}\n\nexport const TUI_COMMON_ICONS = tuiCreateToken(COMMON_ICONS);\n\nexport function tuiCommonIconsProvider(icons: Partial<TuiCommonIcons>): Provider {\n return tuiProvideOptions(TUI_COMMON_ICONS, icons, COMMON_ICONS);\n}\n","import {effect, inject, InjectionToken, signal, type WritableSignal} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WA_LOCAL_STORAGE, WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {filter, fromEvent} from 'rxjs';\n\nexport const TUI_DARK_MODE_DEFAULT_KEY = 'tuiDark';\nexport const TUI_DARK_MODE_KEY = tuiCreateToken(TUI_DARK_MODE_DEFAULT_KEY);\nexport const TUI_DARK_MODE = new InjectionToken<\n WritableSignal<boolean> & {reset(): void}\n>('', {\n factory: () => {\n let automatic = true;\n\n const storage = inject(WA_LOCAL_STORAGE);\n const key = inject(TUI_DARK_MODE_KEY);\n const saved = storage.getItem(key);\n const media = inject(WA_WINDOW).matchMedia('(prefers-color-scheme: dark)');\n const result = signal(Boolean((saved && JSON.parse(saved)) ?? media.matches));\n\n fromEvent(media, 'change')\n .pipe(\n filter(() => !storage.getItem(key)),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n automatic = true;\n result.set(media.matches);\n });\n\n effect(() => {\n const value = String(result());\n\n if (automatic) {\n automatic = false;\n } else {\n storage.setItem(key, value);\n }\n });\n\n return Object.assign(result, {\n reset: () => {\n storage.removeItem(key);\n automatic = true;\n result.set(media.matches);\n },\n });\n },\n});\n","import type {InjectionToken, Provider} from '@angular/core';\nimport {Optional, SkipSelf} from '@angular/core';\nimport type {TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\n/**\n * Formatting configuration for displayed dates\n */\nexport interface TuiDateFormatSettings {\n /**\n * Date format mode.\n */\n readonly mode: TuiDateMode;\n /**\n * Separator between date segments\n * @example 10.02 ('.' by default)\n */\n readonly separator: string;\n}\n\nexport const TUI_DEFAULT_DATE_FORMAT: TuiDateFormatSettings = {\n mode: 'DMY',\n separator: '.',\n};\n\n/**\n * Formatting configuration for displayed dates\n */\nexport const TUI_DATE_FORMAT: InjectionToken<Observable<TuiDateFormatSettings>> =\n tuiCreateToken(of(TUI_DEFAULT_DATE_FORMAT));\n\nexport function tuiDateFormatProvider(options: Partial<TuiDateFormatSettings>): Provider {\n return {\n provide: TUI_DATE_FORMAT,\n deps: [[new Optional(), new SkipSelf(), TUI_DATE_FORMAT]],\n useFactory: (\n parent: Observable<TuiDateFormatSettings> | null,\n ): Observable<TuiDateFormatSettings> =>\n (parent || of(TUI_DEFAULT_DATE_FORMAT)).pipe(\n map((format) => ({...format, ...options})),\n ),\n };\n}\n","import type {TuiDay} from '@taiga-ui/cdk/date-time';\nimport type {TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * Token for adding data-type attribute to calendar cell\n */\nexport const TUI_DAY_TYPE_HANDLER = tuiCreateToken<TuiHandler<TuiDay, string>>((day) =>\n day.isWeekend ? 'weekend' : 'weekday',\n);\n","import {TuiDayOfWeek} from '@taiga-ui/cdk/date-time';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * The first day of the week index\n */\nexport const TUI_FIRST_DAY_OF_WEEK = tuiCreateToken<0 | 1 | 2 | 3 | 4 | 5 | 6>(\n TuiDayOfWeek.Monday,\n);\n","import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\n/**\n * Localized months names\n */\nexport const TUI_MONTHS = tuiCreateTokenFromFactory(tuiExtractI18n('months'));\n\n/**\n * i18n 'close' word\n */\nexport const TUI_CLOSE_WORD = tuiCreateTokenFromFactory(tuiExtractI18n('close'));\n\n/**\n * i18n 'Nothing found' message\n */\nexport const TUI_NOTHING_FOUND_MESSAGE = tuiCreateTokenFromFactory(\n tuiExtractI18n('nothingFoundMessage'),\n);\n\n/**\n * i18n of error message\n */\nexport const TUI_DEFAULT_ERROR_MESSAGE = tuiCreateTokenFromFactory(\n tuiExtractI18n('defaultErrorMessage'),\n);\n\n/**\n * spin i18n texts\n */\nexport const TUI_SPIN_TEXTS = tuiCreateTokenFromFactory(tuiExtractI18n('spinTexts'));\n\n/**\n * calendars i18n texts\n */\nexport const TUI_SHORT_WEEK_DAYS = tuiCreateTokenFromFactory(\n tuiExtractI18n('shortWeekDays'),\n);\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_ICON_START = tuiCreateToken('');\nexport const TUI_ICON_END = tuiCreateToken('');\n","import type {FactoryProvider} from '@angular/core';\nimport {inject} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_ICON_REGISTRY = tuiCreateToken<Record<string, string>>({});\n\n/**\n * @deprecated: use {@link TUI_ICON_REGISTRY}\n */\nexport const TUI_ICON_STARTS = TUI_ICON_REGISTRY;\n\nexport function tuiIconsProvider(icons: Record<string, string>): FactoryProvider {\n return {\n provide: TUI_ICON_REGISTRY,\n useFactory: () => ({\n ...(inject(TUI_ICON_REGISTRY, {skipSelf: true, optional: true}) || {}),\n ...Object.fromEntries(\n Object.entries(icons).map(([key, value]) => [\n key,\n `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(value)}`,\n ]),\n ),\n }),\n };\n}\n","import type {Provider} from '@angular/core';\nimport {inject} from '@angular/core';\nimport type {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TUI_ASSETS_PATH} from './assets-path';\nimport {TUI_ICON_REGISTRY} from './icons';\n\nexport const TUI_ICON_RESOLVER = tuiCreateTokenFromFactory<TuiStringHandler<string>>(\n () => {\n const path = inject(TUI_ASSETS_PATH);\n\n return (icon) => `${path}/${icon.replace('@tui.', '').split('.').join('/')}.svg`;\n },\n);\n\n/**\n * @deprecated use {@link TUI_ICON_RESOLVER}\n */\nexport const TUI_ICON_START_RESOLVER = TUI_ICON_RESOLVER;\n\nexport function tuiInjectIconResolver(): TuiStringHandler<string> {\n const icons = inject(TUI_ICON_REGISTRY);\n const resolver = inject(TUI_ICON_RESOLVER);\n\n return (icon) => (!icon || icon.includes('/') ? icon : icons[icon] || resolver(icon));\n}\n\nexport function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider {\n return {\n provide: TUI_ICON_RESOLVER,\n useValue,\n };\n}\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiMedia {\n readonly desktopLarge: number;\n readonly desktopSmall: number;\n readonly mobile: number;\n readonly tablet?: number;\n}\n\n/**\n * Token for media constant\n */\nexport const TUI_MEDIA = tuiCreateToken<TuiMedia>({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n});\n","import type {InjectionToken, Provider} from '@angular/core';\nimport {Optional, SkipSelf} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport type {TuiRounding} from '@taiga-ui/cdk/types';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {map, of} from 'rxjs';\n\nexport type TuiDecimalMode = 'always' | 'not-zero' | 'pad';\nexport type TuiDecimalSymbol = ',' | '.';\n\n/**\n * Formatting configuration for displayed numbers\n */\nexport interface TuiNumberFormatSettings {\n /**\n * Number of digits of decimal part.\n * @note Use `Infinity` to keep untouched.\n */\n readonly precision: number;\n /**\n * Separator between the integer and the decimal part.\n * @example 0,42 (',' by default)\n */\n readonly decimalSeparator: TuiDecimalSymbol;\n /**\n * Rounding method.\n */\n readonly rounding: TuiRounding;\n /**\n * Separator between thousands.\n * @example 360 000 (' ' by default)\n */\n readonly thousandSeparator: string;\n /**\n * Decimal part display mode. ('not-zero' by default)\n */\n readonly decimalMode: TuiDecimalMode;\n}\n\nexport const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings = {\n precision: NaN,\n decimalSeparator: '.',\n thousandSeparator: CHAR_NO_BREAK_SPACE,\n rounding: 'truncate',\n decimalMode: 'pad',\n};\n\n/**\n * Formatting configuration for displayed numbers\n */\nexport const TUI_NUMBER_FORMAT: InjectionToken<Observable<TuiNumberFormatSettings>> =\n tuiCreateToken(of(TUI_DEFAULT_NUMBER_FORMAT));\n\nexport function tuiNumberFormatProvider(\n options: Partial<TuiNumberFormatSettings>,\n): Provider {\n return {\n provide: TUI_NUMBER_FORMAT,\n deps: [[new Optional(), new SkipSelf(), TUI_NUMBER_FORMAT]],\n useFactory: (\n parent: Observable<TuiNumberFormatSettings> | null,\n ): Observable<TuiNumberFormatSettings> =>\n (parent || of(TUI_DEFAULT_NUMBER_FORMAT)).pipe(\n map((format) => ({...format, ...options})),\n ),\n };\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ElementRef, inject} from '@angular/core';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_SCROLL_REF = tuiCreateTokenFromFactory(\n () => new ElementRef(inject(DOCUMENT).documentElement),\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {Observable} from 'rxjs';\nimport {merge, share, switchMap, takeUntil} from 'rxjs';\n\n/**\n * A stream of possible selection changes\n */\nexport const TUI_SELECTION_STREAM = tuiCreateTokenFromFactory<Observable<unknown>>(() => {\n const doc = inject(DOCUMENT);\n\n return merge(\n tuiTypedFromEvent(doc, 'selectionchange'),\n tuiTypedFromEvent(doc, 'mouseup'),\n tuiTypedFromEvent(doc, 'mousedown').pipe(\n switchMap(() =>\n tuiTypedFromEvent(doc, 'mousemove').pipe(\n takeUntil(tuiTypedFromEvent(doc, 'mouseup')),\n ),\n ),\n ),\n tuiTypedFromEvent(doc, 'keydown'),\n tuiTypedFromEvent(doc, 'keyup'),\n ).pipe(share());\n});\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiSpinIcons {\n readonly decrement: string;\n readonly increment: string;\n}\n\nexport const TUI_SPIN_ICONS = tuiCreateToken<TuiSpinIcons>({\n decrement: '@tui.chevron-left',\n increment: '@tui.chevron-right',\n});\n","import {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const TUI_THEME = tuiCreateToken('Taiga UI');\n","import type {Provider, Type} from '@angular/core';\nimport {inject} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCreateTokenFromFactory, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport type {TuiRectAccessor} from '@taiga-ui/core/classes';\n\n/**\n * Viewport accessor\n */\nexport const TUI_VIEWPORT = tuiCreateTokenFromFactory<TuiRectAccessor>(() => {\n const win = inject(WA_WINDOW);\n\n return {\n type: 'viewport',\n getClientRect() {\n const rect = {\n top: 0,\n left: 0,\n right: win.innerWidth,\n bottom: win.innerHeight,\n width: win.innerWidth,\n height: win.innerHeight,\n x: 0,\n y: 0,\n };\n\n return {\n ...rect,\n toJSON: () => JSON.stringify(rect),\n };\n },\n };\n});\n\nexport function tuiAsViewport(accessor: Type<TuiRectAccessor>): Provider {\n return tuiProvide(TUI_VIEWPORT, accessor);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAIa,kBAAkB,GAAG,yBAAyB,CACvD,MACI,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,UAAU,GAAG,kCAAkC,CAAC;KACzE,OAAO,IAAI,KAAK;;ACF7B;;AAEG;MACU,oBAAoB,GAAG,yBAAyB,CAAS,MAClE,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC;;MCNzB,eAAe,GAAG,cAAc,CAAC,uBAAuB,EAAE;AAEjE,SAAU,qBAAqB,CAAC,QAAgB,EAAA;IAClD,OAAO;AACH,QAAA,OAAO,EAAE,eAAe;QACxB,QAAQ;KACX,CAAC;AACN;;ACPA,MAAM,YAAY,GAAmB;AACjC,IAAA,KAAK,EAAE,YAAY;AACnB,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,KAAK,EAAE,mBAAmB;AAC1B,IAAA,IAAI,EAAE,oBAAoB;CAC7B,CAAC;MASW,gBAAgB,GAAG,cAAc,CAAC,YAAY,EAAE;AAEvD,SAAU,sBAAsB,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AO;AACH,QAAA,IAAI,EAAE,UAAU;QAChB,aAAa,GAAA;AACT,YAAA,MAAM,IAAI,GAAG;AACT,gBAAA,GAAG,EAAE,CAAC;AACN,gBAAA,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,GAAG,CAAC,UAAU;gBACrB,MAAM,EAAE,GAAG,CAAC,WAAW;gBACvB,KAAK,EAAE,GAAG,CAAC,UAAU;gBACrB,MAAM,EAAE,GAAG,CAAC,WAAW;AACvB,gBAAA,CAAC,EAAE,CAAC;AACJ,gBAAA,CAAC,EAAE,CAAC;aACP,CAAC;YAEF,OAAO;AACH,gBAAA,GAAG,IAAI;gBACP,MAAM,EAAE,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aACrC,CAAC;SACL;KACJ,CAAC;AACN,CAAC,EAAE;AAEG,SAAU,aAAa,CAAC,QAA+B,EAAA;AACzD,IAAA,OAAO,UAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC9C;;ACpCA;;AAEG;;;;"}
|
|
@@ -14,7 +14,7 @@ function tuiNumberToStringWithoutExp(value) {
|
|
|
14
14
|
const [numberPart, expPart] = valueAsString.split('e-');
|
|
15
15
|
let valueWithoutExp = valueAsString;
|
|
16
16
|
if (expPart) {
|
|
17
|
-
const [, fractionalPart] = numberPart
|
|
17
|
+
const [, fractionalPart = ''] = numberPart?.split('.') ?? [];
|
|
18
18
|
const decimalDigits = Number(expPart) + (fractionalPart?.length || 0);
|
|
19
19
|
valueWithoutExp = value.toFixed(decimalDigits);
|
|
20
20
|
}
|
|
@@ -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/string-hash-to-hsl.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
|
|
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/string-hash-to-hsl.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 * Converts a string to an HSL color\n * @param value string to convert\n * @return HSL color string\n */\n// @bad TODO: convert stringHashToHsl to stringHashToRgb\nexport function tuiStringHashToHsl(value: string): string {\n if (value === '') {\n return '';\n }\n\n let hash = 0;\n\n for (let i = 0; i < value.length; i++) {\n hash = value.charCodeAt(i) + ((hash << 5) - hash);\n hash &= hash;\n }\n\n const hue = hash % 360;\n const saturation = 60 + (hash % 5);\n const lightness = 80 + (hash % 5);\n\n return `hsl(${hue},${satur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6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -31,18 +31,6 @@
|
|
|
31
31
|
"esm": "./esm2022/animations/taiga-ui-core-animations.mjs",
|
|
32
32
|
"default": "./fesm2022/taiga-ui-core-animations.mjs"
|
|
33
33
|
},
|
|
34
|
-
"./classes": {
|
|
35
|
-
"types": "./classes/index.d.ts",
|
|
36
|
-
"esm2022": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
37
|
-
"esm": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
38
|
-
"default": "./fesm2022/taiga-ui-core-classes.mjs"
|
|
39
|
-
},
|
|
40
|
-
"./components": {
|
|
41
|
-
"types": "./components/index.d.ts",
|
|
42
|
-
"esm2022": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
43
|
-
"esm": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
44
|
-
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
45
|
-
},
|
|
46
34
|
"./directives": {
|
|
47
35
|
"types": "./directives/index.d.ts",
|
|
48
36
|
"esm2022": "./esm2022/directives/taiga-ui-core-directives.mjs",
|
|
@@ -55,6 +43,18 @@
|
|
|
55
43
|
"esm": "./esm2022/pipes/taiga-ui-core-pipes.mjs",
|
|
56
44
|
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
57
45
|
},
|
|
46
|
+
"./classes": {
|
|
47
|
+
"types": "./classes/index.d.ts",
|
|
48
|
+
"esm2022": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
49
|
+
"esm": "./esm2022/classes/taiga-ui-core-classes.mjs",
|
|
50
|
+
"default": "./fesm2022/taiga-ui-core-classes.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./components": {
|
|
53
|
+
"types": "./components/index.d.ts",
|
|
54
|
+
"esm2022": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
55
|
+
"esm": "./esm2022/components/taiga-ui-core-components.mjs",
|
|
56
|
+
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
57
|
+
},
|
|
58
58
|
"./services": {
|
|
59
59
|
"types": "./services/index.d.ts",
|
|
60
60
|
"esm2022": "./esm2022/services/taiga-ui-core-services.mjs",
|
|
@@ -79,102 +79,6 @@
|
|
|
79
79
|
"esm": "./esm2022/utils/taiga-ui-core-utils.mjs",
|
|
80
80
|
"default": "./fesm2022/taiga-ui-core-utils.mjs"
|
|
81
81
|
},
|
|
82
|
-
"./components/alert": {
|
|
83
|
-
"types": "./components/alert/index.d.ts",
|
|
84
|
-
"esm2022": "./esm2022/components/alert/taiga-ui-core-components-alert.mjs",
|
|
85
|
-
"esm": "./esm2022/components/alert/taiga-ui-core-components-alert.mjs",
|
|
86
|
-
"default": "./fesm2022/taiga-ui-core-components-alert.mjs"
|
|
87
|
-
},
|
|
88
|
-
"./components/button": {
|
|
89
|
-
"types": "./components/button/index.d.ts",
|
|
90
|
-
"esm2022": "./esm2022/components/button/taiga-ui-core-components-button.mjs",
|
|
91
|
-
"esm": "./esm2022/components/button/taiga-ui-core-components-button.mjs",
|
|
92
|
-
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
93
|
-
},
|
|
94
|
-
"./components/calendar": {
|
|
95
|
-
"types": "./components/calendar/index.d.ts",
|
|
96
|
-
"esm2022": "./esm2022/components/calendar/taiga-ui-core-components-calendar.mjs",
|
|
97
|
-
"esm": "./esm2022/components/calendar/taiga-ui-core-components-calendar.mjs",
|
|
98
|
-
"default": "./fesm2022/taiga-ui-core-components-calendar.mjs"
|
|
99
|
-
},
|
|
100
|
-
"./components/data-list": {
|
|
101
|
-
"types": "./components/data-list/index.d.ts",
|
|
102
|
-
"esm2022": "./esm2022/components/data-list/taiga-ui-core-components-data-list.mjs",
|
|
103
|
-
"esm": "./esm2022/components/data-list/taiga-ui-core-components-data-list.mjs",
|
|
104
|
-
"default": "./fesm2022/taiga-ui-core-components-data-list.mjs"
|
|
105
|
-
},
|
|
106
|
-
"./components/dialog": {
|
|
107
|
-
"types": "./components/dialog/index.d.ts",
|
|
108
|
-
"esm2022": "./esm2022/components/dialog/taiga-ui-core-components-dialog.mjs",
|
|
109
|
-
"esm": "./esm2022/components/dialog/taiga-ui-core-components-dialog.mjs",
|
|
110
|
-
"default": "./fesm2022/taiga-ui-core-components-dialog.mjs"
|
|
111
|
-
},
|
|
112
|
-
"./components/error": {
|
|
113
|
-
"types": "./components/error/index.d.ts",
|
|
114
|
-
"esm2022": "./esm2022/components/error/taiga-ui-core-components-error.mjs",
|
|
115
|
-
"esm": "./esm2022/components/error/taiga-ui-core-components-error.mjs",
|
|
116
|
-
"default": "./fesm2022/taiga-ui-core-components-error.mjs"
|
|
117
|
-
},
|
|
118
|
-
"./components/expand": {
|
|
119
|
-
"types": "./components/expand/index.d.ts",
|
|
120
|
-
"esm2022": "./esm2022/components/expand/taiga-ui-core-components-expand.mjs",
|
|
121
|
-
"esm": "./esm2022/components/expand/taiga-ui-core-components-expand.mjs",
|
|
122
|
-
"default": "./fesm2022/taiga-ui-core-components-expand.mjs"
|
|
123
|
-
},
|
|
124
|
-
"./components/icon": {
|
|
125
|
-
"types": "./components/icon/index.d.ts",
|
|
126
|
-
"esm2022": "./esm2022/components/icon/taiga-ui-core-components-icon.mjs",
|
|
127
|
-
"esm": "./esm2022/components/icon/taiga-ui-core-components-icon.mjs",
|
|
128
|
-
"default": "./fesm2022/taiga-ui-core-components-icon.mjs"
|
|
129
|
-
},
|
|
130
|
-
"./components/label": {
|
|
131
|
-
"types": "./components/label/index.d.ts",
|
|
132
|
-
"esm2022": "./esm2022/components/label/taiga-ui-core-components-label.mjs",
|
|
133
|
-
"esm": "./esm2022/components/label/taiga-ui-core-components-label.mjs",
|
|
134
|
-
"default": "./fesm2022/taiga-ui-core-components-label.mjs"
|
|
135
|
-
},
|
|
136
|
-
"./components/link": {
|
|
137
|
-
"types": "./components/link/index.d.ts",
|
|
138
|
-
"esm2022": "./esm2022/components/link/taiga-ui-core-components-link.mjs",
|
|
139
|
-
"esm": "./esm2022/components/link/taiga-ui-core-components-link.mjs",
|
|
140
|
-
"default": "./fesm2022/taiga-ui-core-components-link.mjs"
|
|
141
|
-
},
|
|
142
|
-
"./components/loader": {
|
|
143
|
-
"types": "./components/loader/index.d.ts",
|
|
144
|
-
"esm2022": "./esm2022/components/loader/taiga-ui-core-components-loader.mjs",
|
|
145
|
-
"esm": "./esm2022/components/loader/taiga-ui-core-components-loader.mjs",
|
|
146
|
-
"default": "./fesm2022/taiga-ui-core-components-loader.mjs"
|
|
147
|
-
},
|
|
148
|
-
"./components/notification": {
|
|
149
|
-
"types": "./components/notification/index.d.ts",
|
|
150
|
-
"esm2022": "./esm2022/components/notification/taiga-ui-core-components-notification.mjs",
|
|
151
|
-
"esm": "./esm2022/components/notification/taiga-ui-core-components-notification.mjs",
|
|
152
|
-
"default": "./fesm2022/taiga-ui-core-components-notification.mjs"
|
|
153
|
-
},
|
|
154
|
-
"./components/root": {
|
|
155
|
-
"types": "./components/root/index.d.ts",
|
|
156
|
-
"esm2022": "./esm2022/components/root/taiga-ui-core-components-root.mjs",
|
|
157
|
-
"esm": "./esm2022/components/root/taiga-ui-core-components-root.mjs",
|
|
158
|
-
"default": "./fesm2022/taiga-ui-core-components-root.mjs"
|
|
159
|
-
},
|
|
160
|
-
"./components/scrollbar": {
|
|
161
|
-
"types": "./components/scrollbar/index.d.ts",
|
|
162
|
-
"esm2022": "./esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs",
|
|
163
|
-
"esm": "./esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs",
|
|
164
|
-
"default": "./fesm2022/taiga-ui-core-components-scrollbar.mjs"
|
|
165
|
-
},
|
|
166
|
-
"./components/spin-button": {
|
|
167
|
-
"types": "./components/spin-button/index.d.ts",
|
|
168
|
-
"esm2022": "./esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs",
|
|
169
|
-
"esm": "./esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs",
|
|
170
|
-
"default": "./fesm2022/taiga-ui-core-components-spin-button.mjs"
|
|
171
|
-
},
|
|
172
|
-
"./components/textfield": {
|
|
173
|
-
"types": "./components/textfield/index.d.ts",
|
|
174
|
-
"esm2022": "./esm2022/components/textfield/taiga-ui-core-components-textfield.mjs",
|
|
175
|
-
"esm": "./esm2022/components/textfield/taiga-ui-core-components-textfield.mjs",
|
|
176
|
-
"default": "./fesm2022/taiga-ui-core-components-textfield.mjs"
|
|
177
|
-
},
|
|
178
82
|
"./directives/appearance": {
|
|
179
83
|
"types": "./directives/appearance/index.d.ts",
|
|
180
84
|
"esm2022": "./esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs",
|
|
@@ -283,6 +187,102 @@
|
|
|
283
187
|
"esm": "./esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs",
|
|
284
188
|
"default": "./fesm2022/taiga-ui-core-pipes-order-week-days.mjs"
|
|
285
189
|
},
|
|
190
|
+
"./components/alert": {
|
|
191
|
+
"types": "./components/alert/index.d.ts",
|
|
192
|
+
"esm2022": "./esm2022/components/alert/taiga-ui-core-components-alert.mjs",
|
|
193
|
+
"esm": "./esm2022/components/alert/taiga-ui-core-components-alert.mjs",
|
|
194
|
+
"default": "./fesm2022/taiga-ui-core-components-alert.mjs"
|
|
195
|
+
},
|
|
196
|
+
"./components/button": {
|
|
197
|
+
"types": "./components/button/index.d.ts",
|
|
198
|
+
"esm2022": "./esm2022/components/button/taiga-ui-core-components-button.mjs",
|
|
199
|
+
"esm": "./esm2022/components/button/taiga-ui-core-components-button.mjs",
|
|
200
|
+
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
201
|
+
},
|
|
202
|
+
"./components/calendar": {
|
|
203
|
+
"types": "./components/calendar/index.d.ts",
|
|
204
|
+
"esm2022": "./esm2022/components/calendar/taiga-ui-core-components-calendar.mjs",
|
|
205
|
+
"esm": "./esm2022/components/calendar/taiga-ui-core-components-calendar.mjs",
|
|
206
|
+
"default": "./fesm2022/taiga-ui-core-components-calendar.mjs"
|
|
207
|
+
},
|
|
208
|
+
"./components/data-list": {
|
|
209
|
+
"types": "./components/data-list/index.d.ts",
|
|
210
|
+
"esm2022": "./esm2022/components/data-list/taiga-ui-core-components-data-list.mjs",
|
|
211
|
+
"esm": "./esm2022/components/data-list/taiga-ui-core-components-data-list.mjs",
|
|
212
|
+
"default": "./fesm2022/taiga-ui-core-components-data-list.mjs"
|
|
213
|
+
},
|
|
214
|
+
"./components/dialog": {
|
|
215
|
+
"types": "./components/dialog/index.d.ts",
|
|
216
|
+
"esm2022": "./esm2022/components/dialog/taiga-ui-core-components-dialog.mjs",
|
|
217
|
+
"esm": "./esm2022/components/dialog/taiga-ui-core-components-dialog.mjs",
|
|
218
|
+
"default": "./fesm2022/taiga-ui-core-components-dialog.mjs"
|
|
219
|
+
},
|
|
220
|
+
"./components/error": {
|
|
221
|
+
"types": "./components/error/index.d.ts",
|
|
222
|
+
"esm2022": "./esm2022/components/error/taiga-ui-core-components-error.mjs",
|
|
223
|
+
"esm": "./esm2022/components/error/taiga-ui-core-components-error.mjs",
|
|
224
|
+
"default": "./fesm2022/taiga-ui-core-components-error.mjs"
|
|
225
|
+
},
|
|
226
|
+
"./components/expand": {
|
|
227
|
+
"types": "./components/expand/index.d.ts",
|
|
228
|
+
"esm2022": "./esm2022/components/expand/taiga-ui-core-components-expand.mjs",
|
|
229
|
+
"esm": "./esm2022/components/expand/taiga-ui-core-components-expand.mjs",
|
|
230
|
+
"default": "./fesm2022/taiga-ui-core-components-expand.mjs"
|
|
231
|
+
},
|
|
232
|
+
"./components/icon": {
|
|
233
|
+
"types": "./components/icon/index.d.ts",
|
|
234
|
+
"esm2022": "./esm2022/components/icon/taiga-ui-core-components-icon.mjs",
|
|
235
|
+
"esm": "./esm2022/components/icon/taiga-ui-core-components-icon.mjs",
|
|
236
|
+
"default": "./fesm2022/taiga-ui-core-components-icon.mjs"
|
|
237
|
+
},
|
|
238
|
+
"./components/label": {
|
|
239
|
+
"types": "./components/label/index.d.ts",
|
|
240
|
+
"esm2022": "./esm2022/components/label/taiga-ui-core-components-label.mjs",
|
|
241
|
+
"esm": "./esm2022/components/label/taiga-ui-core-components-label.mjs",
|
|
242
|
+
"default": "./fesm2022/taiga-ui-core-components-label.mjs"
|
|
243
|
+
},
|
|
244
|
+
"./components/link": {
|
|
245
|
+
"types": "./components/link/index.d.ts",
|
|
246
|
+
"esm2022": "./esm2022/components/link/taiga-ui-core-components-link.mjs",
|
|
247
|
+
"esm": "./esm2022/components/link/taiga-ui-core-components-link.mjs",
|
|
248
|
+
"default": "./fesm2022/taiga-ui-core-components-link.mjs"
|
|
249
|
+
},
|
|
250
|
+
"./components/loader": {
|
|
251
|
+
"types": "./components/loader/index.d.ts",
|
|
252
|
+
"esm2022": "./esm2022/components/loader/taiga-ui-core-components-loader.mjs",
|
|
253
|
+
"esm": "./esm2022/components/loader/taiga-ui-core-components-loader.mjs",
|
|
254
|
+
"default": "./fesm2022/taiga-ui-core-components-loader.mjs"
|
|
255
|
+
},
|
|
256
|
+
"./components/notification": {
|
|
257
|
+
"types": "./components/notification/index.d.ts",
|
|
258
|
+
"esm2022": "./esm2022/components/notification/taiga-ui-core-components-notification.mjs",
|
|
259
|
+
"esm": "./esm2022/components/notification/taiga-ui-core-components-notification.mjs",
|
|
260
|
+
"default": "./fesm2022/taiga-ui-core-components-notification.mjs"
|
|
261
|
+
},
|
|
262
|
+
"./components/root": {
|
|
263
|
+
"types": "./components/root/index.d.ts",
|
|
264
|
+
"esm2022": "./esm2022/components/root/taiga-ui-core-components-root.mjs",
|
|
265
|
+
"esm": "./esm2022/components/root/taiga-ui-core-components-root.mjs",
|
|
266
|
+
"default": "./fesm2022/taiga-ui-core-components-root.mjs"
|
|
267
|
+
},
|
|
268
|
+
"./components/scrollbar": {
|
|
269
|
+
"types": "./components/scrollbar/index.d.ts",
|
|
270
|
+
"esm2022": "./esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs",
|
|
271
|
+
"esm": "./esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs",
|
|
272
|
+
"default": "./fesm2022/taiga-ui-core-components-scrollbar.mjs"
|
|
273
|
+
},
|
|
274
|
+
"./components/spin-button": {
|
|
275
|
+
"types": "./components/spin-button/index.d.ts",
|
|
276
|
+
"esm2022": "./esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs",
|
|
277
|
+
"esm": "./esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs",
|
|
278
|
+
"default": "./fesm2022/taiga-ui-core-components-spin-button.mjs"
|
|
279
|
+
},
|
|
280
|
+
"./components/textfield": {
|
|
281
|
+
"types": "./components/textfield/index.d.ts",
|
|
282
|
+
"esm2022": "./esm2022/components/textfield/taiga-ui-core-components-textfield.mjs",
|
|
283
|
+
"esm": "./esm2022/components/textfield/taiga-ui-core-components-textfield.mjs",
|
|
284
|
+
"default": "./fesm2022/taiga-ui-core-components-textfield.mjs"
|
|
285
|
+
},
|
|
286
286
|
"./utils/dom": {
|
|
287
287
|
"types": "./utils/dom/index.d.ts",
|
|
288
288
|
"esm2022": "./esm2022/utils/dom/taiga-ui-core-utils-dom.mjs",
|
|
@@ -311,9 +311,9 @@
|
|
|
311
311
|
"@angular/router": ">=16.0.0",
|
|
312
312
|
"@ng-web-apis/common": "^4.2.1",
|
|
313
313
|
"@ng-web-apis/mutation-observer": "^4.2.1",
|
|
314
|
-
"@taiga-ui/cdk": "^4.
|
|
314
|
+
"@taiga-ui/cdk": "^4.4.0",
|
|
315
315
|
"@taiga-ui/event-plugins": "^4.0.1",
|
|
316
|
-
"@taiga-ui/i18n": "^4.
|
|
316
|
+
"@taiga-ui/i18n": "^4.4.0",
|
|
317
317
|
"@taiga-ui/polymorpheus": "^4.6.4",
|
|
318
318
|
"rxjs": ">=7.0.0"
|
|
319
319
|
},
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use {@link TUI_DARK_MODE} instead
|
|
5
|
+
*/
|
|
3
6
|
export declare class TuiDarkThemeService extends Observable<boolean> {
|
|
4
7
|
constructor();
|
|
5
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDarkThemeService, never>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken, type WritableSignal } from '@angular/core';
|
|
2
|
+
export declare const TUI_DARK_MODE_DEFAULT_KEY = "tuiDark";
|
|
3
|
+
export declare const TUI_DARK_MODE_KEY: InjectionToken<string>;
|
|
4
|
+
export declare const TUI_DARK_MODE: InjectionToken<WritableSignal<boolean> & {
|
|
5
|
+
reset(): void;
|
|
6
|
+
}>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { Provider } from '@angular/core';
|
|
2
2
|
import type { TuiStringHandler } from '@taiga-ui/cdk/types';
|
|
3
|
+
export declare const TUI_ICON_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use {@link TUI_ICON_RESOLVER}
|
|
6
|
+
*/
|
|
3
7
|
export declare const TUI_ICON_START_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
|
|
4
8
|
export declare function tuiInjectIconResolver(): TuiStringHandler<string>;
|
|
5
9
|
export declare function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider;
|
package/tokens/icons.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import type { FactoryProvider } from '@angular/core';
|
|
2
|
+
export declare const TUI_ICON_REGISTRY: import("@angular/core").InjectionToken<Record<string, string>>;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated: use {@link TUI_ICON_REGISTRY}
|
|
5
|
+
*/
|
|
2
6
|
export declare const TUI_ICON_STARTS: import("@angular/core").InjectionToken<Record<string, string>>;
|
|
3
7
|
export declare function tuiIconsProvider(icons: Record<string, string>): FactoryProvider;
|
package/tokens/index.d.ts
CHANGED