{"version":3,"file":"config-provider-props.mjs","names":[],"sources":["../../../../../../packages/components/config-provider/src/config-provider-props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@pit-element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@pit-element-plus/hooks'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { Language } from '@pit-element-plus/locale'\nimport {\n  ButtonConfigContext,\n  buttonTypes,\n} from '@pit-element-plus/components/button'\nimport type { CardConfigContext } from '@pit-element-plus/components/card'\nimport type { DialogConfigContext } from '@pit-element-plus/components/dialog'\nimport type { MessageConfigContext } from '@pit-element-plus/components/message'\nimport type { LinkConfigContext } from '@pit-element-plus/components/link'\nimport type { TableConfigContext } from '@pit-element-plus/components/table'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type ExperimentalFeatures = {\n  // TO BE Defined\n}\n\nexport const buttonAreaTypes = ['default', 'search', ''] as const\n\nexport const configProviderProps = buildProps({\n  /**\n   * @description Controlling if the users want a11y features\n   */\n  a11y: {\n    type: Boolean,\n    default: true,\n  },\n  /**\n   * @description Locale Object\n   */\n  locale: {\n    type: definePropType<Language>(Object),\n  },\n  /**\n   * @description global component size\n   */\n  size: useSizeProp,\n  /**\n   * @description button related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#button-attribute)\n   */\n  button: {\n    type: definePropType<ButtonConfigContext>(Object),\n  },\n  /**\n   * @description card related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#card-attribute)\n   */\n  card: {\n    type: definePropType<CardConfigContext>(Object),\n  },\n  /**\n   * @description dialog related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#dialog-attribute)\n   */\n  dialog: {\n    type: definePropType<DialogConfigContext>(Object),\n  },\n  /**\n   * @description link related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#link-attribute)\n   */\n  link: {\n    type: definePropType<LinkConfigContext>(Object),\n  },\n  /**\n   * @description features at experimental stage to be added, all features are default to be set to false, [see the following table](https://element-plus.org/en-US/component/config-provider.html#experimental-features)                                                                            | ^[object]\n   */\n  experimentalFeatures: {\n    type: definePropType<ExperimentalFeatures>(Object),\n  },\n  /**\n   * @description Controls if we should handle keyboard navigation\n   */\n  keyboardNavigation: {\n    type: Boolean,\n    default: true,\n  },\n  /**\n   * @description message related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#message-attribute)\n   */\n  message: {\n    type: definePropType<MessageConfigContext>(Object),\n  },\n  /**\n   * @description global Initial zIndex\n   */\n  zIndex: Number,\n  /**\n   * @description global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | ^[string]\n   */\n  namespace: {\n    type: String,\n    default: 'el',\n  },\n  /**\n   * @description table related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#table-attribute)\n   */\n  table: {\n    type: definePropType<TableConfigContext>(Object),\n  },\n  pageSize: {\n    type: Number,\n    default: 20,\n  },\n  pageNum: {\n    type: Number,\n    default: 1,\n  },\n  tableHeadBackground: {\n    type: String,\n    default: '#F5F7FA',\n  },\n  isHiddenAddBtn: {\n    type: String,\n    default: 'show',\n  },\n  isHiddenEditBtn: {\n    type: String,\n    default: 'show',\n  },\n  isHiddenDelBtn: {\n    type: String,\n    default: 'show',\n  },\n  isHiddenBatchBtn: {\n    type: String,\n    default: 'show',\n  },\n  paginationPageSize: {\n    type: String,\n    default: 'pageSize',\n  },\n  paginationPageNum: {\n    type: String,\n    default: 'currentPage',\n  },\n  paginationTotal: {\n    type: String,\n    default: 'total',\n  },\n  dialogTop: {\n    type: String,\n    default: '20px',\n  },\n  buttonArea: {\n    type: String,\n    values: buttonAreaTypes,\n    default: 'default',\n  },\n  treeItemSize: {\n    type: Number,\n    default: 32,\n  },\n  searchType: {\n    type: String,\n    values: buttonTypes,\n    default: 'colour-10',\n  },\n  clearType: {\n    type: String,\n    values: buttonTypes,\n    default: 'default',\n  },\n  addType: {\n    type: String,\n    values: buttonTypes,\n    default: 'colour-7',\n  },\n  updateType: {\n    type: String,\n    values: buttonTypes,\n    default: 'colour-10',\n  },\n  deleteType: {\n    type: String,\n    values: buttonTypes,\n    default: 'colour-8',\n  },\n  batchDelType: {\n    type: String,\n    values: buttonTypes,\n    default: 'colour-8',\n  },\n  expandType: {\n    type: String,\n    values: buttonTypes,\n    default: 'default',\n  },\n  saveType: {\n    type: String,\n    values: buttonTypes,\n    default: 'colour-10',\n  },\n  cancelType: {\n    type: String,\n    values: buttonTypes,\n    default: 'default',\n  },\n  isTreeShowAll: {\n    type: Boolean,\n    default: true,\n  },\n  messageType: {\n    type: String,\n    default: 'show',\n  },\n  columns: {\n    type: Array,\n    default: () => [],\n  },\n  forceOnSelectAll: {\n    type: String,\n    default: 'show',\n  },\n  isHiddenDraftBtn: {\n    type: String,\n    default: 'show',\n  },\n  isHiddenInitiateProcessBtn: {\n    type: String,\n    default: 'show',\n  },\n  draftBtnType: {\n    type: String,\n    default: 'colour-10',\n  },\n  initiateProcessBtnType: {\n    type: String,\n    default: 'colour-10',\n  },\n  globalDoubleClickDetails: {\n    type: String,\n    default: 'show',\n  },\n  flowStatusData: {\n    type: Array,\n    default: () => [],\n  },\n  defaultFlowStatus: {\n    type: String,\n    default: '',\n  },\n  flowStatusWidth: {\n    type: String,\n    default: '',\n  },\n  customSetUpRender: {\n    type: Function,\n  },\n  customSetUpCallback: {\n    type: Function,\n  },\n  ...useEmptyValuesProps,\n} as const)\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\nexport type ConfigProviderPropsPublic = ExtractPublicPropTypes<\n  typeof configProviderProps\n>\n"],"mappings":";;;;;;AAoBA,MAAa,kBAAkB;CAAC;CAAW;CAAU;CAAG;AAExD,MAAa,sBAAsB,WAAW;CAI5C,MAAM;EACJ,MAAM;EACN,SAAS;EACV;CAID,QAAQ,EACN,MAAM,eAAyB,OAAO,EACvC;CAID,MAAM;CAIN,QAAQ,EACN,MAAM,eAAoC,OAAO,EAClD;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M;EACN,QAAQ;EACR,SAAS;EACV;CACD,YAAY;EACV,MAAM;EACN,QAAQ;EACR,SAAS;EACV;CACD,eAAe;EACb,MAAM;EACN,SAAS;EACV;CACD,aAAa;EACX,MAAM;EACN,SAAS;EACV;CACD,SAAS;EACP,MAAM;EACN,eAAe,EAAE;EAClB;CACD,kBAAkB;EAChB,MAAM;EACN,SAAS;EACV;CACD,kBAAkB;EAChB,MAAM;EACN,SAAS;EACV;CACD,4BAA4B;EAC1B,MAAM;EACN,SAAS;EACV;CACD,cAAc;EACZ,MAAM;EACN,SAAS;EACV;CACD,wBAAwB;EACtB,MAAM;EACN,SAAS;EACV;CACD,0BAA0B;EACxB,MAAM;EACN,SAAS;EACV;CACD,gBAAgB;EACd,MAAM;EACN,eAAe,EAAE;EAClB;CACD,mBAAmB;EACjB,MAAM;EACN,SAAS;EACV;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACD,mBAAmB,EACjB,MAAM,UACP;CACD,qBAAqB,EACnB,MAAM,UACP;CACD,GAAG;CACJ,CAAU"}