@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
54 lines (40 loc) • 1.23 MB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[5],{
/***/ "../../node_modules/raw-loader/index.js!../tsx-editor/dist/types/date-time-utilities.d.ts":
/*!****************************************************************************************************!*\
!*** /mnt/vss/_work/1/s/node_modules/raw-loader!../tsx-editor/dist/types/date-time-utilities.d.ts ***!
\****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"\\n/**\\n * Returns a date offset from the given date by the specified number of days.\\n * @param date - The origin date\\n * @param days - The number of days to offset. 'days' can be negative.\\n * @returns A new Date object offset from the origin date by the given number of days\\n */\\nexport declare function addDays(date: Date, days: number): Date;\\n\\n/**\\n * Returns a date offset from the given date by the specified number of months.\\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\\n * to contain the original day-of-month, we'll use the last day of the new month.\\n * @param date - The origin date\\n * @param months - The number of months to offset. 'months' can be negative.\\n * @returns A new Date object offset from the origin date by the given number of months\\n */\\nexport declare function addMonths(date: Date, months: number): Date;\\n\\n/**\\n * Returns a date offset from the given date by the specified number of weeks.\\n * @param date - The origin date\\n * @param weeks - The number of weeks to offset. 'weeks' can be negative.\\n * @returns A new Date object offset from the origin date by the given number of weeks\\n */\\nexport declare function addWeeks(date: Date, weeks: number): Date;\\n\\n/**\\n * Returns a date offset from the given date by the specified number of years.\\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\\n * to contain the original day-of-month, we'll use the last day of the new month.\\n * @param date - The origin date\\n * @param years - The number of years to offset. 'years' can be negative.\\n * @returns A new Date object offset from the origin date by the given number of years\\n */\\nexport declare function addYears(date: Date, years: number): Date;\\n\\n/**\\n * Compare the date parts of two dates\\n * @param date1 - The first date to compare\\n * @param date2 - The second date to compare\\n * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value\\n * if date1 is later than date2.\\n */\\nexport declare function compareDatePart(date1: Date, date2: Date): Number;\\n\\n/**\\n * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal.\\n * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise.\\n */\\nexport declare function compareDates(date1: Date, date2: Date): boolean;\\n\\n/**\\n * The supported date range types\\n * {@docCategory DateRangeType}\\n */\\nexport declare enum DateRangeType {\\n Day = 0,\\n Week = 1,\\n Month = 2,\\n WorkWeek = 3\\n}\\n\\n/**\\n * The days of the week\\n * {@docCategory DayOfWeek}\\n */\\nexport declare enum DayOfWeek {\\n Sunday = 0,\\n Monday = 1,\\n Tuesday = 2,\\n Wednesday = 3,\\n Thursday = 4,\\n Friday = 5,\\n Saturday = 6\\n}\\n\\nexport declare const DAYS_IN_WEEK = 7;\\n\\nexport declare const DEFAULT_CALENDAR_STRINGS: ICalendarStrings;\\n\\nexport declare const DEFAULT_DATE_FORMATTING: IDateFormatting;\\n\\nexport declare const DEFAULT_LOCALIZED_STRINGS: IDateGridStrings;\\n\\n/**\\n * Returns closest available date given the restriction `options`, or undefined otherwise\\n * @param options - list of search options\\n */\\nexport declare const findAvailableDate: (options: IAvailableDateOptions) => Date | undefined;\\n\\n/**\\n * First week of the year settings types\\n * {@docCategory FirstWeekOfYear}\\n */\\nexport declare enum FirstWeekOfYear {\\n FirstDay = 0,\\n FirstFullWeek = 1,\\n FirstFourDayWeek = 2\\n}\\n\\n/**\\n * Format date to a day string representation\\n * @param date - input date to format\\n */\\nexport declare const formatDay: (date: Date) => string;\\n\\n/**\\n * Format date to a month-day-year string\\n * @param date - input date to format\\n * @param strings - localized strings\\n */\\nexport declare const formatMonthDayYear: (date: Date, strings: IDateGridStrings) => string;\\n\\n/**\\n * Format date to a month-year string\\n * @param date - input date to format\\n * @param strings - localized strings\\n */\\nexport declare const formatMonthYear: (date: Date, strings: IDateGridStrings) => string;\\n\\n/**\\n * Format date to a year string representation\\n * @param date - input date to format\\n */\\nexport declare const formatYear: (date: Date) => string;\\n\\n/**\\n * Generates a list of dates, bounded by min and max dates\\n * @param dateRange - input date range\\n * @param minDate - min date to limit the range\\n * @param maxDate - max date to limit the range\\n */\\nexport declare const getBoundedDateRange: (dateRange: Date[], minDate?: Date | undefined, maxDate?: Date | undefined) => Date[];\\n\\n/**\\n * Helper function to assist in date comparisons\\n */\\nexport declare function getDatePartHashValue(date: Date): number;\\n\\n/**\\n * Gets the date range array including the specified date. The date range array is calculated as the list\\n * of dates accounting for the specified first day of the week and date range type.\\n * @param date - The input date\\n * @param dateRangeType - The desired date range type, i.e., day, week, month, etc.\\n * @param firstDayOfWeek - The first day of the week.\\n * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed.\\n * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day\\n * for multiday view. Defaults to 1\\n * @returns An array of dates representing the date range containing the specified date.\\n */\\nexport declare function getDateRangeArray(date: Date, dateRangeType: DateRangeType, firstDayOfWeek: DayOfWeek, workWeekDays?: DayOfWeek[], daysToSelectInDayView?: number): Date[];\\n\\n/**\\n * Return corrected date range type, given `dateRangeType` and list of working days.\\n * For non-contiguous working days and working week range type, returns general week range type.\\n * For other cases returns input date range type.\\n * @param dateRangeType - input type of range\\n * @param workWeekDays - list of working days in a week\\n */\\nexport declare const getDateRangeTypeToUse: (dateRangeType: DateRangeType, workWeekDays: DayOfWeek[] | undefined, firstDayOfWeek: DayOfWeek) => DateRangeType;\\n\\n/**\\n * Generates a grid of days, given the `options`.\\n * Returns one additional week at the begining from the previous range\\n * and one at the end from the future range\\n * @param options - parameters to specify date related restrictions for the resulting grid\\n */\\nexport declare const getDayGrid: (options: IDayGridOptions) => IDay[][];\\n\\n/**\\n * Gets the date for the last day of the week based on the given date assuming\\n * the specified first day of the week.\\n * @param date - The date to find the beginning of the week date for.\\n * @returns A new date object representing the first day of the week containing the input date.\\n */\\nexport declare function getEndDateOfWeek(date: Date, firstDayOfWeek: DayOfWeek): Date;\\n\\n/**\\n * Returns a date that is the last day of the month of the provided date.\\n * @param date - The origin date\\n * @returns A new Date object with the day set to the last day of the month.\\n */\\nexport declare function getMonthEnd(date: Date): Date;\\n\\n/**\\n * Returns a date that is the first day of the month of the provided date.\\n * @param date - The origin date\\n * @returns A new Date object with the day set to the first day of the month.\\n */\\nexport declare function getMonthStart(date: Date): Date;\\n\\n/**\\n * Gets the date for the first day of the week based on the given date assuming\\n * the specified first day of the week.\\n * @param date - The date to find the beginning of the week date for.\\n * @returns A new date object representing the first day of the week containing the input date.\\n */\\nexport declare function getStartDateOfWeek(date: Date, firstDayOfWeek: DayOfWeek): Date;\\n\\n/**\\n * Returns the week number for a date.\\n * Week numbers are 1 - 52 (53) in a year\\n * @param date - A date to find the week number for.\\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\\n * @param firstWeekOfYear - The first week of the year (1-2)\\n * @returns The week's number in the year.\\n */\\nexport declare function getWeekNumber(date: Date, firstDayOfWeek: DayOfWeek, firstWeekOfYear: FirstWeekOfYear): number;\\n\\n/**\\n * Returns the week number for a date.\\n * Week numbers are 1 - 52 (53) in a year\\n * @param navigatedDate - A date to find the week number for.\\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\\n * @param firstWeekOfYear - The first week of the year (1-2)\\n * @returns The weeks number array for the current month.\\n */\\nexport declare function getWeekNumbersInMonth(weeksInMonth: number, firstDayOfWeek: DayOfWeek, firstWeekOfYear: FirstWeekOfYear, navigatedDate: Date): number[];\\n\\n/**\\n * Returns a date that is the last day of the year of the provided date.\\n * @param date - The origin date\\n * @returns A new Date object with the day set to the last day of the year.\\n */\\nexport declare function getYearEnd(date: Date): Date;\\n\\n/**\\n * Returns a date that is the first day of the year of the provided date.\\n * @param date - The origin date\\n * @returns A new Date object with the day set to the first day of the year.\\n */\\nexport declare function getYearStart(date: Date): Date;\\n\\nexport declare interface IAvailableDateOptions extends IRestrictedDatesOptions {\\n /** Date from which we start the search */\\n initialDate: Date;\\n /** Ideal available date */\\n targetDate: Date;\\n /** Direction of search (`1` - search in future / `-1` search in past) */\\n direction: number;\\n}\\n\\nexport declare interface ICalendarStrings extends IDateFormatting {\\n /**\\n * Error message to render for TextField if isRequired validation fails.\\n */\\n isRequiredErrorMessage?: string;\\n /**\\n * Error message to render for TextField if input date string parsing fails.\\n */\\n invalidInputErrorMessage?: string;\\n /**\\n * Error message to render for TextField if date boundary (minDate, maxDate) validation fails.\\n */\\n isOutOfBoundsErrorMessage?: string;\\n /**\\n * String to render for button to direct the user to today's date.\\n */\\n goToToday: string;\\n /**\\n * Title for button to open the calendar.\\n */\\n openCalendarTitle: string;\\n /**\\n * Placeholder string for an unfilled input.\\n */\\n inputPlaceholder: string;\\n /**\\n * Aria-label for the \\\"previous month\\\" button in day picker.\\n */\\n prevMonthAriaLabel?: string;\\n /**\\n * Aria-label for the \\\"next month\\\" button in day picker.\\n */\\n nextMonthAriaLabel?: string;\\n /**\\n * Aria-label for the \\\"previous year\\\" button in month picker.\\n */\\n prevYearAriaLabel?: string;\\n /**\\n * Aria-label for the \\\"next year\\\" button in month picker.\\n */\\n nextYearAriaLabel?: string;\\n /**\\n * Aria-label for the \\\"previous year range\\\" button in year picker.\\n */\\n prevYearRangeAriaLabel?: string;\\n /**\\n * Aria-label for the \\\"next year range\\\" button in year picker.\\n */\\n nextYearRangeAriaLabel?: string;\\n /**\\n * Aria-label format string for the header button in the month picker. Should have 1 string param, e.g. \\\"`{0}`,\\n * select to change the year\\\". This aria-label will only be applied if the year picker is enabled; otherwise\\n * the label will default to the header string, e.g. \\\"2019\\\".\\n */\\n monthPickerHeaderAriaLabel?: string;\\n /**\\n * Aria-label format string for the header button in the year picker.\\n * Should have 1 string param, e.g. \\\"`{0}`, select to change the month\\\"\\n */\\n yearPickerHeaderAriaLabel?: string;\\n /**\\n * Aria-label for the \\\"close\\\" button.\\n */\\n closeButtonAriaLabel?: string;\\n /**\\n * Aria-label format string for the week number header. Should have 1 string param, e.g. \\\"week number `{0}`\\\"\\n */\\n weekNumberFormatString?: string;\\n /**\\n * Aria-label format string for the currently selected date. Should have 1 string param, e.g. \\\"Selected date `{0}`\\\"\\n */\\n selectedDateFormatString?: string;\\n /**\\n * Aria-label format string for today's date. Should have 1 string param, e.g. \\\"Today's date `{0}`\\\"\\n */\\n todayDateFormatString?: string;\\n /**\\n * Aria-label for input.\\\"\\n */\\n inputAriaLabel?: string;\\n /**\\n * Aria-label format string for restricted input. Should have 2 string params, 0 is minDate and 1 is maxDate\\\"\\n */\\n inputBoundedFormatString?: string;\\n /**\\n * Aria-label format string for restricted input only with minDate. Should have 1 string param, 0 is minDate\\\"\\n */\\n inputMinBoundedFormatString?: string;\\n /**\\n * Aria-label format string for restricted input only with maxDate. Should have 1 string param, 0 is maxDate\\\"\\n */\\n inputMaxBoundedFormatString?: string;\\n}\\n\\nexport declare interface IDateFormatting extends IDateGridStrings {\\n /**\\n * Format the day according to specified function.\\n * Intended use case is localization.\\n */\\n formatDay: (date: Date) => string;\\n /**\\n * Format the year according to specified function.\\n * Intended use case is localization.\\n */\\n formatYear: (date: Date) => string;\\n /**\\n * Format the month, day and year according to specified function.\\n * Intended use case is localization.\\n */\\n formatMonthDayYear: (date: Date, strings: IDateGridStrings) => string;\\n /**\\n * Format the month and year according to specified function.\\n * Intended use case is localization.\\n */\\n formatMonthYear: (date: Date, strings: IDateGridStrings) => string;\\n /**\\n * Parse date from string representation into Date type.\\n */\\n parseDate: (date: string) => Date | null;\\n}\\n\\nexport declare interface IDateGridStrings {\\n /**\\n * An array of strings for the full names of months.\\n * The array is 0-based, so months[0] should be the full name of January.\\n */\\n months: string[];\\n /**\\n * An array of strings for the short names of months.\\n * The array is 0-based, so shortMonths[0] should be the short name of January.\\n */\\n shortMonths: string[];\\n /**\\n * An array of strings for the full names of days of the week.\\n * The array is 0-based, so days[0] should be the full name of Sunday.\\n */\\n days: string[];\\n /**\\n * An array of strings for the initials of the days of the week.\\n * The array is 0-based, so days[0] should be the initial of Sunday.\\n */\\n shortDays: string[];\\n}\\n\\nexport declare interface IDatepickerOptions extends IRestrictedDatesOptions {\\n /**\\n * The first day of the week for your locale.\\n */\\n firstDayOfWeek: DayOfWeek;\\n /**\\n * Defines when the first week of the year should start, FirstWeekOfYear.FirstDay,\\n * FirstWeekOfYear.FirstFullWeek or FirstWeekOfYear.FirstFourDayWeek are the possible values\\n */\\n firstWeekOfYear: FirstWeekOfYear;\\n /**\\n * The date range type indicating how many days should be selected as the user\\n * selects days\\n */\\n dateRangeType: DateRangeType;\\n /**\\n * The number of days to select while dateRangeType === DateRangeType.Day. Used in order to have multi-day\\n * views.\\n */\\n daysToSelectInDayView?: number;\\n /**\\n * Value of today. If null, current time in client machine will be used.\\n */\\n today?: Date;\\n /**\\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\\n */\\n showWeekNumbers?: boolean;\\n /**\\n * The days that are selectable when `dateRangeType` is WorkWeek.\\n * If `dateRangeType` is not WorkWeek this property does nothing.\\n */\\n workWeekDays?: DayOfWeek[];\\n /**\\n * Which days in the generated grid should be marked.\\n */\\n markedDays?: Date[];\\n}\\n\\nexport declare interface IDay {\\n /** `Date.toString()` value of current date */\\n key: string;\\n /** `Date.getDate()` value of current date */\\n date: string;\\n /** `Date` object of current date */\\n originalDate: Date;\\n /** Is current date is in the same month as \\\"today\\\" date */\\n isInMonth: boolean;\\n /** Is current date is \\\"today\\\" date */\\n isToday: boolean;\\n /** Is current date is selected */\\n isSelected: boolean;\\n /** Is current date within restriction boundaries */\\n isInBounds: boolean;\\n /** Is current date marked */\\n isMarked: boolean;\\n}\\n\\nexport declare interface IDayGridOptions extends IDatepickerOptions {\\n /**\\n * The currently selected date\\n */\\n selectedDate: Date;\\n /**\\n * The currently navigated date\\n */\\n navigatedDate: Date;\\n /**\\n * How many weeks to show by default. If not provided, will show enough weeks to display the current\\n * month, between 4 and 6 depending\\n */\\n weeksToShow?: number;\\n}\\n\\nexport declare interface IRestrictedDatesOptions {\\n /**\\n * If set the Calendar will not allow navigation to or selection of a date earlier than this value.\\n */\\n minDate?: Date;\\n /**\\n * If set the Calendar will not allow navigation to or selection of a date later than this value.\\n */\\n maxDate?: Date;\\n /**\\n * If set the Calendar will not allow selection of dates in this array.\\n */\\n restrictedDates?: Date[];\\n}\\n\\n/**\\n * Checks if `date` happens later than max date\\n * @param date - date to check\\n * @param options - object with max date to check against\\n */\\nexport declare const isAfterMaxDate: (date: Date, options: IRestrictedDatesOptions) => boolean;\\n\\n/**\\n * Checks if `date` happens earlier than min date\\n * @param date - date to check\\n * @param options - object with min date to check against\\n */\\nexport declare const isBeforeMinDate: (date: Date, options: IRestrictedDatesOptions) => boolean;\\n\\n/**\\n * Returns whether provided week days are contiguous.\\n * @param days - list of days in a week\\n * @param isSingleWeek - decides whether the contiguous logic applies across week boundaries or not\\n * @param firstDayOfWeek - decides which day of week is the first one in the order.\\n */\\nexport declare const isContiguous: (days: DayOfWeek[], isSingleWeek: boolean, firstDayOfWeek: DayOfWeek) => boolean;\\n\\n/**\\n * Checks whether the specified date is in the given date range.\\n * @param date - The origin date\\n * @param dateRange - An array of dates to do the lookup on\\n * @returns True if the date matches one of the dates in the specified array, false otherwise.\\n */\\nexport declare function isInDateRangeArray(date: Date, dateRange: Date[]): boolean;\\n\\n/**\\n * Checks if `date` falls into the restricted `options`\\n * @param date - date to check\\n * @param options - restriction options (min date, max date and list of restricted dates)\\n */\\nexport declare const isRestrictedDate: (date: Date, options: IRestrictedDatesOptions) => boolean;\\n\\n/**\\n * The months\\n * {@docCategory MonthOfYear}\\n */\\nexport declare enum MonthOfYear {\\n January = 0,\\n February = 1,\\n March = 2,\\n April = 3,\\n May = 4,\\n June = 5,\\n July = 6,\\n August = 7,\\n September = 8,\\n October = 9,\\n November = 10,\\n December = 11\\n}\\n\\n/**\\n * Returns a date that is a copy of the given date, aside from the month changing to the given month.\\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\\n * to contain the original day-of-month, we'll use the last day of the new month.\\n * @param date - The origin date\\n * @param month - The 0-based index of the month to set on the date.\\n * @returns A new Date object with the given month set.\\n */\\nexport declare function setMonth(date: Date, month: number): Date;\\n\\nexport { }\\n\"\n\n//# sourceURL=webpack:///../tsx-editor/dist/types/date-time-utilities.d.ts?/mnt/vss/_work/1/s/node_modules/raw-loader");
/***/ }),
/***/ "../../node_modules/raw-loader/index.js!../tsx-editor/dist/types/dom-utilities.d.ts":
/*!**********************************************************************************************!*\
!*** /mnt/vss/_work/1/s/node_modules/raw-loader!../tsx-editor/dist/types/dom-utilities.d.ts ***!
\**********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"\\nexport declare const DATA_PORTAL_ATTRIBUTE = \\\"data-portal-element\\\";\\n\\n/**\\n * Determines whether or not a parent element contains a given child element.\\n * If `allowVirtualParents` is true, this method may return `true` if the child\\n * has the parent in its virtual element hierarchy.\\n *\\n * @public\\n */\\nexport declare function elementContains(parent: HTMLElement | null, child: HTMLElement | null, allowVirtualParents?: boolean): boolean;\\n\\n/**\\n * Determines if an element, or any of its ancestors, contain the given attribute\\n * @param element - element to start searching at\\n * @param attribute - the attribute to search for\\n * @returns the value of the first instance found\\n */\\nexport declare function elementContainsAttribute(element: HTMLElement, attribute: string): string | null;\\n\\n/**\\n * Finds the first parent element where the matchFunction returns true\\n * @param element - element to start searching at\\n * @param matchFunction - the function that determines if the element is a match\\n * @returns the matched element or null no match was found\\n */\\nexport declare function findElementRecursive(element: HTMLElement | null, matchFunction: (element: HTMLElement) => boolean): HTMLElement | null;\\n\\n/**\\n * Gets the elements which are child elements of the given element.\\n * If `allowVirtualChildren` is `true`, this method enumerates virtual child elements\\n * after the original children.\\n * @param parent - The element to get the children of.\\n * @param allowVirtualChildren - true if the method should enumerate virtual child elements.\\n */\\nexport declare function getChildren(parent: HTMLElement, allowVirtualChildren?: boolean): HTMLElement[];\\n\\n/**\\n * Gets the element which is the parent of a given element.\\n * If `allowVirtuaParents` is `true`, this method prefers the virtual parent over\\n * real DOM parent when present.\\n *\\n * @public\\n */\\nexport declare function getParent(child: HTMLElement, allowVirtualParents?: boolean): HTMLElement | null;\\n\\n/**\\n * Gets the virtual parent given the child element, if it exists.\\n *\\n * @public\\n */\\nexport declare function getVirtualParent(child: HTMLElement): HTMLElement | undefined;\\n\\n/**\\n * Determines whether or not an element has the virtual hierarchy extension.\\n *\\n * @public\\n */\\nexport declare function isVirtualElement(element: HTMLElement | IVirtualElement): element is IVirtualElement;\\n\\n/**\\n * Attached interface for elements which support virtual references.\\n * Used internally by the virtual hierarchy methods.\\n */\\nexport declare interface IVirtualElement extends HTMLElement {\\n _virtual: {\\n parent?: IVirtualElement;\\n children: IVirtualElement[];\\n };\\n}\\n\\n/**\\n * Determine whether a target is within a portal from perspective of root or optional parent.\\n * This function only works against portal components that use the setPortalAttribute function.\\n * If both parent and child are within the same portal this function will return false.\\n * @param target - Element to query portal containment status of.\\n * @param parent - Optional parent perspective. Search for containing portal stops at parent\\n * (or root if parent is undefined or invalid.)\\n */\\nexport declare function portalContainsElement(target: HTMLElement, parent?: HTMLElement): boolean;\\n\\n/**\\n * Identify element as a portal by setting an attribute.\\n * @param element - Element to mark as a portal.\\n */\\nexport declare function setPortalAttribute(element: HTMLElement): void;\\n\\n/**\\n * Sets the virtual parent of an element.\\n * Pass `undefined` as the `parent` to clear the virtual parent.\\n *\\n * @public\\n */\\nexport declare function setVirtualParent(child: HTMLElement, parent: HTMLElement | null): void;\\n\\nexport { }\\n\"\n\n//# sourceURL=webpack:///../tsx-editor/dist/types/dom-utilities.d.ts?/mnt/vss/_work/1/s/node_modules/raw-loader");
/***/ }),
/***/ "../../node_modules/raw-loader/index.js!../tsx-editor/dist/types/example-data.d.ts":
/*!*********************************************************************************************!*\
!*** /mnt/vss/_work/1/s/node_modules/raw-loader!../tsx-editor/dist/types/example-data.d.ts ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"/**\\n * @packageDocumentation\\n * This package is for use in Fabric examples and tests only. It's considered internal, so APIs\\n * are subject to change without notice. (The only reason it uses api-extractor is so the types\\n * can easily be added to the live example editor.)\\n */\\n\\n\\n/** @internal */\\nexport declare function createGroups(groupCount: number, groupDepth: number, startIndex: number, itemsPerGroup: number, level?: number, key?: string, isCollapsed?: boolean): IExampleGroup[];\\n\\n/** @internal */\\nexport declare function createListItems(count: number, startIndex?: number): IExampleItem[];\\n\\n/** @internal */\\nexport declare const facepilePersonas: IExampleFacepilePersona[];\\n\\n/** @internal */\\nexport declare const groupOne: (IExampleExtendedPersonaProps & {\\n key: string | number;\\n})[];\\n\\n/** @internal */\\nexport declare const groupTwo: (IExampleExtendedPersonaProps & {\\n key: string | number;\\n})[];\\n\\n/**\\n * For use in this package only.\\n * Partial mirror of IExtendedPersonaProps avoid a circular dependency.\\n * If the real interface changes and this one starts causing compiler errors, update it.\\n * @internal\\n */\\nexport declare interface IExampleExtendedPersonaProps {\\n imageUrl?: string;\\n imageInitials?: string;\\n text?: string;\\n secondaryText?: string;\\n tertiaryText?: string;\\n optionalText?: string;\\n presence?: number;\\n isValid: boolean;\\n canExpand?: boolean;\\n}\\n\\n/**\\n * For use in this package only.\\n * Partial mirror of IFacepilePersona avoid a circular dependency.\\n * If the real interface changes and this one starts causing compiler errors, update it.\\n * @internal\\n */\\nexport declare interface IExampleFacepilePersona {\\n imageUrl?: string;\\n imageInitials?: string;\\n initialsColor?: number;\\n personaName?: string;\\n onClick?: (ev: unknown, persona?: IExampleFacepilePersona) => void;\\n data?: any;\\n}\\n\\n/**\\n * For use in this package only.\\n * Partial mirror of IGroup from DetailsList avoid a circular dependency.\\n * If the real interface changes and this one starts causing compiler errors, update it.\\n * @internal\\n */\\nexport declare interface IExampleGroup {\\n count: number;\\n key: string;\\n name: string;\\n startIndex: number;\\n level?: number;\\n isCollapsed?: boolean;\\n children?: IExampleGroup[];\\n}\\n\\n/** @internal */\\nexport declare interface IExampleItem {\\n thumbnail: string;\\n key: string;\\n name: string;\\n description: string;\\n color: string;\\n shape: string;\\n location: string;\\n width: number;\\n height: number;\\n}\\n\\n/** @internal */\\nexport declare function isGroupable(key: string): boolean;\\n\\n/** @internal */\\nexport declare function lorem(wordCount: number): string;\\n\\n/** @internal */\\nexport declare const mru: (IExampleExtendedPersonaProps & {\\n key: string | number;\\n})[];\\n\\n/** Sample people and groups @internal */\\nexport declare const people: (IExampleExtendedPersonaProps & {\\n key: string | number;\\n})[];\\n\\n/**\\n * Creates an array of incrementing numbers from a specified start and end value.\\n * @internal\\n */\\nexport declare const range: (start: number, end: number) => number[];\\n\\n/** @internal */\\nexport declare const TestImages: {\\n choiceGroupBarUnselected: string;\\n choiceGroupBarSelected: string;\\n choiceGroupPieUnselected: string;\\n choiceGroupPieSelected: string;\\n documentPreview: string;\\n documentPreviewTwo: string;\\n documentPreviewThree: string;\\n iconOne: string;\\n iconPpt: string;\\n personaFemale: string;\\n personaMale: string;\\n};\\n\\nexport { }\\n\"\n\n//# sourceURL=webpack:///../tsx-editor/dist/types/example-data.d.ts?/mnt/vss/_work/1/s/node_modules/raw-loader");
/***/ }),
/***/ "../../node_modules/raw-loader/index.js!../tsx-editor/dist/types/foundation.d.ts":
/*!*******************************************************************************************!*\
!*** /mnt/vss/_work/1/s/node_modules/raw-loader!../tsx-editor/dist/types/foundation.d.ts ***!
\*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"import { ISchemeNames } from '@uifabric/styling';\\nimport { IStyle } from '@uifabric/styling';\\nimport { IStyleSet } from '@uifabric/styling';\\nimport { ITheme } from '@uifabric/styling';\\nimport { styled as legacyStyled } from '@uifabric/utilities';\\nimport * as React from 'react';\\n\\n/**\\n * Assembles a higher order component based on the following: styles, theme, view, and state.\\n * Imposes a separation of concern and centralizes styling processing to increase ease of use and robustness\\n * in how components use and apply styling and theming.\\n *\\n * Automatically merges and applies themes and styles with theme / styleprops having the highest priority.\\n * State component, if provided, is passed in props for processing. Props from state / user are automatically processed\\n * and styled before finally being passed to view.\\n *\\n * State components should contain all stateful behavior and should not generate any JSX, but rather simply call\\n * the view prop.\\n *\\n * Views should simply be stateless pure functions that receive all props needed for rendering their output.\\n *\\n * State component is optional. If state is not provided, created component is essentially a functional\\n * stateless component.\\n *\\n * @param options - component Component options. See IComponentOptions for more detail.\\n */\\nexport declare function createComponent<TComponentProps extends ValidProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>, TViewProps extends TComponentProps = TComponentProps, TStatics = {}>(view: IViewComponent<TViewProps>, options?: IComponentOptions<TComponentProps, TTokens, TStyleSet, TViewProps, TStatics>): React.FunctionComponent<TComponentProps> & TStatics;\\n\\n/**\\n * This function creates factories that render ouput depending on the user ISlotProp props passed in.\\n * @param DefaultComponent - Base component to render when not overridden by user props.\\n * @param options - Factory options, including defaultProp value for shorthand prop mapping.\\n * @returns ISlotFactory function used for rendering slots.\\n */\\nexport declare function createFactory<TProps extends ValidProps, TShorthandProp extends ValidShorthand = never>(DefaultComponent: React.ComponentType<TProps>, options?: IFactoryOptions<TProps>): ISlotFactory<TProps, TShorthandProp>;\\n\\n/**\\n * Extracts props type from ISlotProp definition.\\n */\\nexport declare type ExtractProps<TUnion> = TUnion extends ISlotProp<infer TProps> ? TProps : never;\\n\\n/**\\n * Extracts shorthand type from union of ValidShorthand types.\\n */\\nexport declare type ExtractShorthand<TUnion> = TUnion extends boolean ? boolean : TUnion extends number ? number : TUnion extends string ? string : never;\\n\\n/**\\n * Simple controlled helper that gives priority to props value and falls back to derived value.\\n *\\n * @param props - The props object containing controlled prop values.\\n * @param propName - The controlled prop name.\\n * @param derivedValue - Derived value. Returned when controlled value is not present.\\n */\\nexport declare function getControlledDerivedProps<TProps, TProp extends keyof TProps>(props: Readonly<TProps>, propName: TProp, derivedValue: TProps[TProp]): TProps[TProp];\\n\\n/**\\n * This function generates slots that can be used in JSX given a definition of slots and their corresponding types.\\n * @param userProps - Props as pass to component.\\n * @param slots - Slot definition object defining the default slot component for each slot.\\n * @returns A set of created slots that components can render in JSX.\\n */\\nexport declare function getSlots<TComponentProps extends ISlottableProps<TComponentSlots>, TComponentSlots>(userProps: TComponentProps, slots: ISlotDefinition<Required<TComponentSlots>>): ISlots<Required<TComponentSlots>>;\\n\\n/**\\n * Component helper that defines options as required for ease of use by component consumers.\\n */\\nexport declare type IComponent<TComponentProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>, TViewProps = TComponentProps, TStatics = {}> = Required<IComponentOptions<TComponentProps, TTokens, TStyleSet, TViewProps, TStatics>> & {\\n /**\\n * Component that generates view output.\\n */\\n view: IViewComponent<TViewProps>;\\n};\\n\\n/**\\n * Component options used by foundation to tie elements together.\\n *\\n * * TComponentProps: A styleable props interface for the created component.\\n * * TTokens: The type for tokens props.\\n * * TStyleSet: The type for styles properties.\\n * * TViewProps: The props specific to the view, including processed properties outputted by optional state component.\\n * If state component is not provided, TComponentProps is the same as TViewProps.\\n * * TStatics: Static type for statics applied to created component object.\\n */\\nexport declare interface IComponentOptions<TComponentProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>, TViewProps = TComponentProps, TStatics = {}> {\\n /**\\n * Display name to identify component in React hierarchy. This parameter is required for targeted component styling\\n * via theming.\\n */\\n displayName?: string;\\n /**\\n * List of fields which can be customized.\\n */\\n fields?: string[];\\n /**\\n * Styles prop to pass into component.\\n */\\n styles?: IStylesFunctionOrObject<TViewProps, TTokens, TStyleSet>;\\n /**\\n * Optional state component that processes TComponentProps into TViewProps.\\n */\\n state?: IStateComponentType<TComponentProps, TViewProps>;\\n /**\\n * Optional static object to assign to constructed component.\\n */\\n statics?: TStatics;\\n /**\\n * Tokens prop to pass into component.\\n */\\n tokens?: ITokenFunctionOrObject<TViewProps, TTokens>;\\n /**\\n * Default prop for which to map primitive values.\\n */\\n factoryOptions?: IFactoryOptions<TComponentProps>;\\n}\\n\\n/**\\n * Helper type defining style sections, one for each component slot.\\n */\\nexport declare type IComponentStyles<TSlots> = {\\n [key in keyof TSlots]?: IStyle;\\n};\\n\\nexport declare interface IControlledStateOptions<TProps, TProp extends keyof TProps, TDefaultProp extends keyof TProps> {\\n defaultPropValue?: TProps[TProp];\\n defaultPropName?: TDefaultProp;\\n}\\n\\nexport declare type ICustomizationProps<TViewProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>> = IStyleableComponentProps<TViewProps, TTokens, TStyleSet> & Required<Pick<IStyleableComponentProps<TViewProps, TTokens, TStyleSet>, 'theme'>>;\\n\\n/**\\n * Defines user properties that are automatically applied by Slot utilities using slot name.\\n */\\nexport declare interface IDefaultSlotProps<TSlots> {\\n _defaultStyles: IComponentStyles<TSlots>;\\n}\\n\\n/**\\n * Factory options for creating component.\\n */\\nexport declare interface IFactoryOptions<TProps> {\\n /**\\n * Default prop for which to map primitive values.\\n */\\n defaultProp?: keyof TProps | 'children';\\n}\\n\\n/**\\n * Optional HTML element typing to confine or expand HTML attribute usage for an intrinsic slot.\\n * Useful for slots that need to allow access to specialized HTML attributes, such as for buttons and inputs.\\n * Example usage: root?: IHTMLElementSlot\\\\<'button'\\\\>;\\n */\\nexport declare type IHTMLElementSlot<TElement extends keyof JSX.IntrinsicElements> = ISlotProp<JSX.IntrinsicElements[TElement]>;\\n\\n/**\\n * Generic slot definition allowing common HTML attributes. Applicable for most intrinsic slots. Please note certain\\n * elements such as buttons and inputs should make use of IHTMLElementSlot to provide access to specialized attributes\\n * of those elements.\\n */\\nexport declare type IHTMLSlot = ISlotProp<React.DetailedHTMLProps<React.HTMLAttributes<any>, any>>;\\n\\n/**\\n * Props generated by Foundation.\\n */\\nexport declare interface IProcessedSlotProps {\\n className?: string;\\n}\\n\\n/**\\n * Helper interface for accessing user props children.\\n * @deprecated Use React.PropsWithChildren.\\n */\\nexport declare type IPropsWithChildren<TProps> = React.PropsWithChildren<TProps>;\\n\\n/**\\n * Created Slot structure used for rendering by components.\\n */\\nexport declare interface ISlot<TProps> {\\n (componentProps: React.PropsWithChildren<TProps> | undefined | null): ReturnType<React.FunctionComponent>;\\n isSlot?: boolean;\\n}\\n\\n/**\\n * Signature of components that have component factories.\\n */\\nexport declare interface ISlotCreator<TProps extends ValidProps, TShorthandProp extends ValidShorthand> {\\n create?: ISlotFactory<TProps, TShorthandProp>;\\n}\\n\\n/**\\n * An interface for defining slots. Each key in TSlot must point to an ISlottableType.\\n */\\nexport declare type ISlotDefinition<TSlots> = {\\n [slot in keyof TSlots]: React.ElementType<ExtractProps<TSlots[slot]>>;\\n};\\n\\n/**\\n * Interface for a slot factory that consumes both component and user slot prop and generates rendered output.\\n */\\nexport declare type ISlotFactory<TProps extends ValidProps, TShorthandProp extends ValidShorthand> = (componentProps: TProps & IProcessedSlotProps, userProps: ISlotProp<TProps, TShorthandProp>, slotOptions: ISlotOptions<TProps> | undefined, defaultStyles: IStyle, theme?: ITheme) => ReturnType<React.FunctionComponent<TProps>>;\\n\\n/**\\n * Defines the slot options object for all slot props:\\n * 1. ISlotRender function.\\n * 2. React component with TProps interface.\\n */\\nexport declare interface ISlotOptions<TProps> {\\n component?: React.ElementType<TProps>;\\n render?: ISlotRender<TProps>;\\n}\\n\\n/**\\n * Defines the primary slot prop interface components should use to define their slot props.\\n */\\nexport declare type ISlotProp<TProps extends ValidProps, TShorthandProp extends ValidShorthand = never> = TShorthandProp | TProps;\\n\\n/**\\n * Content rendering provided by component.\\n */\\nexport declare type ISlotRender<TProps> = (props: React.PropsWithChildren<TProps>, defaultComponent: React.ComponentType<TProps>) => ReturnType<React.FunctionComponent<TProps>>;\\n\\n/**\\n * Interface for aggregated slots objects used internally by components. Extract the TProps type passed\\n * into ISlotProp<TProps> to define the ISlot using TProps.\\n */\\nexport declare type ISlots<TSlots> = {\\n [slot in keyof TSlots]: ISlot<ExtractProps<TSlots[slot]>>;\\n};\\n\\n/**\\n * Slottable version of React.ComponentType.\\n */\\nexport declare type ISlottableComponentType<TProps extends ValidProps, TShorthandProp extends ValidShorthand> = React.ComponentType<TProps> & ISlotCreator<TProps, TShorthandProp>;\\n\\n/**\\n * Automatically defines 'slots' prop based on TSlots props.\\n */\\nexport declare type ISlottableProps<TSlots> = TSlots & {\\n slots?: {\\n [key in keyof TSlots]+?: ISlotOptions<ExtractProps<TSlots[key]>>;\\n };\\n};\\n\\n/**\\n * Slottable version of React.ReactType.\\n */\\nexport declare type ISlottableReactType<TProps extends ValidProps, TShorthandProp extends ValidShorthand> = React.ElementType<TProps> & ISlotCreator<TProps, TShorthandProp>;\\n\\n/**\\n * Defines the contract for state components.\\n */\\nexport declare type IStateComponentType<TComponentProps, TViewProps> = (props: Readonly<TComponentProps>) => TViewProps;\\n\\n/**\\n * Optional props for styleable components. If these props are present, they will automatically be\\n * used by Foundation when applying theming and styling.\\n */\\nexport declare interface IStyleableComponentProps<TViewProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>> {\\n className?: string;\\n styles?: IStylesFunctionOrObject<TViewProps, TTokens, TStyleSet>;\\n theme?: ITheme;\\n tokens?: ITokenFunctionOrObject<TViewProps, TTokens>;\\n}\\n\\n/**\\n * Function declaration for component styles functions.\\n */\\nexport declare type IStylesFunction<TViewProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>> = (props: TViewProps, theme: ITheme, tokens: TTokens) => TStyleSet;\\n\\n/**\\n * Composite type for component styles functions and objects.\\n */\\nexport declare type IStylesFunctionOrObject<TViewProps, TTokens, TStyleSet extends IStyleSet<TStyleSet>> = IStylesFunction<TViewProps, TTokens, TStyleSet> | TStyleSet;\\n\\nexport declare interface IThemeProviderProps {\\n scheme?: ISchemeNames;\\n theme?: ITheme;\\n}\\n\\n/**\\n * Tokens can be defined as an object, function, or an array of objects and functions.\\n */\\nexport declare type IToken<TViewProps, TTokens> = ITokenBase<TViewProps, TTokens> | ITokenBaseArray<TViewProps, TTokens>;\\n\\n/**\\n * Composite base type that includes all possible resolutions of token functions in an array.\\n */\\nexport declare type ITokenBase<TViewProps, TTokens> = ITokenFunctionOrObject<TViewProps, TTokens> | false | null | undefined;\\n\\n/**\\n * Composite token base array type allowing for token objects, functions, and function resolutions.\\n */\\nexport declare interface ITokenBaseArray<TViewProps, TTokens> extends Array<IToken<TViewProps, TTokens>> {\\n}\\n\\n/**\\n * Function declaration for component token functions.\\n */\\nexport declare type ITokenFunction<TViewProps, TTokens> = (props: TViewProps, theme: ITheme) => IToken<TViewProps, TTokens>;\\n\\n/**\\n * Composite type for component token functions and objects.\\n */\\nexport declare type ITokenFunctionOrObject<TViewProps, TTokens> = ITokenFunction<TViewProps, TTokens> | TTokens;\\n\\n/**\\n * Defines the contract for view components.\\n */\\nexport declare type IViewComponent<TViewProps> = (props: React.PropsWithChildren<TViewProps>) => ReturnType<React.FunctionComponent>;\\nexport { legacyStyled }\\n\\n/**\\n * Theme provider is a simplified version of Customizer that activates the appropriate theme data\\n * for a given scheme name.\\n *\\n * @param providers - Injected providers for accessing theme data and providing it via a Customizer component.\\n */\\nexport declare const ThemeProvider: React.FunctionComponent<IThemeProviderProps>;\\n\\n/**\\n * Controlled state helper that gives priority to props value. Useful for components that have props with both\\n * controlled and uncontrolled modes. Any props values will override state, but will not update internal state.\\n * If prop is defined and then later undefined, state will revert to its previous value.\\n *\\n * @param props - The props object containing controlled prop values.\\n * @param propName - The controlled prop name.\\n * @param options - Options. defaultPropValue is only used if defaultPropName (or its value) is undefined.\\n */\\nexport declare function useControlledState<TProps, TProp extends keyof TProps, TDefaultProp extends keyof TProps>(props: Readonly<TProps>, propName: TProp, options?: IControlledStateOptions<TProps, TProp, TDefaultProp>): [TProps[TProp] | undefined, React.Dispatch<React.SetStateAction<TProps[TProp]>>];\\n\\n/**\\n * Defines valid prop types.\\n */\\nexport declare type ValidProps = object;\\n\\n/**\\n * Defines valid shorthand prop types. These should match the defaultProp type provided to createComponent.\\n */\\nexport declare type ValidShorthand = string | number | boolean;\\n\\n/**\\n * This function is required for any module that uses slots.\\n *\\n * This function is a slot resolver that automatically evaluates slot functions to generate React elements.\\n * A byproduct of this resolver is that it removes slots from the React hierarchy by bypassing React.createElement.\\n *\\n * To use this function on a per-file basis, use the jsx directive targeting withSlots.\\n * This directive must be the FIRST LINE in the file to work correctly.\\n * Usage of this pragma also requires withSlots import statement.\\n *\\n * See React.createElement\\n */\\nexport declare function withSlots<P>(type: ISlot<P> | React.FunctionComponent<P> | string, props?: (React.Attributes & P) | null, ...children: React.ReactNode[]): ReturnType<React.FunctionComponent<P>>;\\n\\nexport { }\\n\"\n\n//# sourceURL=webpack:///../tsx-editor/dist/types/foundation.d.ts?/mnt/vss/_work/1/s/node_modules/raw-loader");
/***/ }),
/***/ "../../node_modules/raw-loader/index.js!../tsx-editor/dist/types/icons.d.ts":
/*!**************************************************************************************!*\
!*** /mnt/vss/_work/1/s/node_modules/raw-loader!../tsx-editor/dist/types/icons.d.ts ***!
\**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("module.exports = \"import { IIconOptions } from '@uifabric/styling';\\n\\n/**\\n * @deprecated Const enum use is deprecated. See GitHub issue #7110: https://github.com/microsoft/fluentui/issues/7110\\n */\\nexport declare const enum IconNames {\\n PageLink = \\\"PageLink\\\",\\n CommentSolid = \\\"CommentSolid\\\",\\n ChangeEntitlements = \\\"ChangeEntitlements\\\",\\n Installation = \\\"Installation\\\",\\n WebAppBuilderModule = \\\"WebAppBuilderModule\\\",\\n WebAppBuilderFragment = \\\"WebAppBuilderFragment\\\",\\n WebAppBuilderSlot = \\\"WebAppBuilderSlot\\\",\\n BullseyeTargetEdit = \\\"BullseyeTargetEdit\\\",\\n WebAppBuilderFragmentCreate = \\\"WebAppBuilderFragmentCreate\\\",\\n PageData = \\\"PageData\\\",\\n PageHeaderEdit = \\\"PageHeaderEdit\\\",\\n ProductList = \\\"ProductList\\\",\\n UnpublishContent = \\\"UnpublishContent\\\",\\n DependencyAdd = \\\"DependencyAdd\\\",\\n DependencyRemove = \\\"DependencyRemove\\\",\\n EntitlementPolicy = \\\"EntitlementPolicy\\\",\\n EntitlementRedemption = \\\"EntitlementRedemption\\\",\\n SchoolDataSyncLogo = \\\"SchoolDataSyncLogo\\\",\\n PinSolid12 = \\\"PinSolid12\\\",\\n PinSolidOff12 = \\\"PinSolidOff12\\\",\\n AddLink = \\\"AddLink\\\",\\n SharepointAppIcon16 = \\\"SharepointAppIcon16\\\",\\n DataflowsLink = \\\"DataflowsLink\\\",\\n TimePicker = \\\"TimePicker\\\",\\n UserWarning = \\\"UserWarning\\\",\\n ComplianceAudit = \\\"ComplianceAudit\\\",\\n GlobalNavButton = \\\"GlobalNavButton\\\",\\n InternetSharing = \\\"InternetSharing\\\",\\n Brightness = \\\"Brightness\\\",\\n MapPin = \\\"MapPin\\\",\\n Airplane = \\\"Airplane\\\",\\n Tablet = \\\"Tablet\\\",\\n QuickNote = \\\"QuickNote\\\",\\n ChevronDown = \\\"ChevronDown\\\",\\n ChevronUp = \\\"ChevronUp\\\",\\n Edit = \\\"Edit\\\",\\n Add = \\\"Add\\\",\\n Cancel = \\\"Cancel\\\",\\n More = \\\"More\\\",\\n Settings = \\\"Settings\\\",\\n Video = \\\"Video\\\",\\n Mail = \\\"Mail\\\",\\n People = \\\"People\\\",\\n Phone = \\\"Phone\\\",\\n Pin = \\\"Pin\\\",\\n Shop = \\\"Shop\\\",\\n Stop = \\\"Stop\\\",\\n Link = \\\"Link\\\",\\n Filter = \\\"Filter\\\",\\n AllApps = \\\"AllApps\\\",\\n Zoom = \\\"Zoom\\\",\\n ZoomOut = \\\"ZoomOut\\\",\\n Microphone = \\\"Microphone\\\",\\n Search = \\\"Search\\\",\\n Camera = \\\"Camera\\\",\\n Attach = \\\"Attach\\\",\\n Send = \\\"Send\\\",\\n FavoriteList = \\\"FavoriteList\\\",\\n PageSolid = \\\"PageSolid\\\",\\n Forward = \\\"Forward\\\",\\n Back = \\\"Back\\\",\\n Refresh = \\\"Refresh\\\",\\n Share = \\\"Share\\\",\\n Lock = \\\"Lock\\\",\\n BlockedSite = \\\"BlockedSite\\\",\\n ReportHacked = \\\"ReportHacked\\\",\\n EMI = \\\"EMI\\\",\\n MiniLink = \\\"MiniLink\\