@spscommerce/ds-shared 8.19.6 → 8.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +16 -16
- package/lib/translations.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@spscommerce/utils");var l=(e=>(e.DEFAULT="default",e.CONFIRM="confirm",e.DELETE="delete",e.KEY="key",e))(l||{}),i=(e=>(e.ICON="icon",e))(i||{}),T=(e=>(e.LINK="link",e))(T||{});const y=Object.freeze({...l,...i}),B=Object.freeze({...l,...i,...T});var R=(e=>(e.BUTTON="button",e.SUBMIT="submit",e))(R||{}),u=(e=>(e[e.START=0]="START",e[e.END=1]="END",e))(u||{}),L=(e=>(e.BLUE="blue",e.GRAY="gray",e))(L||{});function x(e){return e.hasOwnProperty("react")}function w(e){return e.hasOwnProperty("jsx")}var A=(e=>(e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl",e))(A||{}),t=(e=>(e.AI="ai",e.ANGLE_LEFT="angle-left",e.ANGLE_RIGHT="angle-right",e.ARCHIVE="archive",e.ARCHIVE_CIRCLE="archive-circle",e.ARROW_DOWN="arrow-down",e.ARROW_LEFT="arrow-left",e.ARROW_LEFT_CIRCLE="arrow-left-circle",e.ARROW_RIGHT="arrow-right",e.ARROW_RIGHT_CIRCLE="arrow-right-circle",e.ARROW_UP="arrow-up",e.ASTERISK="asterisk",e.ASTERISK_CIRCLE="asterisk-circle",e.BAN="ban",e.BAN_CIRCLE="ban-circle",e.BARCODE="barcode",e.BELL="bell",e.BELL_FILLED="bell-filled",e.BOLD="bold",e.BOLT="bolt",e.BOOK="book",e.BUILDING="building",e.BURST="burst",e.BURST_BOLT="burst-bolt",e.CALENDAR="calendar",e.CALENDAR_BLANK="calendar-blank",e.CALENDAR_BLANK_CIRCLE="calendar-blank-circle",e.CALENDAR_SELECT="calendar-select",e.CAMERA="camera",e.CHART_AREA="chart-area",e.CHART_BAR="chart-bar",e.CHART_LINE="chart-line",e.CHART_PIE="chart-pie",e.CHECKMARK="checkmark",e.CHECKMARK_CIRCLE="checkmark-circle",e.CHEVRON_DOWN="chevron-down",e.CHEVRON_LEFT="chevron-left",e.CHEVRON_RIGHT="chevron-right",e.CHEVRON_UP="chevron-up",e.CIRCLE_OUTLINE="circle-outline",e.CLEAR_FORMATTING="clear-formatting",e.CLOCK="clock",e.CLOCK_CIRCLE="clock-circle",e.CODE_FORK="code-fork",e.COLUMN_SWITCHER="column-switcher",e.COMMENT_BUBBLE="comment-bubble",e.COMMENT_BUBBLE_EXCLAMATION="comment-bubble-exclamation",e.COMMENT_BUBBLE_QUESTION="comment-bubble-question",e.COMPLETE_FILE="complete-file",e.CONVERSATION="conversation",e.CREDIT_CARD="credit-card",e.DASHBOARD="dashboard",e.DATABASE="database",e.DESCENDING_ELLIPSES_CIRCLE="descending-ellipses-circle",e.DISK="disk",e.DISK_CIRCLE="disk-circle",e.DOLLAR_SIGN="dollar-sign",e.DOUBLE_ANGLE_LEFT="double-angle-left",e.DOUBLE_ANGLE_RIGHT="double-angle-right",e.DOWNLOAD_CLOUD="download-cloud",e.DRILL="drill",e.DUPLICATE="duplicate",e.ELLIPSES="ellipses",e.ENVELOPE="envelope",e.EXCHANGE="exchange",e.EXCLAMATION_CIRCLE="exclamation-circle",e.EXCLAMATION_TRIANGLE="exclamation-triangle",e.EXPAND_COLLAPSE="expand-collapse",e.EYE="eye",e.EYE_SLASH="eye-slash",e.FILE="file",e.FILE_DUPLICATE="file-duplicate",e.FILE_PDF="file-pdf",e.FILE_PRESENTATION="file-presentation",e.FILE_SIZE="file-size",e.FILE_SOLID="file-solid",e.FILE_SOLID_TEXT="file-solid-text",e.FILE_SPREADSHEET="file-spreadsheet",e.FILE_TEXT="file-text",e.FILTER="filter",e.FLAG="flag",e.FLAG_OUTLINE="flag-outline",e.FOLDER="folder",e.FOLDER_OPEN="folder-open",e.FOLDER_SOLID="folder-solid",e.FOLDER_SOLID_OPEN="folder-solid-open",e.GEAR="gear",e.GLOBE="globe",e.GRID="grid",e.GROUP="group",e.HAND_STOP="hand-stop",e.HANDSHAKE="handshake",e.HAT="hat",e.HEART="heart",e.HEART_OUTLINE="heart-outline",e.HISTORY="history",e.I_MADE_THIS="i-made-this",e.INBOX="inbox",e.INCOMING="incoming",e.INFO_CIRCLE="info-circle",e.ITALICS="italics",e.INTERCOM="intercom",e.ITEM_TAG="item-tag",e.KEY="key",e.LIFE_PRESERVER="life-preserver",e.LIGHTBULB="lightbulb",e.LINK="link",e.LINKEDIN="linkedin",e.LIST="list",e.LIST_CARDS="list-cards",e.LIST_COLUMNS="list-columns",e.LIST_INDENT="list-indent",e.LIST_ORDERED="list-ordered",e.LIST_OUTDENT="list-outdent",e.LIST_UNORDERED="list-unordered",e.LIST_SUMMARY="list-summary",e.LIST_TABLE="list-table",e.LOCATION="location",e.LOCKED="locked",e.LOCKED_CIRCLE="locked-circle",e.MAP="map",e.MAP_MARKER="map-marker",e.MAXIMIZE="maximize",e.MICROPHONE_ON="microphone-on",e.MICROPHONE_OFF="microphone-off",e.MINIMIZE="minimize",e.MINUS="minus",e.MINUS_CIRCLE="minus-circle",e.NESTED_LIST="nested-list",e.NEW_FILE="new-file",e.NEW_SCREEN="new-screen",e.OUTGOING="outgoing",e.PAPER_PLANE="paper-plane",e.PENCIL="pencil",e.PHOTO="photo",e.PIN="pin",e.PIN_OUTLINE="pin-outline",e.PINTEREST="pinterest",e.PLAY="play",e.PLUS_CIRCLE="plus-circle",e.PLUS_SIGN="plus-sign",e.PRESENTATION="presentation",e.PRINTER="printer",e.QR_CODE="qr-code",e.QUESTION_CIRCLE="question-circle",e.QUOTE_LEFT="quote-left",e.QUOTE_RIGHT="quote-right",e.RANDOM="random",e.REDO="redo",e.REFRESH="refresh",e.RIGHT_CIRCLE="right-circle",e.ROCKET="rocket",e.SAVED_CIRCLE="saved-circle",e.SEARCH="search",e.SEARCH_PLUS="search-plus",e.SHARE="share",e.SHOPPING_CART="shopping-cart",e.SORT_ALPHA_ASC="sort-alpha-asc",e.SORT_ALPHA_DESC="sort-alpha-desc",e.SORT_NUM_ASC="sort-num-asc",e.SORT_NUM_DESC="sort-num-desc",e.STAR="star",e.STAR_OUTLINE="star-outline",e.STATUS_ARCHIVED="status-archived",e.STATUS_CANCELLED="status-cancelled",e.STATUS_ERROR="status-error",e.STATUS_IN_PROCESS="status-in-process",e.STATUS_IN_TRANSIT="status-in-transit",e.STATUS_LOCKED="status-locked",e.STATUS_NEW="status-new",e.STATUS_OK="status-ok",e.STATUS_ON_HOLD="status-on-hold",e.STATUS_OUTDATED="status-outdated",e.STATUS_PREVIEW="status-preview",e.STATUS_REJECTED="status-rejected",e.STATUS_SAVED="status-saved",e.STATUS_SAVING="status-saving",e.STATUS_TEMPLATE="status-template",e.STATUS_WARNING="status-warning",e.TABLE="table",e.TABS="tabs",e.TAG="tag",e.TEMPLATE_CIRCLE="template-circle",e.THUMBS_DOWN="thumbs-down",e.THUMBS_DOWN_OUTLINE="thumbs-down-outline",e.THUMBS_UP="thumbs-up",e.THUMBS_UP_OUTLINE="thumbs-up-outline",e.TRASH="trash",e.TRUCK_SHIPPING="truck-shipping",e.TWITTER="twitter",e.UNARCHIVE="unarchive",e.UNDO="undo",e.UNLINK="unlink",e.UNLOCKED="unlocked",e.UPLOAD_CLOUD="upload-cloud",e.USER="user",e.USER_IMPERSONATION="user-impersonation",e.VOLUME_OFF="volume-off",e.VOLUME_LOW="volume-low",e.VOLUME_MEDIUM="volume-medium",e.VOLUME_FULL="volume-full",e.WRENCH="wrench",e.WORKFLOW="workflow",e.WORKFLOW_COMPLETE="workflow-complete",e.X="x",e.X_CIRCLE="x-circle",e))(t||{}),n=(e=>(e.TIP="tip",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e.INFO="info",e))(n||{});const W=Object.freeze({tip:t.LIGHTBULB,error:t.EXCLAMATION_CIRCLE,info:t.INFO_CIRCLE,success:t.CHECKMARK,warning:t.EXCLAMATION_TRIANGLE});var O=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(O||{});const k=7e3,V=2e3;var _=(e=>(e.ACTIVITY="activity",e.ERROR="error",e.INFO="info",e.PROGRESS="progress",e.SUCCESS="success",e.WARNING="warning",e))(_||{});const K=new Map([["info",t.INFO_CIRCLE],["warning",t.EXCLAMATION_TRIANGLE],["error",t.EXCLAMATION_CIRCLE],["success",t.CHECKMARK]]),X={addToList:{noDataZeroStateColumnTitle:"This Column is Empty",noDataZeroStateOnColumnSubheading:"Move options from the {{columnName}}",noDataZeroStateOffColumnSubheading:"Remove options from the {{columnName}}",moveAllItemsToCol:'Move All to "{{columnName}}"',onColumnHeader:"On Column",offColumnHeader:"Off Column",disabledDragTooltip:"Drag and drop are disabled when filters are engaged"},advancedSearch:{clear:"Clear Fields",search:"Search"},button:{spinningTitle:"Loading…"},columnChooser:{removeButton:"Remove {{elementName}}"},columnManager:{title:"Manage Table Columns",filterText:"Find a Column",onListHeader:"Visible Columns",offListHeader:"Hidden Columns",cancelButton:"Cancel",saveButton:"Save"},contentRow:{collapse:"Collapse",expand:"Expand"},datepicker:{calendar:{prevMonth:"View Previous Month",nextMonth:"View Next Month"},preset:{custom:"Custom",today:"Today",before:"Before",after:"After",sevenDays:"Last 7 days",thirtyDays:"Last 30 days",sixtyDays:"Last 60 days",ninetyDays:"Last 90 days",oneYear:"Last year"},presetsLabel:"Ranges"},fileUpload:{acceptedTypes:"{{fileTypes}} format accepted",acceptedTypes_plural:"{{fileTypes}} formats accepted",cancelled:"File Upload Failed",cancelled_plural:"File Upload(s) Failed",close:"Close",instructions:"Drag and drop your file here or |browse for a file| on your desktop.",instructions_plural:"Drag and drop your files here or |browse for files| on your desktop.",maximumSize:"{{size}} maximum",processing:"Processing Upload…",title:"Upload Your {{description}}"},filterPanel:{clear:"Clear Filters",title:"Filters",filterPlaceholder:"Filter options"},focusedTask:{close:"Close"},growler:{dismiss:"Dismiss"},insightCard:{all:"ALL",partnerCount:"{{count}} |of| {{total}}",partners:"PARTNERS"},insightTile:{all:"ALL",partnerCount:"{{count}} |of| {{total}}",partners:"PARTNERS"},label:{errors:{dateConstraint:{max:"Please enter a date on or prior to {{context.maxExceeded}}.",min:"Please enter a date on or after {{context.minExceeded}}."},dateFormat:"Please enter a date in the format {{context}}.",dateRangeOrder:"End date cannot be before start date.",dateValidity:"Please enter a valid date.",max:"Please enter a value no greater than {{context}}.",maxLength:"Please enter no more than {{context}} characters.",min:"Please enter a value no less than {{context}}.",minLength:"Please enter at least {{context}} characters.",required:"This field is required."},preventativeErrors:{maxLength:"This field accepts a maximum number of characters.",alpha:"This field accepts only alphabetic values.",numeric:"This field accepts only numerical values.",nonNumeric:"This field accepts only non-numerical values."},stronglySuggested:"This field is strongly suggested."},listActionBar:{clearSelected:"Clear Selected",itemsSelected:"Items Selected"},listToolbar:{advancedSearchToggle:"Advanced Search"},modal:{close:"Close modal",defaultButtonLabel:"Okay",defaultTitle:{general:"Action",info:"Info",success:"Success",warning:"Warning","serious-warning":"Warning"}},slideInPanel:{close:"Close",defaultTitle:"Slide In Panel"},pagination:{nextPage:"Next Page",ofMany:"of many",ofPageCount:"of {{pageCount}}",page:"Page",prevPage:"Previous Page"},progressBar:{closeButtonTitle:"Close progress bar"},searchResultsBar:{clear:"Clear",clearResults:"Clear Results",count:"{{count}} of {{total}}",matchingResults:"Matching results",noAdvancedSearchSelections:"No Advanced Search Selections",results:"Results:"},select:{defaultPlaceholder:"Select one…"},slackLink:{label:"Chat"},spinner:{defaultAltText:"Loading…"},taskQueue:{clearCompleted:"Clear Completed",newTask:"You have a new task in your queue.",noTasks:"There are currently no tasks in your queue."}},Y={t(e,r){const a=E.getPath(X,e.replace(/^design-system:/,""));return r?E.template(a)(r):a}};var s=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(s||{});const S=Object.freeze({general:t.STATUS_NEW,success:t.STATUS_OK,error:t.STATUS_ERROR,warning:t.STATUS_WARNING,processing:t.STATUS_IN_PROCESS});var N=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(N||{});const j=Object.freeze({general:t.STATUS_NEW,success:t.STATUS_OK,error:t.STATUS_ERROR,warning:t.STATUS_WARNING,processing:t.STATUS_IN_PROCESS});var d=(e=>(e.LIGHT="light",e.DARK="dark",e))(d||{}),C=(e=>(e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200",e))(C||{}),o=(e=>(e.GENERAL="general",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.SERIOUS_WARNING="serious-warning",e))(o||{}),m=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.X_LARGE="xlarge",e))(m||{});class q{constructor(r,a={}){this.value=r,Object.assign(this,a)}get text(){return this.textInternal?this.textInternal:this.value?this.textKey?this.value[this.textKey]:String(this.value):""}set text(r){this.textInternal=r}get caption(){return this.captionInternal?this.captionInternal:this.value&&this.captionKey?this.value[this.captionKey]:""}set caption(r){this.captionInternal=r}get href(){return this.value?this.value.isLink&&typeof this.value=="function"?this.value():this.value.href:null}get disabled(){return typeof this.disabledInternal<"u"?this.disabledInternal:this.value?this.value.disabled:!1}set disabled(r){this.disabledInternal=r}get bold(){return typeof this.boldInternal<"u"?this.boldInternal:this.value?this.value.bold&&this.value.bold===!0:!1}getHtml(r){return r?this.text.replace(r,"<u>$&</u>"):this.text}}const Q=[10,25,50,100];var D=(e=>(e.TOP_LEFT="top left",e.TOP_MIDDLE="top middle",e.TOP_RIGHT="top right",e.RIGHT_TOP="right top",e.RIGHT_MIDDLE="right middle",e.RIGHT_BOTTOM="right bottom",e.BOTTOM_RIGHT="bottom right",e.BOTTOM_MIDDLE="bottom middle",e.BOTTOM_LEFT="bottom left",e.LEFT_BOTTOM="left bottom",e.LEFT_MIDDLE="left middle",e.LEFT_TOP="left top",e))(D||{}),U=(e=>(e[e.SMALL=14]="SMALL",e[e.MEDIUM=26]="MEDIUM",e[e.LARGE=38]="LARGE",e))(U||{}),f=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e))(f||{}),h=(e=>(e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200",e))(h||{}),g=(e=>(e.PURPLE="purple",e.RED="red",e.BLUE="blue",e.ORANGE="orange",e.GRAY="gray",e))(g||{}),c=(e=>(e.ASCENDING="ascending",e.DESCENDING="descending",e))(c||{}),P=(e=>(e.DEFAULT="default",e.KEY="key",e.WARNING="warning",e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e.INFO="info",e))(P||{});const J=1e3;var M=(e=>(e.MANUAL="manual",e.MOUSEOVER="mouseover",e.CLICK="click",e))(M||{}),v=(e=>(e.DEFAULT="default",e.HELP="help",e.ERROR="error",e.WARNING="warning",e.CONTAINER="container",e))(v||{});const b={icon:"",label:"",caption:"",disabled:!1,isLink:!1};function $(e){return(r,a,I)=>E.simpleMetadataDecoratorApplicator(e,b,r,a,I)}var G=(e=>(e.COMPLETED="completed",e.ERRORED="errored",e.WARNING="warning",e.IN_PROGRESS="in_progress",e))(G||{});const Z=Object.freeze({completed:t.STATUS_OK,errored:t.STATUS_ERROR,warning:t.STATUS_WARNING,in_progress:"sps-spinner sps-spinner--small"}),z=5e3;var H=(e=>(e.BASIC="basic",e.COMPLETED="completed",e.COMPLETE="completed",e.ACTIVE="active",e))(H||{}),F=(e=>(e[e.BASE=0]="BASE",e[e.TIP=10]="TIP",e[e.DROPDOWN=100]="DROPDOWN",e[e.BAR=1e3]="BAR",e[e.DIALOG=1e4]="DIALOG",e))(F||{});exports.ButtonKind=B;exports.ButtonType=R;exports.ClickableTagKind=L;exports.DEFAULT_PAGE_SIZE_OPTIONS=Q;exports.DropdownKind=y;exports.FeedbackBlockIcons=W;exports.FeedbackBlockKind=n;exports.GROWLER_FADEOUT_DURATION_MS=V;exports.GROWLER_VISIBLE_DURATION_MS=k;exports.GrowlerIcon=K;exports.GrowlerKind=_;exports.KeyValueListTitleColor=d;exports.LineChartColors=C;exports.ModalKind=o;exports.ModalSize=m;exports.Position=D;exports.RingSize=U;exports.SPS_ACTION_DEFAULTS=b;exports.SelectMode=u;exports.SortDirection=c;exports.SpinnerSize=f;exports.SpsAction=$;exports.SpsFilterTileKind=O;exports.SpsIcon=t;exports.SpsIconSize=A;exports.SpsInsightCardIcons=S;exports.SpsInsightCardKind=s;exports.SpsInsightTileIcons=j;exports.SpsInsightTileKind=N;exports.SpsOptionListOption=q;exports.SpsTaskStatus=G;exports.SpsTaskStatusIcons=Z;exports.StackedBarChartMilestone=h;exports.StdButtonKind=l;exports.SteppedProgressBarColor=g;exports.TASK_QUEUE_NOTIFICATION_DURATION_MS=z;exports.TOOLTIP_HIDE_DELAY_MS_DEFAULT=J;exports.TagKind=P;exports.TooltipKind=v;exports.TooltipShowTrigger=M;exports.WizardSubstepConditions=H;exports.ZStratum=F;exports.exampleIsReactComponentExample=x;exports.exampleIsReactJSXExample=w;exports.noI18nI18n=Y;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@spscommerce/utils");var l=(e=>(e.DEFAULT="default",e.CONFIRM="confirm",e.DELETE="delete",e.KEY="key",e))(l||{}),i=(e=>(e.ICON="icon",e))(i||{}),T=(e=>(e.LINK="link",e))(T||{});const y=Object.freeze({...l,...i}),B=Object.freeze({...l,...i,...T});var R=(e=>(e.BUTTON="button",e.SUBMIT="submit",e))(R||{}),u=(e=>(e[e.START=0]="START",e[e.END=1]="END",e))(u||{}),L=(e=>(e.BLUE="blue",e.GRAY="gray",e))(L||{});function x(e){return e.hasOwnProperty("react")}function w(e){return e.hasOwnProperty("jsx")}var A=(e=>(e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl",e))(A||{}),t=(e=>(e.AI="ai",e.ANGLE_LEFT="angle-left",e.ANGLE_RIGHT="angle-right",e.ARCHIVE="archive",e.ARCHIVE_CIRCLE="archive-circle",e.ARROW_DOWN="arrow-down",e.ARROW_LEFT="arrow-left",e.ARROW_LEFT_CIRCLE="arrow-left-circle",e.ARROW_RIGHT="arrow-right",e.ARROW_RIGHT_CIRCLE="arrow-right-circle",e.ARROW_UP="arrow-up",e.ASTERISK="asterisk",e.ASTERISK_CIRCLE="asterisk-circle",e.BAN="ban",e.BAN_CIRCLE="ban-circle",e.BARCODE="barcode",e.BELL="bell",e.BELL_FILLED="bell-filled",e.BOLD="bold",e.BOLT="bolt",e.BOOK="book",e.BUILDING="building",e.BURST="burst",e.BURST_BOLT="burst-bolt",e.CALENDAR="calendar",e.CALENDAR_BLANK="calendar-blank",e.CALENDAR_BLANK_CIRCLE="calendar-blank-circle",e.CALENDAR_SELECT="calendar-select",e.CAMERA="camera",e.CHART_AREA="chart-area",e.CHART_BAR="chart-bar",e.CHART_LINE="chart-line",e.CHART_PIE="chart-pie",e.CHECKMARK="checkmark",e.CHECKMARK_CIRCLE="checkmark-circle",e.CHEVRON_DOWN="chevron-down",e.CHEVRON_LEFT="chevron-left",e.CHEVRON_RIGHT="chevron-right",e.CHEVRON_UP="chevron-up",e.CIRCLE_OUTLINE="circle-outline",e.CLEAR_FORMATTING="clear-formatting",e.CLOCK="clock",e.CLOCK_CIRCLE="clock-circle",e.CODE_FORK="code-fork",e.COLUMN_SWITCHER="column-switcher",e.COMMENT_BUBBLE="comment-bubble",e.COMMENT_BUBBLE_EXCLAMATION="comment-bubble-exclamation",e.COMMENT_BUBBLE_QUESTION="comment-bubble-question",e.COMPLETE_FILE="complete-file",e.CONVERSATION="conversation",e.CREDIT_CARD="credit-card",e.DASHBOARD="dashboard",e.DATABASE="database",e.DESCENDING_ELLIPSES_CIRCLE="descending-ellipses-circle",e.DISK="disk",e.DISK_CIRCLE="disk-circle",e.DOLLAR_SIGN="dollar-sign",e.DOUBLE_ANGLE_LEFT="double-angle-left",e.DOUBLE_ANGLE_RIGHT="double-angle-right",e.DOWNLOAD_CLOUD="download-cloud",e.DRILL="drill",e.DUPLICATE="duplicate",e.ELLIPSES="ellipses",e.ENVELOPE="envelope",e.EXCHANGE="exchange",e.EXCLAMATION_CIRCLE="exclamation-circle",e.EXCLAMATION_TRIANGLE="exclamation-triangle",e.EXPAND_COLLAPSE="expand-collapse",e.EYE="eye",e.EYE_SLASH="eye-slash",e.FILE="file",e.FILE_DUPLICATE="file-duplicate",e.FILE_PDF="file-pdf",e.FILE_PRESENTATION="file-presentation",e.FILE_SIZE="file-size",e.FILE_SOLID="file-solid",e.FILE_SOLID_TEXT="file-solid-text",e.FILE_SPREADSHEET="file-spreadsheet",e.FILE_TEXT="file-text",e.FILTER="filter",e.FLAG="flag",e.FLAG_OUTLINE="flag-outline",e.FOLDER="folder",e.FOLDER_OPEN="folder-open",e.FOLDER_SOLID="folder-solid",e.FOLDER_SOLID_OPEN="folder-solid-open",e.GEAR="gear",e.GLOBE="globe",e.GRID="grid",e.GROUP="group",e.HAND_STOP="hand-stop",e.HANDSHAKE="handshake",e.HAT="hat",e.HEART="heart",e.HEART_OUTLINE="heart-outline",e.HISTORY="history",e.I_MADE_THIS="i-made-this",e.INBOX="inbox",e.INCOMING="incoming",e.INFO_CIRCLE="info-circle",e.ITALICS="italics",e.INTERCOM="intercom",e.ITEM_TAG="item-tag",e.KEY="key",e.LIFE_PRESERVER="life-preserver",e.LIGHTBULB="lightbulb",e.LINK="link",e.LINKEDIN="linkedin",e.LIST="list",e.LIST_CARDS="list-cards",e.LIST_COLUMNS="list-columns",e.LIST_INDENT="list-indent",e.LIST_ORDERED="list-ordered",e.LIST_OUTDENT="list-outdent",e.LIST_UNORDERED="list-unordered",e.LIST_SUMMARY="list-summary",e.LIST_TABLE="list-table",e.LOCATION="location",e.LOCKED="locked",e.LOCKED_CIRCLE="locked-circle",e.MAP="map",e.MAP_MARKER="map-marker",e.MAXIMIZE="maximize",e.MICROPHONE_ON="microphone-on",e.MICROPHONE_OFF="microphone-off",e.MINIMIZE="minimize",e.MINUS="minus",e.MINUS_CIRCLE="minus-circle",e.NESTED_LIST="nested-list",e.NEW_FILE="new-file",e.NEW_SCREEN="new-screen",e.OUTGOING="outgoing",e.PAPER_PLANE="paper-plane",e.PENCIL="pencil",e.PHOTO="photo",e.PIN="pin",e.PIN_OUTLINE="pin-outline",e.PINTEREST="pinterest",e.PLAY="play",e.PLUS_CIRCLE="plus-circle",e.PLUS_SIGN="plus-sign",e.PRESENTATION="presentation",e.PRINTER="printer",e.QR_CODE="qr-code",e.QUESTION_CIRCLE="question-circle",e.QUOTE_LEFT="quote-left",e.QUOTE_RIGHT="quote-right",e.RANDOM="random",e.REDO="redo",e.REFRESH="refresh",e.RIGHT_CIRCLE="right-circle",e.ROCKET="rocket",e.SAVED_CIRCLE="saved-circle",e.SEARCH="search",e.SEARCH_PLUS="search-plus",e.SHARE="share",e.SHOPPING_CART="shopping-cart",e.SORT_ALPHA_ASC="sort-alpha-asc",e.SORT_ALPHA_DESC="sort-alpha-desc",e.SORT_NUM_ASC="sort-num-asc",e.SORT_NUM_DESC="sort-num-desc",e.STAR="star",e.STAR_OUTLINE="star-outline",e.STATUS_ARCHIVED="status-archived",e.STATUS_CANCELLED="status-cancelled",e.STATUS_ERROR="status-error",e.STATUS_IN_PROCESS="status-in-process",e.STATUS_IN_TRANSIT="status-in-transit",e.STATUS_LOCKED="status-locked",e.STATUS_NEW="status-new",e.STATUS_OK="status-ok",e.STATUS_ON_HOLD="status-on-hold",e.STATUS_OUTDATED="status-outdated",e.STATUS_PREVIEW="status-preview",e.STATUS_REJECTED="status-rejected",e.STATUS_SAVED="status-saved",e.STATUS_SAVING="status-saving",e.STATUS_TEMPLATE="status-template",e.STATUS_WARNING="status-warning",e.TABLE="table",e.TABS="tabs",e.TAG="tag",e.TEMPLATE_CIRCLE="template-circle",e.THUMBS_DOWN="thumbs-down",e.THUMBS_DOWN_OUTLINE="thumbs-down-outline",e.THUMBS_UP="thumbs-up",e.THUMBS_UP_OUTLINE="thumbs-up-outline",e.TRASH="trash",e.TRUCK_SHIPPING="truck-shipping",e.TWITTER="twitter",e.UNARCHIVE="unarchive",e.UNDO="undo",e.UNLINK="unlink",e.UNLOCKED="unlocked",e.UPLOAD_CLOUD="upload-cloud",e.USER="user",e.USER_IMPERSONATION="user-impersonation",e.VOLUME_OFF="volume-off",e.VOLUME_LOW="volume-low",e.VOLUME_MEDIUM="volume-medium",e.VOLUME_FULL="volume-full",e.WRENCH="wrench",e.WORKFLOW="workflow",e.WORKFLOW_COMPLETE="workflow-complete",e.X="x",e.X_CIRCLE="x-circle",e))(t||{}),n=(e=>(e.TIP="tip",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e.INFO="info",e))(n||{});const W=Object.freeze({tip:t.LIGHTBULB,error:t.EXCLAMATION_CIRCLE,info:t.INFO_CIRCLE,success:t.CHECKMARK,warning:t.EXCLAMATION_TRIANGLE});var O=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(O||{});const k=7e3,V=2e3;var s=(e=>(e.ACTIVITY="activity",e.ERROR="error",e.INFO="info",e.PROGRESS="progress",e.SUCCESS="success",e.WARNING="warning",e))(s||{});const K=new Map([["info",t.INFO_CIRCLE],["warning",t.EXCLAMATION_TRIANGLE],["error",t.EXCLAMATION_CIRCLE],["success",t.CHECKMARK]]),X={addToList:{noDataZeroStateColumnTitle:"This Column is Empty",noDataZeroStateOnColumnSubheading:"Move options from the {{columnName}}",noDataZeroStateOffColumnSubheading:"Remove options from the {{columnName}}",moveAllItemsToCol:'Move All to "{{columnName}}"',onColumnHeader:"On Column",offColumnHeader:"Off Column",disabledDragTooltip:"Drag and drop are disabled when filters are engaged"},advancedSearch:{clear:"Clear Fields",search:"Search"},button:{spinningTitle:"Loading…"},columnChooser:{removeButton:"Remove {{elementName}}"},columnManager:{title:"Manage Table Columns",filterText:"Find a Column",onListHeader:"Visible Columns",offListHeader:"Hidden Columns",cancelButton:"Cancel",saveButton:"Save"},contentRow:{collapse:"Collapse",expand:"Expand"},datepicker:{calendar:{prevMonth:"View Previous Month",nextMonth:"View Next Month"},preset:{custom:"Custom",today:"Today",before:"Before",after:"After",sevenDays:"Last 7 days",thirtyDays:"Last 30 days",sixtyDays:"Last 60 days",ninetyDays:"Last 90 days",oneYear:"Last year"},presetsLabel:"Ranges"},fileUpload:{acceptedTypes:"{{fileTypes}} format accepted",acceptedTypes_plural:"{{fileTypes}} formats accepted",cancelled:"File Upload Failed",cancelled_plural:"File Upload(s) Failed",close:"Close",instructions:"Drag and drop your file here or |browse for a file| on your desktop.",instructions_plural:"Drag and drop your files here or |browse for files| on your desktop.",maximumSize:"{{size}} maximum",processing:"Processing Upload…",title:"Upload Your {{description}}"},filterPanel:{clear:"Clear Filters",title:"Filters",filterPlaceholder:"Filter options"},focusedTask:{close:"Close"},growler:{dismiss:"Dismiss"},insightCard:{all:"ALL",partnerCount:"{{count}} |of| {{total}}",partners:"PARTNERS"},insightTile:{all:"ALL",partnerCount:"{{count}} |of| {{total}}",partners:"PARTNERS"},label:{errors:{dateConstraint:{max:"Please enter a date on or prior to {{context.maxExceeded}}.",min:"Please enter a date on or after {{context.minExceeded}}."},dateFormat:"Please enter a date in the format {{context}}.",dateRangeOrder:"End date cannot be before start date.",dateValidity:"Please enter a valid date.",max:"Please enter a value no greater than {{context}}.",maxLength:"Please enter no more than {{context}} characters.",min:"Please enter a value no less than {{context}}.",minLength:"Please enter at least {{context}} characters.",required:"This field is required."},preventativeErrors:{maxLength:"This field accepts a maximum number of characters.",alpha:"This field accepts only alphabetic values.",numeric:"This field accepts only numerical values (zero or greater).",positiveOrNegativeNumber:"This field accepts only numerical values.",nonNumeric:"This field accepts only non-numerical values."},stronglySuggested:"This field is strongly suggested."},listActionBar:{clearSelected:"Clear Selected",itemsSelected:"Items Selected"},listToolbar:{advancedSearchToggle:"Advanced Search"},modal:{close:"Close modal",defaultButtonLabel:"Okay",defaultTitle:{general:"Action",info:"Info",success:"Success",warning:"Warning","serious-warning":"Warning"}},slideInPanel:{close:"Close",defaultTitle:"Slide In Panel"},pagination:{nextPage:"Next Page",ofMany:"of many",ofPageCount:"of {{pageCount}}",page:"Page",prevPage:"Previous Page"},progressBar:{closeButtonTitle:"Close progress bar"},searchResultsBar:{clear:"Clear",clearResults:"Clear Results",count:"{{count}} of {{total}}",matchingResults:"Matching results",noAdvancedSearchSelections:"No Advanced Search Selections",results:"Results:"},select:{defaultPlaceholder:"Select one…"},slackLink:{label:"Chat"},spinner:{defaultAltText:"Loading…"},taskQueue:{clearCompleted:"Clear Completed",newTask:"You have a new task in your queue.",noTasks:"There are currently no tasks in your queue."}},Y={t(e,r){const a=E.getPath(X,e.replace(/^design-system:/,""));return r?E.template(a)(r):a}};var _=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(_||{});const S=Object.freeze({general:t.STATUS_NEW,success:t.STATUS_OK,error:t.STATUS_ERROR,warning:t.STATUS_WARNING,processing:t.STATUS_IN_PROCESS});var N=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(N||{});const j=Object.freeze({general:t.STATUS_NEW,success:t.STATUS_OK,error:t.STATUS_ERROR,warning:t.STATUS_WARNING,processing:t.STATUS_IN_PROCESS});var d=(e=>(e.LIGHT="light",e.DARK="dark",e))(d||{}),C=(e=>(e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200",e))(C||{}),o=(e=>(e.GENERAL="general",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.SERIOUS_WARNING="serious-warning",e))(o||{}),m=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.X_LARGE="xlarge",e))(m||{});class q{constructor(r,a={}){this.value=r,Object.assign(this,a)}get text(){return this.textInternal?this.textInternal:this.value?this.textKey?this.value[this.textKey]:String(this.value):""}set text(r){this.textInternal=r}get caption(){return this.captionInternal?this.captionInternal:this.value&&this.captionKey?this.value[this.captionKey]:""}set caption(r){this.captionInternal=r}get href(){return this.value?this.value.isLink&&typeof this.value=="function"?this.value():this.value.href:null}get disabled(){return typeof this.disabledInternal<"u"?this.disabledInternal:this.value?this.value.disabled:!1}set disabled(r){this.disabledInternal=r}get bold(){return typeof this.boldInternal<"u"?this.boldInternal:this.value?this.value.bold&&this.value.bold===!0:!1}getHtml(r){return r?this.text.replace(r,"<u>$&</u>"):this.text}}const Q=[10,25,50,100];var D=(e=>(e.TOP_LEFT="top left",e.TOP_MIDDLE="top middle",e.TOP_RIGHT="top right",e.RIGHT_TOP="right top",e.RIGHT_MIDDLE="right middle",e.RIGHT_BOTTOM="right bottom",e.BOTTOM_RIGHT="bottom right",e.BOTTOM_MIDDLE="bottom middle",e.BOTTOM_LEFT="bottom left",e.LEFT_BOTTOM="left bottom",e.LEFT_MIDDLE="left middle",e.LEFT_TOP="left top",e))(D||{}),U=(e=>(e[e.SMALL=14]="SMALL",e[e.MEDIUM=26]="MEDIUM",e[e.LARGE=38]="LARGE",e))(U||{}),f=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e))(f||{}),h=(e=>(e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200",e))(h||{}),g=(e=>(e.PURPLE="purple",e.RED="red",e.BLUE="blue",e.ORANGE="orange",e.GRAY="gray",e))(g||{}),c=(e=>(e.ASCENDING="ascending",e.DESCENDING="descending",e))(c||{}),P=(e=>(e.DEFAULT="default",e.KEY="key",e.WARNING="warning",e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e.INFO="info",e))(P||{});const J=1e3;var v=(e=>(e.MANUAL="manual",e.MOUSEOVER="mouseover",e.CLICK="click",e))(v||{}),M=(e=>(e.DEFAULT="default",e.HELP="help",e.ERROR="error",e.WARNING="warning",e.CONTAINER="container",e))(M||{});const b={icon:"",label:"",caption:"",disabled:!1,isLink:!1};function $(e){return(r,a,I)=>E.simpleMetadataDecoratorApplicator(e,b,r,a,I)}var G=(e=>(e.COMPLETED="completed",e.ERRORED="errored",e.WARNING="warning",e.IN_PROGRESS="in_progress",e))(G||{});const z=Object.freeze({completed:t.STATUS_OK,errored:t.STATUS_ERROR,warning:t.STATUS_WARNING,in_progress:"sps-spinner sps-spinner--small"}),Z=5e3;var H=(e=>(e.BASIC="basic",e.COMPLETED="completed",e.COMPLETE="completed",e.ACTIVE="active",e))(H||{}),F=(e=>(e[e.BASE=0]="BASE",e[e.TIP=10]="TIP",e[e.DROPDOWN=100]="DROPDOWN",e[e.BAR=1e3]="BAR",e[e.DIALOG=1e4]="DIALOG",e))(F||{});exports.ButtonKind=B;exports.ButtonType=R;exports.ClickableTagKind=L;exports.DEFAULT_PAGE_SIZE_OPTIONS=Q;exports.DropdownKind=y;exports.FeedbackBlockIcons=W;exports.FeedbackBlockKind=n;exports.GROWLER_FADEOUT_DURATION_MS=V;exports.GROWLER_VISIBLE_DURATION_MS=k;exports.GrowlerIcon=K;exports.GrowlerKind=s;exports.KeyValueListTitleColor=d;exports.LineChartColors=C;exports.ModalKind=o;exports.ModalSize=m;exports.Position=D;exports.RingSize=U;exports.SPS_ACTION_DEFAULTS=b;exports.SelectMode=u;exports.SortDirection=c;exports.SpinnerSize=f;exports.SpsAction=$;exports.SpsFilterTileKind=O;exports.SpsIcon=t;exports.SpsIconSize=A;exports.SpsInsightCardIcons=S;exports.SpsInsightCardKind=_;exports.SpsInsightTileIcons=j;exports.SpsInsightTileKind=N;exports.SpsOptionListOption=q;exports.SpsTaskStatus=G;exports.SpsTaskStatusIcons=z;exports.StackedBarChartMilestone=h;exports.StdButtonKind=l;exports.SteppedProgressBarColor=g;exports.TASK_QUEUE_NOTIFICATION_DURATION_MS=Z;exports.TOOLTIP_HIDE_DELAY_MS_DEFAULT=J;exports.TagKind=P;exports.TooltipKind=M;exports.TooltipShowTrigger=v;exports.WizardSubstepConditions=H;exports.ZStratum=F;exports.exampleIsReactComponentExample=x;exports.exampleIsReactJSXExample=w;exports.noI18nI18n=Y;
|
package/lib/index.es.js
CHANGED
@@ -24,7 +24,7 @@ const K = /* @__PURE__ */ new Map([
|
|
24
24
|
["warning", t.EXCLAMATION_TRIANGLE],
|
25
25
|
["error", t.EXCLAMATION_CIRCLE],
|
26
26
|
["success", t.CHECKMARK]
|
27
|
-
]), d = { addToList: { noDataZeroStateColumnTitle: "This Column is Empty", noDataZeroStateOnColumnSubheading: "Move options from the {{columnName}}", noDataZeroStateOffColumnSubheading: "Remove options from the {{columnName}}", moveAllItemsToCol: 'Move All to "{{columnName}}"', onColumnHeader: "On Column", offColumnHeader: "Off Column", disabledDragTooltip: "Drag and drop are disabled when filters are engaged" }, advancedSearch: { clear: "Clear Fields", search: "Search" }, button: { spinningTitle: "Loading…" }, columnChooser: { removeButton: "Remove {{elementName}}" }, columnManager: { title: "Manage Table Columns", filterText: "Find a Column", onListHeader: "Visible Columns", offListHeader: "Hidden Columns", cancelButton: "Cancel", saveButton: "Save" }, contentRow: { collapse: "Collapse", expand: "Expand" }, datepicker: { calendar: { prevMonth: "View Previous Month", nextMonth: "View Next Month" }, preset: { custom: "Custom", today: "Today", before: "Before", after: "After", sevenDays: "Last 7 days", thirtyDays: "Last 30 days", sixtyDays: "Last 60 days", ninetyDays: "Last 90 days", oneYear: "Last year" }, presetsLabel: "Ranges" }, fileUpload: { acceptedTypes: "{{fileTypes}} format accepted", acceptedTypes_plural: "{{fileTypes}} formats accepted", cancelled: "File Upload Failed", cancelled_plural: "File Upload(s) Failed", close: "Close", instructions: "Drag and drop your file here or |browse for a file| on your desktop.", instructions_plural: "Drag and drop your files here or |browse for files| on your desktop.", maximumSize: "{{size}} maximum", processing: "Processing Upload…", title: "Upload Your {{description}}" }, filterPanel: { clear: "Clear Filters", title: "Filters", filterPlaceholder: "Filter options" }, focusedTask: { close: "Close" }, growler: { dismiss: "Dismiss" }, insightCard: { all: "ALL", partnerCount: "{{count}} |of| {{total}}", partners: "PARTNERS" }, insightTile: { all: "ALL", partnerCount: "{{count}} |of| {{total}}", partners: "PARTNERS" }, label: { errors: { dateConstraint: { max: "Please enter a date on or prior to {{context.maxExceeded}}.", min: "Please enter a date on or after {{context.minExceeded}}." }, dateFormat: "Please enter a date in the format {{context}}.", dateRangeOrder: "End date cannot be before start date.", dateValidity: "Please enter a valid date.", max: "Please enter a value no greater than {{context}}.", maxLength: "Please enter no more than {{context}} characters.", min: "Please enter a value no less than {{context}}.", minLength: "Please enter at least {{context}} characters.", required: "This field is required." }, preventativeErrors: { maxLength: "This field accepts a maximum number of characters.", alpha: "This field accepts only alphabetic values.", numeric: "This field accepts only numerical values.", nonNumeric: "This field accepts only non-numerical values." }, stronglySuggested: "This field is strongly suggested." }, listActionBar: { clearSelected: "Clear Selected", itemsSelected: "Items Selected" }, listToolbar: { advancedSearchToggle: "Advanced Search" }, modal: { close: "Close modal", defaultButtonLabel: "Okay", defaultTitle: { general: "Action", info: "Info", success: "Success", warning: "Warning", "serious-warning": "Warning" } }, slideInPanel: { close: "Close", defaultTitle: "Slide In Panel" }, pagination: { nextPage: "Next Page", ofMany: "of many", ofPageCount: "of {{pageCount}}", page: "Page", prevPage: "Previous Page" }, progressBar: { closeButtonTitle: "Close progress bar" }, searchResultsBar: { clear: "Clear", clearResults: "Clear Results", count: "{{count}} of {{total}}", matchingResults: "Matching results", noAdvancedSearchSelections: "No Advanced Search Selections", results: "Results:" }, select: { defaultPlaceholder: "Select one…" }, slackLink: { label: "Chat" }, spinner: { defaultAltText: "Loading…" }, taskQueue: { clearCompleted: "Clear Completed", newTask: "You have a new task in your queue.", noTasks: "There are currently no tasks in your queue." } }, Q = {
|
27
|
+
]), d = { addToList: { noDataZeroStateColumnTitle: "This Column is Empty", noDataZeroStateOnColumnSubheading: "Move options from the {{columnName}}", noDataZeroStateOffColumnSubheading: "Remove options from the {{columnName}}", moveAllItemsToCol: 'Move All to "{{columnName}}"', onColumnHeader: "On Column", offColumnHeader: "Off Column", disabledDragTooltip: "Drag and drop are disabled when filters are engaged" }, advancedSearch: { clear: "Clear Fields", search: "Search" }, button: { spinningTitle: "Loading…" }, columnChooser: { removeButton: "Remove {{elementName}}" }, columnManager: { title: "Manage Table Columns", filterText: "Find a Column", onListHeader: "Visible Columns", offListHeader: "Hidden Columns", cancelButton: "Cancel", saveButton: "Save" }, contentRow: { collapse: "Collapse", expand: "Expand" }, datepicker: { calendar: { prevMonth: "View Previous Month", nextMonth: "View Next Month" }, preset: { custom: "Custom", today: "Today", before: "Before", after: "After", sevenDays: "Last 7 days", thirtyDays: "Last 30 days", sixtyDays: "Last 60 days", ninetyDays: "Last 90 days", oneYear: "Last year" }, presetsLabel: "Ranges" }, fileUpload: { acceptedTypes: "{{fileTypes}} format accepted", acceptedTypes_plural: "{{fileTypes}} formats accepted", cancelled: "File Upload Failed", cancelled_plural: "File Upload(s) Failed", close: "Close", instructions: "Drag and drop your file here or |browse for a file| on your desktop.", instructions_plural: "Drag and drop your files here or |browse for files| on your desktop.", maximumSize: "{{size}} maximum", processing: "Processing Upload…", title: "Upload Your {{description}}" }, filterPanel: { clear: "Clear Filters", title: "Filters", filterPlaceholder: "Filter options" }, focusedTask: { close: "Close" }, growler: { dismiss: "Dismiss" }, insightCard: { all: "ALL", partnerCount: "{{count}} |of| {{total}}", partners: "PARTNERS" }, insightTile: { all: "ALL", partnerCount: "{{count}} |of| {{total}}", partners: "PARTNERS" }, label: { errors: { dateConstraint: { max: "Please enter a date on or prior to {{context.maxExceeded}}.", min: "Please enter a date on or after {{context.minExceeded}}." }, dateFormat: "Please enter a date in the format {{context}}.", dateRangeOrder: "End date cannot be before start date.", dateValidity: "Please enter a valid date.", max: "Please enter a value no greater than {{context}}.", maxLength: "Please enter no more than {{context}} characters.", min: "Please enter a value no less than {{context}}.", minLength: "Please enter at least {{context}} characters.", required: "This field is required." }, preventativeErrors: { maxLength: "This field accepts a maximum number of characters.", alpha: "This field accepts only alphabetic values.", numeric: "This field accepts only numerical values (zero or greater).", positiveOrNegativeNumber: "This field accepts only numerical values.", nonNumeric: "This field accepts only non-numerical values." }, stronglySuggested: "This field is strongly suggested." }, listActionBar: { clearSelected: "Clear Selected", itemsSelected: "Items Selected" }, listToolbar: { advancedSearchToggle: "Advanced Search" }, modal: { close: "Close modal", defaultButtonLabel: "Okay", defaultTitle: { general: "Action", info: "Info", success: "Success", warning: "Warning", "serious-warning": "Warning" } }, slideInPanel: { close: "Close", defaultTitle: "Slide In Panel" }, pagination: { nextPage: "Next Page", ofMany: "of many", ofPageCount: "of {{pageCount}}", page: "Page", prevPage: "Previous Page" }, progressBar: { closeButtonTitle: "Close progress bar" }, searchResultsBar: { clear: "Clear", clearResults: "Clear Results", count: "{{count}} of {{total}}", matchingResults: "Matching results", noAdvancedSearchSelections: "No Advanced Search Selections", results: "Results:" }, select: { defaultPlaceholder: "Select one…" }, slackLink: { label: "Chat" }, spinner: { defaultAltText: "Loading…" }, taskQueue: { clearCompleted: "Clear Completed", newTask: "You have a new task in your queue.", noTasks: "There are currently no tasks in your queue." } }, Q = {
|
28
28
|
t(e, r) {
|
29
29
|
const a = T(d, e.replace(/^design-system:/, ""));
|
30
30
|
return r ? u(a)(r) : a;
|
@@ -46,7 +46,7 @@ const $ = Object.freeze({
|
|
46
46
|
warning: t.STATUS_WARNING,
|
47
47
|
processing: t.STATUS_IN_PROCESS
|
48
48
|
});
|
49
|
-
var
|
49
|
+
var o = /* @__PURE__ */ ((e) => (e.LIGHT = "light", e.DARK = "dark", e))(o || {}), D = /* @__PURE__ */ ((e) => (e.BLUE = "blue200", e.GRAY = "gray600", e.GREEN = "green200", e.ORANGE = "orange200", e.PURPLE = "purple200", e.RED = "red200", e))(D || {}), h = /* @__PURE__ */ ((e) => (e.GENERAL = "general", e.INFO = "info", e.SUCCESS = "success", e.WARNING = "warning", e.SERIOUS_WARNING = "serious-warning", e))(h || {}), U = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e.X_LARGE = "xlarge", e))(U || {});
|
50
50
|
class Z {
|
51
51
|
constructor(r, a = {}) {
|
52
52
|
this.value = r, Object.assign(this, a);
|
@@ -85,10 +85,10 @@ const z = [
|
|
85
85
|
50,
|
86
86
|
100
|
87
87
|
];
|
88
|
-
var g = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "top left", e.TOP_MIDDLE = "top middle", e.TOP_RIGHT = "top right", e.RIGHT_TOP = "right top", e.RIGHT_MIDDLE = "right middle", e.RIGHT_BOTTOM = "right bottom", e.BOTTOM_RIGHT = "bottom right", e.BOTTOM_MIDDLE = "bottom middle", e.BOTTOM_LEFT = "bottom left", e.LEFT_BOTTOM = "left bottom", e.LEFT_MIDDLE = "left middle", e.LEFT_TOP = "left top", e))(g || {}), c = /* @__PURE__ */ ((e) => (e[e.SMALL = 14] = "SMALL", e[e.MEDIUM = 26] = "MEDIUM", e[e.LARGE = 38] = "LARGE", e))(c || {}),
|
88
|
+
var g = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "top left", e.TOP_MIDDLE = "top middle", e.TOP_RIGHT = "top right", e.RIGHT_TOP = "right top", e.RIGHT_MIDDLE = "right middle", e.RIGHT_BOTTOM = "right bottom", e.BOTTOM_RIGHT = "bottom right", e.BOTTOM_MIDDLE = "bottom middle", e.BOTTOM_LEFT = "bottom left", e.LEFT_BOTTOM = "left bottom", e.LEFT_MIDDLE = "left middle", e.LEFT_TOP = "left top", e))(g || {}), c = /* @__PURE__ */ ((e) => (e[e.SMALL = 14] = "SMALL", e[e.MEDIUM = 26] = "MEDIUM", e[e.LARGE = 38] = "LARGE", e))(c || {}), v = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(v || {}), P = /* @__PURE__ */ ((e) => (e.BLUE = "blue200", e.GRAY = "gray600", e.GREEN = "green200", e.ORANGE = "orange200", e.PURPLE = "purple200", e.RED = "red200", e))(P || {}), M = /* @__PURE__ */ ((e) => (e.PURPLE = "purple", e.RED = "red", e.BLUE = "blue", e.ORANGE = "orange", e.GRAY = "gray", e))(M || {}), b = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e))(b || {}), G = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.KEY = "key", e.WARNING = "warning", e.ERROR = "error", e.PENDING = "pending", e.SUCCESS = "success", e.INFO = "info", e))(G || {});
|
89
89
|
const S = 1e3;
|
90
90
|
var H = /* @__PURE__ */ ((e) => (e.MANUAL = "manual", e.MOUSEOVER = "mouseover", e.CLICK = "click", e))(H || {}), F = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.HELP = "help", e.ERROR = "error", e.WARNING = "warning", e.CONTAINER = "container", e))(F || {});
|
91
|
-
const
|
91
|
+
const y = {
|
92
92
|
icon: "",
|
93
93
|
label: "",
|
94
94
|
caption: "",
|
@@ -98,13 +98,13 @@ const x = {
|
|
98
98
|
function p(e) {
|
99
99
|
return (r, a, R) => L(
|
100
100
|
e,
|
101
|
-
|
101
|
+
y,
|
102
102
|
r,
|
103
103
|
a,
|
104
104
|
R
|
105
105
|
);
|
106
106
|
}
|
107
|
-
var
|
107
|
+
var x = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e.ERRORED = "errored", e.WARNING = "warning", e.IN_PROGRESS = "in_progress", e))(x || {});
|
108
108
|
const ee = Object.freeze({
|
109
109
|
completed: t.STATUS_OK,
|
110
110
|
errored: t.STATUS_ERROR,
|
@@ -124,16 +124,16 @@ export {
|
|
124
124
|
j as GROWLER_VISIBLE_DURATION_MS,
|
125
125
|
K as GrowlerIcon,
|
126
126
|
C as GrowlerKind,
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
127
|
+
o as KeyValueListTitleColor,
|
128
|
+
D as LineChartColors,
|
129
|
+
h as ModalKind,
|
130
|
+
U as ModalSize,
|
131
131
|
g as Position,
|
132
132
|
c as RingSize,
|
133
|
-
|
133
|
+
y as SPS_ACTION_DEFAULTS,
|
134
134
|
O as SelectMode,
|
135
|
-
|
136
|
-
|
135
|
+
b as SortDirection,
|
136
|
+
v as SpinnerSize,
|
137
137
|
p as SpsAction,
|
138
138
|
s as SpsFilterTileKind,
|
139
139
|
t as SpsIcon,
|
@@ -143,14 +143,14 @@ export {
|
|
143
143
|
$ as SpsInsightTileIcons,
|
144
144
|
f as SpsInsightTileKind,
|
145
145
|
Z as SpsOptionListOption,
|
146
|
-
|
146
|
+
x as SpsTaskStatus,
|
147
147
|
ee as SpsTaskStatusIcons,
|
148
|
-
|
148
|
+
P as StackedBarChartMilestone,
|
149
149
|
l as StdButtonKind,
|
150
150
|
M as SteppedProgressBarColor,
|
151
151
|
te as TASK_QUEUE_NOTIFICATION_DURATION_MS,
|
152
152
|
S as TOOLTIP_HIDE_DELAY_MS_DEFAULT,
|
153
|
-
|
153
|
+
G as TagKind,
|
154
154
|
F as TooltipKind,
|
155
155
|
H as TooltipShowTrigger,
|
156
156
|
B as WizardSubstepConditions,
|
package/lib/translations.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spscommerce/ds-shared",
|
3
3
|
"description": "Package for sharing code and types between DS Angular and DS React.",
|
4
|
-
"version": "8.19.
|
4
|
+
"version": "8.19.8",
|
5
5
|
"author": "SPS Commerce",
|
6
6
|
"license": "UNLICENSED",
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-shared",
|