@skbkontur/react-ui 2.17.3 → 2.17.6
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/CHANGELOG.md +35 -0
- package/cjs/components/Modal/Modal.styles.js +1 -1
- package/cjs/components/Modal/Modal.styles.js.map +1 -1
- package/cjs/components/Select/Select.js +6 -1
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/Select.styles.d.ts +1 -0
- package/cjs/components/Select/Select.styles.js +11 -5
- package/cjs/components/Select/Select.styles.js.map +1 -1
- package/cjs/components/Select/selectTheme.js +6 -1
- package/cjs/components/Select/selectTheme.js.map +1 -1
- package/cjs/internal/Calendar/Calendar.js +1 -1
- package/cjs/internal/Calendar/Calendar.js.map +1 -1
- package/cjs/internal/CustomComboBox/ComboBoxMenu.js +1 -1
- package/cjs/internal/CustomComboBox/ComboBoxMenu.js.map +1 -1
- package/cjs/internal/RenderContainer/RenderContainer.js +2 -1
- package/cjs/internal/RenderContainer/RenderContainer.js.map +1 -1
- package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
- package/cjs/internal/themes/DefaultTheme.d.ts +5 -0
- package/cjs/internal/themes/DefaultTheme.js +16 -1
- package/cjs/internal/themes/DefaultTheme.js.map +1 -1
- package/cjs/lib/Upgrades.d.ts +2 -0
- package/cjs/lib/Upgrades.js +14 -0
- package/cjs/lib/Upgrades.js.map +1 -1
- package/cjs/lib/theming/Emotion.js +3 -3
- package/cjs/lib/theming/Emotion.js.map +1 -1
- package/components/Modal/Modal.styles/Modal.styles.js +1 -1
- package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
- package/components/Select/Select/Select.js +2 -2
- package/components/Select/Select/Select.js.map +1 -1
- package/components/Select/Select.styles/Select.styles.js +21 -8
- package/components/Select/Select.styles/Select.styles.js.map +1 -1
- package/components/Select/Select.styles.d.ts +1 -0
- package/components/Select/selectTheme/selectTheme.js +5 -1
- package/components/Select/selectTheme/selectTheme.js.map +1 -1
- package/internal/Calendar/Calendar/Calendar.js +2 -1
- package/internal/Calendar/Calendar/Calendar.js.map +1 -1
- package/internal/CustomComboBox/ComboBoxMenu/ComboBoxMenu.js +4 -2
- package/internal/CustomComboBox/ComboBoxMenu/ComboBoxMenu.js.map +1 -1
- package/internal/RenderContainer/RenderContainer/RenderContainer.js +2 -1
- package/internal/RenderContainer/RenderContainer/RenderContainer.js.map +1 -1
- package/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
- package/internal/themes/DefaultTheme/DefaultTheme.js +26 -1
- package/internal/themes/DefaultTheme/DefaultTheme.js.map +1 -1
- package/internal/themes/DefaultTheme.d.ts +5 -0
- package/lib/Upgrades/Upgrades.js +13 -0
- package/lib/Upgrades/Upgrades.js.map +1 -1
- package/lib/Upgrades.d.ts +2 -0
- package/lib/theming/Emotion/Emotion.js +3 -3
- package/lib/theming/Emotion/Emotion.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Calendar.tsx"],"names":["React","normalizeWheel","MAX_DATE","MAX_MONTH","MAX_YEAR","MIN_DATE","MIN_MONTH","MIN_YEAR","ThemeContext","Animation","themeConfig","CalendarUtils","MonthViewModel","CalendarScrollEvents","Month","jsStyles","create","isGreater","isLess","getTodayDate","date","Date","getDate","month","getMonth","year","getFullYear","Calendar","props","theme","wheelEndTimeout","root","animation","scrollToMonth","inProgress","finish","Promise","r","setTimeout","minDate","maxDate","currentMonth","state","months","diffInMonths","scrollTo","maxMonthsToAdd","MAX_MONTHS_TO_APPEND_ON_SCROLL","onEnd","setState","getMonths","scrollPosition","isYearChanges","Math","abs","monthsToPrependCount","min","monthsToPrepend","Array","from","length","_","index","yearChanges","isFirstInYear","isLastInYear","concat","getMonthsHeight","targetPosition","getHeight","monthsToAppendCount","monthsToAppend","slice","renderMain","positions","getMonthPositions","wrapperStyle","height","WRAPPER_HEIGHT","refRoot","wrapper","map","x","i","filter","top","isMonthVisible","renderMonth","element","addEventListener","handleWheel","passive","removeEventListener","handleMonthYearChange","event","WheelEvent","preventDefault","pixelY","scrollTarget","calculateScrollPosition","handleWheelEnd","animate","deltaY","applyDelta","emit","clearTimeout","window","scrollToNearestWeek","scrollDirection","trasholdHeight","MONTH_TITLE_OFFSET_HEIGHT","DAY_SIZE","amount","pos","scrollAmmount","scrollAmount","today","initialMonth","initialYear","componentWillUnmount","cancel","render","value","onSelect","isHoliday","position","push","Component","__KONTUR_REACT_UI__","defaultProps","holidays"],"mappings":"qSAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,iBAA3B;;AAEA,SAASC,QAAT,EAAmBC,SAAnB,EAA8BC,QAA9B,EAAwCC,QAAxC,EAAkDC,SAAlD,EAA6DC,QAA7D,QAA6E,0BAA7E;;;AAGA,SAASC,YAAT,QAA6B,gCAA7B;AACA,SAASC,SAAT,QAA0B,qBAA1B;;AAEA,SAASC,WAAT,QAA4B,UAA5B;AACA,OAAO,KAAKC,aAAZ,MAA+B,iBAA/B;AACA,SAASC,cAAT,QAA+B,kBAA/B;AACA,OAAO,KAAKC,oBAAZ,MAAsC,wBAAtC;AACA,SAASC,KAAT,QAAsB,SAAtB;AACA,SAASC,QAAT,QAAyB,mBAAzB;AACA,SAA4BC,MAA5B,EAAoCC,SAApC,EAA+CC,MAA/C,QAA6D,qBAA7D;;;;;;;;;;;;;;;;;;;;AAoBA,IAAMC,YAAY,GAAG,SAAfA,YAAe,GAAM;AACzB,MAAMC,IAAI,GAAG,IAAIC,IAAJ,EAAb;AACA,SAAO;AACLD,IAAAA,IAAI,EAAEA,IAAI,CAACE,OAAL,EADD;AAELC,IAAAA,KAAK,EAAEH,IAAI,CAACI,QAAL,EAFF;AAGLC,IAAAA,IAAI,EAAEL,IAAI,CAACM,WAAL,EAHD,EAAP;;AAKD,CAPD;;AASA,WAAaC,QAAb;;;;;;;;;;;;;;;;;;;;;;AAsBE,oBAAYC,KAAZ,EAAkC;AAChC,wCAAMA,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AAElB,QADC,EAEPgB,KAAK,EAAEjB,SAFA,EAGPc,IAAI,EAAEf,QAHC,EAFkB,EAO3BmC,OAAO,EAAE,EACPf,IAAI,EAAErB,QADC,EAEPmB,KAAK,EAAEpB,SAFA,EAGPiB,IAAI,EAAElB,QAHC,EAPkB,E","sourcesContent":["import React from 'react';\r\nimport normalizeWheel from 'normalize-wheel';\r\n\r\nimport { MAX_DATE, MAX_MONTH, MAX_YEAR, MIN_DATE, MIN_MONTH, MIN_YEAR } from '../../lib/date/constants';\r\nimport { Nullable } from '../../typings/utility-types';\r\nimport { Theme } from '../../lib/theming/Theme';\r\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\r\nimport { Animation } from '../../lib/animation';\r\n\r\nimport { themeConfig } from './config';\r\nimport * as CalendarUtils from './CalendarUtils';\r\nimport { MonthViewModel } from './MonthViewModel';\r\nimport * as CalendarScrollEvents from './CalendarScrollEvents';\r\nimport { Month } from './Month';\r\nimport { jsStyles } from './Calendar.styles';\r\nimport { CalendarDateShape, create, isGreater, isLess } from './CalendarDateShape';\r\n\r\nexport interface CalendarProps {\r\n initialMonth?: number;\r\n initialYear?: number;\r\n onSelect?: (date: CalendarDateShape) => void;\r\n value?: Nullable<CalendarDateShape>;\r\n maxDate?: CalendarDateShape;\r\n minDate?: CalendarDateShape;\r\n isHoliday?: (day: CalendarDateShape & { isWeekend: boolean }) => boolean;\r\n}\r\n\r\nexport interface CalendarState {\r\n scrollPosition: number;\r\n months: MonthViewModel[];\r\n today: CalendarDateShape;\r\n scrollDirection: number;\r\n scrollTarget: number;\r\n}\r\n\r\nconst getTodayDate = () => {\r\n const date = new Date();\r\n return {\r\n date: date.getDate(),\r\n month: date.getMonth(),\r\n year: date.getFullYear(),\r\n };\r\n};\r\n\r\nexport class Calendar extends React.Component<CalendarProps, CalendarState> {\r\n public static __KONTUR_REACT_UI__ = 'Calendar';\r\n\r\n public static defaultProps = {\r\n holidays: [],\r\n minDate: {\r\n year: MIN_YEAR,\r\n month: MIN_MONTH,\r\n date: MIN_DATE,\r\n },\r\n maxDate: {\r\n year: MAX_YEAR,\r\n month: MAX_MONTH,\r\n date: MAX_DATE,\r\n },\r\n };\r\n\r\n private theme!: Theme;\r\n private wheelEndTimeout: Nullable<number>;\r\n private root: Nullable<HTMLElement>;\r\n private animation = Animation();\r\n\r\n constructor(props: CalendarProps) {\r\n super(props);\r\n\r\n const today = getTodayDate();\r\n\r\n const initialMonth = props.initialMonth == null ? today.month : props.initialMonth;\r\n const initialYear = props.initialYear == null ? today.year : props.initialYear;\r\n\r\n this.state = {\r\n scrollPosition: 0,\r\n months: CalendarUtils.getMonths(initialMonth, initialYear),\r\n today,\r\n scrollDirection: 1,\r\n scrollTarget: 0,\r\n };\r\n }\r\n\r\n public componentWillUnmount() {\r\n if (this.animation.inProgress()) {\r\n this.animation.cancel();\r\n }\r\n }\r\n\r\n public render() {\r\n return (\r\n <ThemeContext.Consumer>\r\n {theme => {\r\n this.theme = theme;\r\n return this.renderMain();\r\n }}\r\n </ThemeContext.Consumer>\r\n );\r\n }\r\n\r\n /**\r\n * Scrolls calendar to given date\r\n * @public\r\n */\r\n public scrollToMonth = async (month: number, year: number) => {\r\n if (this.animation.inProgress()) {\r\n this.animation.finish();\r\n // FIXME: Dirty hack to await batched updates\r\n await new Promise(r => setTimeout(r));\r\n }\r\n\r\n const { minDate, maxDate } = this.props;\r\n\r\n if (minDate && isGreater(minDate, create(32, month, year))) {\r\n this.scrollToMonth(minDate.month, minDate.year);\r\n return;\r\n }\r\n\r\n if (maxDate && isLess(maxDate, create(0, month, year))) {\r\n this.scrollToMonth(maxDate.month, maxDate.year);\r\n return;\r\n }\r\n\r\n const currentMonth = this.state.months[1];\r\n const diffInMonths = currentMonth.month + currentMonth.year * 12 - month - year * 12;\r\n\r\n if (diffInMonths === 0) {\r\n this.scrollTo(0);\r\n return;\r\n }\r\n\r\n const maxMonthsToAdd = themeConfig(this.theme).MAX_MONTHS_TO_APPEND_ON_SCROLL;\r\n\r\n const onEnd = () =>\r\n this.setState({\r\n months: CalendarUtils.getMonths(month, year),\r\n scrollPosition: 0,\r\n });\r\n\r\n const isYearChanges = (state: CalendarState) =>\r\n state.months[1].year !== year &&\r\n // if diff in months is 2 or less,\r\n // either year is not changing either months already\r\n // have right isFirstInYear/isLastInYear flags\r\n Math.abs(diffInMonths) > 2;\r\n\r\n // If scrolling upwards, prepend maximum maxMonthsToAdd months\r\n // and scroll to the first month\r\n if (diffInMonths > 0) {\r\n const monthsToPrependCount = Math.min(Math.abs(diffInMonths) - 1, maxMonthsToAdd);\r\n const monthsToPrepend = Array.from({ length: monthsToPrependCount }, (_, index) =>\r\n MonthViewModel.create(month + index, year),\r\n );\r\n this.setState(\r\n state => {\r\n const yearChanges = isYearChanges(state);\r\n if (yearChanges) {\r\n // Mutating here can lead to some unexpected bugs\r\n // but we couldn't find any yet\r\n state.months[0].isFirstInYear = true;\r\n if (monthsToPrepend.length) {\r\n // Mutating item here is safe as it was just created\r\n monthsToPrepend[monthsToPrepend.length - 1].isLastInYear = true;\r\n }\r\n }\r\n return {\r\n months: monthsToPrepend.concat(state.months),\r\n scrollPosition: -CalendarUtils.getMonthsHeight(monthsToPrepend, this.theme),\r\n };\r\n },\r\n () => {\r\n const targetPosition = this.state.months[0].getHeight(this.theme);\r\n this.scrollTo(targetPosition, onEnd);\r\n },\r\n );\r\n }\r\n\r\n // If scrolling downwards, append maximum maxMonthsToAdd months\r\n // and scroll to the last but one month\r\n if (diffInMonths < 0) {\r\n const monthsToAppendCount = Math.min(Math.abs(diffInMonths), maxMonthsToAdd);\r\n const monthsToAppend = Array.from({ length: monthsToAppendCount }, (_, index) =>\r\n MonthViewModel.create(month + index - monthsToAppendCount + 2, year),\r\n );\r\n this.setState(\r\n state => {\r\n if (isYearChanges(state)) {\r\n // Mutating here can lead to some unexpected bugs\r\n // but we couldn't find any yet\r\n state.months[state.months.length - 1].isLastInYear = true;\r\n // Mutating item here is safe as it was just created\r\n if (monthsToAppend[0]) {\r\n monthsToAppend[0].isFirstInYear = true;\r\n }\r\n }\r\n return { months: state.months.concat(monthsToAppend) };\r\n },\r\n () => {\r\n const targetPosition = -1 * CalendarUtils.getMonthsHeight(this.state.months.slice(1, -2), this.theme);\r\n this.scrollTo(targetPosition, onEnd);\r\n },\r\n );\r\n }\r\n };\r\n\r\n private renderMain = () => {\r\n const positions = this.getMonthPositions();\r\n const wrapperStyle = { height: themeConfig(this.theme).WRAPPER_HEIGHT };\r\n return (\r\n <div ref={this.refRoot} className={jsStyles.root(this.theme)}>\r\n <div style={wrapperStyle} className={jsStyles.wrapper()}>\r\n {this.state.months\r\n .map<[number, MonthViewModel]>((x, i) => [positions[i], x])\r\n .filter(([top, month]) => CalendarUtils.isMonthVisible(top, month, this.theme))\r\n .map(this.renderMonth, this)}\r\n </div>\r\n </div>\r\n );\r\n };\r\n\r\n private refRoot = (element: HTMLElement | null) => {\r\n if (!this.root && element) {\r\n element.addEventListener('wheel', this.handleWheel, { passive: false });\r\n }\r\n if (this.root && !element) {\r\n this.root.removeEventListener('wheel', this.handleWheel);\r\n }\r\n this.root = element;\r\n };\r\n\r\n private renderMonth([top, month]: [number, MonthViewModel]) {\r\n return (\r\n <Month\r\n key={month.month + '-' + month.year}\r\n top={top}\r\n month={month}\r\n maxDate={this.props.maxDate}\r\n minDate={this.props.minDate}\r\n today={this.state.today}\r\n value={this.props.value}\r\n onDateClick={this.props.onSelect}\r\n onMonthYearChange={this.handleMonthYearChange}\r\n isHoliday={this.props.isHoliday}\r\n />\r\n );\r\n }\r\n\r\n private getMonthPositions() {\r\n const { scrollPosition, months } = this.state;\r\n\r\n const positions = [scrollPosition - months[0].getHeight(this.theme)];\r\n for (let i = 1; i < months.length; i++) {\r\n const position = positions[i - 1] + months[i - 1].getHeight(this.theme);\r\n positions.push(position);\r\n }\r\n return positions;\r\n }\r\n\r\n private handleMonthYearChange = (month: number, year: number) => {\r\n this.scrollToMonth(month, year);\r\n };\r\n\r\n private handleWheel = (event: Event) => {\r\n if (!(event instanceof WheelEvent)) {\r\n return;\r\n }\r\n event.preventDefault();\r\n const { pixelY } = normalizeWheel(event);\r\n\r\n this.setState(({ months, scrollPosition, scrollTarget }) => {\r\n const targetPosition = CalendarUtils.calculateScrollPosition(months, scrollPosition, pixelY, this.theme)\r\n .scrollPosition;\r\n return { scrollTarget: targetPosition };\r\n }, this.handleWheelEnd);\r\n\r\n this.animation.animate(pixelY, deltaY =>\r\n // FIXME: Typescript not resolving setState cb type\r\n this.setState(CalendarUtils.applyDelta(deltaY, this.theme) as any),\r\n );\r\n\r\n CalendarScrollEvents.emit();\r\n };\r\n\r\n private handleWheelEnd = () => {\r\n if (this.wheelEndTimeout) {\r\n clearTimeout(this.wheelEndTimeout);\r\n }\r\n this.wheelEndTimeout = window.setTimeout(this.scrollToNearestWeek, 300);\r\n };\r\n\r\n private scrollToNearestWeek = () => {\r\n const { scrollTarget, scrollDirection } = this.state;\r\n\r\n const trasholdHeight = themeConfig(this.theme).MONTH_TITLE_OFFSET_HEIGHT + themeConfig(this.theme).DAY_SIZE;\r\n\r\n if (scrollTarget < trasholdHeight) {\r\n let targetPosition = 0;\r\n if (scrollDirection < 0) {\r\n targetPosition = trasholdHeight;\r\n }\r\n\r\n this.setState({ scrollTarget: targetPosition }, () => {\r\n const amount = scrollTarget - targetPosition;\r\n this.animation.animate(amount, deltaY =>\r\n // FIXME: Typescript not resolving setState cb type\r\n this.setState(CalendarUtils.applyDelta(deltaY, this.theme) as any),\r\n );\r\n });\r\n }\r\n };\r\n\r\n private scrollTo = (pos: number, onEnd?: () => void) => {\r\n const scrollAmmount = pos - this.state.scrollPosition;\r\n return this.scrollAmount(scrollAmmount, onEnd);\r\n };\r\n\r\n private scrollAmount = (scrollAmmount: number, onEnd?: () => void) => {\r\n return this.animation.animate(\r\n scrollAmmount,\r\n deltaY =>\r\n this.setState(({ scrollPosition }) => ({\r\n scrollPosition: scrollPosition + deltaY,\r\n })),\r\n onEnd,\r\n );\r\n };\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"sources":["Calendar.tsx"],"names":["React","normalizeWheel","MAX_DATE","MAX_MONTH","MAX_YEAR","MIN_DATE","MIN_MONTH","MIN_YEAR","ThemeContext","Animation","themeConfig","CalendarUtils","MonthViewModel","CalendarScrollEvents","Month","jsStyles","create","isGreater","isLess","getTodayDate","date","Date","getDate","month","getMonth","year","getFullYear","Calendar","props","theme","wheelEndTimeout","root","animation","scrollToMonth","inProgress","finish","Promise","r","setTimeout","minDate","maxDate","currentMonth","state","months","diffInMonths","scrollTo","maxMonthsToAdd","MAX_MONTHS_TO_APPEND_ON_SCROLL","onEnd","setState","getMonths","scrollPosition","isYearChanges","Math","abs","monthsToPrependCount","min","monthsToPrepend","Array","from","length","_","index","yearChanges","isFirstInYear","isLastInYear","concat","getMonthsHeight","targetPosition","getHeight","monthsToAppendCount","monthsToAppend","slice","renderMain","positions","getMonthPositions","wrapperStyle","height","WRAPPER_HEIGHT","refRoot","wrapper","map","x","i","filter","top","isMonthVisible","renderMonth","element","addEventListener","handleWheel","passive","removeEventListener","handleMonthYearChange","event","WheelEvent","preventDefault","pixelY","scrollTarget","calculateScrollPosition","handleWheelEnd","animate","deltaY","applyDelta","emit","clearTimeout","window","scrollToNearestWeek","scrollDirection","trasholdHeight","MONTH_TITLE_OFFSET_HEIGHT","DAY_SIZE","amount","pos","scrollAmmount","scrollAmount","today","initialMonth","initialYear","componentWillUnmount","cancel","render","value","onSelect","isHoliday","position","push","Component","__KONTUR_REACT_UI__","defaultProps","holidays"],"mappings":"qSAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,iBAA3B;;AAEA,SAASC,QAAT,EAAmBC,SAAnB,EAA8BC,QAA9B,EAAwCC,QAAxC,EAAkDC,SAAlD,EAA6DC,QAA7D,QAA6E,0BAA7E;;;AAGA,SAASC,YAAT,QAA6B,gCAA7B;AACA,SAASC,SAAT,QAA0B,qBAA1B;;AAEA,SAASC,WAAT,QAA4B,UAA5B;AACA,OA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B,CACFR,MADE,gBACFA,MADE,CAG1B,IAAM+B,SAAS,GAAG,CAACvB,cAAc,GAAGR,MAAM,CAAC,CAAD,CAAN,CAAU0B,SAAV,CAAoB,KAAKxC,KAAzB,CAAlB,CAAlB,CACA,KAAK,IAAIsD,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGxC,MAAM,CAACiB,MAA3B,EAAmCuB,CAAC,EAApC,EAAwC,CACtC,IAAM0C,QAAQ,GAAGnD,SAAS,CAACS,CAAC,GAAG,CAAL,CAAT,GAAmBxC,MAAM,CAACwC,CAAC,GAAG,CAAL,CAAN,CAAcd,SAAd,CAAwB,KAAKxC,KAA7B,CAApC,CACA6C,SAAS,CAACoD,IAAV,CAAeD,QAAf,EACD,CACD,OAAOnD,SAAP,CACD,CApNH,mBAA8B1E,KAAK,CAAC+H,SAApC,EAAapG,Q,CACGqG,mB,GAAsB,U,CADzBrG,Q,CAGGsG,Y,GAAe,EAC3BC,QAAQ,EAAE,EADiB,EAE3B3F,OAAO,EAAE,EACPd,IAAI,EAAElB,QADC,EAEPgB,KAAK,EAAEjB,SAFA,EAGPc,IAAI,EAAEf,QAHC,EAFkB,EAO3BmC,OAAO,EAAE,EACPf,IAAI,EAAErB,QADC,EAEPmB,KAAK,EAAEpB,SAFA,EAGPiB,IAAI,EAAElB,QAHC,EAPkB,E","sourcesContent":["import React from 'react';\r\nimport normalizeWheel from 'normalize-wheel';\r\n\r\nimport { MAX_DATE, MAX_MONTH, MAX_YEAR, MIN_DATE, MIN_MONTH, MIN_YEAR } from '../../lib/date/constants';\r\nimport { Nullable } from '../../typings/utility-types';\r\nimport { Theme } from '../../lib/theming/Theme';\r\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\r\nimport { Animation } from '../../lib/animation';\r\n\r\nimport { themeConfig } from './config';\r\nimport * as CalendarUtils from './CalendarUtils';\r\nimport { MonthViewModel } from './MonthViewModel';\r\nimport * as CalendarScrollEvents from './CalendarScrollEvents';\r\nimport { Month } from './Month';\r\nimport { jsStyles } from './Calendar.styles';\r\nimport { CalendarDateShape, create, isGreater, isLess } from './CalendarDateShape';\r\n\r\nexport interface CalendarProps {\r\n initialMonth?: number;\r\n initialYear?: number;\r\n onSelect?: (date: CalendarDateShape) => void;\r\n value?: Nullable<CalendarDateShape>;\r\n maxDate?: CalendarDateShape;\r\n minDate?: CalendarDateShape;\r\n isHoliday?: (day: CalendarDateShape & { isWeekend: boolean }) => boolean;\r\n}\r\n\r\nexport interface CalendarState {\r\n scrollPosition: number;\r\n months: MonthViewModel[];\r\n today: CalendarDateShape;\r\n scrollDirection: number;\r\n scrollTarget: number;\r\n}\r\n\r\nconst getTodayDate = () => {\r\n const date = new Date();\r\n return {\r\n date: date.getDate(),\r\n month: date.getMonth(),\r\n year: date.getFullYear(),\r\n };\r\n};\r\n\r\nexport class Calendar extends React.Component<CalendarProps, CalendarState> {\r\n public static __KONTUR_REACT_UI__ = 'Calendar';\r\n\r\n public static defaultProps = {\r\n holidays: [],\r\n minDate: {\r\n year: MIN_YEAR,\r\n month: MIN_MONTH,\r\n date: MIN_DATE,\r\n },\r\n maxDate: {\r\n year: MAX_YEAR,\r\n month: MAX_MONTH,\r\n date: MAX_DATE,\r\n },\r\n };\r\n\r\n private theme!: Theme;\r\n private wheelEndTimeout: Nullable<number>;\r\n private root: Nullable<HTMLElement>;\r\n private animation = Animation();\r\n\r\n constructor(props: CalendarProps) {\r\n super(props);\r\n\r\n const today = getTodayDate();\r\n\r\n const initialMonth = props.initialMonth == null ? today.month : props.initialMonth;\r\n const initialYear = props.initialYear == null ? today.year : props.initialYear;\r\n\r\n this.state = {\r\n scrollPosition: 0,\r\n months: CalendarUtils.getMonths(initialMonth, initialYear),\r\n today,\r\n scrollDirection: 1,\r\n scrollTarget: 0,\r\n };\r\n }\r\n\r\n public componentWillUnmount() {\r\n if (this.animation.inProgress()) {\r\n this.animation.cancel();\r\n }\r\n }\r\n\r\n public render() {\r\n return (\r\n <ThemeContext.Consumer>\r\n {theme => {\r\n this.theme = theme;\r\n return this.renderMain();\r\n }}\r\n </ThemeContext.Consumer>\r\n );\r\n }\r\n\r\n /**\r\n * Scrolls calendar to given date\r\n * @public\r\n */\r\n public scrollToMonth = async (month: number, year: number) => {\r\n if (this.animation.inProgress()) {\r\n this.animation.finish();\r\n // FIXME: Dirty hack to await batched updates\r\n await new Promise(r => setTimeout(r));\r\n }\r\n\r\n const { minDate, maxDate } = this.props;\r\n\r\n if (minDate && isGreater(minDate, create(32, month, year))) {\r\n this.scrollToMonth(minDate.month, minDate.year);\r\n return;\r\n }\r\n\r\n if (maxDate && isLess(maxDate, create(0, month, year))) {\r\n this.scrollToMonth(maxDate.month, maxDate.year);\r\n return;\r\n }\r\n\r\n const currentMonth = this.state.months[1];\r\n const diffInMonths = currentMonth.month + currentMonth.year * 12 - month - year * 12;\r\n\r\n if (diffInMonths === 0) {\r\n this.scrollTo(0);\r\n return;\r\n }\r\n\r\n const maxMonthsToAdd = themeConfig(this.theme).MAX_MONTHS_TO_APPEND_ON_SCROLL;\r\n\r\n const onEnd = () =>\r\n this.setState({\r\n months: CalendarUtils.getMonths(month, year),\r\n scrollPosition: 0,\r\n });\r\n\r\n const isYearChanges = (state: CalendarState) =>\r\n state.months[1].year !== year &&\r\n // if diff in months is 2 or less,\r\n // either year is not changing either months already\r\n // have right isFirstInYear/isLastInYear flags\r\n Math.abs(diffInMonths) > 2;\r\n\r\n // If scrolling upwards, prepend maximum maxMonthsToAdd months\r\n // and scroll to the first month\r\n if (diffInMonths > 0) {\r\n const monthsToPrependCount = Math.min(Math.abs(diffInMonths) - 1, maxMonthsToAdd);\r\n const monthsToPrepend = Array.from({ length: monthsToPrependCount }, (_, index) =>\r\n MonthViewModel.create(month + index, year),\r\n );\r\n this.setState(\r\n state => {\r\n const yearChanges = isYearChanges(state);\r\n if (yearChanges) {\r\n // Mutating here can lead to some unexpected bugs\r\n // but we couldn't find any yet\r\n state.months[0].isFirstInYear = true;\r\n if (monthsToPrepend.length) {\r\n // Mutating item here is safe as it was just created\r\n monthsToPrepend[monthsToPrepend.length - 1].isLastInYear = true;\r\n }\r\n }\r\n return {\r\n months: monthsToPrepend.concat(state.months),\r\n scrollPosition: -CalendarUtils.getMonthsHeight(monthsToPrepend, this.theme),\r\n };\r\n },\r\n () => {\r\n const targetPosition = this.state.months[0].getHeight(this.theme);\r\n this.scrollTo(targetPosition, onEnd);\r\n },\r\n );\r\n }\r\n\r\n // If scrolling downwards, append maximum maxMonthsToAdd months\r\n // and scroll to the last but one month\r\n if (diffInMonths < 0) {\r\n const monthsToAppendCount = Math.min(Math.abs(diffInMonths), maxMonthsToAdd);\r\n const monthsToAppend = Array.from({ length: monthsToAppendCount }, (_, index) =>\r\n MonthViewModel.create(month + index - monthsToAppendCount + 2, year),\r\n );\r\n this.setState(\r\n state => {\r\n if (isYearChanges(state)) {\r\n // Mutating here can lead to some unexpected bugs\r\n // but we couldn't find any yet\r\n state.months[state.months.length - 1].isLastInYear = true;\r\n // Mutating item here is safe as it was just created\r\n if (monthsToAppend[0]) {\r\n monthsToAppend[0].isFirstInYear = true;\r\n }\r\n }\r\n return { months: state.months.concat(monthsToAppend) };\r\n },\r\n () => {\r\n const targetPosition = -1 * CalendarUtils.getMonthsHeight(this.state.months.slice(1, -2), this.theme);\r\n this.scrollTo(targetPosition, onEnd);\r\n },\r\n );\r\n }\r\n };\r\n\r\n private renderMain = () => {\r\n const positions = this.getMonthPositions();\r\n const wrapperStyle = { height: themeConfig(this.theme).WRAPPER_HEIGHT };\r\n return (\r\n <div ref={this.refRoot} className={jsStyles.root(this.theme)} data-tid=\"Calendar\">\r\n <div style={wrapperStyle} className={jsStyles.wrapper()}>\r\n {this.state.months\r\n .map<[number, MonthViewModel]>((x, i) => [positions[i], x])\r\n .filter(([top, month]) => CalendarUtils.isMonthVisible(top, month, this.theme))\r\n .map(this.renderMonth, this)}\r\n </div>\r\n </div>\r\n );\r\n };\r\n\r\n private refRoot = (element: HTMLElement | null) => {\r\n if (!this.root && element) {\r\n element.addEventListener('wheel', this.handleWheel, { passive: false });\r\n }\r\n if (this.root && !element) {\r\n this.root.removeEventListener('wheel', this.handleWheel);\r\n }\r\n this.root = element;\r\n };\r\n\r\n private renderMonth([top, month]: [number, MonthViewModel]) {\r\n return (\r\n <Month\r\n key={month.month + '-' + month.year}\r\n top={top}\r\n month={month}\r\n maxDate={this.props.maxDate}\r\n minDate={this.props.minDate}\r\n today={this.state.today}\r\n value={this.props.value}\r\n onDateClick={this.props.onSelect}\r\n onMonthYearChange={this.handleMonthYearChange}\r\n isHoliday={this.props.isHoliday}\r\n />\r\n );\r\n }\r\n\r\n private getMonthPositions() {\r\n const { scrollPosition, months } = this.state;\r\n\r\n const positions = [scrollPosition - months[0].getHeight(this.theme)];\r\n for (let i = 1; i < months.length; i++) {\r\n const position = positions[i - 1] + months[i - 1].getHeight(this.theme);\r\n positions.push(position);\r\n }\r\n return positions;\r\n }\r\n\r\n private handleMonthYearChange = (month: number, year: number) => {\r\n this.scrollToMonth(month, year);\r\n };\r\n\r\n private handleWheel = (event: Event) => {\r\n if (!(event instanceof WheelEvent)) {\r\n return;\r\n }\r\n event.preventDefault();\r\n const { pixelY } = normalizeWheel(event);\r\n\r\n this.setState(({ months, scrollPosition, scrollTarget }) => {\r\n const targetPosition = CalendarUtils.calculateScrollPosition(months, scrollPosition, pixelY, this.theme)\r\n .scrollPosition;\r\n return { scrollTarget: targetPosition };\r\n }, this.handleWheelEnd);\r\n\r\n this.animation.animate(pixelY, deltaY =>\r\n // FIXME: Typescript not resolving setState cb type\r\n this.setState(CalendarUtils.applyDelta(deltaY, this.theme) as any),\r\n );\r\n\r\n CalendarScrollEvents.emit();\r\n };\r\n\r\n private handleWheelEnd = () => {\r\n if (this.wheelEndTimeout) {\r\n clearTimeout(this.wheelEndTimeout);\r\n }\r\n this.wheelEndTimeout = window.setTimeout(this.scrollToNearestWeek, 300);\r\n };\r\n\r\n private scrollToNearestWeek = () => {\r\n const { scrollTarget, scrollDirection } = this.state;\r\n\r\n const trasholdHeight = themeConfig(this.theme).MONTH_TITLE_OFFSET_HEIGHT + themeConfig(this.theme).DAY_SIZE;\r\n\r\n if (scrollTarget < trasholdHeight) {\r\n let targetPosition = 0;\r\n if (scrollDirection < 0) {\r\n targetPosition = trasholdHeight;\r\n }\r\n\r\n this.setState({ scrollTarget: targetPosition }, () => {\r\n const amount = scrollTarget - targetPosition;\r\n this.animation.animate(amount, deltaY =>\r\n // FIXME: Typescript not resolving setState cb type\r\n this.setState(CalendarUtils.applyDelta(deltaY, this.theme) as any),\r\n );\r\n });\r\n }\r\n };\r\n\r\n private scrollTo = (pos: number, onEnd?: () => void) => {\r\n const scrollAmmount = pos - this.state.scrollPosition;\r\n return this.scrollAmount(scrollAmmount, onEnd);\r\n };\r\n\r\n private scrollAmount = (scrollAmmount: number, onEnd?: () => void) => {\r\n return this.animation.animate(\r\n scrollAmmount,\r\n deltaY =>\r\n this.setState(({ scrollPosition }) => ({\r\n scrollPosition: scrollPosition + deltaY,\r\n })),\r\n onEnd,\r\n );\r\n };\r\n}\r\n"]}
|
|
@@ -89,7 +89,8 @@ export var ComboBoxMenu = (_dec = locale('ComboBox', CustomComboBoxLocaleHelper)
|
|
|
89
89
|
|
|
90
90
|
if (loading && (!items || !items.length)) {
|
|
91
91
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
92
|
-
ref: refMenu
|
|
92
|
+
ref: refMenu,
|
|
93
|
+
"data-tid": "ComboBoxMenu__loading"
|
|
93
94
|
}, /*#__PURE__*/React.createElement(MenuItem, {
|
|
94
95
|
disabled: true
|
|
95
96
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
@@ -101,7 +102,8 @@ export var ComboBoxMenu = (_dec = locale('ComboBox', CustomComboBoxLocaleHelper)
|
|
|
101
102
|
if (items === null && requestStatus === ComboBoxRequestStatus.Failed) {
|
|
102
103
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
103
104
|
ref: refMenu,
|
|
104
|
-
maxHeight: maxMenuHeight
|
|
105
|
+
maxHeight: maxMenuHeight,
|
|
106
|
+
"data-tid": "ComboBoxMenu__failed"
|
|
105
107
|
}, /*#__PURE__*/React.createElement(MenuItem, {
|
|
106
108
|
disabled: true,
|
|
107
109
|
key: "message"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ComboBoxMenu.tsx"],"names":["React","Component","locale","Menu","MenuItem","Spinner","MenuSeparator","ComboBoxRequestStatus","CustomComboBoxLocaleHelper","ComboBoxMenu","renderItem","item","index","props","onValueChange","isValidElement","element","Object","assign","key","onClick","cloneElement","state","render","opened","items","totalCount","loading","refMenu","renderNotFound","notFound","renderTotalCount","maxMenuHeight","requestStatus","errorNetworkButton","errorNetworkMessage","renderAddButton","length","Failed","maxWidth","whiteSpace","repeatRequest","notFoundValue","total","fontSize","map","__KONTUR_REACT_UI__","defaultProps","undefined","Unknown"],"mappings":"uGAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;;AAEA,SAASC,MAAT,QAAuB,6BAAvB;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,QAAT,QAAwC,2BAAxC;AACA,SAASC,OAAT,QAAwB,0BAAxB;;AAEA,SAASC,aAAT,QAA8B,gCAA9B;;AAEA,SAASC,qBAAT,QAAsC,uBAAtC;AACA,SAAyBC,0BAAzB,QAA2D,UAA3D;;;;;;;;;;;;;;;;;;;;AAoBA,WAAaC,YAAb,WADCP,MAAM,CAAC,UAAD,EAAaM,0BAAb,CACP;;;;;;;;AAQmBN,IAAAA,MARnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFUQ,IAAAA,UAzFV,GAyFuB,UAACC,IAAD,EAAUC,KAAV,EAA6C;AAChE;AACA;AAFgE,wBAG1B,MAAKC,KAHqB,CAGxDH,UAHwD,eAGxDA,UAHwD,CAG5CI,aAH4C,eAG5CA,aAH4C;AAIhE,UAAI,OAAOH,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G,IAAZ,CACA,IAAIlB,KAAK,IAAIM,gBAAT,IAA6BL,UAA7B,IAA2CD,KAAK,CAACY,MAAN,GAAeX,UAA9D,EAA0E,CACxEiB,KAAK,gBACH,oBAAC,QAAD,IAAU,QAAQ,MAAlB,EAAmB,GAAG,EAAC,OAAvB,iBACE,6BAAK,KAAK,EAAE,EAAEC,QAAQ,EAAE,EAAZ,EAAZ,IAA+Bb,gBAAgB,CAACN,KAAK,CAACY,MAAP,EAAeX,UAAf,CAA/C,CADF,CADF,CAKD,CAED,oBACE,oBAAC,IAAD,IAAM,YAAS,qBAAf,EAAqC,GAAG,EAAEE,OAA1C,EAAmD,SAAS,EAAEI,aAA9D,IACGP,KAAK,IAAIA,KAAK,CAACoB,GAAN,CAAU,KAAKnC,UAAf,CADZ,EAEGiC,KAFH,EAGGP,eAAe,IAAI,cAAC,oBAAC,aAAD,IAAe,GAAG,EAAC,WAAnB,GAAD,EAAoCA,eAApC,CAHtB,CADF,CAOD,CAvFH,uBAAqCnC,SAArC,WACgB6C,mBADhB,GACsC,cADtC,UAGgBC,YAHhB,GAG+B,EAC3BN,aAAa,EAAE,iCAAMO,SAAN,EADY,EAE3Bf,aAAa,EAAE1B,qBAAqB,CAAC0C,OAFV,EAH/B","sourcesContent":["import React, { Component } from 'react';\r\n\r\nimport { locale } from '../../lib/locale/decorators';\r\nimport { Menu } from '../Menu';\r\nimport { MenuItem, MenuItemState } from '../../components/MenuItem';\r\nimport { Spinner } from '../../components/Spinner';\r\nimport { Nullable } from '../../typings/utility-types';\r\nimport { MenuSeparator } from '../../components/MenuSeparator';\r\n\r\nimport { ComboBoxRequestStatus } from './CustomComboBoxTypes';\r\nimport { ComboBoxLocale, CustomComboBoxLocaleHelper } from './locale';\r\n\r\nexport interface ComboBoxMenuProps<T> {\r\n opened?: boolean;\r\n items?: Nullable<T[]>;\r\n totalCount?: number;\r\n loading?: boolean;\r\n maxMenuHeight?: number | string;\r\n refMenu?: (menu: Nullable<Menu>) => void;\r\n renderNotFound?: () => React.ReactNode;\r\n renderTotalCount?: (found: number, total: number) => React.ReactNode;\r\n renderItem: (item: T, state: MenuItemState) => React.ReactNode;\r\n onValueChange: (value: T) => any;\r\n renderAddButton?: () => React.ReactNode;\r\n caption?: React.ReactNode;\r\n repeatRequest?: () => void;\r\n requestStatus?: ComboBoxRequestStatus;\r\n}\r\n\r\n@locale('ComboBox', CustomComboBoxLocaleHelper)\r\nexport class ComboBoxMenu<T> extends Component<ComboBoxMenuProps<T>> {\r\n public static __KONTUR_REACT_UI__ = 'ComboBoxMenu';\r\n\r\n public static defaultProps = {\r\n repeatRequest: () => undefined,\r\n requestStatus: ComboBoxRequestStatus.Unknown,\r\n };\r\n\r\n private readonly locale!: ComboBoxLocale;\r\n\r\n public render() {\r\n const {\r\n opened,\r\n items,\r\n totalCount,\r\n loading,\r\n refMenu,\r\n renderNotFound = () => notFound,\r\n renderTotalCount,\r\n maxMenuHeight,\r\n requestStatus,\r\n } = this.props;\r\n\r\n const { notFound, errorNetworkButton, errorNetworkMessage } = this.locale;\r\n\r\n if (!opened) {\r\n return null;\r\n }\r\n\r\n let renderAddButton = null;\r\n if (this.props.renderAddButton) {\r\n renderAddButton = this.props.renderAddButton();\r\n }\r\n\r\n if (loading && (!items || !items.length)) {\r\n return (\r\n <Menu ref={refMenu}>\r\n <MenuItem disabled>\r\n <Spinner type=\"mini\" dimmed />\r\n </MenuItem>\r\n </Menu>\r\n );\r\n }\r\n\r\n if (items === null && requestStatus === ComboBoxRequestStatus.Failed) {\r\n return (\r\n <Menu ref={refMenu} maxHeight={maxMenuHeight}>\r\n <MenuItem disabled key=\"message\">\r\n <div style={{ maxWidth: 300, whiteSpace: 'normal' }}>{errorNetworkMessage}</div>\r\n </MenuItem>\r\n <MenuItem link onClick={this.props.repeatRequest} key=\"retry\">\r\n {errorNetworkButton}\r\n </MenuItem>\r\n </Menu>\r\n );\r\n }\r\n\r\n if ((items == null || items.length === 0) && renderNotFound) {\r\n const notFoundValue = renderNotFound();\r\n if (renderAddButton) return <Menu ref={refMenu}>{renderAddButton}</Menu>;\r\n if (notFoundValue)\r\n return (\r\n <Menu ref={refMenu}>\r\n <MenuItem data-tid=\"ComboBoxMenu__notFound\" disabled>\r\n {notFoundValue}\r\n </MenuItem>\r\n </Menu>\r\n );\r\n return null;\r\n }\r\n\r\n let total = null;\r\n if (items && renderTotalCount && totalCount && items.length < totalCount) {\r\n total = (\r\n <MenuItem disabled key=\"total\">\r\n <div style={{ fontSize: 12 }}>{renderTotalCount(items.length, totalCount)}</div>\r\n </MenuItem>\r\n );\r\n }\r\n\r\n return (\r\n <Menu data-tid=\"ComboBoxMenu__items\" ref={refMenu} maxHeight={maxMenuHeight}>\r\n {items && items.map(this.renderItem)}\r\n {total}\r\n {renderAddButton && [<MenuSeparator key=\"separator\" />, renderAddButton]}\r\n </Menu>\r\n );\r\n }\r\n\r\n private renderItem = (item: T, index: number): React.ReactNode => {\r\n // NOTE this is undesireable feature, better\r\n // to remove it from further versions\r\n const { renderItem, onValueChange } = this.props;\r\n if (typeof item === 'function' || React.isValidElement(item)) {\r\n // @ts-ignore\r\n const element = typeof item === 'function' ? item() : item;\r\n const props = Object.assign(\r\n {\r\n key: index,\r\n onClick: () => onValueChange(element.props),\r\n },\r\n element.props,\r\n );\r\n return React.cloneElement(element, props);\r\n }\r\n\r\n return (\r\n <MenuItem data-tid=\"ComboBoxMenu__item\" onClick={() => onValueChange(item)} key={index}>\r\n {state => renderItem(item, state)}\r\n </MenuItem>\r\n );\r\n };\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"sources":["ComboBoxMenu.tsx"],"names":["React","Component","locale","Menu","MenuItem","Spinner","MenuSeparator","ComboBoxRequestStatus","CustomComboBoxLocaleHelper","ComboBoxMenu","renderItem","item","index","props","onValueChange","isValidElement","element","Object","assign","key","onClick","cloneElement","state","render","opened","items","totalCount","loading","refMenu","renderNotFound","notFound","renderTotalCount","maxMenuHeight","requestStatus","errorNetworkButton","errorNetworkMessage","renderAddButton","length","Failed","maxWidth","whiteSpace","repeatRequest","notFoundValue","total","fontSize","map","__KONTUR_REACT_UI__","defaultProps","undefined","Unknown"],"mappings":"uGAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;;AAEA,SAASC,MAAT,QAAuB,6BAAvB;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,QAAT,QAAwC,2BAAxC;AACA,SAASC,OAAT,QAAwB,0BAAxB;;AAEA,SAASC,aAAT,QAA8B,gCAA9B;;AAEA,SAASC,qBAAT,QAAsC,uBAAtC;AACA,SAAyBC,0BAAzB,QAA2D,UAA3D;;;;;;;;;;;;;;;;;;;;AAoBA,WAAaC,YAAb,WADCP,MAAM,CAAC,UAAD,EAAaM,0BAAb,CACP;;;;;;;;AAQmBN,IAAAA,MARnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFUQ,IAAAA,UAzFV,GAyFuB,UAACC,IAAD,EAAUC,KAAV,EAA6C;AAChE;AACA;AAFgE,wBAG1B,MAAKC,KAHqB,CAGxDH,UAHwD,eAGxDA,UAHwD,CAG5CI,aAH4C,eAG5CA,aAH4C;AAIhE,UAAI,OAAOH,IAAP,KAAgB,UAAhB,iBAA8BX,KAAK,CAACe,cAAN,CAAqBJ,IAArB,CAAlC,EAA8D;AAC5D;AACA,YAAMK,OAAO,GAAG,OAAOL,IAAP,KAAgB,UAAhB,GAA6BA,IAAI,EAAjC,GAAsCA,IAAtD;AACA,YAAME,KAAK,GAAGI,MAAM,CAACC,MAAP;AACZ;AACEC,UAAAA,GAAG,EAAEP,KADP;AAEEQ,UAAAA,OAAO,EAAE,2BAAMN,aAAa,CAACE,OAAO,CAACH,KAAT,CAAnB,EAFX,EADY;;AAKZG,QAAAA,OAAO,CAACH,KALI,CAAd;;AAOA,4BAAOb,KAAK,CAACqB,YAAN,CAAmBL,OAAnB,EAA4BH,KAA5B,CAA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,SAAS,EAAEI,aAA9D,IACGP,KAAK,IAAIA,KAAK,CAACoB,GAAN,CAAU,KAAKnC,UAAf,CADZ,EAEGiC,KAFH,EAGGP,eAAe,IAAI,cAAC,oBAAC,aAAD,IAAe,GAAG,EAAC,WAAnB,GAAD,EAAoCA,eAApC,CAHtB,CADF,CAOD,CAvFH,uBAAqCnC,SAArC,WACgB6C,mBADhB,GACsC,cADtC,UAGgBC,YAHhB,GAG+B,EAC3BN,aAAa,EAAE,iCAAMO,SAAN,EADY,EAE3Bf,aAAa,EAAE1B,qBAAqB,CAAC0C,OAFV,EAH/B","sourcesContent":["import React, { Component } from 'react';\r\n\r\nimport { locale } from '../../lib/locale/decorators';\r\nimport { Menu } from '../Menu';\r\nimport { MenuItem, MenuItemState } from '../../components/MenuItem';\r\nimport { Spinner } from '../../components/Spinner';\r\nimport { Nullable } from '../../typings/utility-types';\r\nimport { MenuSeparator } from '../../components/MenuSeparator';\r\n\r\nimport { ComboBoxRequestStatus } from './CustomComboBoxTypes';\r\nimport { ComboBoxLocale, CustomComboBoxLocaleHelper } from './locale';\r\n\r\nexport interface ComboBoxMenuProps<T> {\r\n opened?: boolean;\r\n items?: Nullable<T[]>;\r\n totalCount?: number;\r\n loading?: boolean;\r\n maxMenuHeight?: number | string;\r\n refMenu?: (menu: Nullable<Menu>) => void;\r\n renderNotFound?: () => React.ReactNode;\r\n renderTotalCount?: (found: number, total: number) => React.ReactNode;\r\n renderItem: (item: T, state: MenuItemState) => React.ReactNode;\r\n onValueChange: (value: T) => any;\r\n renderAddButton?: () => React.ReactNode;\r\n caption?: React.ReactNode;\r\n repeatRequest?: () => void;\r\n requestStatus?: ComboBoxRequestStatus;\r\n}\r\n\r\n@locale('ComboBox', CustomComboBoxLocaleHelper)\r\nexport class ComboBoxMenu<T> extends Component<ComboBoxMenuProps<T>> {\r\n public static __KONTUR_REACT_UI__ = 'ComboBoxMenu';\r\n\r\n public static defaultProps = {\r\n repeatRequest: () => undefined,\r\n requestStatus: ComboBoxRequestStatus.Unknown,\r\n };\r\n\r\n private readonly locale!: ComboBoxLocale;\r\n\r\n public render() {\r\n const {\r\n opened,\r\n items,\r\n totalCount,\r\n loading,\r\n refMenu,\r\n renderNotFound = () => notFound,\r\n renderTotalCount,\r\n maxMenuHeight,\r\n requestStatus,\r\n } = this.props;\r\n\r\n const { notFound, errorNetworkButton, errorNetworkMessage } = this.locale;\r\n\r\n if (!opened) {\r\n return null;\r\n }\r\n\r\n let renderAddButton = null;\r\n if (this.props.renderAddButton) {\r\n renderAddButton = this.props.renderAddButton();\r\n }\r\n\r\n if (loading && (!items || !items.length)) {\r\n return (\r\n <Menu ref={refMenu} data-tid=\"ComboBoxMenu__loading\">\r\n <MenuItem disabled>\r\n <Spinner type=\"mini\" dimmed />\r\n </MenuItem>\r\n </Menu>\r\n );\r\n }\r\n\r\n if (items === null && requestStatus === ComboBoxRequestStatus.Failed) {\r\n return (\r\n <Menu ref={refMenu} maxHeight={maxMenuHeight} data-tid=\"ComboBoxMenu__failed\">\r\n <MenuItem disabled key=\"message\">\r\n <div style={{ maxWidth: 300, whiteSpace: 'normal' }}>{errorNetworkMessage}</div>\r\n </MenuItem>\r\n <MenuItem link onClick={this.props.repeatRequest} key=\"retry\">\r\n {errorNetworkButton}\r\n </MenuItem>\r\n </Menu>\r\n );\r\n }\r\n\r\n if ((items == null || items.length === 0) && renderNotFound) {\r\n const notFoundValue = renderNotFound();\r\n if (renderAddButton) return <Menu ref={refMenu}>{renderAddButton}</Menu>;\r\n if (notFoundValue)\r\n return (\r\n <Menu ref={refMenu}>\r\n <MenuItem data-tid=\"ComboBoxMenu__notFound\" disabled>\r\n {notFoundValue}\r\n </MenuItem>\r\n </Menu>\r\n );\r\n return null;\r\n }\r\n\r\n let total = null;\r\n if (items && renderTotalCount && totalCount && items.length < totalCount) {\r\n total = (\r\n <MenuItem disabled key=\"total\">\r\n <div style={{ fontSize: 12 }}>{renderTotalCount(items.length, totalCount)}</div>\r\n </MenuItem>\r\n );\r\n }\r\n\r\n return (\r\n <Menu data-tid=\"ComboBoxMenu__items\" ref={refMenu} maxHeight={maxMenuHeight}>\r\n {items && items.map(this.renderItem)}\r\n {total}\r\n {renderAddButton && [<MenuSeparator key=\"separator\" />, renderAddButton]}\r\n </Menu>\r\n );\r\n }\r\n\r\n private renderItem = (item: T, index: number): React.ReactNode => {\r\n // NOTE this is undesireable feature, better\r\n // to remove it from further versions\r\n const { renderItem, onValueChange } = this.props;\r\n if (typeof item === 'function' || React.isValidElement(item)) {\r\n // @ts-ignore\r\n const element = typeof item === 'function' ? item() : item;\r\n const props = Object.assign(\r\n {\r\n key: index,\r\n onClick: () => onValueChange(element.props),\r\n },\r\n element.props,\r\n );\r\n return React.cloneElement(element, props);\r\n }\r\n\r\n return (\r\n <MenuItem data-tid=\"ComboBoxMenu__item\" onClick={() => onValueChange(item)} key={index}>\r\n {state => renderItem(item, state)}\r\n </MenuItem>\r\n );\r\n };\r\n}\r\n"]}
|
|
@@ -3,6 +3,7 @@ import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { canUseDOM, isBrowser } from "../../../lib/client";
|
|
5
5
|
import { getRandomID } from "../../../lib/utils";
|
|
6
|
+
import { Upgrade } from "../../../lib/Upgrades";
|
|
6
7
|
import { RenderInnerContainer } from "../RenderInnerContainer";
|
|
7
8
|
export var RenderContainer = /*#__PURE__*/function (_React$Component) {
|
|
8
9
|
_inheritsLoose(RenderContainer, _React$Component);
|
|
@@ -47,7 +48,7 @@ export var RenderContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
47
48
|
_proto.createContainer = function createContainer() {
|
|
48
49
|
if (canUseDOM) {
|
|
49
50
|
var domContainer = document.createElement('div');
|
|
50
|
-
domContainer.setAttribute('class',
|
|
51
|
+
domContainer.setAttribute('class', Upgrade.getSpecificityClassName());
|
|
51
52
|
domContainer.setAttribute('data-rendered-container-id', "" + this.rootId);
|
|
52
53
|
this.domContainer = domContainer;
|
|
53
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["RenderContainer.tsx"],"names":["React","canUseDOM","isBrowser","getRandomID","RenderInnerContainer","RenderContainer","props","domContainer","rootId","getRootId","children","mountContainer","UNSAFE_componentWillReceiveProps","nextProps","unmountContainer","componentWillUnmount","destroyContainer","render","createContainer","document","createElement","setAttribute","parentNode","body","appendChild","window","ReactTesting","addRenderContainer","removeChild","removeRenderContainer","Component","__KONTUR_REACT_UI__"],"mappings":"gIAAA,OAAOA,KAAP,MAAkB,OAAlB;;AAEA,SAASC,SAAT,EAAoBC,SAApB,QAAqC,kBAArC;;AAEA,SAASC,WAAT,QAA4B,iBAA5B;;AAEA,SAASC,oBAAT,QAAqC,wBAArC;;;AAGA,WAAaC,eAAb;;;;;;;;AAQE,2BAAYC,KAAZ,EAAyC;AACvC,wCAAMA,KAAN,UADuC,MAJjCC,YAIiC,GAJK,IAIL,OAFxBC,MAEwB,GAFPH,eAAe,CAACI,SAAhB,EAEO;;AAGvC,
|
|
1
|
+
{"version":3,"sources":["RenderContainer.tsx"],"names":["React","canUseDOM","isBrowser","getRandomID","Upgrade","RenderInnerContainer","RenderContainer","props","domContainer","rootId","getRootId","children","mountContainer","UNSAFE_componentWillReceiveProps","nextProps","unmountContainer","componentWillUnmount","destroyContainer","render","createContainer","document","createElement","setAttribute","getSpecificityClassName","parentNode","body","appendChild","window","ReactTesting","addRenderContainer","removeChild","removeRenderContainer","Component","__KONTUR_REACT_UI__"],"mappings":"gIAAA,OAAOA,KAAP,MAAkB,OAAlB;;AAEA,SAASC,SAAT,EAAoBC,SAApB,QAAqC,kBAArC;;AAEA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,OAAT,QAAwB,oBAAxB;;AAEA,SAASC,oBAAT,QAAqC,wBAArC;;;AAGA,WAAaC,eAAb;;;;;;;;AAQE,2BAAYC,KAAZ,EAAyC;AACvC,wCAAMA,KAAN,UADuC,MAJjCC,YAIiC,GA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AAQ,CAACK,IAAT,CAAcC,WAAd,CAA0B,KAAKlB,YAA/B;AACA,UAAImB,MAAM,CAACC,YAAX,EAAyB;AACvBD,QAAAA,MAAM,CAACC,YAAP,CAAoBC,kBAApB,CAAuC,KAAKpB,MAA5C,EAAoD,IAApD;AACD;AACF;AACF,GApDH;;AAsDUQ,EAAAA,gBAtDV,GAsDE,4BAA2B;AACzB,QAAI,KAAKT,YAAT,EAAuB;AACrB,WAAKO,gBAAL;AACA,WAAKP,YAAL,GAAoB,IAApB;AACD;AACF,GA3DH;;AA6DUO,EAAAA,gBA7DV,GA6DE,4BAA2B;AACzB,QAAI,KAAKP,YAAL,IAAqB,KAAKA,YAAL,CAAkBgB,UAA3C,EAAuD;AACrD,WAAKhB,YAAL,CAAkBgB,UAAlB,CAA6BM,WAA7B,CAAyC,KAAKtB,YAA9C;;AAEA,UAAImB,MAAM,CAACC,YAAX,EAAyB;AACvBD,QAAAA,MAAM,CAACC,YAAP,CAAoBG,qBAApB,CAA0C,KAAKtB,MAA/C;AACD;AACF;AACF,GArEH,0BAAqCT,KAAK,CAACgC,SAA3C,EAAa1B,e,CACG2B,mB,GAAsB,iB,CADzB3B,e,CAGII,S,GAAY,oBAAMP,WAAW,EAAjB,E","sourcesContent":["import React from 'react';\r\n\r\nimport { canUseDOM, isBrowser } from '../../lib/client';\r\nimport { Nullable } from '../../typings/utility-types';\r\nimport { getRandomID } from '../../lib/utils';\r\nimport { Upgrade } from '../../lib/Upgrades';\r\n\r\nimport { RenderInnerContainer } from './RenderInnerContainer';\r\nimport { RenderContainerProps } from './RenderContainerTypes';\r\n\r\nexport class RenderContainer extends React.Component<RenderContainerProps> {\r\n public static __KONTUR_REACT_UI__ = 'RenderContainer';\r\n\r\n private static getRootId = () => getRandomID();\r\n private domContainer: Nullable<HTMLElement> = null;\r\n\r\n private readonly rootId: string = RenderContainer.getRootId();\r\n\r\n constructor(props: RenderContainerProps) {\r\n super(props);\r\n\r\n if (isBrowser && props.children) {\r\n this.mountContainer();\r\n }\r\n }\r\n\r\n public UNSAFE_componentWillReceiveProps(nextProps: Readonly<RenderContainerProps>): void {\r\n if (!this.props.children && nextProps.children) {\r\n this.mountContainer();\r\n }\r\n if (this.props.children && !nextProps.children) {\r\n this.unmountContainer();\r\n }\r\n }\r\n\r\n public componentWillUnmount() {\r\n this.destroyContainer();\r\n }\r\n\r\n public render() {\r\n return <RenderInnerContainer {...this.props} domContainer={this.domContainer} rootId={this.rootId} />;\r\n }\r\n\r\n private createContainer() {\r\n if (canUseDOM) {\r\n const domContainer = document.createElement('div');\r\n domContainer.setAttribute('class', Upgrade.getSpecificityClassName());\r\n domContainer.setAttribute('data-rendered-container-id', `${this.rootId}`);\r\n this.domContainer = domContainer;\r\n }\r\n }\r\n\r\n private mountContainer() {\r\n if (!this.domContainer) {\r\n this.createContainer();\r\n }\r\n if (this.domContainer && this.domContainer.parentNode !== document.body) {\r\n document.body.appendChild(this.domContainer);\r\n if (window.ReactTesting) {\r\n window.ReactTesting.addRenderContainer(this.rootId, this);\r\n }\r\n }\r\n }\r\n\r\n private destroyContainer() {\r\n if (this.domContainer) {\r\n this.unmountContainer();\r\n this.domContainer = null;\r\n }\r\n }\r\n\r\n private unmountContainer() {\r\n if (this.domContainer && this.domContainer.parentNode) {\r\n this.domContainer.parentNode.removeChild(this.domContainer);\r\n\r\n if (window.ReactTesting) {\r\n window.ReactTesting.removeRenderContainer(this.rootId);\r\n }\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -17,6 +17,6 @@ export interface VariableDependencies {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const COMPONENT_DESCRIPTIONS: DescriptionsType;
|
|
19
19
|
export declare const COMPONENT_DESCRIPTIONS_BY_VARIABLE: VariableNameToComponentsMap;
|
|
20
|
-
export declare const ALL_USED_VARIABLES: ("black" | "blue" | "gray" | "green" | "red" | "white" | "yellow" | "prototype" | "fontFamilyCompensationBaseline" | "brandXLight" | "brandLight" | "brand" | "brandDark" | "brandXDark" | "grayXxLight" | "grayXLight" | "grayLight" | "grayDark" | "blueXxLight" | "blueLight" | "blueDark" | "blueXDark" | "greenXxLight" | "greenDark" | "redXxLight" | "redDark" | "yellowXxLight" | "yellowDark" | "bgDefault" | "bgDisabled" | "errorMain" | "errorSecondary" | "errorText" | "warningMain" | "warningSecondary" | "warningText" | "borderColorFocusLight" | "borderColorGrayDark" | "borderColorGrayLight" | "placeholderColor" | "outlineColorFocus" | "placeholderColorLight" | "blinkColor" | "controlBorderWidth" | "controlOutlineWidth" | "controlLineHeightSmall" | "controlLineHeightMedium" | "controlLineHeightLarge" | "controlPaddingYSmall" | "controlPaddingYMedium" | "controlPaddingYLarge" | "textColorDefault" | "textColorInvert" | "textColorDisabled" | "fontSizeSmall" | "fontSizeMedium" | "fontSizeLarge" | "specificityLevel" | "bgActive" | "borderColorFocus" | "borderColorError" | "borderColorWarning" | "controlHeightSmall" | "controlHeightMedium" | "controlHeightLarge" | "linkColor" | "linkActiveColor" | "linkHoverTextDecoration" | "linkSuccessColor" | "linkSuccessHoverColor" | "linkSuccessActiveColor" | "linkDangerColor" | "linkDangerHoverColor" | "linkDangerActiveColor" | "linkIconMarginRight" | "linkHoverColor" | "linkDisabledColor" | "linkButtonLineHeight" | "linkButtonPaddingX" | "tokenDisabledBg" | "tokenTextColorDisabled" | "tokenFontSize" | "tokenMarginY" | "tokenMarginX" | "tokenLineHeight" | "tokenPaddingY" | "tokenPaddingX" | "tokenMarginBeforeIcon" | "tokenRemoveIconSize" | "tokenRemoveIconPaddingY" | "tokenRemoveIconPaddingX" | "tokenRemoveIconGap" | "tokenRemoveIconBoxSizing" | "tokenBorderRadius" | "tokenBorderWidth" | "tokenBorderColorDisabled" | "tokenDefaultIdle" | "tokenDefaultActive" | "tokenGrayIdle" | "tokenGrayActive" | "tokenBlueIdle" | "tokenBlueActive" | "tokenGreenIdle" | "tokenGreenActive" | "tokenYellowIdle" | "tokenYellowActive" | "tokenRedIdle" | "tokenRedActive" | "tokenWhite" | "tokenBlack" | "tokenBorderColorWarning" | "tokenBorderColorError" | "tokenOutlineWidth" | "tokenLegacyTextShift" | "tokenPaddingYDisabled" | "tokenPaddingXDisabled" | "tokenMarginYDisabled" | "tokenMarginXDisabled" | "tokenShadowDisabled" | "tokenInputBorderColor" | "tokenInputBorderColorFocus" | "tokenInputBorderColorError" | "tokenInputBorderColorWarning" | "tokenInputBorderTopColor" | "tokenInputPlaceholderColor" | "tokenInputPlaceholderColorLight" | "tokenInputDisabledBg" | "tokenInputDisabledBorderColor" | "tokenInputBorderWidth" | "tokenInputOutlineWidth" | "tokenInputBg" | "tokenInputShadow" | "tokenInputTextColor" | "tokenInputTextColorDisabled" | "tokenInputPaddingY" | "tokenInputPaddingX" | "tokenInputFontSize" | "tokenInputLineHeight" | "tokenInputInputPaddingLeft" | "tokenInputInputPaddingRight" | "loaderBg" | "loaderOpacity" | "btnWrapPadding" | "btnHeightShift" | "btnLinkBorderRadius" | "btnFocusShadowWidth" | "btnFocusBorder" | "btnDisabledTextColor" | "btnDisabledBorderColor" | "btnCheckedBg" | "btnCheckedDisabledBg" | "btnCheckedDisabledColor" | "btnCheckedHoverBorderColor" | "btnCheckedTextColor" | "btnCheckedDisabledBorderColor" | "btnCheckedShadow" | "btnCheckedShadowColorArrow" | "btnCheckedShadowArrow" | "btnCheckedShadowArrowLeft" | "btnCheckedDisabledShadow" | "btnCheckedDisabledShadowArrow" | "btnArrowBorderRadius" | "btnSmallBorderRadius" | "btnBorderRadius" | "btnBorderRadiusSmall" | "btnBorderRadiusMedium" | "btnBorderRadiusLarge" | "btnBorderWidth" | "btnOutlineWidth" | "btnPaddingXSmall" | "btnPaddingXMedium" | "btnPaddingXLarge" | "btnIconGapSmall" | "btnIconGapMedium" | "btnIconGapLarge" | "btnIconSizeSmall" | "btnIconSizeMedium" | "btnIconSizeLarge" | "btnDefaultBg" | "btnDefaultBgStart" | "btnDefaultBgEnd" | "btnSmallArrowLength" | "btnSmallArrowRight" | "btnSmallArrowLeft" | "btnSmallArrowBorderRadius" | "btnMediumArrowTop" | "btnMediumArrowLength" | "btnMediumArrowLeft" | "btnMediumArrowLeftLoadingLeft" | "btnMediumArrowTransform" | "btnDeprecatedSizeMediumFontSize" | "btnDeprecatedSizeMediumPaddingShift" | "btnLargeArrowTop" | "btnLargeArrowLength" | "btnLargeArrowLeft" | "btnLargeArrowRight" | "btnLargeArrowTransform" | "btnLargeArrowBg" | "btnDefaultBgArrowStart" | "btnDefaultBgArrowEnd" | "btnDefaultCheckedShadowArrow" | "btnDefaultCheckedBorder" | "btnDefaultTextColor" | "btnDefaultHoverBg" | "btnDefaultHoverBorderColor" | "btnDefaultActiveBorderColor" | "btnDefaultBorder" | "btnDefaultShadow" | "btnDefaultShadowArrow" | "btnDefaultShadowArrowLeft" | "btnDefaultHoverBgStart" | "btnDefaultHoverBgEnd" | "btnDefaultHoverShadow" | "btnDefaultHoverShadowArrow" | "btnDefaultHoverShadowArrowLeft" | "btnDefaultActiveBg" | "btnDefaultActiveShadow" | "btnDefaultActiveShadowArrow" | "btnDefaultActiveShadowArrowLeft" | "btnSuccessBg" | "btnSuccessHoverBg" | "btnSuccessHoverBorderColor" | "btnSuccessDisabledBg" | "btnSuccessBorder" | "btnSuccessBgStart" | "btnSuccessBgEnd" | "btnSuccessBgArrowStart" | "btnSuccessBgArrowEnd" | "btnSuccessTextColor" | "btnSuccessShadow" | "btnSuccessShadowArrow" | "btnSuccessShadowArrowLeft" | "btnSuccessHoverBgStart" | "btnSuccessHoverBgEnd" | "btnSuccessHoverShadow" | "btnSuccessHoverShadowArrow" | "btnSuccessHoverShadowArrowLeft" | "btnSuccessActiveBg" | "btnSuccessActiveShadow" | "btnSuccessActiveShadowArrow" | "btnSuccessActiveShadowArrowLeft" | "btnPrimaryBg" | "btnPrimaryHoverBg" | "btnPrimaryHoverBorderColor" | "btnPrimaryDisabledBg" | "btnPrimaryBorder" | "btnPrimaryBgStart" | "btnPrimaryBgEnd" | "btnPrimaryBgArrowStart" | "btnPrimaryBgArrowEnd" | "btnPrimaryTextColor" | "btnPrimaryShadow" | "btnPrimaryShadowArrow" | "btnPrimaryShadowArrowLeft" | "btnPrimaryHoverBgStart" | "btnPrimaryHoverBgEnd" | "btnPrimaryHoverShadow" | "btnPrimaryHoverShadowArrow" | "btnPrimaryHoverShadowArrowLeft" | "btnPrimaryActiveBg" | "btnPrimaryActiveShadow" | "btnPrimaryActiveShadowArrow" | "btnPrimaryActiveShadowArrowLeft" | "btnDangerBg" | "btnDangerHoverBg" | "btnDangerHoverBorderColor" | "btnDangerDisabledBg" | "btnDangerBorder" | "btnDangerBgStart" | "btnDangerBgEnd" | "btnDangerBgArrowStart" | "btnDangerBgArrowEnd" | "btnDangerTextColor" | "btnDangerShadow" | "btnDangerShadowArrow" | "btnDangerShadowArrowLeft" | "btnDangerHoverBgStart" | "btnDangerHoverBgEnd" | "btnDangerHoverShadow" | "btnDangerHoverShadowArrow" | "btnDangerHoverShadowArrowLeft" | "btnDangerActiveBg" | "btnDangerActiveShadow" | "btnDangerActiveShadowArrow" | "btnDangerActiveShadowArrowLeft" | "btnPayBg" | "btnPayHoverBg" | "btnPayHoverBorderColor" | "btnPayDisabledBg" | "btnPayBorder" | "btnPayBgStart" | "btnPayBgEnd" | "btnPayBgArrowStart" | "btnPayBgArrowEnd" | "btnPayShadow" | "btnPayTextColor" | "btnPayShadowArrow" | "btnPayShadowArrowLeft" | "btnPayHoverBgStart" | "btnPayHoverBgEnd" | "btnPayHoverShadow" | "btnPayHoverShadowArrow" | "btnPayHoverShadowArrowLeft" | "btnPayActiveBg" | "btnPayActiveShadow" | "btnPayActiveShadowArrow" | "btnPayActiveShadowArrowLeft" | "btnDeprecatedSizeMediumPaddingShiftIe" | "btnSmallArrowTop" | "btnSmallArrowLeftLoadingDelay" | "btnSmallArrowBg" | "btnMediumArrowRight" | "btnMediumArrowBg" | "btnMediumArrowLeftLoadingDelay" | "btnLargeArrowLeftLoadingDelay" | "btnMenuArrowColor" | "btnFontSizeSmall" | "btnFontSizeMedium" | "btnFontSizeLarge" | "btnLineHeightSmall" | "btnLineHeightMedium" | "btnLineHeightLarge" | "btnPaddingYSmall" | "btnPaddingYMedium" | "btnPaddingYLarge" | "btnDisabledBg" | "btnDisabledShadowColor" | "btnDisabledShadow" | "btnDisabledShadowArrow" | "btnTextColorDefault" | "btnBorderColorWarning" | "btnBorderColorError" | "btnHeightSmall" | "btnHeightMedium" | "btnHeightLarge" | "btnLinkColor" | "btnLinkHoverColor" | "btnLinkHoverTextDecoration" | "btnLinkActiveColor" | "btnLinkIconMarginRight" | "btnErrorSecondary" | "btnOutlineColorFocus" | "btnBorderColorFocus" | "btnLinkDisabledColor" | "sltPlaceholderColor" | "selectPlaceholderColor" | "selectBorderWidth" | "selectOutlineWidth" | "selectLineHeightSmall" | "selectFontSizeSmall" | "selectPaddingXSmall" | "selectPaddingYSmall" | "selectBorderRadiusSmall" | "selectIconGapSmall" | "selectPaddingArrowSmall" | "selectLineHeightMedium" | "selectFontSizeMedium" | "selectPaddingXMedium" | "selectPaddingYMedium" | "selectBorderRadiusMedium" | "selectIconGapMedium" | "selectPaddingArrowMedium" | "selectLineHeightLarge" | "selectFontSizeLarge" | "selectPaddingXLarge" | "selectPaddingYLarge" | "selectBorderRadiusLarge" | "selectIconGapLarge" | "selectPaddingArrowLarge" | "selectMenuArrowColor" | "selectIconSizeSmall" | "selectIconSizeMedium" | "selectIconSizeLarge" | "tooltipPaddingY" | "tooltipPaddingX" | "tooltipCloseBtnPadding" | "tooltipCloseBtnColor" | "tooltipCloseBtnHoverColor" | "tooltipBorder" | "tooltipBorderRadius" | "tooltipPinOffset" | "tooltipPinOffsetX" | "tooltipPinOffsetY" | "tooltipMargin" | "tooltipPinSize" | "tooltipMenuPinOffset" | "tooltipMenuMargin" | "tooltipMenuPinSize" | "kebabPinOffset" | "kebabPinSize" | "kebabMargin" | "kebabBackground" | "kebabBackgroundHover" | "kebabBorderRadius" | "kebabBorder" | "modalBackBg" | "modalBackOpacity" | "modalCloseButtonColor" | "modalCloseButtonDisabledColor" | "modalCloseButtonHoverColor" | "modalCloseButtonPadding" | "modalCloseButtonLegacyShift" | "modalCloseButtonBottomPadding" | "modalCloseButtonClickArea" | "modalCloseIconSize" | "modalCloseLegacyGap" | "modalCloseWrapperLegacyGap" | "modalFixedHeaderBg" | "modalFixedHeaderShadow" | "modalFixedFooterShadow" | "modalFooterBg" | "modalAdaptiveThreshold" | "modalPaddingTop" | "modalPaddingLeft" | "modalPaddingRight" | "modalHeaderFontSize" | "modalHeaderLineHeight" | "modalHeaderPaddingBottom" | "modalHeaderPaddingTop" | "modalFixedHeaderPaddingBottom" | "modalBodyPaddingBottom" | "modalFooterPaddingTop" | "modalFooterPaddingBottom" | "modalPaddingBottom" | "modalFooterPanelPaddingTop" | "modalFooterPanelPaddingBottom" | "sidePageFooterPanelBg" | "sidePageBackingBg" | "sidePageBackingBgOpacity" | "sidePageCloseButtonColor" | "sidePageCloseButtonHoverColor" | "sidePageContainerShadow" | "sidePagePaddingLeft" | "sidePagePaddingRight" | "sidePagePaddingTop" | "sidePagePaddingBottom" | "sidePageFooterPaddingTop" | "sidePageFooterPaddingBottom" | "sidePageBgDefault" | "sidePageBorderColor" | "sidePageHeaderFontSize" | "sidePageHeaderLineHeight" | "sidePageHeaderPaddingBottom" | "sidePageHeaderPaddingTop" | "sidePageHeaderFixedFontSize" | "sidePageHeaderFixedLineHeight" | "sidePageHeaderFixedPaddingY" | "sidePageHeaderStickyOffset" | "sidePageCloseButtonPadding" | "sidePageCloseButtonLegacyPaddingLeft" | "sidePageFooterPanelPaddingTop" | "sidePageFooterPanelPaddingBottom" | "sidePageCloseIconSize" | "sidePageCloseButtonClickAreaX" | "dateInputIconColor" | "dateInputMaskColor" | "dateInputComponentSelectedBgColor" | "calendarCellBg" | "calendarCellHoverColor" | "calendarCellActiveHoverColor" | "calendarCellWeekendColor" | "calendarCellTodayBorder" | "calendarCellSelectedBgColor" | "calendarCellSelectedFontColor" | "calendarCellSize" | "calendarMonthHeaderStickedBgColor" | "calendarMonthTitleBorderBottomColor" | "calendarCellHoverBgColor" | "calendarPaddingX" | "calendarMonthTitleLineHeight" | "calendarMonthTitlePaddingTop" | "calendarMonthTitlePaddingBottom" | "calendarMonthTitleMarginX" | "calendarMonthTitleMarginBottom" | "calendarWrapperHeight" | "calendarMonthMarginBottom" | "calendarMaxMonthsToAppendOnScroll" | "dateSelectLineHeight" | "dateSelectFontSize" | "dateSelectFontWeight" | "dateSelectMenuItemBgSelected" | "dateSelectTextColorDisabled" | "dateSelectTextColorDefault" | "dateSelectLinkColor" | "dateSelectPopupBoxShadow" | "dateSelectTextColorInvert" | "datePickerOpenBtnColor" | "pickerBg" | "pickerShadow" | "pickerTodayWrapperBgColor" | "pickerTodayWrapperBorderTop" | "pickerTodayWrapperHoverBgColor" | "pickerTodayWrapperFontSize" | "pickerTodayWrapperLineHeight" | "pickerTodayWrapperPaddingTop" | "pickerTodayWrapperPaddingBottom" | "dateSelectMenuBg" | "dateSelectMenuItemBgActive" | "dateSelectMenuItemBgDisabled" | "dateSelectMenuItemFontActive" | "dateSelectMenuItemFontSelected" | "dateSelectMenuItemFontDisabled" | "pagingFontSize" | "pagingForwardIconSize" | "pagingForwardIconMarginTop" | "pagingPageLinkPaddingX" | "pagingPageLinkPaddingY" | "pagingPageLinkLegacyPaddingY" | "pagingPageLinkMinWidth" | "pagingPageForwardLinkMarginTop" | "pagingPageForwardLinkMarginLeft" | "pagingPageForwardLinkPaddingRight" | "pagingLineHeight" | "pagingDotsColor" | "pagingDotsPadding" | "pagingPageLinkActiveBg" | "pagingPageLinkActiveColor" | "pagingPageLinkHoverBg" | "pagingPageLinkHintColor" | "pagingPageLinkHintFontSize" | "pagingPageLinkHintLineHeight" | "pagingPageLinkBorderRadius" | "pagingPageLinkMargin" | "pagingForwardLinkColor" | "pagingForwardLinkDisabledColor" | "hintColor" | "hintFontSize" | "hintLineHeight" | "hintMaxWidth" | "hintPaddingY" | "hintPaddingX" | "hintTextAlign" | "hintBorder" | "hintBorderRadius" | "hintPinOffset" | "hintMargin" | "toastFontSize" | "toastLineHeight" | "toastPaddingY" | "toastPaddingX" | "toastBorderRadius" | "toastBorder" | "toastTop" | "toastBg" | "toastColor" | "toastLinkColor" | "toastClosePadding" | "toastCloseColor" | "toastCloseHoverColor" | "toastCloseSize" | "tbBg" | "tbShadow" | "tdDividerBg" | "logoColor" | "logoHoverColor" | "dropdownMenuSelectedBg" | "dropdownMenuHoverBg" | "menuBgDefault" | "menuBorder" | "menuShadow" | "menuPaddingY" | "menuItemSelectedBg" | "menuItemHoverBg" | "menuItemIconWidth" | "menuItemIconGap" | "menuItemIconLegacyMargin" | "menuItemIconLegacyShift" | "menuItemPaddingForIcon" | "menuItemLineHeight" | "menuItemFontSize" | "menuItemPaddingX" | "menuItemPaddingY" | "menuItemLegacyPaddingX" | "menuItemLegacyPaddingY" | "menuItemHoverColor" | "menuItemDisabledColor" | "menuItemLinkColor" | "menuItemCommentColor" | "menuItemCommentColorHover" | "menuHeaderColor" | "menuHeaderLineHeight" | "menuHeaderFontSize" | "menuHeaderPaddingX" | "menuHeaderPaddingTop" | "menuHeaderPaddingBottom" | "menuHeaderLegacyPaddingRight" | "menuSeparatorBorderColor" | "menuSeparatorMarginY" | "menuSeparatorBorderWidth" | "toggleHandleActiveWidthIncrement" | "toggleHandleBorderRadius" | "toggleHeight" | "toggleWidth" | "toggleBorderRadius" | "toggleBg" | "toggleBgDisabled" | "toggleBgHover" | "toggleBgChecked" | "toggleBorderWidth" | "toggleOutlineWidth" | "toggleBorderColor" | "toggleBgFocus" | "toggleBgActive" | "toggleBgError" | "toggleBgWarning" | "toggleFocusShadowColor" | "toggleCaptionGap" | "popupBorder" | "popupBorderRadius" | "popupBorderColor" | "popupDropShadow" | "popupBoxShadow" | "popupTextColor" | "popupBackground" | "popupPinOffset" | "popupPinOffsetX" | "popupPinOffsetY" | "popupMargin" | "popupPinSize" | "inputTextColor" | "inputTextColorDisabled" | "inputShadow" | "inputBg" | "inputIconColor" | "inputColor" | "inputWidth" | "inputFontSizeSmall" | "inputFontSizeMedium" | "inputFontSizeLarge" | "inputLineHeightSmall" | "inputLineHeightMedium" | "inputLineHeightLarge" | "inputHeightSmall" | "inputHeightMedium" | "inputHeightLarge" | "inputPaddingYSmall" | "inputPaddingYMedium" | "inputPaddingYLarge" | "inputPaddingXSmall" | "inputPaddingXMedium" | "inputPaddingXLarge" | "inputIconGapSmall" | "inputIconGapMedium" | "inputIconGapLarge" | "inputIconSizeSmall" | "inputIconSizeMedium" | "inputIconSizeLarge" | "inputFocusShadow" | "inputDisabledBg" | "inputDisabledBorderColor" | "inputFocusOutline" | "inputBorderWidth" | "inputOutlineWidth" | "inputBorderRadiusSmall" | "inputBorderRadiusMedium" | "inputBorderRadiusLarge" | "inputBorderColor" | "inputBorderColorFocus" | "inputBorderColorError" | "inputBorderColorWarning" | "inputBorderTopColor" | "inputPlaceholderColor" | "inputPlaceholderColorLight" | "inputBlinkColor" | "chbFontSize" | "chbLineHeight" | "chbBoxSize" | "chbPaddingX" | "chbPaddingY" | "chbBgStart" | "chbBgEnd" | "chbTextColorDefault" | "chbTextColorDisabled" | "chbIndeterminateBg" | "chbShadow" | "chbShadowDisabled" | "chbBorder" | "chbShadowHover" | "chbCheckedColor" | "chbOutlineColorFocus" | "chbBorderColorWarning" | "chbBorderColorError" | "chbCheckedHoverShadow" | "chbBorderRadius" | "chbShadowWidth" | "chbCheckedShadow" | "chbBorderColorFocus" | "chbBg" | "chbHoverBg" | "chbActiveBg" | "chbCheckedBg" | "chbBgDisabled" | "chbBoxIndeterminateBg" | "chbCheckedHoverBg" | "chbCheckedActiveBg" | "chbCheckedActiveShadow" | "chbShadowActive" | "checkboxBorderWidthCompensation" | "checkboxFontSize" | "checkboxLineHeight" | "checkboxBoxSize" | "checkboxLabelGap" | "checkboxPaddingY" | "checkboxBgStart" | "checkboxBgEnd" | "checkboxTextColorDefault" | "checkboxTextColorDisabled" | "checkboxIndeterminateBg" | "checkboxShadowDisabled" | "checkboxBorder" | "checkboxBorderWidth" | "checkboxShadow" | "checkboxShadowHover" | "checkboxCheckedColor" | "checkboxOutlineColorFocus" | "checkboxBorderColorWarning" | "checkboxBorderColorError" | "checkboxCheckedHoverShadow" | "checkboxBorderRadius" | "checkboxOutlineWidth" | "checkboxCheckedShadow" | "checkboxCheckedActiveShadow" | "checkboxBorderColorFocus" | "checkboxBg" | "checkboxHoverBg" | "checkboxActiveBg" | "checkboxCheckedBg" | "checkboxBgDisabled" | "checkboxBoxIndeterminateBg" | "checkboxCheckedHoverBg" | "checkboxCheckedActiveBg" | "checkboxShadowActive" | "textareaBg" | "textareaColor" | "textareaTextColorDisabled" | "textareaPlaceholderColorLight" | "textareaPlaceholderColor" | "textareaShadow" | "textareaFontSize" | "textareaLineHeight" | "textareaBorderRadius" | "textareaBorderWidth" | "textareaOutlineWidth" | "textareaHeight" | "textareaMinHeight" | "textareaWidth" | "textareaPaddingX" | "textareaPaddingY" | "textareaBorderColor" | "textareaBorderTopColor" | "textareaBorderColorFocus" | "textareaBorderColorWarning" | "textareaBorderColorError" | "textareaDisabledBg" | "textareaDisabledBorderColor" | "textareaCounterColor" | "textareaCounterBg" | "textareaCounterErrorColor" | "textareaCounterHelpIconColor" | "radioBulletSize" | "radioOutlineWidth" | "radioSize" | "radioSizeAfter" | "radioFontSize" | "radioLineHeight" | "radioLabelGap" | "radioPaddingY" | "radioVerticalAlign" | "radioBgImage" | "radioHoverBg" | "radioActiveBg" | "radioBorderWidth" | "radioBorderColor" | "radioBoxShadow" | "radioBorder" | "radioBorderColorFocus" | "radioBorderColorWarning" | "radioBorderColorError" | "radioHoverShadow" | "radioActiveShadow" | "radioFocusShadow" | "radioCheckedBgColor" | "radioCheckedBorderColor" | "radioCheckedBulletColor" | "radioCheckedHoverBgColor" | "radioDisabledShadow" | "radioLabelDisplay" | "radioBorderWidthCompensation" | "radioMarginY" | "radioGroupLegacyItemGap" | "tabFontSize" | "tabPaddingX" | "tabsMarginX" | "tabPaddingY" | "tabLineHeight" | "tabBorderWidth" | "tabOutlineWidth" | "tabTextColorDefault" | "tabColorFocus" | "tabColorError" | "tabColorWarning" | "tabColorSuccess" | "tabColorPrimary" | "tabColorHover" | "tabColorHoverError" | "tabColorHoverWarning" | "tabColorHoverSuccess" | "tabColorHoverPrimary" | "spinnerBgColor" | "spinnerColor" | "spinnerDimmedColor" | "spinnerCaptionColor" | "spinnerFontSizeSmall" | "spinnerFontSizeMedium" | "spinnerFontSizeLarge" | "spinnerLineHeightSmall" | "spinnerLineHeightMedium" | "spinnerLineHeightLarge" | "spinnerCaptionGapSmall" | "spinnerCaptionGapMedium" | "spinnerCaptionGapLarge" | "spinnerOldBgColor" | "spinnerOldColor" | "spinnerOldDimmedColor" | "spinnerOldCaptionColor" | "spinnerOldFontSizeSmall" | "spinnerOldFontSizeMedium" | "spinnerOldFontSizeLarge" | "spinnerOldLineHeightSmall" | "spinnerOldLineHeightMedium" | "spinnerOldLineHeightLarge" | "spinnerOldCaptionGapSmall" | "spinnerOldCaptionGapMedium" | "spinnerOldCaptionGapLarge" | "switcherOutlineWidth" | "switcherLabelFontSizeSmall" | "switcherLabelFontSizeMedium" | "switcherLabelFontSizeLarge" | "switcherLabelLineHeightSmall" | "switcherLabelLineHeightMedium" | "switcherLabelLineHeightLarge" | "switcherLabelGapSmall" | "switcherLabelGapMedium" | "switcherLabelGapLarge" | "switcherButtonPaddingXSmall" | "switcherButtonPaddingXMedium" | "switcherButtonPaddingXLarge" | "switcherButtonPaddingYSmall" | "switcherButtonPaddingYMedium" | "switcherButtonPaddingYLarge" | "switcherButtonLineHeightSmall" | "switcherButtonLineHeightMedium" | "switcherButtonLineHeightLarge" | "switcherButtonFontSizeSmall" | "switcherButtonFontSizeMedium" | "switcherButtonFontSizeLarge" | "switcherButtonBorderRadiusSmall" | "switcherButtonBorderRadiusMedium" | "switcherButtonBorderRadiusLarge" | "switcherButtonBorderWidth" | "switcherButtonDisabledBorderColor" | "switcherButtonCheckedDisabledShadow")[];
|
|
20
|
+
export declare const ALL_USED_VARIABLES: ("black" | "blue" | "gray" | "green" | "red" | "white" | "yellow" | "prototype" | "fontFamilyCompensationBaseline" | "brandXLight" | "brandLight" | "brand" | "brandDark" | "brandXDark" | "grayXxLight" | "grayXLight" | "grayLight" | "grayDark" | "blueXxLight" | "blueLight" | "blueDark" | "blueXDark" | "greenXxLight" | "greenDark" | "redXxLight" | "redDark" | "yellowXxLight" | "yellowDark" | "bgDefault" | "bgDisabled" | "errorMain" | "errorSecondary" | "errorText" | "warningMain" | "warningSecondary" | "warningText" | "borderColorFocusLight" | "borderColorGrayDark" | "borderColorGrayLight" | "placeholderColor" | "outlineColorFocus" | "placeholderColorLight" | "blinkColor" | "controlBorderWidth" | "controlOutlineWidth" | "controlLineHeightSmall" | "controlLineHeightMedium" | "controlLineHeightLarge" | "controlPaddingYSmall" | "controlPaddingYMedium" | "controlPaddingYLarge" | "textColorDefault" | "textColorInvert" | "textColorDisabled" | "fontSizeSmall" | "fontSizeMedium" | "fontSizeLarge" | "specificityLevel" | "bgActive" | "borderColorFocus" | "borderColorError" | "borderColorWarning" | "controlHeightSmall" | "controlHeightMedium" | "controlHeightLarge" | "linkColor" | "linkActiveColor" | "linkHoverTextDecoration" | "linkSuccessColor" | "linkSuccessHoverColor" | "linkSuccessActiveColor" | "linkDangerColor" | "linkDangerHoverColor" | "linkDangerActiveColor" | "linkIconMarginRight" | "linkHoverColor" | "linkDisabledColor" | "linkButtonLineHeight" | "linkButtonPaddingX" | "tokenDisabledBg" | "tokenTextColorDisabled" | "tokenFontSize" | "tokenMarginY" | "tokenMarginX" | "tokenLineHeight" | "tokenPaddingY" | "tokenPaddingX" | "tokenMarginBeforeIcon" | "tokenRemoveIconSize" | "tokenRemoveIconPaddingY" | "tokenRemoveIconPaddingX" | "tokenRemoveIconGap" | "tokenRemoveIconBoxSizing" | "tokenBorderRadius" | "tokenBorderWidth" | "tokenBorderColorDisabled" | "tokenDefaultIdle" | "tokenDefaultActive" | "tokenGrayIdle" | "tokenGrayActive" | "tokenBlueIdle" | "tokenBlueActive" | "tokenGreenIdle" | "tokenGreenActive" | "tokenYellowIdle" | "tokenYellowActive" | "tokenRedIdle" | "tokenRedActive" | "tokenWhite" | "tokenBlack" | "tokenBorderColorWarning" | "tokenBorderColorError" | "tokenOutlineWidth" | "tokenLegacyTextShift" | "tokenPaddingYDisabled" | "tokenPaddingXDisabled" | "tokenMarginYDisabled" | "tokenMarginXDisabled" | "tokenShadowDisabled" | "tokenInputBorderColor" | "tokenInputBorderColorFocus" | "tokenInputBorderColorError" | "tokenInputBorderColorWarning" | "tokenInputBorderTopColor" | "tokenInputPlaceholderColor" | "tokenInputPlaceholderColorLight" | "tokenInputDisabledBg" | "tokenInputDisabledBorderColor" | "tokenInputBorderWidth" | "tokenInputOutlineWidth" | "tokenInputBg" | "tokenInputShadow" | "tokenInputTextColor" | "tokenInputTextColorDisabled" | "tokenInputPaddingY" | "tokenInputPaddingX" | "tokenInputFontSize" | "tokenInputLineHeight" | "tokenInputInputPaddingLeft" | "tokenInputInputPaddingRight" | "loaderBg" | "loaderOpacity" | "btnWrapPadding" | "btnHeightShift" | "btnLinkBorderRadius" | "btnFocusShadowWidth" | "btnFocusBorder" | "btnDisabledTextColor" | "btnDisabledBorderColor" | "btnCheckedBg" | "btnCheckedDisabledBg" | "btnCheckedDisabledColor" | "btnCheckedHoverBorderColor" | "btnCheckedTextColor" | "btnCheckedDisabledBorderColor" | "btnCheckedShadow" | "btnCheckedShadowColorArrow" | "btnCheckedShadowArrow" | "btnCheckedShadowArrowLeft" | "btnCheckedDisabledShadow" | "btnCheckedDisabledShadowArrow" | "btnArrowBorderRadius" | "btnSmallBorderRadius" | "btnBorderRadius" | "btnBorderRadiusSmall" | "btnBorderRadiusMedium" | "btnBorderRadiusLarge" | "btnBorderWidth" | "btnOutlineWidth" | "btnPaddingXSmall" | "btnPaddingXMedium" | "btnPaddingXLarge" | "btnIconGapSmall" | "btnIconGapMedium" | "btnIconGapLarge" | "btnIconSizeSmall" | "btnIconSizeMedium" | "btnIconSizeLarge" | "btnDefaultBg" | "btnDefaultBgStart" | "btnDefaultBgEnd" | "btnSmallArrowLength" | "btnSmallArrowRight" | "btnSmallArrowLeft" | "btnSmallArrowBorderRadius" | "btnMediumArrowTop" | "btnMediumArrowLength" | "btnMediumArrowLeft" | "btnMediumArrowLeftLoadingLeft" | "btnMediumArrowTransform" | "btnDeprecatedSizeMediumFontSize" | "btnDeprecatedSizeMediumPaddingShift" | "btnLargeArrowTop" | "btnLargeArrowLength" | "btnLargeArrowLeft" | "btnLargeArrowRight" | "btnLargeArrowTransform" | "btnLargeArrowBg" | "btnDefaultBgArrowStart" | "btnDefaultBgArrowEnd" | "btnDefaultCheckedShadowArrow" | "btnDefaultCheckedBorder" | "btnDefaultTextColor" | "btnDefaultHoverBg" | "btnDefaultHoverBorderColor" | "btnDefaultActiveBorderColor" | "btnDefaultBorder" | "btnDefaultShadow" | "btnDefaultShadowArrow" | "btnDefaultShadowArrowLeft" | "btnDefaultHoverBgStart" | "btnDefaultHoverBgEnd" | "btnDefaultHoverShadow" | "btnDefaultHoverShadowArrow" | "btnDefaultHoverShadowArrowLeft" | "btnDefaultActiveBg" | "btnDefaultActiveShadow" | "btnDefaultActiveShadowArrow" | "btnDefaultActiveShadowArrowLeft" | "btnSuccessBg" | "btnSuccessHoverBg" | "btnSuccessHoverBorderColor" | "btnSuccessDisabledBg" | "btnSuccessBorder" | "btnSuccessBgStart" | "btnSuccessBgEnd" | "btnSuccessBgArrowStart" | "btnSuccessBgArrowEnd" | "btnSuccessTextColor" | "btnSuccessShadow" | "btnSuccessShadowArrow" | "btnSuccessShadowArrowLeft" | "btnSuccessHoverBgStart" | "btnSuccessHoverBgEnd" | "btnSuccessHoverShadow" | "btnSuccessHoverShadowArrow" | "btnSuccessHoverShadowArrowLeft" | "btnSuccessActiveBg" | "btnSuccessActiveShadow" | "btnSuccessActiveShadowArrow" | "btnSuccessActiveShadowArrowLeft" | "btnPrimaryBg" | "btnPrimaryHoverBg" | "btnPrimaryHoverBorderColor" | "btnPrimaryDisabledBg" | "btnPrimaryBorder" | "btnPrimaryBgStart" | "btnPrimaryBgEnd" | "btnPrimaryBgArrowStart" | "btnPrimaryBgArrowEnd" | "btnPrimaryTextColor" | "btnPrimaryShadow" | "btnPrimaryShadowArrow" | "btnPrimaryShadowArrowLeft" | "btnPrimaryHoverBgStart" | "btnPrimaryHoverBgEnd" | "btnPrimaryHoverShadow" | "btnPrimaryHoverShadowArrow" | "btnPrimaryHoverShadowArrowLeft" | "btnPrimaryActiveBg" | "btnPrimaryActiveShadow" | "btnPrimaryActiveShadowArrow" | "btnPrimaryActiveShadowArrowLeft" | "btnDangerBg" | "btnDangerHoverBg" | "btnDangerHoverBorderColor" | "btnDangerDisabledBg" | "btnDangerBorder" | "btnDangerBgStart" | "btnDangerBgEnd" | "btnDangerBgArrowStart" | "btnDangerBgArrowEnd" | "btnDangerTextColor" | "btnDangerShadow" | "btnDangerShadowArrow" | "btnDangerShadowArrowLeft" | "btnDangerHoverBgStart" | "btnDangerHoverBgEnd" | "btnDangerHoverShadow" | "btnDangerHoverShadowArrow" | "btnDangerHoverShadowArrowLeft" | "btnDangerActiveBg" | "btnDangerActiveShadow" | "btnDangerActiveShadowArrow" | "btnDangerActiveShadowArrowLeft" | "btnPayBg" | "btnPayHoverBg" | "btnPayHoverBorderColor" | "btnPayDisabledBg" | "btnPayBorder" | "btnPayBgStart" | "btnPayBgEnd" | "btnPayBgArrowStart" | "btnPayBgArrowEnd" | "btnPayShadow" | "btnPayTextColor" | "btnPayShadowArrow" | "btnPayShadowArrowLeft" | "btnPayHoverBgStart" | "btnPayHoverBgEnd" | "btnPayHoverShadow" | "btnPayHoverShadowArrow" | "btnPayHoverShadowArrowLeft" | "btnPayActiveBg" | "btnPayActiveShadow" | "btnPayActiveShadowArrow" | "btnPayActiveShadowArrowLeft" | "btnDeprecatedSizeMediumPaddingShiftIe" | "btnSmallArrowTop" | "btnSmallArrowLeftLoadingDelay" | "btnSmallArrowBg" | "btnMediumArrowRight" | "btnMediumArrowBg" | "btnMediumArrowLeftLoadingDelay" | "btnLargeArrowLeftLoadingDelay" | "btnMenuArrowColor" | "btnFontSizeSmall" | "btnFontSizeMedium" | "btnFontSizeLarge" | "btnLineHeightSmall" | "btnLineHeightMedium" | "btnLineHeightLarge" | "btnPaddingYSmall" | "btnPaddingYMedium" | "btnPaddingYLarge" | "btnDisabledBg" | "btnDisabledShadowColor" | "btnDisabledShadow" | "btnDisabledShadowArrow" | "btnTextColorDefault" | "btnBorderColorWarning" | "btnBorderColorError" | "btnHeightSmall" | "btnHeightMedium" | "btnHeightLarge" | "btnLinkColor" | "btnLinkHoverColor" | "btnLinkHoverTextDecoration" | "btnLinkActiveColor" | "btnLinkIconMarginRight" | "btnErrorSecondary" | "btnOutlineColorFocus" | "btnBorderColorFocus" | "btnLinkDisabledColor" | "sltPlaceholderColor" | "selectPlaceholderColor" | "selectBorderWidth" | "selectOutlineWidth" | "selectLineHeightSmall" | "selectFontSizeSmall" | "selectPaddingXSmall" | "selectPaddingYSmall" | "selectBorderRadiusSmall" | "selectIconGapSmall" | "selectPaddingArrowSmall" | "selectLineHeightMedium" | "selectFontSizeMedium" | "selectPaddingXMedium" | "selectPaddingYMedium" | "selectBorderRadiusMedium" | "selectIconGapMedium" | "selectPaddingArrowMedium" | "selectLineHeightLarge" | "selectFontSizeLarge" | "selectPaddingXLarge" | "selectPaddingYLarge" | "selectBorderRadiusLarge" | "selectIconGapLarge" | "selectPaddingArrowLarge" | "selectMenuArrowColor" | "selectMenuArrowColorDisabled" | "selectIconSizeSmall" | "selectIconSizeMedium" | "selectIconSizeLarge" | "selectTextColorDisabled" | "selectBgDisabled" | "selectBorderColorDisabled" | "selectShadowColorDisabled" | "tooltipPaddingY" | "tooltipPaddingX" | "tooltipCloseBtnPadding" | "tooltipCloseBtnColor" | "tooltipCloseBtnHoverColor" | "tooltipBorder" | "tooltipBorderRadius" | "tooltipPinOffset" | "tooltipPinOffsetX" | "tooltipPinOffsetY" | "tooltipMargin" | "tooltipPinSize" | "tooltipMenuPinOffset" | "tooltipMenuMargin" | "tooltipMenuPinSize" | "kebabPinOffset" | "kebabPinSize" | "kebabMargin" | "kebabBackground" | "kebabBackgroundHover" | "kebabBorderRadius" | "kebabBorder" | "modalBackBg" | "modalBackOpacity" | "modalCloseButtonColor" | "modalCloseButtonDisabledColor" | "modalCloseButtonHoverColor" | "modalCloseButtonPadding" | "modalCloseButtonLegacyShift" | "modalCloseButtonBottomPadding" | "modalCloseButtonClickArea" | "modalCloseIconSize" | "modalCloseLegacyGap" | "modalCloseWrapperLegacyGap" | "modalFixedHeaderBg" | "modalFixedHeaderShadow" | "modalFixedFooterShadow" | "modalFooterBg" | "modalAdaptiveThreshold" | "modalPaddingTop" | "modalPaddingLeft" | "modalPaddingRight" | "modalHeaderFontSize" | "modalHeaderLineHeight" | "modalHeaderPaddingBottom" | "modalHeaderPaddingTop" | "modalFixedHeaderPaddingBottom" | "modalBodyPaddingBottom" | "modalFooterPaddingTop" | "modalFooterPaddingBottom" | "modalPaddingBottom" | "modalFooterPanelPaddingTop" | "modalFooterPanelPaddingBottom" | "sidePageFooterPanelBg" | "sidePageBackingBg" | "sidePageBackingBgOpacity" | "sidePageCloseButtonColor" | "sidePageCloseButtonHoverColor" | "sidePageContainerShadow" | "sidePagePaddingLeft" | "sidePagePaddingRight" | "sidePagePaddingTop" | "sidePagePaddingBottom" | "sidePageFooterPaddingTop" | "sidePageFooterPaddingBottom" | "sidePageBgDefault" | "sidePageBorderColor" | "sidePageHeaderFontSize" | "sidePageHeaderLineHeight" | "sidePageHeaderPaddingBottom" | "sidePageHeaderPaddingTop" | "sidePageHeaderFixedFontSize" | "sidePageHeaderFixedLineHeight" | "sidePageHeaderFixedPaddingY" | "sidePageHeaderStickyOffset" | "sidePageCloseButtonPadding" | "sidePageCloseButtonLegacyPaddingLeft" | "sidePageFooterPanelPaddingTop" | "sidePageFooterPanelPaddingBottom" | "sidePageCloseIconSize" | "sidePageCloseButtonClickAreaX" | "dateInputIconColor" | "dateInputMaskColor" | "dateInputComponentSelectedBgColor" | "calendarCellBg" | "calendarCellHoverColor" | "calendarCellActiveHoverColor" | "calendarCellWeekendColor" | "calendarCellTodayBorder" | "calendarCellSelectedBgColor" | "calendarCellSelectedFontColor" | "calendarCellSize" | "calendarMonthHeaderStickedBgColor" | "calendarMonthTitleBorderBottomColor" | "calendarCellHoverBgColor" | "calendarPaddingX" | "calendarMonthTitleLineHeight" | "calendarMonthTitlePaddingTop" | "calendarMonthTitlePaddingBottom" | "calendarMonthTitleMarginX" | "calendarMonthTitleMarginBottom" | "calendarWrapperHeight" | "calendarMonthMarginBottom" | "calendarMaxMonthsToAppendOnScroll" | "dateSelectLineHeight" | "dateSelectFontSize" | "dateSelectFontWeight" | "dateSelectMenuItemBgSelected" | "dateSelectTextColorDisabled" | "dateSelectTextColorDefault" | "dateSelectLinkColor" | "dateSelectPopupBoxShadow" | "dateSelectTextColorInvert" | "datePickerOpenBtnColor" | "pickerBg" | "pickerShadow" | "pickerTodayWrapperBgColor" | "pickerTodayWrapperBorderTop" | "pickerTodayWrapperHoverBgColor" | "pickerTodayWrapperFontSize" | "pickerTodayWrapperLineHeight" | "pickerTodayWrapperPaddingTop" | "pickerTodayWrapperPaddingBottom" | "dateSelectMenuBg" | "dateSelectMenuItemBgActive" | "dateSelectMenuItemBgDisabled" | "dateSelectMenuItemFontActive" | "dateSelectMenuItemFontSelected" | "dateSelectMenuItemFontDisabled" | "pagingFontSize" | "pagingForwardIconSize" | "pagingForwardIconMarginTop" | "pagingPageLinkPaddingX" | "pagingPageLinkPaddingY" | "pagingPageLinkLegacyPaddingY" | "pagingPageLinkMinWidth" | "pagingPageForwardLinkMarginTop" | "pagingPageForwardLinkMarginLeft" | "pagingPageForwardLinkPaddingRight" | "pagingLineHeight" | "pagingDotsColor" | "pagingDotsPadding" | "pagingPageLinkActiveBg" | "pagingPageLinkActiveColor" | "pagingPageLinkHoverBg" | "pagingPageLinkHintColor" | "pagingPageLinkHintFontSize" | "pagingPageLinkHintLineHeight" | "pagingPageLinkBorderRadius" | "pagingPageLinkMargin" | "pagingForwardLinkColor" | "pagingForwardLinkDisabledColor" | "hintColor" | "hintFontSize" | "hintLineHeight" | "hintMaxWidth" | "hintPaddingY" | "hintPaddingX" | "hintTextAlign" | "hintBorder" | "hintBorderRadius" | "hintPinOffset" | "hintMargin" | "toastFontSize" | "toastLineHeight" | "toastPaddingY" | "toastPaddingX" | "toastBorderRadius" | "toastBorder" | "toastTop" | "toastBg" | "toastColor" | "toastLinkColor" | "toastClosePadding" | "toastCloseColor" | "toastCloseHoverColor" | "toastCloseSize" | "tbBg" | "tbShadow" | "tdDividerBg" | "logoColor" | "logoHoverColor" | "dropdownMenuSelectedBg" | "dropdownMenuHoverBg" | "menuBgDefault" | "menuBorder" | "menuShadow" | "menuPaddingY" | "menuItemSelectedBg" | "menuItemHoverBg" | "menuItemIconWidth" | "menuItemIconGap" | "menuItemIconLegacyMargin" | "menuItemIconLegacyShift" | "menuItemPaddingForIcon" | "menuItemLineHeight" | "menuItemFontSize" | "menuItemPaddingX" | "menuItemPaddingY" | "menuItemLegacyPaddingX" | "menuItemLegacyPaddingY" | "menuItemHoverColor" | "menuItemDisabledColor" | "menuItemLinkColor" | "menuItemCommentColor" | "menuItemCommentColorHover" | "menuHeaderColor" | "menuHeaderLineHeight" | "menuHeaderFontSize" | "menuHeaderPaddingX" | "menuHeaderPaddingTop" | "menuHeaderPaddingBottom" | "menuHeaderLegacyPaddingRight" | "menuSeparatorBorderColor" | "menuSeparatorMarginY" | "menuSeparatorBorderWidth" | "toggleHandleActiveWidthIncrement" | "toggleHandleBorderRadius" | "toggleHeight" | "toggleWidth" | "toggleBorderRadius" | "toggleBg" | "toggleBgDisabled" | "toggleBgHover" | "toggleBgChecked" | "toggleBorderWidth" | "toggleOutlineWidth" | "toggleBorderColor" | "toggleBgFocus" | "toggleBgActive" | "toggleBgError" | "toggleBgWarning" | "toggleFocusShadowColor" | "toggleCaptionGap" | "popupBorder" | "popupBorderRadius" | "popupBorderColor" | "popupDropShadow" | "popupBoxShadow" | "popupTextColor" | "popupBackground" | "popupPinOffset" | "popupPinOffsetX" | "popupPinOffsetY" | "popupMargin" | "popupPinSize" | "inputTextColor" | "inputTextColorDisabled" | "inputShadow" | "inputBg" | "inputIconColor" | "inputColor" | "inputWidth" | "inputFontSizeSmall" | "inputFontSizeMedium" | "inputFontSizeLarge" | "inputLineHeightSmall" | "inputLineHeightMedium" | "inputLineHeightLarge" | "inputHeightSmall" | "inputHeightMedium" | "inputHeightLarge" | "inputPaddingYSmall" | "inputPaddingYMedium" | "inputPaddingYLarge" | "inputPaddingXSmall" | "inputPaddingXMedium" | "inputPaddingXLarge" | "inputIconGapSmall" | "inputIconGapMedium" | "inputIconGapLarge" | "inputIconSizeSmall" | "inputIconSizeMedium" | "inputIconSizeLarge" | "inputFocusShadow" | "inputDisabledBg" | "inputDisabledBorderColor" | "inputFocusOutline" | "inputBorderWidth" | "inputOutlineWidth" | "inputBorderRadiusSmall" | "inputBorderRadiusMedium" | "inputBorderRadiusLarge" | "inputBorderColor" | "inputBorderColorFocus" | "inputBorderColorError" | "inputBorderColorWarning" | "inputBorderTopColor" | "inputPlaceholderColor" | "inputPlaceholderColorLight" | "inputBlinkColor" | "chbFontSize" | "chbLineHeight" | "chbBoxSize" | "chbPaddingX" | "chbPaddingY" | "chbBgStart" | "chbBgEnd" | "chbTextColorDefault" | "chbTextColorDisabled" | "chbIndeterminateBg" | "chbShadow" | "chbShadowDisabled" | "chbBorder" | "chbShadowHover" | "chbCheckedColor" | "chbOutlineColorFocus" | "chbBorderColorWarning" | "chbBorderColorError" | "chbCheckedHoverShadow" | "chbBorderRadius" | "chbShadowWidth" | "chbCheckedShadow" | "chbBorderColorFocus" | "chbBg" | "chbHoverBg" | "chbActiveBg" | "chbCheckedBg" | "chbBgDisabled" | "chbBoxIndeterminateBg" | "chbCheckedHoverBg" | "chbCheckedActiveBg" | "chbCheckedActiveShadow" | "chbShadowActive" | "checkboxBorderWidthCompensation" | "checkboxFontSize" | "checkboxLineHeight" | "checkboxBoxSize" | "checkboxLabelGap" | "checkboxPaddingY" | "checkboxBgStart" | "checkboxBgEnd" | "checkboxTextColorDefault" | "checkboxTextColorDisabled" | "checkboxIndeterminateBg" | "checkboxShadowDisabled" | "checkboxBorder" | "checkboxBorderWidth" | "checkboxShadow" | "checkboxShadowHover" | "checkboxCheckedColor" | "checkboxOutlineColorFocus" | "checkboxBorderColorWarning" | "checkboxBorderColorError" | "checkboxCheckedHoverShadow" | "checkboxBorderRadius" | "checkboxOutlineWidth" | "checkboxCheckedShadow" | "checkboxCheckedActiveShadow" | "checkboxBorderColorFocus" | "checkboxBg" | "checkboxHoverBg" | "checkboxActiveBg" | "checkboxCheckedBg" | "checkboxBgDisabled" | "checkboxBoxIndeterminateBg" | "checkboxCheckedHoverBg" | "checkboxCheckedActiveBg" | "checkboxShadowActive" | "textareaBg" | "textareaColor" | "textareaTextColorDisabled" | "textareaPlaceholderColorLight" | "textareaPlaceholderColor" | "textareaShadow" | "textareaFontSize" | "textareaLineHeight" | "textareaBorderRadius" | "textareaBorderWidth" | "textareaOutlineWidth" | "textareaHeight" | "textareaMinHeight" | "textareaWidth" | "textareaPaddingX" | "textareaPaddingY" | "textareaBorderColor" | "textareaBorderTopColor" | "textareaBorderColorFocus" | "textareaBorderColorWarning" | "textareaBorderColorError" | "textareaDisabledBg" | "textareaDisabledBorderColor" | "textareaCounterColor" | "textareaCounterBg" | "textareaCounterErrorColor" | "textareaCounterHelpIconColor" | "radioBulletSize" | "radioOutlineWidth" | "radioSize" | "radioSizeAfter" | "radioFontSize" | "radioLineHeight" | "radioLabelGap" | "radioPaddingY" | "radioVerticalAlign" | "radioBgImage" | "radioHoverBg" | "radioActiveBg" | "radioBorderWidth" | "radioBorderColor" | "radioBoxShadow" | "radioBorder" | "radioBorderColorFocus" | "radioBorderColorWarning" | "radioBorderColorError" | "radioHoverShadow" | "radioActiveShadow" | "radioFocusShadow" | "radioCheckedBgColor" | "radioCheckedBorderColor" | "radioCheckedBulletColor" | "radioCheckedHoverBgColor" | "radioDisabledShadow" | "radioLabelDisplay" | "radioBorderWidthCompensation" | "radioMarginY" | "radioGroupLegacyItemGap" | "tabFontSize" | "tabPaddingX" | "tabsMarginX" | "tabPaddingY" | "tabLineHeight" | "tabBorderWidth" | "tabOutlineWidth" | "tabTextColorDefault" | "tabColorFocus" | "tabColorError" | "tabColorWarning" | "tabColorSuccess" | "tabColorPrimary" | "tabColorHover" | "tabColorHoverError" | "tabColorHoverWarning" | "tabColorHoverSuccess" | "tabColorHoverPrimary" | "spinnerBgColor" | "spinnerColor" | "spinnerDimmedColor" | "spinnerCaptionColor" | "spinnerFontSizeSmall" | "spinnerFontSizeMedium" | "spinnerFontSizeLarge" | "spinnerLineHeightSmall" | "spinnerLineHeightMedium" | "spinnerLineHeightLarge" | "spinnerCaptionGapSmall" | "spinnerCaptionGapMedium" | "spinnerCaptionGapLarge" | "spinnerOldBgColor" | "spinnerOldColor" | "spinnerOldDimmedColor" | "spinnerOldCaptionColor" | "spinnerOldFontSizeSmall" | "spinnerOldFontSizeMedium" | "spinnerOldFontSizeLarge" | "spinnerOldLineHeightSmall" | "spinnerOldLineHeightMedium" | "spinnerOldLineHeightLarge" | "spinnerOldCaptionGapSmall" | "spinnerOldCaptionGapMedium" | "spinnerOldCaptionGapLarge" | "switcherOutlineWidth" | "switcherLabelFontSizeSmall" | "switcherLabelFontSizeMedium" | "switcherLabelFontSizeLarge" | "switcherLabelLineHeightSmall" | "switcherLabelLineHeightMedium" | "switcherLabelLineHeightLarge" | "switcherLabelGapSmall" | "switcherLabelGapMedium" | "switcherLabelGapLarge" | "switcherButtonPaddingXSmall" | "switcherButtonPaddingXMedium" | "switcherButtonPaddingXLarge" | "switcherButtonPaddingYSmall" | "switcherButtonPaddingYMedium" | "switcherButtonPaddingYLarge" | "switcherButtonLineHeightSmall" | "switcherButtonLineHeightMedium" | "switcherButtonLineHeightLarge" | "switcherButtonFontSizeSmall" | "switcherButtonFontSizeMedium" | "switcherButtonFontSizeLarge" | "switcherButtonBorderRadiusSmall" | "switcherButtonBorderRadiusMedium" | "switcherButtonBorderRadiusLarge" | "switcherButtonBorderWidth" | "switcherButtonDisabledBorderColor" | "switcherButtonCheckedDisabledShadow")[];
|
|
21
21
|
export declare const CALLS_COUNT: number;
|
|
22
22
|
export declare const EXECUTION_TIME: number;
|
|
@@ -614,6 +614,11 @@ export var DefaultTheme = /*#__PURE__*/function () {
|
|
|
614
614
|
get: function get() {
|
|
615
615
|
return this.btnMenuArrowColor;
|
|
616
616
|
}
|
|
617
|
+
}, {
|
|
618
|
+
key: "selectMenuArrowColorDisabled",
|
|
619
|
+
get: function get() {
|
|
620
|
+
return this.selectMenuArrowColor;
|
|
621
|
+
}
|
|
617
622
|
}, {
|
|
618
623
|
key: "selectIconSizeSmall",
|
|
619
624
|
get: function get() {
|
|
@@ -628,6 +633,26 @@ export var DefaultTheme = /*#__PURE__*/function () {
|
|
|
628
633
|
key: "selectIconSizeLarge",
|
|
629
634
|
get: function get() {
|
|
630
635
|
return this.btnIconSizeLarge;
|
|
636
|
+
}
|
|
637
|
+
}, {
|
|
638
|
+
key: "selectTextColorDisabled",
|
|
639
|
+
get: function get() {
|
|
640
|
+
return this.btnDisabledTextColor;
|
|
641
|
+
}
|
|
642
|
+
}, {
|
|
643
|
+
key: "selectBgDisabled",
|
|
644
|
+
get: function get() {
|
|
645
|
+
return this.btnDisabledBg;
|
|
646
|
+
}
|
|
647
|
+
}, {
|
|
648
|
+
key: "selectBorderColorDisabled",
|
|
649
|
+
get: function get() {
|
|
650
|
+
return this.btnDisabledBorderColor;
|
|
651
|
+
}
|
|
652
|
+
}, {
|
|
653
|
+
key: "selectShadowColorDisabled",
|
|
654
|
+
get: function get() {
|
|
655
|
+
return this.btnDisabledShadowColor;
|
|
631
656
|
} //#endregion
|
|
632
657
|
//#region Tooltip
|
|
633
658
|
|
|
@@ -2259,4 +2284,4 @@ DefaultTheme.switcherLabelLineHeightLarge = 'inherit';
|
|
|
2259
2284
|
DefaultTheme.switcherLabelGapSmall = '15px';
|
|
2260
2285
|
DefaultTheme.switcherLabelGapMedium = '15px';
|
|
2261
2286
|
DefaultTheme.switcherLabelGapLarge = '15px';
|
|
2262
|
-
export var DefaultThemeInternal = exposeGetters(
|
|
2287
|
+
export var DefaultThemeInternal = markAsFullTheme(exposeGetters(DefaultTheme));
|