From 9b9504ffe181bd07cd0d933b6d638119902b5959 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 27 Mar 2023 09:09:36 +0100 Subject: [PATCH] Fixed #3806 - Api: Typing mismatch --- components/lib/api/Api.d.ts | 576 +++++++++--------- components/lib/badge/Badge.d.ts | 2 +- components/lib/button/Button.d.ts | 2 +- components/lib/datatable/DataTable.d.ts | 4 +- components/lib/dropdown/Dropdown.d.ts | 2 +- .../lib/inlinemessage/InlineMessage.d.ts | 2 +- components/lib/listbox/Listbox.d.ts | 2 +- components/lib/message/Message.d.ts | 2 +- components/lib/multiselect/MultiSelect.d.ts | 2 +- components/lib/splitbutton/SplitButton.d.ts | 2 +- components/lib/tag/Tag.d.ts | 2 +- components/lib/toast/Toast.d.ts | 2 +- components/lib/treetable/TreeTable.d.ts | 4 +- 13 files changed, 306 insertions(+), 298 deletions(-) diff --git a/components/lib/api/Api.d.ts b/components/lib/api/Api.d.ts index c7b1b04a3..d6d27067c 100644 --- a/components/lib/api/Api.d.ts +++ b/components/lib/api/Api.d.ts @@ -1,28 +1,32 @@ // Filter -export const enum FilterMatchMode { - STARTS_WITH = 'startsWith', - CONTAINS = 'contains', - NOT_CONTAINS = 'notContains', - ENDS_WITH = 'endsWith', - EQUALS = 'equals', - NOT_EQUALS = 'notEquals', - IN = 'in', - LESS_THAN = 'lt', - LESS_THAN_OR_EQUAL_TO = 'lte', - GREATER_THAN = 'gt', - GREATER_THAN_OR_EQUAL_TO = 'gte', - BETWEEN = 'between', - DATE_IS = 'dateIs', - DATE_IS_NOT = 'dateIsNot', - DATE_BEFORE = 'dateBefore', - DATE_AFTER = 'dateAfter' +export interface FilterMatchModeOptions { + readonly STARTS_WITH: string; + readonly CONTAINS: string; + readonly NOT_CONTAINS: string; + readonly ENDS_WITH: string; + readonly EQUALS: string; + readonly NOT_EQUALS: string; + readonly IN: string; + readonly LESS_THAN: string; + readonly LESS_THAN_OR_EQUAL_TO: string; + readonly GREATER_THAN: string; + readonly GREATER_THAN_OR_EQUAL_TO: string; + readonly BETWEEN: string; + readonly DATE_IS: string; + readonly DATE_IS_NOT: string; + readonly DATE_BEFORE: string; + readonly DATE_AFTER: string; } -export const enum FilterOperator { - AND = 'and', - OR = 'or' +export declare const FilterMatchMode: FilterMatchModeOptions; + +export interface FilterOperatorOptions { + readonly AND: string; + readonly OR: string; } +export declare const FilterOperator: FilterOperatorOptions; + export declare namespace FilterService { export function filter(value: any, fields: string[], filterValue: any, filterMatchMode: string, filterLocale?: string): any[]; export interface filters { @@ -47,271 +51,275 @@ export declare namespace FilterService { } // Icons -export const enum PrimeIcons { - ALIGN_CENTER = 'pi pi-align-center', - ALIGN_JUSTIFY = 'pi pi-align-justify', - ALIGN_LEFT = 'pi pi-align-left', - ALIGN_RIGHT = 'pi pi-align-right', - AMAZON = 'pi pi-amazon', - ANDROID = 'pi pi-android', - ANGLE_DOUBLE_DOWN = 'pi pi-angle-double-down', - ANGLE_DOUBLE_LEFT = 'pi pi-angle-double-left', - ANGLE_DOUBLE_RIGHT = 'pi pi-angle-double-right', - ANGLE_DOUBLE_UP = 'pi pi-angle-double-up', - ANGLE_DOWN = 'pi pi-angle-down', - ANGLE_LEFT = 'pi pi-angle-left', - ANGLE_RIGHT = 'pi pi-angle-right', - ANGLE_UP = 'pi pi-angle-up', - APPLE = 'pi pi-apple', - ARROW_CIRCLE_DOWN = 'pi pi-arrow-circle-down', - ARROW_CIRCLE_LEFT = 'pi pi-arrow-circle-left', - ARROW_CIRCLE_RIGHT = 'pi pi-arrow-circle-right', - ARROW_CIRCLE_UP = 'pi pi-arrow-circle-up', - ARROW_DOWN = 'pi pi-arrow-down', - ARROW_DOWN_LEFT = 'pi pi-arrow-down-left', - ARROW_DOWN_RIGHT = 'pi pi-arrow-down-right', - ARROW_LEFT = 'pi pi-arrow-left', - ARROW_RIGHT = 'pi pi-arrow-right', - ARROW_RIGHT_ARROW_LEFT = 'pi pi-arrow-right-arrow-left', - ARROW_UP = 'pi pi-arrow-up', - ARROW_UP_LEFT = 'pi pi-arrow-up-left', - ARROW_UP_RIGHT = 'pi pi-arrow-up-right', - ARROW_H = 'pi pi-arrows-h', - ARROW_V = 'pi pi-arrows-v', - ARROW_A = 'pi pi-arrows-alt', - AT = 'pi pi-at', - BACKWARD = 'pi pi-backward', - BAN = 'pi pi-ban', - BARS = 'pi pi-bars', - BELL = 'pi pi-bell', - BITCOIN = 'pi pi-bitcoin', - BOLT = 'pi pi-bolt', - BOOK = 'pi pi-book', - BOOKMARK = 'pi pi-bookmark', - BOOKMARK_FILL = 'pi pi-bookmark-fill', - BOX = 'pi pi-box', - BRIEFCASE = 'pi pi-briefcase', - BUILDING = 'pi pi-building', - CALENDAR = 'pi pi-calendar', - CALENDAR_MINUS = 'pi pi-calendar-minus', - CALENDAR_PLUS = 'pi pi-calendar-plus', - CALENDAR_TIMES = 'pi pi-calendar-times', - CALCULATOR = 'pi pi-calculator', - CAMERA = 'pi pi-camera', - CAR = 'pi pi-car', - CARET_DOWN = 'pi pi-caret-down', - CARET_LEFT = 'pi pi-caret-left', - CARET_RIGHT = 'pi pi-caret-right', - CARET_UP = 'pi pi-caret-up', - CART_PLUS = 'pi pi-cart-plus', - CHART_BAR = 'pi pi-chart-bar', - CHART_LINE = 'pi pi-chart-line', - CHART_PIE = 'pi pi-chart-pie', - CHECK = 'pi pi-check', - CHECK_CIRCLE = 'pi pi-check-circle', - CHECK_SQUARE = 'pi pi-check-square', - CHEVRON_CIRCLE_DOWN = 'pi pi-chevron-circle-down', - CHEVRON_CIRCLE_LEFT = 'pi pi-chevron-circle-left', - CHEVRON_CIRCLE_RIGHT = 'pi pi-chevron-circle-right', - CHEVRON_CIRCLE_UP = 'pi pi-chevron-circle-up', - CHEVRON_DOWN = 'pi pi-chevron-down', - CHEVRON_LEFT = 'pi pi-chevron-left', - CHEVRON_RIGHT = 'pi pi-chevron-right', - CHEVRON_UP = 'pi pi-chevron-up', - CIRCLE = 'pi pi-circle', - CIRCLE_FILL = 'pi pi-circle-fill', - CLOCK = 'pi pi-clock', - CLONE = 'pi pi-clone', - CLOUD = 'pi pi-cloud', - CLOUD_DOWNLOAD = 'pi pi-cloud-download', - CLOUD_UPLOAD = 'pi pi-cloud-upload', - CODE = 'pi pi-code', - COG = 'pi pi-cog', - COMMENT = 'pi pi-comment', - COMMENTS = 'pi pi-comments', - COMPASS = 'pi pi-compass', - COPY = 'pi pi-copy', - CREDIT_CARD = 'pi pi-credit-card', - DATABASE = 'pi pi-database', - DELETELEFT = 'pi pi-delete-left', - DESKTOP = 'pi pi-desktop', - DIRECTIONS = 'pi pi-directions', - DIRECTIONS_ALT = 'pi pi-directions-alt', - DISCORD = 'pi pi-discord', - DOLLAR = 'pi pi-dollar', - DOWNLOAD = 'pi pi-download', - EJECT = 'pi pi-eject', - ELLIPSIS_H = 'pi pi-ellipsis-h', - ELLIPSIS_V = 'pi pi-ellipsis-v', - ENVELOPE = 'pi pi-envelope', - ERASER = 'pi pi-eraser', - EURO = 'pi pi-euro', - EXCLAMATION_CIRCLE = 'pi pi-exclamation-circle', - EXCLAMATION_TRIANGLE = 'pi pi-exclamation-triangle', - EXTERNAL_LINK = 'pi pi-external-link', - EYE = 'pi pi-eye', - EYE_SLASH = 'pi pi-eye-slash', - FACEBOOK = 'pi pi-facebook', - FAST_BACKWARD = 'pi pi-fast-backward', - FAST_FORWARD = 'pi pi-fast-forward', - FILE = 'pi pi-file', - FILE_EDIT = 'pi pi-file-edit', - FILE_EXCEL = 'pi pi-file-excel', - FILE_EXPORT = 'pi pi-file-export', - FILE_IMPORT = 'pi pi-file-import', - FILE_PDF = 'pi pi-file-pdf', - FILE_WORD = 'pi pi-file-word', - FILTER = 'pi pi-filter', - FILTER_FILL = 'pi pi-filter-fill', - FILTER_SLASH = 'pi pi-filter-slash', - FLAG = 'pi pi-flag', - FLAG_FILL = 'pi pi-flag-fill', - FOLDER = 'pi pi-folder', - FOLDER_OPEN = 'pi pi-folder-open', - FORWARD = 'pi pi-forward', - GIFT = 'pi pi-gift', - GITHUB = 'pi pi-github', - GLOBE = 'pi pi-globe', - GOOGLE = 'pi pi-google', - HASHTAG = 'pi pi-hashtag', - HEART = 'pi pi-heart', - HEART_FILL = 'pi pi-heart-fill', - HISTORY = 'pi pi-history', - HOURGLASS = 'pi pi-hourglass', - HOME = 'pi pi-home', - ID_CARD = 'pi pi-id-card', - IMAGE = 'pi pi-image', - IMAGES = 'pi pi-images', - INBOX = 'pi pi-inbox', - INFO = 'pi pi-info', - INFO_CIRCLE = 'pi pi-info-circle', - INSTAGRAM = 'pi pi-instagram', - KEY = 'pi pi-key', - LANGUAGE = 'pi pi-language', - LINK = 'pi pi-link', - LINKEDIN = 'pi pi-linkedin', - LIST = 'pi pi-list', - LOCK = 'pi pi-lock', - LOCK_OPEN = 'pi pi-lock-open', - MAP = 'pi pi-map', - MAP_MARKER = 'pi pi-map-marker', - MEGAPHONE = 'pi pi-megaphone', - MICREPHONE = 'pi pi-microphone', - MICROSOFT = 'pi pi-microsoft', - MINUS = 'pi pi-minus', - MINUS_CIRCLE = 'pi pi-minus-circle', - MOBILE = 'pi pi-mobile', - MONEY_BILL = 'pi pi-money-bill', - MOON = 'pi pi-moon', - PALETTE = 'pi pi-palette', - PAPERCLIP = 'pi pi-paperclip', - PAUSE = 'pi pi-pause', - PAYPAL = 'pi pi-paypal', - PENCIL = 'pi pi-pencil', - PERCENTAGE = 'pi pi-percentage', - PHONE = 'pi pi-phone', - PLAY = 'pi pi-play', - PLUS = 'pi pi-plus', - PLUS_CIRCLE = 'pi pi-plus-circle', - POUND = 'pi pi-pound', - POWER_OFF = 'pi pi-power-off', - PRIME = 'pi pi-prime', - PRINT = 'pi pi-print', - QRCODE = 'pi pi-qrcode', - QUESTION = 'pi pi-question', - QUESTION_CIRCLE = 'pi pi-question-circle', - REDDIT = 'pi pi-reddit', - REFRESH = 'pi pi-refresh', - REPLAY = 'pi pi-replay', - REPLY = 'pi pi-reply', - SAVE = 'pi pi-save', - SEARCH = 'pi pi-search', - SEARCH_MINUS = 'pi pi-search-minus', - SEARCH_PLUS = 'pi pi-search-plus', - SEND = 'pi pi-send', - SERVER = 'pi pi-server', - SHARE_ALT = 'pi pi-share-alt', - SHIELD = 'pi pi-shield', - SHOPPING_BAG = 'pi pi-shopping-bag', - SHOPPING_CART = 'pi pi-shopping-cart', - SIGN_IN = 'pi pi-sign-in', - SIGN_OUT = 'pi pi-sign-out', - SITEMAP = 'pi pi-sitemap', - SLACK = 'pi pi-slack', - SLIDERS_H = 'pi pi-sliders-h', - SLIDERS_V = 'pi pi-sliders-v', - SORT = 'pi pi-sort', - SORT_ALPHA_DOWN = 'pi pi-sort-alpha-down', - SORT_ALPHA_ALT_DOWN = 'pi pi-sort-alpha-alt-down', - SORT_ALPHA_UP = 'pi pi-sort-alpha-up', - SORT_ALPHA_ALT_UP = 'pi pi-sort-alpha-alt-up', - SORT_ALT = 'pi pi-sort-alt', - SORT_ALT_SLASH = 'pi pi-sort-slash', - SORT_AMOUNT_DOWN = 'pi pi-sort-amount-down', - SORT_AMOUNT_DOWN_ALT = 'pi pi-sort-amount-down-alt', - SORT_AMOUNT_UP = 'pi pi-sort-amount-up', - SORT_AMOUNT_UP_ALT = 'pi pi-sort-amount-up-alt', - SORT_DOWN = 'pi pi-sort-down', - SORT_NUMERIC_DOWN = 'pi pi-sort-numeric-down', - SORT_NUMERIC_ALT_DOWN = 'pi pi-sort-numeric-alt-down', - SORT_NUMERIC_UP = 'pi pi-sort-numeric-up', - SORT_NUMERIC_ALT_UP = 'pi pi-sort-numeric-alt-up', - SORT_UP = 'pi pi-sort-up', - SPINNER = 'pi pi-spinner', - STAR = 'pi pi-star', - STAR_FILL = 'pi pi-star-fill', - STEP_BACKWARD = 'pi pi-step-backward', - STEP_BACKWARD_ALT = 'pi pi-step-backward-alt', - STEP_FORWARD = 'pi pi-step-forward', - STEP_FORWARD_ALT = 'pi pi-step-forward-alt', - STOP = 'pi pi-stop', - STOPWATCH = 'pi pi-stop-watch', - STOP_CIRCLE = 'pi pi-stop-circle', - SUN = 'pi pi-sun', - SYNC = 'pi pi-sync', - TABLE = 'pi pi-table', - TABLET = 'pi pi-tablet', - TAG = 'pi pi-tag', - TAGS = 'pi pi-tags', - TELEGRAM = 'pi pi-telegram', - TH_LARGE = 'pi pi-th-large', - THUMBS_DOWN = 'pi pi-thumbs-down', - THUMBS_DOWN_FILL = 'pi pi-thumbs-down-fill', - THUMBS_UP = 'pi pi-thumbs-up', - THUMBS_UP_FILL = 'pi pi-thumbs-up-fill', - TICKET = 'pi pi-ticket', - TIMES = 'pi pi-times', - TIMES_CIRCLE = 'pi pi-times-circle', - TRASH = 'pi pi-trash', - TRUCK = 'pi pi-truck', - TWITTER = 'pi pi-twitter', - UNDO = 'pi pi-undo', - UNLOCK = 'pi pi-unlock', - UPLOAD = 'pi pi-upload', - USER = 'pi pi-user', - USER_EDIT = 'pi pi-user-edit', - USER_MINUS = 'pi pi-user-minus', - USER_PLUS = 'pi pi-user-plus', - USERS = 'pi pi-users', - VERIFIED = 'pi pi-verified', - VIDEO = 'pi pi-video', - VIMEO = 'pi pi-vimeo', - VOLUME_DOWN = 'pi pi-volume-down', - VOLUME_OFF = 'pi pi-volume-off', - VOLUME_UP = 'pi pi-volume-up', - WALLET = 'pi pi-wallet', - WHATSAPP = 'pi pi-whatsapp', - WIFI = 'pi pi-wifi', - WINDOW_MAXIMIZE = 'pi pi-window-maximize', - WINDOW_MINIMIZE = 'pi pi-window-minimize', - WRENCH = 'pi pi-wrench', - YOUTUBE = 'pi pi-youtube' +export interface PrimeIconsOptions { + readonly ALIGN_CENTER: string; + readonly ALIGN_JUSTIFY: string; + readonly ALIGN_LEFT: string; + readonly ALIGN_RIGHT: string; + readonly AMAZON: string; + readonly ANDROID: string; + readonly ANGLE_DOUBLE_DOWN: string; + readonly ANGLE_DOUBLE_LEFT: string; + readonly ANGLE_DOUBLE_RIGHT: string; + readonly ANGLE_DOUBLE_UP: string; + readonly ANGLE_DOWN: string; + readonly ANGLE_LEFT: string; + readonly ANGLE_RIGHT: string; + readonly ANGLE_UP: string; + readonly APPLE: string; + readonly ARROW_CIRCLE_DOWN: string; + readonly ARROW_CIRCLE_LEFT: string; + readonly ARROW_CIRCLE_RIGHT: string; + readonly ARROW_CIRCLE_UP: string; + readonly ARROW_DOWN: string; + readonly ARROW_DOWN_LEFT: string; + readonly ARROW_DOWN_RIGHT: string; + readonly ARROW_LEFT: string; + readonly ARROW_RIGHT: string; + readonly ARROW_RIGHT_ARROW_LEFT: string; + readonly ARROW_UP: string; + readonly ARROW_UP_LEFT: string; + readonly ARROW_UP_RIGHT: string; + readonly ARROW_H: string; + readonly ARROW_V: string; + readonly ARROW_A: string; + readonly AT: string; + readonly BACKWARD: string; + readonly BAN: string; + readonly BARS: string; + readonly BELL: string; + readonly BITCOIN: string; + readonly BOLT: string; + readonly BOOK: string; + readonly BOOKMARK: string; + readonly BOOKMARK_FILL: string; + readonly BOX: string; + readonly BRIEFCASE: string; + readonly BUILDING: string; + readonly CALENDAR: string; + readonly CALENDAR_MINUS: string; + readonly CALENDAR_PLUS: string; + readonly CALENDAR_TIMES: string; + readonly CALCULATOR: string; + readonly CAMERA: string; + readonly CAR: string; + readonly CARET_DOWN: string; + readonly CARET_LEFT: string; + readonly CARET_RIGHT: string; + readonly CARET_UP: string; + readonly CART_PLUS: string; + readonly CHART_BAR: string; + readonly CHART_LINE: string; + readonly CHART_PIE: string; + readonly CHECK: string; + readonly CHECK_CIRCLE: string; + readonly CHECK_SQUARE: string; + readonly CHEVRON_CIRCLE_DOWN: string; + readonly CHEVRON_CIRCLE_LEFT: string; + readonly CHEVRON_CIRCLE_RIGHT: string; + readonly CHEVRON_CIRCLE_UP: string; + readonly CHEVRON_DOWN: string; + readonly CHEVRON_LEFT: string; + readonly CHEVRON_RIGHT: string; + readonly CHEVRON_UP: string; + readonly CIRCLE: string; + readonly CIRCLE_FILL: string; + readonly CLOCK: string; + readonly CLONE: string; + readonly CLOUD: string; + readonly CLOUD_DOWNLOAD: string; + readonly CLOUD_UPLOAD: string; + readonly CODE: string; + readonly COG: string; + readonly COMMENT: string; + readonly COMMENTS: string; + readonly COMPASS: string; + readonly COPY: string; + readonly CREDIT_CARD: string; + readonly DATABASE: string; + readonly DELETELEFT: string; + readonly DESKTOP: string; + readonly DIRECTIONS: string; + readonly DIRECTIONS_ALT: string; + readonly DISCORD: string; + readonly DOLLAR: string; + readonly DOWNLOAD: string; + readonly EJECT: string; + readonly ELLIPSIS_H: string; + readonly ELLIPSIS_V: string; + readonly ENVELOPE: string; + readonly ERASER: string; + readonly EURO: string; + readonly EXCLAMATION_CIRCLE: string; + readonly EXCLAMATION_TRIANGLE: string; + readonly EXTERNAL_LINK: string; + readonly EYE: string; + readonly EYE_SLASH: string; + readonly FACEBOOK: string; + readonly FAST_BACKWARD: string; + readonly FAST_FORWARD: string; + readonly FILE: string; + readonly FILE_EDIT: string; + readonly FILE_EXCEL: string; + readonly FILE_EXPORT: string; + readonly FILE_IMPORT: string; + readonly FILE_PDF: string; + readonly FILE_WORD: string; + readonly FILTER: string; + readonly FILTER_FILL: string; + readonly FILTER_SLASH: string; + readonly FLAG: string; + readonly FLAG_FILL: string; + readonly FOLDER: string; + readonly FOLDER_OPEN: string; + readonly FORWARD: string; + readonly GIFT: string; + readonly GITHUB: string; + readonly GLOBE: string; + readonly GOOGLE: string; + readonly HASHTAG: string; + readonly HEART: string; + readonly HEART_FILL: string; + readonly HISTORY: string; + readonly HOURGLASS: string; + readonly HOME: string; + readonly ID_CARD: string; + readonly IMAGE: string; + readonly IMAGES: string; + readonly INBOX: string; + readonly INFO: string; + readonly INFO_CIRCLE: string; + readonly INSTAGRAM: string; + readonly KEY: string; + readonly LANGUAGE: string; + readonly LINK: string; + readonly LINKEDIN: string; + readonly LIST: string; + readonly LOCK: string; + readonly LOCK_OPEN: string; + readonly MAP: string; + readonly MAP_MARKER: string; + readonly MEGAPHONE: string; + readonly MICREPHONE: string; + readonly MICROSOFT: string; + readonly MINUS: string; + readonly MINUS_CIRCLE: string; + readonly MOBILE: string; + readonly MONEY_BILL: string; + readonly MOON: string; + readonly PALETTE: string; + readonly PAPERCLIP: string; + readonly PAUSE: string; + readonly PAYPAL: string; + readonly PENCIL: string; + readonly PERCENTAGE: string; + readonly PHONE: string; + readonly PLAY: string; + readonly PLUS: string; + readonly PLUS_CIRCLE: string; + readonly POUND: string; + readonly POWER_OFF: string; + readonly PRIME: string; + readonly PRINT: string; + readonly QRCODE: string; + readonly QUESTION: string; + readonly QUESTION_CIRCLE: string; + readonly REDDIT: string; + readonly REFRESH: string; + readonly REPLAY: string; + readonly REPLY: string; + readonly SAVE: string; + readonly SEARCH: string; + readonly SEARCH_MINUS: string; + readonly SEARCH_PLUS: string; + readonly SEND: string; + readonly SERVER: string; + readonly SHARE_ALT: string; + readonly SHIELD: string; + readonly SHOPPING_BAG: string; + readonly SHOPPING_CART: string; + readonly SIGN_IN: string; + readonly SIGN_OUT: string; + readonly SITEMAP: string; + readonly SLACK: string; + readonly SLIDERS_H: string; + readonly SLIDERS_V: string; + readonly SORT: string; + readonly SORT_ALPHA_DOWN: string; + readonly SORT_ALPHA_ALT_DOWN: string; + readonly SORT_ALPHA_UP: string; + readonly SORT_ALPHA_ALT_UP: string; + readonly SORT_ALT: string; + readonly SORT_ALT_SLASH: string; + readonly SORT_AMOUNT_DOWN: string; + readonly SORT_AMOUNT_DOWN_ALT: string; + readonly SORT_AMOUNT_UP: string; + readonly SORT_AMOUNT_UP_ALT: string; + readonly SORT_DOWN: string; + readonly SORT_NUMERIC_DOWN: string; + readonly SORT_NUMERIC_ALT_DOWN: string; + readonly SORT_NUMERIC_UP: string; + readonly SORT_NUMERIC_ALT_UP: string; + readonly SORT_UP: string; + readonly SPINNER: string; + readonly STAR: string; + readonly STAR_FILL: string; + readonly STEP_BACKWARD: string; + readonly STEP_BACKWARD_ALT: string; + readonly STEP_FORWARD: string; + readonly STEP_FORWARD_ALT: string; + readonly STOP: string; + readonly STOPWATCH: string; + readonly STOP_CIRCLE: string; + readonly SUN: string; + readonly SYNC: string; + readonly TABLE: string; + readonly TABLET: string; + readonly TAG: string; + readonly TAGS: string; + readonly TELEGRAM: string; + readonly TH_LARGE: string; + readonly THUMBS_DOWN: string; + readonly THUMBS_DOWN_FILL: string; + readonly THUMBS_UP: string; + readonly THUMBS_UP_FILL: string; + readonly TICKET: string; + readonly TIMES: string; + readonly TIMES_CIRCLE: string; + readonly TRASH: string; + readonly TRUCK: string; + readonly TWITTER: string; + readonly UNDO: string; + readonly UNLOCK: string; + readonly UPLOAD: string; + readonly USER: string; + readonly USER_EDIT: string; + readonly USER_MINUS: string; + readonly USER_PLUS: string; + readonly USERS: string; + readonly VERIFIED: string; + readonly VIDEO: string; + readonly VIMEO: string; + readonly VOLUME_DOWN: string; + readonly VOLUME_OFF: string; + readonly VOLUME_UP: string; + readonly WALLET: string; + readonly WHATSAPP: string; + readonly WIFI: string; + readonly WINDOW_MAXIMIZE: string; + readonly WINDOW_MINIMIZE: string; + readonly WRENCH: string; + readonly YOUTUBE: string; } +export declare const PrimeIcons: PrimeIconsOptions; + // Severity -export const enum ToastSeverity { - SUCCESS = 'success', - INFO = 'info', - WARN = 'warn', - ERROR = 'error' +export interface ToastSeverityOptions { + readonly SUCCESS: string; + readonly INFO: string; + readonly WARN: string; + readonly ERROR: string; } + +export declare const ToastSeverity: ToastSeverityOptions; diff --git a/components/lib/badge/Badge.d.ts b/components/lib/badge/Badge.d.ts index b7a06b0c5..044eea063 100644 --- a/components/lib/badge/Badge.d.ts +++ b/components/lib/badge/Badge.d.ts @@ -21,7 +21,7 @@ export interface BadgeProps { /** * Severity type of the badge. */ - severity?: 'info' | 'success' | 'warning' | 'danger' | null | undefined; + severity?: 'info' | 'success' | 'warning' | 'danger' | string | null | undefined; /** * Size of the badge, valid options are 'large' and 'xlarge'. */ diff --git a/components/lib/button/Button.d.ts b/components/lib/button/Button.d.ts index e4c8e8de4..a66e2a8d8 100755 --- a/components/lib/button/Button.d.ts +++ b/components/lib/button/Button.d.ts @@ -65,7 +65,7 @@ export interface ButtonProps extends ButtonHTMLAttributes { /** * Defines the style of the button. */ - severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | undefined; + severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | string | undefined; /** * Add a shadow to indicate elevation. * @defaultValue false diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 2dd9f52f7..412c7e32d 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -36,7 +36,7 @@ export interface DataTableFilterMetaData { /** * Filter match mode */ - matchMode: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined; + matchMode: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | string | undefined; } /** @@ -138,7 +138,7 @@ export interface DataTableSortEvent { /** * Match modes per field */ - filterMatchModes: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined; + filterMatchModes: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | string | undefined; } /** diff --git a/components/lib/dropdown/Dropdown.d.ts b/components/lib/dropdown/Dropdown.d.ts index 28637f493..5821dfd28 100755 --- a/components/lib/dropdown/Dropdown.d.ts +++ b/components/lib/dropdown/Dropdown.d.ts @@ -95,7 +95,7 @@ export interface DropdownProps { * Defines the filtering algorithm to use when searching the options. * @defaultValue contains */ - filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | undefined; + filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | string | undefined; /** * Fields used when filtering the options, defaults to optionLabel. */ diff --git a/components/lib/inlinemessage/InlineMessage.d.ts b/components/lib/inlinemessage/InlineMessage.d.ts index b4637494f..aa597d68b 100755 --- a/components/lib/inlinemessage/InlineMessage.d.ts +++ b/components/lib/inlinemessage/InlineMessage.d.ts @@ -18,7 +18,7 @@ export interface InlineMessageProps { * Severity level of the message. * @defaultValue info */ - severity?: 'success' | 'info' | 'warn' | 'error' | undefined; + severity?: 'success' | 'info' | 'warn' | 'error' | string | undefined; } /** * Defines valid slots in InlineMessage slots. diff --git a/components/lib/listbox/Listbox.d.ts b/components/lib/listbox/Listbox.d.ts index 66dd6bd52..343683ebd 100755 --- a/components/lib/listbox/Listbox.d.ts +++ b/components/lib/listbox/Listbox.d.ts @@ -114,7 +114,7 @@ export interface ListboxProps { * Defines the filtering algorithm to use when searching the options. * @defaultValue contains */ - filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | undefined; + filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | string | undefined; /** * Fields used when filtering the options, defaults to optionLabel. */ diff --git a/components/lib/message/Message.d.ts b/components/lib/message/Message.d.ts index 0c278e02e..74fd3d089 100755 --- a/components/lib/message/Message.d.ts +++ b/components/lib/message/Message.d.ts @@ -18,7 +18,7 @@ export interface MessageProps { * Severity level of the message. * @defaultValue info */ - severity?: 'success' | 'info' | 'warn' | 'error' | undefined; + severity?: 'success' | 'info' | 'warn' | 'error' | string | undefined; /** * Whether the message can be closed manually using the close icon. * @defaultValue true diff --git a/components/lib/multiselect/MultiSelect.d.ts b/components/lib/multiselect/MultiSelect.d.ts index 3c7ea1309..befe1b2c0 100755 --- a/components/lib/multiselect/MultiSelect.d.ts +++ b/components/lib/multiselect/MultiSelect.d.ts @@ -151,7 +151,7 @@ export interface MultiSelectProps { * Defines the filtering algorithm to use when searching the options. * @defaultValue contains */ - filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | undefined; + filterMatchMode?: 'contains' | 'startsWith' | 'endsWith' | string | undefined; /** * Fields used when filtering the options, defaults to optionLabel. */ diff --git a/components/lib/splitbutton/SplitButton.d.ts b/components/lib/splitbutton/SplitButton.d.ts index ccb4a97f3..d78ed3a86 100755 --- a/components/lib/splitbutton/SplitButton.d.ts +++ b/components/lib/splitbutton/SplitButton.d.ts @@ -71,7 +71,7 @@ export interface SplitButtonProps { /** * Defines the style of the button. */ - severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | undefined; + severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | string | undefined; /** * Add a shadow to indicate elevation. * @defaultValue false diff --git a/components/lib/tag/Tag.d.ts b/components/lib/tag/Tag.d.ts index 1c38bd155..161f1c033 100644 --- a/components/lib/tag/Tag.d.ts +++ b/components/lib/tag/Tag.d.ts @@ -21,7 +21,7 @@ export interface TagProps { /** * Severity type of the tag. */ - severity?: 'success' | 'info' | 'warning' | 'danger' | undefined; + severity?: 'success' | 'info' | 'warning' | 'danger' | string | undefined; /** * Whether the corners of the tag are rounded. * @defaultValue false diff --git a/components/lib/toast/Toast.d.ts b/components/lib/toast/Toast.d.ts index 722a1afe7..66d5eaa8f 100755 --- a/components/lib/toast/Toast.d.ts +++ b/components/lib/toast/Toast.d.ts @@ -18,7 +18,7 @@ export interface ToastMessageOptions { * Severity level of the message. * @defaultValue info */ - severity?: 'success' | 'info' | 'warn' | 'error' | undefined; + severity?: 'success' | 'info' | 'warn' | 'error' | string | undefined; /** * Summary content of the message. */ diff --git a/components/lib/treetable/TreeTable.d.ts b/components/lib/treetable/TreeTable.d.ts index 51872f952..849f94b61 100755 --- a/components/lib/treetable/TreeTable.d.ts +++ b/components/lib/treetable/TreeTable.d.ts @@ -22,7 +22,7 @@ export interface TreeTableFilterMetaData { /** * Filter match mode */ - matchMode: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined; + matchMode: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | string | undefined; } /** @@ -88,7 +88,7 @@ export interface TreeTableSortEvent { /** * Match modes per field */ - filterMatchModes: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | undefined; + filterMatchModes: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | string | undefined; } /**