@salesforce-ux/design-system
Version:
Salesforce Lightning Design System
1 lines • 64 kB
JavaScript
var SLDS;!function(){"use strict";var e,t,l,a={1594:function(e){e.exports=React},1981:function(e){e.exports=JSBeautify},5206:function(e){e.exports=ReactDOM},7247:function(e,t,l){l.r(t),l.d(t,{getContents:function(){return Be},getElement:function(){return Ie}});var a=l(1594),n=l.n(a),i=l(5671),r=l(6547),o=(l(3212),l(5619)),s=l(806),c=l(942),d=l.n(c),m=l(7412),u=l.n(m),b=l(6955),p=l(5006),E=l(3589),h=l(885),y=l(538);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},v.apply(null,arguments)}function g(e,t,l){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,"string");if("object"!=f(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var x=n().createContext({isActionableMode:!1}),w="Cell content that is very long.\nIt also has a line break.\nIt has more than one line break",N=function(e){return n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Opportunity Name"})),n().createElement(k,null,n().createElement(L,{columnName:"Account Name"})),n().createElement(k,null,n().createElement(L,{columnName:"Close Date"})),n().createElement(k,null,n().createElement(L,{columnName:"Stage"})),n().createElement(k,null,n().createElement(L,{columnName:"Confidence"})),n().createElement(k,null,n().createElement(L,{columnName:"Amount"})),n().createElement(k,null,n().createElement(L,{columnName:"Contact"})))},C=function(e){return n().createElement(D,null,n().createElement(F,{"data-label":"Opportunity Name"},n().createElement(W,{cellText:e.title,cellLink:!0})),n().createElement(H,{"data-label":"Account Name",type:"base"},n().createElement(W,{cellText:"Cloudhub"})),n().createElement(H,{"data-label":"Close Date",type:"base"},n().createElement(W,{cellText:"4/14/2015"})),n().createElement(H,{"data-label":"Prospecting",type:"base"},n().createElement(W,{cellText:"Prospecting"})),n().createElement(H,{"data-label":"Confidence",type:"base"},n().createElement(W,{cellText:"20%"})),n().createElement(H,{"data-label":"Amount",type:"base"},n().createElement(W,{cellText:"$25k"})),n().createElement(H,{"data-label":"Contact",type:"base"},n().createElement(W,{cellLink:!0,cellText:"jrogers@cloudhub.com"})))};C.propTypes={title:u().string};var S=function(e){return n().createElement("div",{className:"slds-table_edit_container slds-is-relative"},e.children)};S.propTypes={children:u().node};var T=function(e){var t=d()("slds-table",{"slds-table_cell-buffer":e.hasCellBuffer,"slds-table_header-hidden":e.hasHiddenHeader,"slds-no-row-hover":e.hasNoRowHover,"slds-no-cell-focus":e.hasNoCellFocus,"slds-table_bordered":e.isBordered,"slds-table_col-bordered":e.isColBordered,"slds-table_edit":e.isEditable,"slds-table_fixed-layout":e.isFixedLayout,"slds-max-medium-table_stacked-horizontal":e.isResponsive,"slds-max-medium-table_stacked":e.isResponsiveStacked,"slds-table_resizable-cols":e.isResizable,"slds-table_striped":e.isStriped,"slds-tree slds-table_tree":"treegrid"===e.type,"slds-table_header-fixed":e.hasFixedHeader});return n().createElement("table",v({"aria-multiselectable":"multiple"===e.selectionType?"true":null,className:t,role:function(){var t=null;switch(e.type){case"advanced":t="grid";break;case"treegrid":t="treegrid"}return t}(),style:e.style},e.ariaLabelledBy&&g({},"aria-labelledby",e.ariaLabelledBy),e.ariaLabel&&g({},"aria-label",e.ariaLabel)),e.children)};T.displayName="Table",T.propTypes={ariaLabel:u().string,ariaLabelledBy:u().string,children:u().node,hasCellBuffer:u().bool,hasHiddenHeader:u().bool,hasNoCellFocus:u().bool,hasNoRowHover:u().bool,isBordered:u().bool,isColBordered:u().bool,isEditable:u().bool,isFixedLayout:u().bool,isResizable:u().bool,isResponsive:u().bool,isResponsiveStacked:u().bool,isStriped:u().bool,selectionType:u().oneOf(["multiple","single"]),style:u().object,type:u().oneOf(["advanced","base","treegrid"]).isRequired,hasFixedHeader:u().bool};var A=function(e){return n().createElement("thead",{className:e.isHidden?"slds-assistive-text":null},e.children)};A.displayName="THead",A.propTypes={children:u().node,isHidden:u().bool};var R=function(e){return n().createElement("tr",{className:"slds-line-height_reset"},e.children)};R.displayName="THeadTr",R.propTypes={children:u().node};var k=function(e){var t,l=(0,a.useContext)(x).isActionableMode,i=d()({"slds-has-button-menu":e.hasMenu,"slds-has-focus":e.hasFocus,"slds-is-resizable":e.isResizable,"slds-text-align_right":e.isRightAligned,"slds-is-sortable":e.isSortable,"slds-is-sorted":"ascending"===e.sortDirection||"descending"===e.sortDirection,"slds-is-sorted_asc":"ascending"===e.sortDirection,"slds-is-sorted_desc":"descending"===e.sortDirection,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":l});return n().createElement("th",{"aria-sort":(t=null,e.isSortable&&(t=e.sortDirection||"none"),t),className:i,scope:!e.isDataTable&&"col",role:e.isDataTable&&"cell",style:e.style},e.isDataTable,e.children)};k.displayName="ColumnTh",k.propTypes={"aria-label":u().string,children:u().node,hasFocus:u().bool,hasMenu:u().bool,isResizable:u().bool,isRightAligned:u().bool,isSortable:u().bool,sortDirection:u().oneOf(["ascending","descending","none"]),style:u().object,hasWrap:u().bool,isDataTable:u().bool};var L=function(e){return n().createElement("div",{className:d()("slds-truncate",{"slds-assistive-text":e.isAssistiveText,"slds-cell-fixed":e.isFixedCell}),id:e.id,title:e.columnName},e.columnName)};L.displayName="ColumnHeader",L.propTypes={columnName:u().string.isRequired,id:u().string,isAssistiveText:u().bool,isFixedCell:u().bool},L.defaultProps={columnName:"Column Name",isDataTable:u().bool};var _=function(e){var t=s.Ay.uniqueId("cell-resize-handle-");return n().createElement("div",{className:"slds-resizable"},n().createElement("input",{"aria-label":e.label,className:"slds-resizable__input slds-assistive-text",id:t,max:"1000",min:"20",tabIndex:e.tabIndex,type:"range"}),n().createElement("span",{className:"slds-resizable__handle"},n().createElement("span",{className:"slds-resizable__divider"})))};_.displayName="ResizeControl",_.propTypes={label:u().string.isRequired,tabIndex:u().oneOf(["0","-1"])};var O=function(e){var t=(0,a.useContext)(x).isActionableMode,l=t?"0":"-1",i=function(){return n().createElement("div",{className:"slds-grid slds-grid_vertical-align-center slds-has-flexi-truncate"},e.columnHeaderIcons?function(){var t=e.columnHeaderIcons.filter(function(t){return t.column===e.columnName.toLowerCase()});if(t.length)return t[0].icon}():null,n().createElement("span",{className:"slds-truncate",title:e.columnName},e.columnName),e.isSortable&&n().createElement(y.eX,{assistiveText:!1,className:"slds-icon-text-default slds-is-sortable__icon ",symbol:"arrowdown",title:!1}))};return n().createElement(n().Fragment,null,e.isSortable?n().createElement("a",{className:"slds-th__action slds-text-link_reset",href:"#",role:"button",tabIndex:l,onClick:function(e){return e.preventDefault()}},n().createElement("span",{className:"slds-assistive-text"},"Sort by: "),i()):n().createElement("div",{className:"slds-th__action"},i()),e.sortDirection&&n().createElement("span",{className:"slds-assistive-text","aria-live":"polite","aria-atomic":"true"},"Sorted ",e.sortDirection),e.hasMenu&&n().createElement(b.A,{"aria-haspopup":"true",assistiveText:"Show ".concat(e.columnName," column actions"),className:"slds-th__action-button slds-button_icon-x-small",iconClassName:"slds-button__icon_hint slds-button__icon_small",symbol:"chevrondown",tabIndex:t?"0":"-1",title:"Show ".concat(e.columnName," column actions")}),e.isResizable&&n().createElement(_,{label:e.columnName+" column width"||0,tabIndex:l}))};O.displayName="InteractiveColumnHeader",O.propTypes={columnName:u().string.isRequired,columnHeaderIcons:u().array,hasMenu:u().bool,isResizable:u().bool,isSortable:u().bool,sortDirection:u().oneOf(["ascending","descending"])},O.defaultProps={isResizable:!0,isSortable:!0};var I=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement("div",{className:"slds-th__action slds-th__action_form"},n().createElement(E.Sc,{tabIndex:t?"0":"-1",labelId:"check-select-all-label",label:"Select All",hideLabel:!0,checked:!!e.checked||null,groupId:"column-group-header",isDataTable:!0})))};I.displayName="SelectAllColumnHeader",I.propTypes={checked:u().bool};var B=function(e){var t=e.hasErrorColumn?"2rem":"3.25rem",l=e.mainColumnWidth||null;return n().createElement(A,{isHidden:e.isHidden},n().createElement(R,null,e.hasErrorColumn?n().createElement(k,{style:{width:"3.75rem"}},n().createElement(L,{columnName:"Errors",isAssistiveText:!0})):null,!e.hasNoRowSelection&&n().createElement(k,{isDataTable:!e.hasSingleRowSelect||!e.isHidden,isRightAligned:!e.hasErrorColumn||null,style:{width:t}},e.hasSingleRowSelect||e.isHidden?n().createElement(L,{columnName:"Choose a row to select",id:"column-group-header",isAssistiveText:!0}):n().createElement(I,{checked:e.selectAll})),e.columns.map(function(t,a){return n().createElement(k,{key:a,"aria-label":t,hasFocus:0===a?e.hasFocus:null,hasMenu:e.hasMenus,isResizable:e.isResizable&&!e.isHidden,isSortable:e.isSortable&&!e.isHidden,sortDirection:0===a?e.sortDirection:null,style:{width:0===a&&e.singleColumnWidth?e.singleColumnWidth:l}},n().createElement(O,{columnName:t,columnHeaderIcons:e.columnHeaderIcons,hasMenu:e.hasMenus,isResizable:e.isResizable&&!e.isHidden,isSortable:e.isSortable&&!e.isHidden,sortDirection:0===a?e.sortDirection:null}))}),e.hasRowLevelActions&&n().createElement(k,{style:{width:"3.25rem"}},n().createElement(L,{columnName:"Actions",isAssistiveText:!0}))))};B.displayName="AdvancedDataTableHead",B.propTypes={columnHeaderIcons:u().array,columns:u().array.isRequired,hasErrorColumn:u().bool,hasFocus:u().bool,hasMenus:u().bool,hasNoRowSelection:u().bool,hasRowLevelActions:u().bool,hasSingleRowSelect:u().bool,isHidden:u().bool,isResizable:u().bool,isSortable:u().bool,mainColumnWidth:u().string,selectAll:u().bool,singleColumnWidth:u().string,sortDirection:u().oneOf(["ascending","descending","none"])},B.defaultProps={hasRowLevelActions:!0,isResizable:!0,isSortable:!0};var q=function(e){return n().createElement("tbody",null,e.children)};q.displayName="TBody",q.propTypes={children:u().node};var D=function(e){return n().createElement("tr",{"aria-expanded":e.isExpanded,"aria-level":e.level,"aria-posinset":e.positionWithinLevel,"aria-selected":e.isSelected,"aria-setsize":e.numberOfItemsAtLevel,className:d()("slds-hint-parent",{"slds-align-top":e.isTopAligned,"slds-is-selected":e.isSelected}),tabIndex:e.tabIndex},e.children)};D.displayName="TBodyTr",D.propTypes={children:u().node,isExpanded:u().bool,isSelected:u().bool,isTopAligned:u().bool,level:u().string,positionWithinLevel:u().string,numberOfItemsAtLevel:u().string,tabIndex:u().oneOf(["0","-1"])};var H=function(e){var t=(0,a.useContext)(x).isActionableMode,l=d()({"slds-has-focus":e.hasFocus,"slds-cell-edit":e.isEditable,"slds-is-edited":e.isEdited,"slds-cell-error":e.isErrorCell,"slds-text-align_right":e.isRightAligned,"slds-cell-shrink":e.isShrunken,"slds-has-error":e.hasError,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":t});return n().createElement("td",{"aria-readonly":e.isLocked,"aria-selected":e.isEditing,"aria-describedby":function(){if(e.isEdited)return"unsaved-cell-notification"}()||null,className:l||null,"data-label":e["data-label"],role:function(){var t=null;switch(e.type){case"advanced":case"treegrid":t="gridcell"}return t}(),style:e.style,tabIndex:e.tabIndex},e.children)};H.displayName="Td",H.propTypes={children:u().node,"data-label":u().string,hasError:u().bool,hasFocus:u().bool,isEditable:u().bool,isEdited:u().bool,isEditing:u().bool,isErrorCell:u().bool,isLocked:u().bool,isRightAligned:u().bool,isShrunken:u().bool,style:u().object,tabIndex:u().oneOf(["0","-1"]),type:u().oneOf(["advanced","base","treegrid"]).isRequired,hasWrap:u().bool};var F=function(e){var t=(0,a.useContext)(x).isActionableMode,l=d()({"slds-cell-edit":e.isEditable,"slds-has-focus":e.hasFocus,"slds-tree__item":"treegrid"===e.type,"slds-is-hovered":e.isItemHovered,"slds-cell-wrap":e.hasWrap,"slds-cell_action-mode":t});return n().createElement("th",{className:l||null,"data-label":e["data-label"],scope:"row",tabIndex:e.tabIndex},e.children)};F.displayName="RowTh",F.propTypes={children:u().node,"data-label":u().string,hasFocus:u().bool,isEditable:u().bool,tabIndex:u().oneOf(["0","-1"]),type:u().oneOf(["base","advanced","treegrid"]),isItemHovered:u().bool,hasWrap:u().bool};var P=function(e){return n().createElement(n().Fragment,null,e.hasSingleRowSelect?n().createElement(h.sx,{checked:e.checked,groupId:"column-group-header",hideLabel:!0,id:"radio-0".concat(e.index),label:"Select item ".concat(e.index),labelId:"radio-button-label-0".concat(e.index),tabIndex:e.inputTabIndex,isDataTable:!0}):n().createElement(E.Sc,{checked:e.checked,groupId:"column-group-header",hideLabel:!0,id:"checkbox-0".concat(e.index),label:"Select item ".concat(e.index),labelId:"check-button-label-0".concat(e.index),tabIndex:e.inputTabIndex,isDataTable:!0}))};P.displayName="SelectRowCell",P.propTypes={checked:u().bool,hasSingleRowSelect:u().bool,index:u().number.isRequired,inputTabIndex:u().oneOf(["0","-1"])};var z=function(e){var t=e.rowName,l=(0,a.useContext)(x).isActionableMode;return n().createElement(b.A,{assistiveText:"More actions for ".concat(t),"aria-haspopup":"true",className:"slds-button_icon-border-filled slds-button_icon-x-small",iconClassName:"slds-button__icon_hint slds-button__icon_small",symbol:"down",tabIndex:l?"0":"-1",title:"More actions for ".concat(t)})};z.displayName="RowActionsCell",z.propTypes={rowName:u().string.isRequired};var M=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement(b.A,{"aria-hidden":e.hasError?null:"true",assistiveText:"Item ".concat(e.index," has errors"),className:d()("slds-button_icon-error slds-m-horizontal_xxx-small",{"slds-hidden":!e.hasError}),id:"error-0"+e.index,symbol:"error",tabIndex:t?"0":"-1",title:"Item ".concat(e.index," has errors")}),n().createElement("span",{className:"slds-row-number slds-text-body_small slds-text-color_weak"}))};M.displayName="ErrorCell",M.propTypes={hasError:u().bool,index:u().number.isRequired};var W=function(e){var t=e.hasWrap,l=e.cellText,i=e.cellLink,r=(0,a.useContext)(x).isActionableMode;return n().createElement("div",{className:d()(t?"slds-line-clamp":"slds-truncate"),title:l},i?n().createElement("a",{href:"#",tabIndex:r?"0":"-1",onClick:function(e){e.preventDefault()}},l):l)};W.displayName="ReadOnlyCell",W.propTypes={cellLink:u().bool,cellText:u().string.isRequired,hasWrap:u().bool};var j=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(n().Fragment,null,n().createElement("span",{className:"slds-grid slds-grid_align-spread"},e.cellLink?n().createElement("a",{className:"slds-truncate",href:"#",id:"link-0".concat(e.index),tabIndex:t?"0":"-1",title:e.cellText,onClick:function(e){return e.preventDefault()}},e.cellText):n().createElement("span",{className:"slds-truncate",title:e.cellText},e.cellText),n().createElement(b.A,{assistiveText:e.buttonText,className:"slds-cell-edit__button slds-m-left_x-small",disabled:e.isLocked,iconClassName:d()("slds-button__icon_hint",{"slds-button__icon_edit":!e.isLocked,"slds-button__icon_lock slds-button__icon_small":e.isLocked}),symbol:e.isLocked?"lock":"edit",tabIndex:t?"0":"-1",title:e.buttonText})),e.showEdit&&n().createElement($,{isRequired:e.isRequired,hasError:e.hasError}),e.isEdited&&n().createElement("span",{id:"unsaved-cell-notification",class:"slds-hide"},"Unsaved"))};j.displayName="EditableCell",j.propTypes={buttonText:u().string.isRequired,cellLink:u().bool,cellText:u().string.isRequired,hasError:(0,s.VY)("showEdit",u().bool),index:u().number,isLocked:u().bool,isRequired:(0,s.VY)("showEdit",u().bool),showEdit:u().bool};var $=function(e){return n().createElement(p.AM,{className:"slds-popover slds-popover_edit",style:{position:"absolute",top:"0",left:"0.0625rem"}},n().createElement("div",{className:d()("slds-form-element slds-grid slds-wrap",{"slds-has-error":e.hasError})},n().createElement("label",{className:"slds-form-element__label slds-form-element__label_edit slds-no-flex",htmlFor:"company-01"},e.isRequired?n().createElement("abbr",{className:"slds-required",title:"required","aria-hidden":"true"},"*"):null,n().createElement("span",{className:"slds-assistive-text"},"Company")),n().createElement("div",{className:"slds-form-element__control slds-grow"},n().createElement("input",{"aria-describedby":e.hasError?"error-message-01":null,className:"slds-input",defaultValue:"Acme Enterprises",id:"company-01",required:e.isRequired,type:"text"})),e.hasError?n().createElement("div",{id:"error-message-01",className:"slds-form-element__help"},"This field is required"):null))};$.displayName="EditPopover",$.propTypes={hasError:u().bool,isRequired:u().bool};var X=[{id:"default",label:"Default",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example default base table of Opportunities"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))}],V=[{id:"data-table-striped-rows",label:"With striped rows",element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with striped rows"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"data-table-no-hover",label:"With no row hovers",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,hasNoRowHover:!0,type:"base",ariaLabel:"Example table of Opportunities with no row hovers"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))},{id:"data-table-vertical-borders",label:"With vertical borders",element:n().createElement(T,{isBordered:!0,isColBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with vertical borders"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"})))},{id:"single-column",label:"Single Column",element:n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with a single column"},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Opportunity Name"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(H,{"data-label":"Opportunity Name",type:"base"},n().createElement(W,{cellLink:!0,cellText:"Cloudhub"}))),n().createElement(D,null,n().createElement(H,{"data-label":"Opportunity Name",type:"base"},n().createElement(W,{cellLink:!0,cellText:"Cloudhub + Anypoint Connectors"})))))},{id:"no-borders",label:"No borders",element:n().createElement(T,{isStriped:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example table of Opportunities with no borders"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"headless",label:"Headless",element:n().createElement(T,{hasHiddenHeader:!0,isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabel:"Example headless table of Opportunities"},n().createElement(A,{isHidden:!0},n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"headless-no-borders",label:"Headless with no borders",element:n().createElement(T,{hasHiddenHeader:!0,hasCellBuffer:!0,type:"base",ariaLabel:" Example headless table of Opportunities with no borders "},n().createElement(A,{isHidden:!0},n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}),n().createElement(C,{title:"Cloudhub"})))},{id:"cell-content-truncated",label:"Cell content truncated",demoStyles:"max-width: 600px;",storybookStyles:!0,element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,isFixedLayout:!0,type:"base",ariaLabel:" Example headless table of Opportunities with cell content truncated "},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})),n().createElement(k,null,n().createElement(L,{columnName:"Truncated, no wrap"})),n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(F,{"data-label":"Typical Column Header"},n().createElement(W,{cellText:"Typical cell content"})),n().createElement(H,{"data-label":"Truncated, no wrap",type:"base",hasWrap:!0},n().createElement(W,{cellText:w})),n().createElement(H,{"data-label":"Typical Column Header",type:"base"},n().createElement(W,{cellText:"Typical cell content"})))))},{id:"cell-content-wrapped",label:"Cell content wrapped",demoStyles:"max-width: 600px;",storybookStyles:!0,element:n().createElement(T,{isBordered:!0,isStriped:!0,hasCellBuffer:!0,isFixedLayout:!0,type:"base",ariaLabel:" Example headless table of Opportunities with cell content wrapped "},n().createElement(A,null,n().createElement(R,null,n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})),n().createElement(k,null,n().createElement(L,{columnName:"Wrapped, line clamped"})),n().createElement(k,null,n().createElement(L,{columnName:"Typical Column Header"})))),n().createElement(q,null,n().createElement(D,null,n().createElement(F,{"data-label":"Typical Column Header"},n().createElement(W,{cellText:"Typical cell content"})),n().createElement(H,{"data-label":"Wrapped, line clamped",type:"base",hasWrap:!0},n().createElement(W,{cellText:w,hasWrap:!0})),n().createElement(H,{"data-label":"Typical Column Header",type:"base"},n().createElement(W,{cellText:"Typical cell content"})))))},{id:"data-table-aria-labelledby",label:"Using aria-labelledby instead of aria-label",element:n().createElement(n().Fragment,null,n().createElement("h2",{id:"element-with-table-label",className:"slds-text-heading_medium slds-m-bottom_xx-small"},"Example data table of Opportunities"),n().createElement("h3",{id:"other-element-with-table-label",className:"slds-text-title slds-m-bottom_small"},"Using ",n().createElement("code",null,"aria-labelledby"),", instead of aria-label"),n().createElement(T,{isBordered:!0,hasCellBuffer:!0,type:"base",ariaLabelledBy:"element-with-table-label other-element-with-table-label"},n().createElement(A,null,n().createElement(N,null)),n().createElement(q,null,n().createElement(C,{title:"Cloudhub"}),n().createElement(C,{title:"Cloudhub + Anypoint Connectors"}))))}],G=l(4090),Y=l(8522),J=l(1391),Q=l(7852),U=l(5526),K=l(2711),Z=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(D,{isSelected:e.isSelected},n().createElement(H,{isRightAligned:!0,type:"advanced"},n().createElement(P,{checked:e.isSelected,hasSingleRowSelect:e.hasSingleRowSelect,index:e.index,inputTabIndex:t?"0":"-1"})),n().createElement(F,{hasFocus:!t&&1===e.index&&e.hasFocus,tabIndex:t||1!==e.index?null:"0"},n().createElement(W,{cellLink:!0,cellText:e.recordName})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.accountName})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.closeDate})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.stage})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.confidence})),e.hasScores&&e.amountScore&&e.amountScoreLabel?n().createElement(H,{type:"advanced"},n().createElement("div",{className:"slds-grid slds-grid_vertical-align-center"},n().createElement("div",{className:"slds-truncate",title:e.amount},e.amount),n().createElement("div",{className:"slds-icon_container slds-m-left_x-small slds-m-right_xx-small"},n().createElement(J.A,{"data-slds-state":e.amountScore})),n().createElement("div",{className:"slds-truncate",title:e.amountScoreLabel},e.amountScoreLabel))):n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.amount})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellLink:!0,cellText:e.contact})),e.hasRowActions&&n().createElement(H,{type:"advanced"},n().createElement(z,{rowName:e.recordName})))};Z.displayName="AdvancedDataTableTr",Z.propTypes={accountName:u().string.isRequired,amount:u().string.isRequired,amountScore:(0,s.VY)("amountScoreLabel",u().string),amountScoreLabel:(0,s.VY)("amountScore",u().string),closeDate:u().string.isRequired,confidence:u().string.isRequired,contact:u().string.isRequired,hasFocus:u().bool,hasRowActions:u().bool,hasScores:u().bool,index:u().number.isRequired,hasSingleRowSelect:u().bool,recordName:u().string.isRequired,isSelected:u().bool,stage:u().string.isRequired},Z.defaultProps={hasRowActions:!0};var ee=function(e){return n().createElement("div",{className:"slds-size_xx-small"},n().createElement("img",{alt:e.productName,src:e.productImgSrc,title:e.productName}))};ee.displayName="ProductImage",ee.propTypes={productImgSrc:u().string.isRequired,productName:u().string.isRequired};var te=function(e){return n().createElement(n().Fragment,null,n().createElement("p",null,n().createElement("s",null,e.priceOriginal)),n().createElement("p",null,e.priceDiscount))};te.displayName="ProductPriceCell",te.propTypes={priceDiscount:u().string.isRequired,priceOriginal:u().string.isRequired};var le=function(e){return n().createElement(Q.A,{figureLeft:n().createElement(ee,{productImgSrc:e.productImgSrc,productName:e.productName})},n().createElement(W,{cellLink:!0,cellText:e.productName}),n().createElement("ul",null,e.productProperties.map(function(e,t){return n().createElement("li",{className:"slds-truncate",key:t,title:"".concat(e.label,": ").concat(e.value)},e.label,": ",n().createElement("strong",null,e.value))})),n().createElement("p",{className:"slds-text-color_success"},e.labelInventory))};le.displayName="ProductItemDetailsCell",le.propTypes={labelInventory:u().string.isRequired,productImgSrc:u().string.isRequired,productName:u().string.isRequired,productProperties:u().array.isRequired};var ae=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(K.ZS,{inputId:e.inputId,labelClassName:"slds-assistive-text",labelContent:e.labelText},n().createElement(U.A,{className:"slds-size_xxx-small slds-text-align_center slds-p-horizontal_x-small",defaultValue:e.quantity,id:e.inputId,placeholder:" ",tabIndex:t?null:"-1"}))};ae.displayName="ProductQuantityCell",ae.propTypes={labelText:u().string.isRequired,inputId:u().string.isRequired,quantity:u().string};var ne=function(e){return n().createElement(D,{isTopAligned:!0},n().createElement(F,null,n().createElement(le,{labelInventory:e.labelInventory,productImgSrc:e.productImgSrc,productName:e.productName,productProperties:e.productProperties})),n().createElement(H,{type:"advanced"},n().createElement(ae,{inputId:"product-quantity-text-input-id-".concat(e.index),labelText:"".concat(e.productName," quantity"),quantity:e.quantity})),n().createElement(H,{type:"advanced"},n().createElement(W,{cellText:e.dateAdded})),n().createElement(H,{type:"advanced"},n().createElement(te,{priceDiscount:e.priceDiscount,priceOriginal:e.priceOriginal})),n().createElement(H,{type:"advanced"},n().createElement(z,{rowName:e.productName})))};function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ie.apply(null,arguments)}ne.displayName="ProductDataTableTr",ne.propTypes={dateAdded:u().string.isRequired,index:u().number.isRequired,labelInventory:u().string.isRequired,priceDiscount:u().string.isRequired,priceOriginal:u().string.isRequired,productImgSrc:u().string.isRequired,productName:u().string.isRequired,productProperties:u().array.isRequired,quantity:u().string};var re=["Name","Account Name","Close Date","Stage","Confidence","Amount","Contact"],oe=[{recordName:"Acme - 1,200 Widgets",accountName:"Acme",closeDate:"4/10/15",stage:"Value Proposition",confidence:"30%",amount:"$25,000,000",contact:"jrogers@acme.com",amountScore:"positive",amountScoreLabel:"High"},{recordName:"Acme - 200 Widgets",accountName:"Acme",closeDate:"1/31/15",stage:"Prospecting",confidence:"60%",amount:"$5,000,000",contact:"bob@acme.com"},{recordName:"salesforce.com - 1,000 Widgets",accountName:"salesforce.com",closeDate:"1/31/15 3:45PM",stage:"Id. Decision Makers",confidence:"70%",amount:"$25,000",contact:"nathan@salesforce.com",amountScore:"negative",amountScoreLabel:"Low"}],se=[].concat(oe).reverse(),ce=[{column:"account name",icon:n().createElement(Y.b$,{assistiveText:"Account",className:"slds-icon_x-small",containerClassName:"slds-m-right_xx-small",symbol:"account",title:"Account"})},{column:"confidence",icon:n().createElement("div",{className:"slds-icon_container slds-m-right_xx-small"},n().createElement(G.A,{assistiveText:"Einstein calculated",className:"slds-is-paused",title:"Einstein calculated"}))}],de=(oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))}),[{id:"cell-focused",label:"Cell Focused",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with cell focused"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e,{hasFocus:!0}))})))},{id:"actionable-mode",label:"Actionable Mode",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"row-selected",label:"Row Selected (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with row selected"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:1===t,key:t},e))}))))},{id:"all-row-selected",label:"All Rows Selected (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with all rows selected"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,selectAll:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!0,key:t},e))}))))},{id:"sorted-column-asc",label:"Sorted Ascending (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with ascending column sorting"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,sortDirection:"ascending"}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"sorted-column-desc",label:"Sorted Descending (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with descending column sorting"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,sortDirection:"descending"}),n().createElement(q,null,se.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))},{id:"resized-column",label:"Column Resized (Actionable mode)",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities in actionable mode with resized column"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:re,singleColumnWidth:"300px"}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({index:t+1,isSelected:!1,key:t},e))}))))}]),me=[{id:"header-icon-menu-button",label:"Header Icon and Menu Button",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with header icon and menu button"},n().createElement(B,{columnHeaderIcons:ce,columns:re,hasMenus:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"header-menu-button",label:"Header Menu Button",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with header menu button"},n().createElement(B,{columns:re,hasMenus:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"cell-icon",label:"Cell Icon",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table of Opportunities with cell icon"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e,{hasScores:!0}))})))},{id:"product-listing",label:"Product Listing",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table as product listing"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:["Product","Quantity","Date Added","Price"],hasNoRowSelection:!0}),n().createElement(q,null,[{productImgSrc:"/assets/images/product1.jpg",productName:"Baseball Cap",productProperties:[{label:"Size",value:"7 3/4"},{label:"Color",value:"Blue"},{label:"Item No.",value:"1007100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$23.00",priceDiscount:"$20.00"},{productImgSrc:"/assets/images/product2.jpg",productName:"Construction Hat",productProperties:[{label:"Size",value:"One size fits most"},{label:"Color",value:"Yellow"},{label:"Item No.",value:"2800100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$52.00",priceDiscount:"$40.00"},{productImgSrc:"/assets/images/product3.jpg",productName:"Campaign Hat",productProperties:[{label:"Size",value:"Small"},{label:"Color",value:"Tan"},{label:"Item No.",value:"2000100"}],labelInventory:"In Stock",quantity:"1",dateAdded:"4/10/17",priceOriginal:"$79.00",priceDiscount:"$59.00"}].map(function(e,t){return n().createElement(ne,ie({isSelected:!1,key:t,index:t+1},e))}))))},{id:"radio-group",label:"Radio Group",element:n().createElement(T,{isBordered:!0,isFixedLayout:!0,isResizable:!0,type:"advanced",ariaLabel:"Example advanced table as radio group"},n().createElement(B,{columns:re,hasSingleRowSelect:!0}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({hasSingleRowSelect:!0,index:t+1,key:t},e))})))},{id:"data-table-no-borders",label:"No borders",element:n().createElement(T,{isFixedLayout:!0,isResizable:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced table with no borders"},n().createElement(B,{columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"data-table-headless",label:"Headless",element:n().createElement(T,{hasHiddenHeader:!0,isBordered:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced headless table"},n().createElement(B,{isHidden:!0,columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))},{id:"data-table-headless-no-borders",label:"Headless with no borders",element:n().createElement(T,{hasHiddenHeader:!0,selectionType:"multiple",type:"advanced",ariaLabel:"Example advanced headless border-less table"},n().createElement(B,{isHidden:!0,columns:re}),n().createElement(q,null,oe.map(function(e,t){return n().createElement(Z,ie({isSelected:!1,key:t,index:t+1},e))})))}];function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ue.apply(null,arguments)}var be=function(e){return n().createElement("div",ue({className:"demo-only"},e),e.children)};be.propTypes={children:u().node};var pe=function(e){var t=(0,a.useContext)(x).isActionableMode;return n().createElement(D,{isSelected:e.isSelected},n().createElement(H,{hasFocus:"error"===e.focusedCell,isEditable:!0,isErrorCell:!0,type:"advanced"},n().createElement(M,{hasError:e.showRowError,index:e.index})),n().createElement(H,{hasFocus:"selectRow"===e.focusedCell,isEditable:!0,tabIndex:t||"selectRow"!==e.focusableCell?null:"0",type:"advanced"},n().createElement(P,{checked:e.isSelected,index:e.index,inputTabIndex:t?"0":"-1"})),n().createElement(F,{hasFocus:"recordName"===e.focusedCell,isEditable:!0,tabIndex:t||"recordName"!==e.focusableCell?null:"0"},n().createElement(j,{buttonText:"Edit Name of "+e.recordName,cellLink:!0,cellText:e.recordName,index:e.index})),n().createElement(H,{hasError:e.showCellError,hasFocus:"accountName"===e.focusedCell,isEditable:!0,isEdited:e.showEditedCell,isEditing:e.showEdit,isLocked:e.isLocked,tabIndex:t||"accountName"!==e.focusableCell?null:"0",type:"advanced"},n().createElement(j,{buttonText:"Edit Account Name of "+e.recordName,cellText:e.accountName,hasError:e.showEditError,index:e.index,isLocked:e.isLocked,isRequired:e.showEditRequired,showEdit:e.showEdit,isEdited:e.showEditedCell})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Close Date of "+e.recordName,cellText:e.closeDate,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Stage of "+e.recordName,cellText:e.stage,index:e.index})),n().createElement(H,{isEditable:!0,isLocked:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Confidence of "+e.recordName,cellText:e.confidence,index:e.index,isLocked:!0})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Amount of "+e.recordName,cellText:e.amount,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(j,{buttonText:"Edit Contact of "+e.recordName,cellText:e.contact,index:e.index})),n().createElement(H,{isEditable:!0,type:"advanced"},n().createElement(z,{isEditable:!0,rowName:e.recordName})))};pe.displayName="InlineEditTr",pe.propTypes={accountName:u().string.isRequired,amount:u().string.isRequired,closeDate:u().string.isRequired,confidence:u().string.isRequired,contact:u().string.isRequired,focusableCell:u().string,focusedCell:u().string,index:u().number.isRequired,isLocked:u().bool,recordName:u().string.isRequired,isSelected:u().bool,showCellError:(0,s.VY)("showRowError",u().bool),showEdit:u().bool,showEditError:u().bool,showEditRequired:u().bool,showEditedCell:u().bool,showRowError:u().bool,stage:u().string.isRequired};var Ee=l(3062),he=l(9249);function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ye.apply(null,arguments)}var fe=s.Ay.uniqueId("dialog-heading-id-"),ve=["Name","Account Name","Close Date","Stage","Confidence","Amount","Contact"],ge=[{recordName:"Acme - 1,200 Widgets",accountName:"Acme",closeDate:"4/10/15",stage:"Value Proposition",confidence:"30%",amount:"$25,000,000",contact:"jrogers@acme.com"},{recordName:"Acme - 200 Widgets",accountName:"Acme",closeDate:"1/31/15",stage:"Prospecting",confidence:"60%",amount:"$5,000,000",contact:"bob@acme.com"},{recordName:"salesforce.com - 1,000 Widgets",accountName:"salesforce.com",closeDate:"1/31/15 3:45PM",stage:"Id. Decision Makers",confidence:"70%",amount:"$25,000",contact:"nathan@salesforce.com"}],xe=function(){return n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"recordName":null,index:t+1,isSelected:!1,key:t},e))})))))},we=[{id:"default",label:"Default",element:n().createElement(S,null,n().createElement(T,{hasNoCellFocus:!0,isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example default inline edit table with cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusableCell:"recordName",index:t+1,isSelected:!1,key:t},e))}))))}],Ne=[{id:"with-link",label:"Cell focused - Link (Actionable mode)",element:n().createElement(xe,null),script:"\n document.getElementById('link-01').focus()\n "},{id:"checkbox",label:"Cell focused - Checkbox (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with checkbox cell focused"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"selectRow":null,index:t+1,isSelected:!1,key:t},e))}))))),script:"\n document.getElementById('checkbox-01').focus()\n "},{id:"focused",label:"Cell focused (Navigation mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in navigation mode with cell focused"},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusableCell:0===t?"accountName":null,focusedCell:0===t?"accountName":null,index:t+1,isSelected:!1,key:t},e))}))))},{id:"edit",label:"Cell edit (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edit"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"required",label:"Cell edit — Required (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with required cell edit"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t,showEditRequired:!0},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"error",label:"Cell edit — Error (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEdit:0===t,showEditError:!0,showEditRequired:!0},e))}))))),script:"\n document.getElementById('company-01').focus()\n document.getElementById('company-01').select()\n "},{id:"edited",label:"Cell edited (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edited"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({index:t+1,isSelected:!1,key:t,showEditedCell:0===t},e))})))))},{id:"row-selected-with-edited-cell",label:"Row Selected with an Edited Cell",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell edited in selected row"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({className:0===t?"slds-is-selected":null,index:t+1,isSelected:0===t,key:t,showEditedCell:0===t},e))})))))},{id:"row-error",label:"Error - Row level on save (Actionable mode)",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error on save"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"accountName":null,index:t+1,isSelected:!1,key:t,showCellError:0===t,showRowError:0===t},e))}))))),script:"\n document.getElementById('button-01').focus()\n "},{id:"row-error-and-selected",label:"Error - Row level on save (Actionable mode) with entire row selected",element:n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with cell error on save in selected row"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({className:0===t?"slds-is-selected":null,index:t+1,isSelected:0===t,key:t,showCellError:0===t,showRowError:0===t},e))})))))},{id:"row-error-focused",label:"Error indicator - Focused (Actionable mode)",element:n().createElement(be,{style:{marginTop:"100px",marginLeft:"10px"}},n().createElement(S,null,n().createElement(T,{isBordered:!0,isEditable:!0,isFixedLayout:!0,isResizable:!0,selectionType:"multiple",style:{width:"66.75rem"},type:"advanced",ariaLabel:"Example inline edit table in actionable mode with error indicator focused"},n().createElement(x.Provider,{value:{isActionableMode:!0}},n().createElement(B,{columns:ve,hasErrorColumn:!0,mainColumnWidth:"8.75rem"}),n().createElement(q,null,ge.map(function(e,t){return n().createElement(pe,ye({focusedCell:0===t?"error":null,index:t+1,isSelected:!1,key:t,showCellError:0===t,showRowError:0===t},e))})))),n().createElement(Ee.AM,{className:"slds-popover_error slds-nubbin_bottom-left",closeButton:!0,header:n().createElement(he.R5,{headingId:fe,symbol:"error",title:"Resolve error"}),headingId:fe,inverse:!0,style:{position:"absolute",top:"-56px"}},n().createElement("p",null,"Company encountered an error")))),script:"\n document.getE