@spscommerce/ds-shared 6.37.3 → 7.0.0
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/feedback.d.ts +5 -5
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +137 -500
- package/lib/insight-card.d.ts +5 -5
- package/lib/insight-tile.d.ts +5 -5
- package/lib/option-list.d.ts +2 -2
- package/lib/task-queue.d.ts +4 -4
- package/package.json +7 -8
- package/tsconfig.json +1 -1
- package/vite.config.js +6 -6
package/lib/feedback.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export declare enum FeedbackBlockKind {
|
|
|
7
7
|
INFO = "info"
|
|
8
8
|
}
|
|
9
9
|
export declare const FeedbackBlockIcons: Readonly<{
|
|
10
|
-
tip: SpsIcon;
|
|
11
|
-
error: SpsIcon;
|
|
12
|
-
info: SpsIcon;
|
|
13
|
-
success: SpsIcon;
|
|
14
|
-
warning: SpsIcon;
|
|
10
|
+
tip: SpsIcon.LIGHTBULB;
|
|
11
|
+
error: SpsIcon.EXCLAMATION_CIRCLE;
|
|
12
|
+
info: SpsIcon.INFO_CIRCLE;
|
|
13
|
+
success: SpsIcon.CHECKMARK;
|
|
14
|
+
warning: SpsIcon.EXCLAMATION_TRIANGLE;
|
|
15
15
|
}>;
|
package/lib/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var R=(e,t,a)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,i=(e,t)=>{for(var a in t||(t={}))d.call(t,a)&&R(e,a,t[a]);if(n)for(var a of n(t))u.call(t,a)&&R(e,a,t[a]);return e};Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var l=require("@spscommerce/utils");exports.StdButtonKind=void 0;(function(e){e.DEFAULT="default",e.CONFIRM="confirm",e.DELETE="delete",e.KEY="key"})(exports.StdButtonKind||(exports.StdButtonKind={}));var r;(function(e){e.ICON="icon"})(r||(r={}));var E;(function(e){e.LINK="link"})(E||(E={}));const A=Object.freeze(i(i({},exports.StdButtonKind),r)),L=Object.freeze(i(i(i({},exports.StdButtonKind),r),E));exports.ButtonType=void 0;(function(e){e.BUTTON="button",e.SUBMIT="submit"})(exports.ButtonType||(exports.ButtonType={}));exports.SelectMode=void 0;(function(e){e[e.START=0]="START",e[e.END=1]="END"})(exports.SelectMode||(exports.SelectMode={}));exports.ClickableTagKind=void 0;(function(e){e.BLUE="blue",e.GRAY="gray"})(exports.ClickableTagKind||(exports.ClickableTagKind={}));function O(e){return e.hasOwnProperty("react")}function _(e){return e.hasOwnProperty("jsx")}exports.SpsIconSize=void 0;(function(e){e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl"})(exports.SpsIconSize||(exports.SpsIconSize={}));exports.SpsIcon=void 0;(function(e){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.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.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.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.HISTORY="history",e.INBOX="inbox",e.INCOMING="incoming",e.INFO_CIRCLE="info-circle",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_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.MINIMIZE="minimize",e.MINUS="minus",e.MINUS_CIRCLE="minus-circle",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.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.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_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.UNLOCKED="unlocked",e.UPLOAD_CLOUD="upload-cloud",e.USER="user",e.USER_IMPERSONATION="user-impersonation",e.WRENCH="wrench",e.WORKFLOW="workflow",e.WORKFLOW_COMPLETE="workflow-complete",e.X="x",e.X_CIRCLE="x-circle"})(exports.SpsIcon||(exports.SpsIcon={}));exports.FeedbackBlockKind=void 0;(function(e){e.TIP="tip",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e.INFO="info"})(exports.FeedbackBlockKind||(exports.FeedbackBlockKind={}));const N=Object.freeze({[exports.FeedbackBlockKind.TIP]:exports.SpsIcon.LIGHTBULB,[exports.FeedbackBlockKind.ERROR]:exports.SpsIcon.EXCLAMATION_CIRCLE,[exports.FeedbackBlockKind.INFO]:exports.SpsIcon.INFO_CIRCLE,[exports.FeedbackBlockKind.SUCCESS]:exports.SpsIcon.CHECKMARK,[exports.FeedbackBlockKind.WARNING]:exports.SpsIcon.EXCLAMATION_TRIANGLE});exports.SpsFilterTileKind=void 0;(function(e){e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing"})(exports.SpsFilterTileKind||(exports.SpsFilterTileKind={}));const C=7e3,c=2e3;exports.GrowlerKind=void 0;(function(e){e.ACTIVITY="activity",e.ERROR="error",e.INFO="info",e.PROGRESS="progress",e.SUCCESS="success",e.WARNING="warning"})(exports.GrowlerKind||(exports.GrowlerKind={}));const h=new Map([[exports.GrowlerKind.INFO,exports.SpsIcon.INFO_CIRCLE],[exports.GrowlerKind.WARNING,exports.SpsIcon.EXCLAMATION_TRIANGLE],[exports.GrowlerKind.ERROR,exports.SpsIcon.EXCLAMATION_CIRCLE],[exports.GrowlerKind.SUCCESS,exports.SpsIcon.CHECKMARK]]);var f={advancedSearch:{clear:"Clear Fields",search:"Search"},button:{spinningTitle:"Loading\u2026"},columnChooser:{removeButton:"Remove {{elementName}}"},contentRow:{collapse:"Collapse",expand:"Expand"},datepicker:{calendar:{prevMonth:"View Previous Month",nextMonth:"View Next Month"},preset:{custom:"Custom",today:"Today",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\u2026",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\u2026"},slackLink:{label:"Chat"},spinner:{defaultAltText:"Loading\u2026"},taskQueue:{clearCompleted:"Clear Completed",newTask:"You have a new task in your queue.",noTasks:"There are currently no tasks in your queue."}};const g={t(e,t){const a=l.getPath(f,e.replace(/^design-system:/,""));return t?l.template(a)(t):a}};exports.SpsInsightCardKind=void 0;(function(e){e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing"})(exports.SpsInsightCardKind||(exports.SpsInsightCardKind={}));const D=Object.freeze({[exports.SpsInsightCardKind.GENERAL]:exports.SpsIcon.STATUS_NEW,[exports.SpsInsightCardKind.SUCCESS]:exports.SpsIcon.STATUS_OK,[exports.SpsInsightCardKind.ERROR]:exports.SpsIcon.STATUS_ERROR,[exports.SpsInsightCardKind.WARNING]:exports.SpsIcon.STATUS_WARNING,[exports.SpsInsightCardKind.PROCESSING]:exports.SpsIcon.STATUS_IN_PROCESS});exports.SpsInsightTileKind=void 0;(function(e){e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing"})(exports.SpsInsightTileKind||(exports.SpsInsightTileKind={}));const U=Object.freeze({[exports.SpsInsightTileKind.GENERAL]:exports.SpsIcon.STATUS_NEW,[exports.SpsInsightTileKind.SUCCESS]:exports.SpsIcon.STATUS_OK,[exports.SpsInsightTileKind.ERROR]:exports.SpsIcon.STATUS_ERROR,[exports.SpsInsightTileKind.WARNING]:exports.SpsIcon.STATUS_WARNING,[exports.SpsInsightTileKind.PROCESSING]:exports.SpsIcon.STATUS_IN_PROCESS});exports.KeyValueListTitleColor=void 0;(function(e){e.LIGHT="light",e.DARK="dark"})(exports.KeyValueListTitleColor||(exports.KeyValueListTitleColor={}));exports.LineChartColors=void 0;(function(e){e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200"})(exports.LineChartColors||(exports.LineChartColors={}));exports.ModalKind=void 0;(function(e){e.GENERAL="general",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.SERIOUS_WARNING="serious-warning"})(exports.ModalKind||(exports.ModalKind={}));exports.ModalSize=void 0;(function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.X_LARGE="xlarge"})(exports.ModalSize||(exports.ModalSize={}));class m{constructor(t,a={}){this.value=t,Object.assign(this,a)}get text(){return this.textInternal?this.textInternal:this.value?this.textKey?this.value[this.textKey]:String(this.value):""}set text(t){this.textInternal=t}get caption(){return this.captionInternal?this.captionInternal:this.value&&this.captionKey?this.value[this.captionKey]:""}set caption(t){this.captionInternal=t}get href(){return this.value?this.value.isLink&&typeof this.value=="function"?this.value():this.value.href:null}get disabled(){return typeof this.disabledInternal!="undefined"?this.disabledInternal:this.value?this.value.disabled:!1}set disabled(t){this.disabledInternal=t}get bold(){return typeof this.boldInternal!="undefined"?this.boldInternal:this.value?this.value.bold&&this.value.bold===!0:!1}getHtml(t){return t?this.text.replace(t,"<u>$&</u>"):this.text}}const S=[10,25,50,100];exports.Position=void 0;(function(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"})(exports.Position||(exports.Position={}));exports.RingSize=void 0;(function(e){e[e.SMALL=14]="SMALL",e[e.MEDIUM=26]="MEDIUM",e[e.LARGE=38]="LARGE"})(exports.RingSize||(exports.RingSize={}));exports.SpinnerSize=void 0;(function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"})(exports.SpinnerSize||(exports.SpinnerSize={}));exports.StackedBarChartMilestone=void 0;(function(e){e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200"})(exports.StackedBarChartMilestone||(exports.StackedBarChartMilestone={}));exports.SteppedProgressBarColor=void 0;(function(e){e.PURPLE="purple",e.RED="red",e.BLUE="blue",e.ORANGE="orange",e.GRAY="gray"})(exports.SteppedProgressBarColor||(exports.SteppedProgressBarColor={}));exports.SortDirection=void 0;(function(e){e.ASCENDING="ascending",e.DESCENDING="descending"})(exports.SortDirection||(exports.SortDirection={}));exports.TagKind=void 0;(function(e){e.DEFAULT="default",e.KEY="key",e.WARNING="warning",e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e.INFO="info"})(exports.TagKind||(exports.TagKind={}));const I=1e3;exports.TooltipShowTrigger=void 0;(function(e){e.MANUAL="manual",e.MOUSEOVER="mouseover",e.CLICK="click"})(exports.TooltipShowTrigger||(exports.TooltipShowTrigger={}));exports.TooltipKind=void 0;(function(e){e.DEFAULT="default",e.HELP="help",e.ERROR="error",e.WARNING="warning",e.CONTAINER="container"})(exports.TooltipKind||(exports.TooltipKind={}));const s={icon:"",label:"",caption:"",disabled:!1,isLink:!1};function P(e){return(t,a,T)=>l.simpleMetadataDecoratorApplicator(e,s,t,a,T)}exports.SpsTaskStatus=void 0;(function(e){e.COMPLETED="completed",e.ERRORED="errored",e.WARNING="warning",e.IN_PROGRESS="in_progress"})(exports.SpsTaskStatus||(exports.SpsTaskStatus={}));const G=Object.freeze({[exports.SpsTaskStatus.COMPLETED]:exports.SpsIcon.STATUS_OK,[exports.SpsTaskStatus.ERRORED]:exports.SpsIcon.STATUS_ERROR,[exports.SpsTaskStatus.WARNING]:exports.SpsIcon.STATUS_WARNING,[exports.SpsTaskStatus.IN_PROGRESS]:"sps-spinner sps-spinner--small"}),M=5e3;exports.WizardSubstepConditions=void 0;(function(e){e.BASIC="basic",e.COMPLETED="completed",e.COMPLETE="completed",e.ACTIVE="active"})(exports.WizardSubstepConditions||(exports.WizardSubstepConditions={}));exports.ZStratum=void 0;(function(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"})(exports.ZStratum||(exports.ZStratum={}));exports.ButtonKind=L;exports.DEFAULT_PAGE_SIZE_OPTIONS=S;exports.DropdownKind=A;exports.FeedbackBlockIcons=N;exports.GROWLER_FADEOUT_DURATION_MS=c;exports.GROWLER_VISIBLE_DURATION_MS=C;exports.GrowlerIcon=h;exports.SPS_ACTION_DEFAULTS=s;exports.SpsAction=P;exports.SpsInsightCardIcons=D;exports.SpsInsightTileIcons=U;exports.SpsOptionListOption=m;exports.SpsTaskStatusIcons=G;exports.TASK_QUEUE_NOTIFICATION_DURATION_MS=M;exports.TOOLTIP_HIDE_DELAY_MS_DEFAULT=I;exports.exampleIsReactComponentExample=O;exports.exampleIsReactJSXExample=_;exports.noI18nI18n=g;
|
|
1
|
+
"use strict";var y=Object.defineProperty;var B=(e,r,a)=>r in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a;var l=(e,r,a)=>(B(e,typeof r!="symbol"?r+"":r,a),a);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("@spscommerce/utils");var E=(e=>(e.DEFAULT="default",e.CONFIRM="confirm",e.DELETE="delete",e.KEY="key",e))(E||{}),R=(e=>(e.ICON="icon",e))(R||{}),T=(e=>(e.LINK="link",e))(T||{});const w=Object.freeze({...E,...R}),W=Object.freeze({...E,...R,...T});var A=(e=>(e.BUTTON="button",e.SUBMIT="submit",e))(A||{}),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 k(e){return e.hasOwnProperty("react")}function K(e){return e.hasOwnProperty("jsx")}var n=(e=>(e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl",e))(n||{}),t=(e=>(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.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.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.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.HISTORY="history",e.INBOX="inbox",e.INCOMING="incoming",e.INFO_CIRCLE="info-circle",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_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.MINIMIZE="minimize",e.MINUS="minus",e.MINUS_CIRCLE="minus-circle",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.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.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_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.UNLOCKED="unlocked",e.UPLOAD_CLOUD="upload-cloud",e.USER="user",e.USER_IMPERSONATION="user-impersonation",e.WRENCH="wrench",e.WORKFLOW="workflow",e.WORKFLOW_COMPLETE="workflow-complete",e.X="x",e.X_CIRCLE="x-circle",e))(t||{}),s=(e=>(e.TIP="tip",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error",e.INFO="info",e))(s||{});const V=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 X=7e3,S=2e3;var _=(e=>(e.ACTIVITY="activity",e.ERROR="error",e.INFO="info",e.PROGRESS="progress",e.SUCCESS="success",e.WARNING="warning",e))(_||{});const Y=new Map([["info",t.INFO_CIRCLE],["warning",t.EXCLAMATION_TRIANGLE],["error",t.EXCLAMATION_CIRCLE],["success",t.CHECKMARK]]),j={advancedSearch:{clear:"Clear Fields",search:"Search"},button:{spinningTitle:"Loading\u2026"},columnChooser:{removeButton:"Remove {{elementName}}"},contentRow:{collapse:"Collapse",expand:"Expand"},datepicker:{calendar:{prevMonth:"View Previous Month",nextMonth:"View Next Month"},preset:{custom:"Custom",today:"Today",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\u2026",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\u2026"},slackLink:{label:"Chat"},spinner:{defaultAltText:"Loading\u2026"},taskQueue:{clearCompleted:"Clear Completed",newTask:"You have a new task in your queue.",noTasks:"There are currently no tasks in your queue."}},q={t(e,r){const a=i.getPath(j,e.replace(/^design-system:/,""));return r?i.template(a)(r):a}};var N=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(N||{});const Q=Object.freeze({general:t.STATUS_NEW,success:t.STATUS_OK,error:t.STATUS_ERROR,warning:t.STATUS_WARNING,processing:t.STATUS_IN_PROCESS});var C=(e=>(e.GENERAL="general",e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.PROCESSING="processing",e))(C||{});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||{}),o=(e=>(e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200",e))(o||{}),c=(e=>(e.GENERAL="general",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.SERIOUS_WARNING="serious-warning",e))(c||{}),D=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.X_LARGE="xlarge",e))(D||{});class ${constructor(r,a={}){l(this,"textKey");l(this,"captionKey");l(this,"textInternal");l(this,"captionInternal");l(this,"disabledInternal");l(this,"boldInternal");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 z=[10,25,50,100];var h=(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))(h||{}),U=(e=>(e[e.SMALL=14]="SMALL",e[e.MEDIUM=26]="MEDIUM",e[e.LARGE=38]="LARGE",e))(U||{}),g=(e=>(e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e))(g||{}),m=(e=>(e.BLUE="blue200",e.GRAY="gray600",e.GREEN="green200",e.ORANGE="orange200",e.PURPLE="purple200",e.RED="red200",e))(m||{}),f=(e=>(e.PURPLE="purple",e.RED="red",e.BLUE="blue",e.ORANGE="orange",e.GRAY="gray",e))(f||{}),P=(e=>(e.ASCENDING="ascending",e.DESCENDING="descending",e))(P||{}),G=(e=>(e.DEFAULT="default",e.KEY="key",e.WARNING="warning",e.ERROR="error",e.PENDING="pending",e.SUCCESS="success",e.INFO="info",e))(G||{});const Z=1e3;var M=(e=>(e.MANUAL="manual",e.MOUSEOVER="mouseover",e.CLICK="click",e))(M||{}),b=(e=>(e.DEFAULT="default",e.HELP="help",e.ERROR="error",e.WARNING="warning",e.CONTAINER="container",e))(b||{});const v={icon:"",label:"",caption:"",disabled:!1,isLink:!1};function p(e){return(r,a,x)=>i.simpleMetadataDecoratorApplicator(e,v,r,a,x)}var I=(e=>(e.COMPLETED="completed",e.ERRORED="errored",e.WARNING="warning",e.IN_PROGRESS="in_progress",e))(I||{});const ee=Object.freeze({completed:t.STATUS_OK,errored:t.STATUS_ERROR,warning:t.STATUS_WARNING,in_progress:"sps-spinner sps-spinner--small"}),te=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=W;exports.ButtonType=A;exports.ClickableTagKind=L;exports.DEFAULT_PAGE_SIZE_OPTIONS=z;exports.DropdownKind=w;exports.FeedbackBlockIcons=V;exports.FeedbackBlockKind=s;exports.GROWLER_FADEOUT_DURATION_MS=S;exports.GROWLER_VISIBLE_DURATION_MS=X;exports.GrowlerIcon=Y;exports.GrowlerKind=_;exports.KeyValueListTitleColor=d;exports.LineChartColors=o;exports.ModalKind=c;exports.ModalSize=D;exports.Position=h;exports.RingSize=U;exports.SPS_ACTION_DEFAULTS=v;exports.SelectMode=u;exports.SortDirection=P;exports.SpinnerSize=g;exports.SpsAction=p;exports.SpsFilterTileKind=O;exports.SpsIcon=t;exports.SpsIconSize=n;exports.SpsInsightCardIcons=Q;exports.SpsInsightCardKind=N;exports.SpsInsightTileIcons=J;exports.SpsInsightTileKind=C;exports.SpsOptionListOption=$;exports.SpsTaskStatus=I;exports.SpsTaskStatusIcons=ee;exports.StackedBarChartMilestone=m;exports.StdButtonKind=E;exports.SteppedProgressBarColor=f;exports.TASK_QUEUE_NOTIFICATION_DURATION_MS=te;exports.TOOLTIP_HIDE_DELAY_MS_DEFAULT=Z;exports.TagKind=G;exports.TooltipKind=b;exports.TooltipShowTrigger=M;exports.WizardSubstepConditions=H;exports.ZStratum=F;exports.exampleIsReactComponentExample=k;exports.exampleIsReactJSXExample=K;exports.noI18nI18n=q;
|
package/lib/index.es.js
CHANGED
|
@@ -1,533 +1,170 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
import { getPath, template, simpleMetadataDecoratorApplicator } from "@spscommerce/utils";
|
|
18
|
-
var StdButtonKind;
|
|
19
|
-
(function(StdButtonKind2) {
|
|
20
|
-
StdButtonKind2["DEFAULT"] = "default";
|
|
21
|
-
StdButtonKind2["CONFIRM"] = "confirm";
|
|
22
|
-
StdButtonKind2["DELETE"] = "delete";
|
|
23
|
-
StdButtonKind2["KEY"] = "key";
|
|
24
|
-
})(StdButtonKind || (StdButtonKind = {}));
|
|
25
|
-
var ButtonKindIcon;
|
|
26
|
-
(function(ButtonKindIcon2) {
|
|
27
|
-
ButtonKindIcon2["ICON"] = "icon";
|
|
28
|
-
})(ButtonKindIcon || (ButtonKindIcon = {}));
|
|
29
|
-
var ButtonKindLink;
|
|
30
|
-
(function(ButtonKindLink2) {
|
|
31
|
-
ButtonKindLink2["LINK"] = "link";
|
|
32
|
-
})(ButtonKindLink || (ButtonKindLink = {}));
|
|
33
|
-
const DropdownKind = Object.freeze(__spreadValues(__spreadValues({}, StdButtonKind), ButtonKindIcon));
|
|
34
|
-
const ButtonKind = Object.freeze(__spreadValues(__spreadValues(__spreadValues({}, StdButtonKind), ButtonKindIcon), ButtonKindLink));
|
|
35
|
-
var ButtonType;
|
|
36
|
-
(function(ButtonType2) {
|
|
37
|
-
ButtonType2["BUTTON"] = "button";
|
|
38
|
-
ButtonType2["SUBMIT"] = "submit";
|
|
39
|
-
})(ButtonType || (ButtonType = {}));
|
|
40
|
-
var SelectMode;
|
|
41
|
-
(function(SelectMode2) {
|
|
42
|
-
SelectMode2[SelectMode2["START"] = 0] = "START";
|
|
43
|
-
SelectMode2[SelectMode2["END"] = 1] = "END";
|
|
44
|
-
})(SelectMode || (SelectMode = {}));
|
|
45
|
-
var ClickableTagKind;
|
|
46
|
-
(function(ClickableTagKind2) {
|
|
47
|
-
ClickableTagKind2["BLUE"] = "blue";
|
|
48
|
-
ClickableTagKind2["GRAY"] = "gray";
|
|
49
|
-
})(ClickableTagKind || (ClickableTagKind = {}));
|
|
50
|
-
function exampleIsReactComponentExample(example) {
|
|
51
|
-
return example.hasOwnProperty("react");
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var L = (e, r, a) => r in e ? T(e, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[r] = a;
|
|
3
|
+
var l = (e, r, a) => (L(e, typeof r != "symbol" ? r + "" : r, a), a);
|
|
4
|
+
import { getPath as u, template as O, simpleMetadataDecoratorApplicator as _ } from "@spscommerce/utils";
|
|
5
|
+
var E = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.CONFIRM = "confirm", e.DELETE = "delete", e.KEY = "key", e))(E || {}), R = /* @__PURE__ */ ((e) => (e.ICON = "icon", e))(R || {}), i = /* @__PURE__ */ ((e) => (e.LINK = "link", e))(i || {});
|
|
6
|
+
const Y = Object.freeze({ ...E, ...R }), j = Object.freeze({ ...E, ...R, ...i });
|
|
7
|
+
var n = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.SUBMIT = "submit", e))(n || {}), N = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.END = 1] = "END", e))(N || {}), s = /* @__PURE__ */ ((e) => (e.BLUE = "blue", e.GRAY = "gray", e))(s || {});
|
|
8
|
+
function q(e) {
|
|
9
|
+
return e.hasOwnProperty("react");
|
|
52
10
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
11
|
+
function K(e) {
|
|
12
|
+
return e.hasOwnProperty("jsx");
|
|
55
13
|
}
|
|
56
|
-
var
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})(SpsIconSize || (SpsIconSize = {}));
|
|
64
|
-
var SpsIcon;
|
|
65
|
-
(function(SpsIcon2) {
|
|
66
|
-
SpsIcon2["ANGLE_LEFT"] = "angle-left";
|
|
67
|
-
SpsIcon2["ANGLE_RIGHT"] = "angle-right";
|
|
68
|
-
SpsIcon2["ARCHIVE"] = "archive";
|
|
69
|
-
SpsIcon2["ARCHIVE_CIRCLE"] = "archive-circle";
|
|
70
|
-
SpsIcon2["ARROW_DOWN"] = "arrow-down";
|
|
71
|
-
SpsIcon2["ARROW_LEFT"] = "arrow-left";
|
|
72
|
-
SpsIcon2["ARROW_LEFT_CIRCLE"] = "arrow-left-circle";
|
|
73
|
-
SpsIcon2["ARROW_RIGHT"] = "arrow-right";
|
|
74
|
-
SpsIcon2["ARROW_RIGHT_CIRCLE"] = "arrow-right-circle";
|
|
75
|
-
SpsIcon2["ARROW_UP"] = "arrow-up";
|
|
76
|
-
SpsIcon2["ASTERISK"] = "asterisk";
|
|
77
|
-
SpsIcon2["ASTERISK_CIRCLE"] = "asterisk-circle";
|
|
78
|
-
SpsIcon2["BAN"] = "ban";
|
|
79
|
-
SpsIcon2["BAN_CIRCLE"] = "ban-circle";
|
|
80
|
-
SpsIcon2["BARCODE"] = "barcode";
|
|
81
|
-
SpsIcon2["BELL"] = "bell";
|
|
82
|
-
SpsIcon2["BELL_FILLED"] = "bell-filled";
|
|
83
|
-
SpsIcon2["BOLT"] = "bolt";
|
|
84
|
-
SpsIcon2["BOOK"] = "book";
|
|
85
|
-
SpsIcon2["BUILDING"] = "building";
|
|
86
|
-
SpsIcon2["BURST"] = "burst";
|
|
87
|
-
SpsIcon2["BURST_BOLT"] = "burst-bolt";
|
|
88
|
-
SpsIcon2["CALENDAR"] = "calendar";
|
|
89
|
-
SpsIcon2["CALENDAR_BLANK"] = "calendar-blank";
|
|
90
|
-
SpsIcon2["CALENDAR_BLANK_CIRCLE"] = "calendar-blank-circle";
|
|
91
|
-
SpsIcon2["CALENDAR_SELECT"] = "calendar-select";
|
|
92
|
-
SpsIcon2["CAMERA"] = "camera";
|
|
93
|
-
SpsIcon2["CHART_AREA"] = "chart-area";
|
|
94
|
-
SpsIcon2["CHART_BAR"] = "chart-bar";
|
|
95
|
-
SpsIcon2["CHART_LINE"] = "chart-line";
|
|
96
|
-
SpsIcon2["CHART_PIE"] = "chart-pie";
|
|
97
|
-
SpsIcon2["CHECKMARK"] = "checkmark";
|
|
98
|
-
SpsIcon2["CHECKMARK_CIRCLE"] = "checkmark-circle";
|
|
99
|
-
SpsIcon2["CHEVRON_DOWN"] = "chevron-down";
|
|
100
|
-
SpsIcon2["CHEVRON_LEFT"] = "chevron-left";
|
|
101
|
-
SpsIcon2["CHEVRON_RIGHT"] = "chevron-right";
|
|
102
|
-
SpsIcon2["CHEVRON_UP"] = "chevron-up";
|
|
103
|
-
SpsIcon2["CIRCLE_OUTLINE"] = "circle-outline";
|
|
104
|
-
SpsIcon2["CLOCK"] = "clock";
|
|
105
|
-
SpsIcon2["CLOCK_CIRCLE"] = "clock-circle";
|
|
106
|
-
SpsIcon2["CODE_FORK"] = "code-fork";
|
|
107
|
-
SpsIcon2["COLUMN_SWITCHER"] = "column-switcher";
|
|
108
|
-
SpsIcon2["COMMENT_BUBBLE"] = "comment-bubble";
|
|
109
|
-
SpsIcon2["COMMENT_BUBBLE_EXCLAMATION"] = "comment-bubble-exclamation";
|
|
110
|
-
SpsIcon2["COMMENT_BUBBLE_QUESTION"] = "comment-bubble-question";
|
|
111
|
-
SpsIcon2["COMPLETE_FILE"] = "complete-file";
|
|
112
|
-
SpsIcon2["CONVERSATION"] = "conversation";
|
|
113
|
-
SpsIcon2["CREDIT_CARD"] = "credit-card";
|
|
114
|
-
SpsIcon2["DASHBOARD"] = "dashboard";
|
|
115
|
-
SpsIcon2["DATABASE"] = "database";
|
|
116
|
-
SpsIcon2["DESCENDING_ELLIPSES_CIRCLE"] = "descending-ellipses-circle";
|
|
117
|
-
SpsIcon2["DISK"] = "disk";
|
|
118
|
-
SpsIcon2["DISK_CIRCLE"] = "disk-circle";
|
|
119
|
-
SpsIcon2["DOLLAR_SIGN"] = "dollar-sign";
|
|
120
|
-
SpsIcon2["DOUBLE_ANGLE_LEFT"] = "double-angle-left";
|
|
121
|
-
SpsIcon2["DOUBLE_ANGLE_RIGHT"] = "double-angle-right";
|
|
122
|
-
SpsIcon2["DOWNLOAD_CLOUD"] = "download-cloud";
|
|
123
|
-
SpsIcon2["DRILL"] = "drill";
|
|
124
|
-
SpsIcon2["DUPLICATE"] = "duplicate";
|
|
125
|
-
SpsIcon2["ELLIPSES"] = "ellipses";
|
|
126
|
-
SpsIcon2["ENVELOPE"] = "envelope";
|
|
127
|
-
SpsIcon2["EXCHANGE"] = "exchange";
|
|
128
|
-
SpsIcon2["EXCLAMATION_CIRCLE"] = "exclamation-circle";
|
|
129
|
-
SpsIcon2["EXCLAMATION_TRIANGLE"] = "exclamation-triangle";
|
|
130
|
-
SpsIcon2["EXPAND_COLLAPSE"] = "expand-collapse";
|
|
131
|
-
SpsIcon2["EYE"] = "eye";
|
|
132
|
-
SpsIcon2["EYE_SLASH"] = "eye-slash";
|
|
133
|
-
SpsIcon2["FILE"] = "file";
|
|
134
|
-
SpsIcon2["FILE_DUPLICATE"] = "file-duplicate";
|
|
135
|
-
SpsIcon2["FILE_PDF"] = "file-pdf";
|
|
136
|
-
SpsIcon2["FILE_PRESENTATION"] = "file-presentation";
|
|
137
|
-
SpsIcon2["FILE_SIZE"] = "file-size";
|
|
138
|
-
SpsIcon2["FILE_SOLID"] = "file-solid";
|
|
139
|
-
SpsIcon2["FILE_SOLID_TEXT"] = "file-solid-text";
|
|
140
|
-
SpsIcon2["FILE_SPREADSHEET"] = "file-spreadsheet";
|
|
141
|
-
SpsIcon2["FILE_TEXT"] = "file-text";
|
|
142
|
-
SpsIcon2["FILTER"] = "filter";
|
|
143
|
-
SpsIcon2["FLAG"] = "flag";
|
|
144
|
-
SpsIcon2["FOLDER"] = "folder";
|
|
145
|
-
SpsIcon2["FOLDER_OPEN"] = "folder-open";
|
|
146
|
-
SpsIcon2["FOLDER_SOLID"] = "folder-solid";
|
|
147
|
-
SpsIcon2["FOLDER_SOLID_OPEN"] = "folder-solid-open";
|
|
148
|
-
SpsIcon2["GEAR"] = "gear";
|
|
149
|
-
SpsIcon2["GLOBE"] = "globe";
|
|
150
|
-
SpsIcon2["GRID"] = "grid";
|
|
151
|
-
SpsIcon2["GROUP"] = "group";
|
|
152
|
-
SpsIcon2["HAND_STOP"] = "hand-stop";
|
|
153
|
-
SpsIcon2["HANDSHAKE"] = "handshake";
|
|
154
|
-
SpsIcon2["HAT"] = "hat";
|
|
155
|
-
SpsIcon2["HEART"] = "heart";
|
|
156
|
-
SpsIcon2["HISTORY"] = "history";
|
|
157
|
-
SpsIcon2["INBOX"] = "inbox";
|
|
158
|
-
SpsIcon2["INCOMING"] = "incoming";
|
|
159
|
-
SpsIcon2["INFO_CIRCLE"] = "info-circle";
|
|
160
|
-
SpsIcon2["INTERCOM"] = "intercom";
|
|
161
|
-
SpsIcon2["ITEM_TAG"] = "item-tag";
|
|
162
|
-
SpsIcon2["KEY"] = "key";
|
|
163
|
-
SpsIcon2["LIFE_PRESERVER"] = "life-preserver";
|
|
164
|
-
SpsIcon2["LIGHTBULB"] = "lightbulb";
|
|
165
|
-
SpsIcon2["LINK"] = "link";
|
|
166
|
-
SpsIcon2["LINKEDIN"] = "linkedin";
|
|
167
|
-
SpsIcon2["LIST"] = "list";
|
|
168
|
-
SpsIcon2["LIST_CARDS"] = "list-cards";
|
|
169
|
-
SpsIcon2["LIST_COLUMNS"] = "list-columns";
|
|
170
|
-
SpsIcon2["LIST_SUMMARY"] = "list-summary";
|
|
171
|
-
SpsIcon2["LIST_TABLE"] = "list-table";
|
|
172
|
-
SpsIcon2["LOCATION"] = "location";
|
|
173
|
-
SpsIcon2["LOCKED"] = "locked";
|
|
174
|
-
SpsIcon2["LOCKED_CIRCLE"] = "locked-circle";
|
|
175
|
-
SpsIcon2["MAP"] = "map";
|
|
176
|
-
SpsIcon2["MAP_MARKER"] = "map-marker";
|
|
177
|
-
SpsIcon2["MAXIMIZE"] = "maximize";
|
|
178
|
-
SpsIcon2["MINIMIZE"] = "minimize";
|
|
179
|
-
SpsIcon2["MINUS"] = "minus";
|
|
180
|
-
SpsIcon2["MINUS_CIRCLE"] = "minus-circle";
|
|
181
|
-
SpsIcon2["NEW_FILE"] = "new-file";
|
|
182
|
-
SpsIcon2["NEW_SCREEN"] = "new-screen";
|
|
183
|
-
SpsIcon2["OUTGOING"] = "outgoing";
|
|
184
|
-
SpsIcon2["PAPER_PLANE"] = "paper-plane";
|
|
185
|
-
SpsIcon2["PENCIL"] = "pencil";
|
|
186
|
-
SpsIcon2["PHOTO"] = "photo";
|
|
187
|
-
SpsIcon2["PIN"] = "pin";
|
|
188
|
-
SpsIcon2["PINTEREST"] = "pinterest";
|
|
189
|
-
SpsIcon2["PLAY"] = "play";
|
|
190
|
-
SpsIcon2["PLUS_CIRCLE"] = "plus-circle";
|
|
191
|
-
SpsIcon2["PLUS_SIGN"] = "plus-sign";
|
|
192
|
-
SpsIcon2["PRESENTATION"] = "presentation";
|
|
193
|
-
SpsIcon2["PRINTER"] = "printer";
|
|
194
|
-
SpsIcon2["QR_CODE"] = "qr-code";
|
|
195
|
-
SpsIcon2["QUESTION_CIRCLE"] = "question-circle";
|
|
196
|
-
SpsIcon2["QUOTE_LEFT"] = "quote-left";
|
|
197
|
-
SpsIcon2["QUOTE_RIGHT"] = "quote-right";
|
|
198
|
-
SpsIcon2["RANDOM"] = "random";
|
|
199
|
-
SpsIcon2["REDO"] = "redo";
|
|
200
|
-
SpsIcon2["REFRESH"] = "refresh";
|
|
201
|
-
SpsIcon2["RIGHT_CIRCLE"] = "right-circle";
|
|
202
|
-
SpsIcon2["ROCKET"] = "rocket";
|
|
203
|
-
SpsIcon2["SEARCH"] = "search";
|
|
204
|
-
SpsIcon2["SEARCH_PLUS"] = "search-plus";
|
|
205
|
-
SpsIcon2["SHARE"] = "share";
|
|
206
|
-
SpsIcon2["SHOPPING_CART"] = "shopping-cart";
|
|
207
|
-
SpsIcon2["SORT_ALPHA_ASC"] = "sort-alpha-asc";
|
|
208
|
-
SpsIcon2["SORT_ALPHA_DESC"] = "sort-alpha-desc";
|
|
209
|
-
SpsIcon2["SORT_NUM_ASC"] = "sort-num-asc";
|
|
210
|
-
SpsIcon2["SORT_NUM_DESC"] = "sort-num-desc";
|
|
211
|
-
SpsIcon2["STAR"] = "star";
|
|
212
|
-
SpsIcon2["STAR_OUTLINE"] = "star-outline";
|
|
213
|
-
SpsIcon2["STATUS_ARCHIVED"] = "status-archived";
|
|
214
|
-
SpsIcon2["STATUS_CANCELLED"] = "status-cancelled";
|
|
215
|
-
SpsIcon2["STATUS_ERROR"] = "status-error";
|
|
216
|
-
SpsIcon2["STATUS_IN_PROCESS"] = "status-in-process";
|
|
217
|
-
SpsIcon2["STATUS_IN_TRANSIT"] = "status-in-transit";
|
|
218
|
-
SpsIcon2["STATUS_LOCKED"] = "status-locked";
|
|
219
|
-
SpsIcon2["STATUS_NEW"] = "status-new";
|
|
220
|
-
SpsIcon2["STATUS_OK"] = "status-ok";
|
|
221
|
-
SpsIcon2["STATUS_ON_HOLD"] = "status-on-hold";
|
|
222
|
-
SpsIcon2["STATUS_OUTDATED"] = "status-outdated";
|
|
223
|
-
SpsIcon2["STATUS_REJECTED"] = "status-rejected";
|
|
224
|
-
SpsIcon2["STATUS_SAVED"] = "status-saved";
|
|
225
|
-
SpsIcon2["STATUS_SAVING"] = "status-saving";
|
|
226
|
-
SpsIcon2["STATUS_TEMPLATE"] = "status-template";
|
|
227
|
-
SpsIcon2["STATUS_WARNING"] = "status-warning";
|
|
228
|
-
SpsIcon2["TABLE"] = "table";
|
|
229
|
-
SpsIcon2["TABS"] = "tabs";
|
|
230
|
-
SpsIcon2["TAG"] = "tag";
|
|
231
|
-
SpsIcon2["TEMPLATE_CIRCLE"] = "template-circle";
|
|
232
|
-
SpsIcon2["THUMBS_DOWN"] = "thumbs-down";
|
|
233
|
-
SpsIcon2["THUMBS_DOWN_OUTLINE"] = "thumbs-down-outline";
|
|
234
|
-
SpsIcon2["THUMBS_UP"] = "thumbs-up";
|
|
235
|
-
SpsIcon2["THUMBS_UP_OUTLINE"] = "thumbs-up-outline";
|
|
236
|
-
SpsIcon2["TRASH"] = "trash";
|
|
237
|
-
SpsIcon2["TRUCK_SHIPPING"] = "truck-shipping";
|
|
238
|
-
SpsIcon2["TWITTER"] = "twitter";
|
|
239
|
-
SpsIcon2["UNARCHIVE"] = "unarchive";
|
|
240
|
-
SpsIcon2["UNDO"] = "undo";
|
|
241
|
-
SpsIcon2["UNLOCKED"] = "unlocked";
|
|
242
|
-
SpsIcon2["UPLOAD_CLOUD"] = "upload-cloud";
|
|
243
|
-
SpsIcon2["USER"] = "user";
|
|
244
|
-
SpsIcon2["USER_IMPERSONATION"] = "user-impersonation";
|
|
245
|
-
SpsIcon2["WRENCH"] = "wrench";
|
|
246
|
-
SpsIcon2["WORKFLOW"] = "workflow";
|
|
247
|
-
SpsIcon2["WORKFLOW_COMPLETE"] = "workflow-complete";
|
|
248
|
-
SpsIcon2["X"] = "x";
|
|
249
|
-
SpsIcon2["X_CIRCLE"] = "x-circle";
|
|
250
|
-
})(SpsIcon || (SpsIcon = {}));
|
|
251
|
-
var FeedbackBlockKind;
|
|
252
|
-
(function(FeedbackBlockKind2) {
|
|
253
|
-
FeedbackBlockKind2["TIP"] = "tip";
|
|
254
|
-
FeedbackBlockKind2["SUCCESS"] = "success";
|
|
255
|
-
FeedbackBlockKind2["WARNING"] = "warning";
|
|
256
|
-
FeedbackBlockKind2["ERROR"] = "error";
|
|
257
|
-
FeedbackBlockKind2["INFO"] = "info";
|
|
258
|
-
})(FeedbackBlockKind || (FeedbackBlockKind = {}));
|
|
259
|
-
const FeedbackBlockIcons = Object.freeze({
|
|
260
|
-
[FeedbackBlockKind.TIP]: SpsIcon.LIGHTBULB,
|
|
261
|
-
[FeedbackBlockKind.ERROR]: SpsIcon.EXCLAMATION_CIRCLE,
|
|
262
|
-
[FeedbackBlockKind.INFO]: SpsIcon.INFO_CIRCLE,
|
|
263
|
-
[FeedbackBlockKind.SUCCESS]: SpsIcon.CHECKMARK,
|
|
264
|
-
[FeedbackBlockKind.WARNING]: SpsIcon.EXCLAMATION_TRIANGLE
|
|
14
|
+
var C = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "lg", e.EXTRA_LARGE = "xl", e))(C || {}), t = /* @__PURE__ */ ((e) => (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.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.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.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.HISTORY = "history", e.INBOX = "inbox", e.INCOMING = "incoming", e.INFO_CIRCLE = "info-circle", 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_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.MINIMIZE = "minimize", e.MINUS = "minus", e.MINUS_CIRCLE = "minus-circle", 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.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.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_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.UNLOCKED = "unlocked", e.UPLOAD_CLOUD = "upload-cloud", e.USER = "user", e.USER_IMPERSONATION = "user-impersonation", e.WRENCH = "wrench", e.WORKFLOW = "workflow", e.WORKFLOW_COMPLETE = "workflow-complete", e.X = "x", e.X_CIRCLE = "x-circle", e))(t || {}), d = /* @__PURE__ */ ((e) => (e.TIP = "tip", e.SUCCESS = "success", e.WARNING = "warning", e.ERROR = "error", e.INFO = "info", e))(d || {});
|
|
15
|
+
const Q = Object.freeze({
|
|
16
|
+
tip: t.LIGHTBULB,
|
|
17
|
+
error: t.EXCLAMATION_CIRCLE,
|
|
18
|
+
info: t.INFO_CIRCLE,
|
|
19
|
+
success: t.CHECKMARK,
|
|
20
|
+
warning: t.EXCLAMATION_TRIANGLE
|
|
265
21
|
});
|
|
266
|
-
var
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
(
|
|
278
|
-
GrowlerKind2["ACTIVITY"] = "activity";
|
|
279
|
-
GrowlerKind2["ERROR"] = "error";
|
|
280
|
-
GrowlerKind2["INFO"] = "info";
|
|
281
|
-
GrowlerKind2["PROGRESS"] = "progress";
|
|
282
|
-
GrowlerKind2["SUCCESS"] = "success";
|
|
283
|
-
GrowlerKind2["WARNING"] = "warning";
|
|
284
|
-
})(GrowlerKind || (GrowlerKind = {}));
|
|
285
|
-
const GrowlerIcon = new Map([
|
|
286
|
-
[GrowlerKind.INFO, SpsIcon.INFO_CIRCLE],
|
|
287
|
-
[GrowlerKind.WARNING, SpsIcon.EXCLAMATION_TRIANGLE],
|
|
288
|
-
[GrowlerKind.ERROR, SpsIcon.EXCLAMATION_CIRCLE],
|
|
289
|
-
[GrowlerKind.SUCCESS, SpsIcon.CHECKMARK]
|
|
290
|
-
]);
|
|
291
|
-
var translations = { "advancedSearch": { "clear": "Clear Fields", "search": "Search" }, "button": { "spinningTitle": "Loading\u2026" }, "columnChooser": { "removeButton": "Remove {{elementName}}" }, "contentRow": { "collapse": "Collapse", "expand": "Expand" }, "datepicker": { "calendar": { "prevMonth": "View Previous Month", "nextMonth": "View Next Month" }, "preset": { "custom": "Custom", "today": "Today", "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\u2026", "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\u2026" }, "slackLink": { "label": "Chat" }, "spinner": { "defaultAltText": "Loading\u2026" }, "taskQueue": { "clearCompleted": "Clear Completed", "newTask": "You have a new task in your queue.", "noTasks": "There are currently no tasks in your queue." } };
|
|
292
|
-
const noI18nI18n = {
|
|
293
|
-
t(key, interpolations) {
|
|
294
|
-
const text = getPath(translations, key.replace(/^design-system:/, ""));
|
|
295
|
-
return interpolations ? template(text)(interpolations) : text;
|
|
22
|
+
var h = /* @__PURE__ */ ((e) => (e.GENERAL = "general", e.SUCCESS = "success", e.ERROR = "error", e.WARNING = "warning", e.PROCESSING = "processing", e))(h || {});
|
|
23
|
+
const J = 7e3, $ = 2e3;
|
|
24
|
+
var D = /* @__PURE__ */ ((e) => (e.ACTIVITY = "activity", e.ERROR = "error", e.INFO = "info", e.PROGRESS = "progress", e.SUCCESS = "success", e.WARNING = "warning", e))(D || {});
|
|
25
|
+
const Z = /* @__PURE__ */ new Map([
|
|
26
|
+
["info", t.INFO_CIRCLE],
|
|
27
|
+
["warning", t.EXCLAMATION_TRIANGLE],
|
|
28
|
+
["error", t.EXCLAMATION_CIRCLE],
|
|
29
|
+
["success", t.CHECKMARK]
|
|
30
|
+
]), U = { advancedSearch: { clear: "Clear Fields", search: "Search" }, button: { spinningTitle: "Loading\u2026" }, columnChooser: { removeButton: "Remove {{elementName}}" }, contentRow: { collapse: "Collapse", expand: "Expand" }, datepicker: { calendar: { prevMonth: "View Previous Month", nextMonth: "View Next Month" }, preset: { custom: "Custom", today: "Today", 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\u2026", 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\u2026" }, slackLink: { label: "Chat" }, spinner: { defaultAltText: "Loading\u2026" }, taskQueue: { clearCompleted: "Clear Completed", newTask: "You have a new task in your queue.", noTasks: "There are currently no tasks in your queue." } }, z = {
|
|
31
|
+
t(e, r) {
|
|
32
|
+
const a = u(U, e.replace(/^design-system:/, ""));
|
|
33
|
+
return r ? O(a)(r) : a;
|
|
296
34
|
}
|
|
297
35
|
};
|
|
298
|
-
var
|
|
299
|
-
(
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
})(SpsInsightCardKind || (SpsInsightCardKind = {}));
|
|
306
|
-
const SpsInsightCardIcons = Object.freeze({
|
|
307
|
-
[SpsInsightCardKind.GENERAL]: SpsIcon.STATUS_NEW,
|
|
308
|
-
[SpsInsightCardKind.SUCCESS]: SpsIcon.STATUS_OK,
|
|
309
|
-
[SpsInsightCardKind.ERROR]: SpsIcon.STATUS_ERROR,
|
|
310
|
-
[SpsInsightCardKind.WARNING]: SpsIcon.STATUS_WARNING,
|
|
311
|
-
[SpsInsightCardKind.PROCESSING]: SpsIcon.STATUS_IN_PROCESS
|
|
36
|
+
var f = /* @__PURE__ */ ((e) => (e.GENERAL = "general", e.SUCCESS = "success", e.ERROR = "error", e.WARNING = "warning", e.PROCESSING = "processing", e))(f || {});
|
|
37
|
+
const S = Object.freeze({
|
|
38
|
+
general: t.STATUS_NEW,
|
|
39
|
+
success: t.STATUS_OK,
|
|
40
|
+
error: t.STATUS_ERROR,
|
|
41
|
+
warning: t.STATUS_WARNING,
|
|
42
|
+
processing: t.STATUS_IN_PROCESS
|
|
312
43
|
});
|
|
313
|
-
var
|
|
314
|
-
(
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
})(SpsInsightTileKind || (SpsInsightTileKind = {}));
|
|
321
|
-
const SpsInsightTileIcons = Object.freeze({
|
|
322
|
-
[SpsInsightTileKind.GENERAL]: SpsIcon.STATUS_NEW,
|
|
323
|
-
[SpsInsightTileKind.SUCCESS]: SpsIcon.STATUS_OK,
|
|
324
|
-
[SpsInsightTileKind.ERROR]: SpsIcon.STATUS_ERROR,
|
|
325
|
-
[SpsInsightTileKind.WARNING]: SpsIcon.STATUS_WARNING,
|
|
326
|
-
[SpsInsightTileKind.PROCESSING]: SpsIcon.STATUS_IN_PROCESS
|
|
44
|
+
var m = /* @__PURE__ */ ((e) => (e.GENERAL = "general", e.SUCCESS = "success", e.ERROR = "error", e.WARNING = "warning", e.PROCESSING = "processing", e))(m || {});
|
|
45
|
+
const p = Object.freeze({
|
|
46
|
+
general: t.STATUS_NEW,
|
|
47
|
+
success: t.STATUS_OK,
|
|
48
|
+
error: t.STATUS_ERROR,
|
|
49
|
+
warning: t.STATUS_WARNING,
|
|
50
|
+
processing: t.STATUS_IN_PROCESS
|
|
327
51
|
});
|
|
328
|
-
var
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
LineChartColors2["ORANGE"] = "orange200";
|
|
339
|
-
LineChartColors2["PURPLE"] = "purple200";
|
|
340
|
-
LineChartColors2["RED"] = "red200";
|
|
341
|
-
})(LineChartColors || (LineChartColors = {}));
|
|
342
|
-
var ModalKind;
|
|
343
|
-
(function(ModalKind2) {
|
|
344
|
-
ModalKind2["GENERAL"] = "general";
|
|
345
|
-
ModalKind2["INFO"] = "info";
|
|
346
|
-
ModalKind2["SUCCESS"] = "success";
|
|
347
|
-
ModalKind2["WARNING"] = "warning";
|
|
348
|
-
ModalKind2["SERIOUS_WARNING"] = "serious-warning";
|
|
349
|
-
})(ModalKind || (ModalKind = {}));
|
|
350
|
-
var ModalSize;
|
|
351
|
-
(function(ModalSize2) {
|
|
352
|
-
ModalSize2["SMALL"] = "small";
|
|
353
|
-
ModalSize2["MEDIUM"] = "medium";
|
|
354
|
-
ModalSize2["LARGE"] = "large";
|
|
355
|
-
ModalSize2["X_LARGE"] = "xlarge";
|
|
356
|
-
})(ModalSize || (ModalSize = {}));
|
|
357
|
-
class SpsOptionListOption {
|
|
358
|
-
constructor(value, config = {}) {
|
|
359
|
-
this.value = value;
|
|
360
|
-
Object.assign(this, config);
|
|
52
|
+
var g = /* @__PURE__ */ ((e) => (e.LIGHT = "light", e.DARK = "dark", e))(g || {}), c = /* @__PURE__ */ ((e) => (e.BLUE = "blue200", e.GRAY = "gray600", e.GREEN = "green200", e.ORANGE = "orange200", e.PURPLE = "purple200", e.RED = "red200", e))(c || {}), P = /* @__PURE__ */ ((e) => (e.GENERAL = "general", e.INFO = "info", e.SUCCESS = "success", e.WARNING = "warning", e.SERIOUS_WARNING = "serious-warning", e))(P || {}), o = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e.X_LARGE = "xlarge", e))(o || {});
|
|
53
|
+
class ee {
|
|
54
|
+
constructor(r, a = {}) {
|
|
55
|
+
l(this, "textKey");
|
|
56
|
+
l(this, "captionKey");
|
|
57
|
+
l(this, "textInternal");
|
|
58
|
+
l(this, "captionInternal");
|
|
59
|
+
l(this, "disabledInternal");
|
|
60
|
+
l(this, "boldInternal");
|
|
61
|
+
this.value = r, Object.assign(this, a);
|
|
361
62
|
}
|
|
362
63
|
get text() {
|
|
363
|
-
|
|
364
|
-
return this.textInternal;
|
|
365
|
-
}
|
|
366
|
-
if (!this.value) {
|
|
367
|
-
return "";
|
|
368
|
-
}
|
|
369
|
-
return this.textKey ? this.value[this.textKey] : String(this.value);
|
|
64
|
+
return this.textInternal ? this.textInternal : this.value ? this.textKey ? this.value[this.textKey] : String(this.value) : "";
|
|
370
65
|
}
|
|
371
|
-
set text(
|
|
372
|
-
this.textInternal =
|
|
66
|
+
set text(r) {
|
|
67
|
+
this.textInternal = r;
|
|
373
68
|
}
|
|
374
69
|
get caption() {
|
|
375
|
-
|
|
376
|
-
return this.captionInternal;
|
|
377
|
-
}
|
|
378
|
-
if (!this.value) {
|
|
379
|
-
return "";
|
|
380
|
-
}
|
|
381
|
-
return this.captionKey ? this.value[this.captionKey] : "";
|
|
70
|
+
return this.captionInternal ? this.captionInternal : this.value && this.captionKey ? this.value[this.captionKey] : "";
|
|
382
71
|
}
|
|
383
|
-
set caption(
|
|
384
|
-
this.captionInternal =
|
|
72
|
+
set caption(r) {
|
|
73
|
+
this.captionInternal = r;
|
|
385
74
|
}
|
|
386
75
|
get href() {
|
|
387
|
-
|
|
388
|
-
return this.value.isLink && typeof this.value === "function" ? this.value() : this.value.href;
|
|
389
|
-
}
|
|
390
|
-
return null;
|
|
76
|
+
return this.value ? this.value.isLink && typeof this.value == "function" ? this.value() : this.value.href : null;
|
|
391
77
|
}
|
|
392
78
|
get disabled() {
|
|
393
|
-
|
|
394
|
-
return this.disabledInternal;
|
|
395
|
-
}
|
|
396
|
-
return this.value ? this.value.disabled : false;
|
|
79
|
+
return typeof this.disabledInternal < "u" ? this.disabledInternal : this.value ? this.value.disabled : !1;
|
|
397
80
|
}
|
|
398
|
-
set disabled(
|
|
399
|
-
this.disabledInternal =
|
|
81
|
+
set disabled(r) {
|
|
82
|
+
this.disabledInternal = r;
|
|
400
83
|
}
|
|
401
84
|
get bold() {
|
|
402
|
-
|
|
403
|
-
return this.boldInternal;
|
|
404
|
-
}
|
|
405
|
-
return this.value ? this.value.bold && this.value.bold === true : false;
|
|
85
|
+
return typeof this.boldInternal < "u" ? this.boldInternal : this.value ? this.value.bold && this.value.bold === !0 : !1;
|
|
406
86
|
}
|
|
407
|
-
getHtml(
|
|
408
|
-
|
|
409
|
-
return this.text.replace(patternToUnderline, "<u>$&</u>");
|
|
410
|
-
}
|
|
411
|
-
return this.text;
|
|
87
|
+
getHtml(r) {
|
|
88
|
+
return r ? this.text.replace(r, "<u>$&</u>") : this.text;
|
|
412
89
|
}
|
|
413
90
|
}
|
|
414
|
-
const
|
|
91
|
+
const re = [
|
|
415
92
|
10,
|
|
416
93
|
25,
|
|
417
94
|
50,
|
|
418
95
|
100
|
|
419
96
|
];
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
Position2["TOP_RIGHT"] = "top right";
|
|
425
|
-
Position2["RIGHT_TOP"] = "right top";
|
|
426
|
-
Position2["RIGHT_MIDDLE"] = "right middle";
|
|
427
|
-
Position2["RIGHT_BOTTOM"] = "right bottom";
|
|
428
|
-
Position2["BOTTOM_RIGHT"] = "bottom right";
|
|
429
|
-
Position2["BOTTOM_MIDDLE"] = "bottom middle";
|
|
430
|
-
Position2["BOTTOM_LEFT"] = "bottom left";
|
|
431
|
-
Position2["LEFT_BOTTOM"] = "left bottom";
|
|
432
|
-
Position2["LEFT_MIDDLE"] = "left middle";
|
|
433
|
-
Position2["LEFT_TOP"] = "left top";
|
|
434
|
-
})(Position || (Position = {}));
|
|
435
|
-
var RingSize;
|
|
436
|
-
(function(RingSize2) {
|
|
437
|
-
RingSize2[RingSize2["SMALL"] = 14] = "SMALL";
|
|
438
|
-
RingSize2[RingSize2["MEDIUM"] = 26] = "MEDIUM";
|
|
439
|
-
RingSize2[RingSize2["LARGE"] = 38] = "LARGE";
|
|
440
|
-
})(RingSize || (RingSize = {}));
|
|
441
|
-
var SpinnerSize;
|
|
442
|
-
(function(SpinnerSize2) {
|
|
443
|
-
SpinnerSize2["SMALL"] = "small";
|
|
444
|
-
SpinnerSize2["MEDIUM"] = "medium";
|
|
445
|
-
SpinnerSize2["LARGE"] = "large";
|
|
446
|
-
})(SpinnerSize || (SpinnerSize = {}));
|
|
447
|
-
var StackedBarChartMilestone;
|
|
448
|
-
(function(StackedBarChartMilestone2) {
|
|
449
|
-
StackedBarChartMilestone2["BLUE"] = "blue200";
|
|
450
|
-
StackedBarChartMilestone2["GRAY"] = "gray600";
|
|
451
|
-
StackedBarChartMilestone2["GREEN"] = "green200";
|
|
452
|
-
StackedBarChartMilestone2["ORANGE"] = "orange200";
|
|
453
|
-
StackedBarChartMilestone2["PURPLE"] = "purple200";
|
|
454
|
-
StackedBarChartMilestone2["RED"] = "red200";
|
|
455
|
-
})(StackedBarChartMilestone || (StackedBarChartMilestone = {}));
|
|
456
|
-
var SteppedProgressBarColor;
|
|
457
|
-
(function(SteppedProgressBarColor2) {
|
|
458
|
-
SteppedProgressBarColor2["PURPLE"] = "purple";
|
|
459
|
-
SteppedProgressBarColor2["RED"] = "red";
|
|
460
|
-
SteppedProgressBarColor2["BLUE"] = "blue";
|
|
461
|
-
SteppedProgressBarColor2["ORANGE"] = "orange";
|
|
462
|
-
SteppedProgressBarColor2["GRAY"] = "gray";
|
|
463
|
-
})(SteppedProgressBarColor || (SteppedProgressBarColor = {}));
|
|
464
|
-
var SortDirection;
|
|
465
|
-
(function(SortDirection2) {
|
|
466
|
-
SortDirection2["ASCENDING"] = "ascending";
|
|
467
|
-
SortDirection2["DESCENDING"] = "descending";
|
|
468
|
-
})(SortDirection || (SortDirection = {}));
|
|
469
|
-
var TagKind;
|
|
470
|
-
(function(TagKind2) {
|
|
471
|
-
TagKind2["DEFAULT"] = "default";
|
|
472
|
-
TagKind2["KEY"] = "key";
|
|
473
|
-
TagKind2["WARNING"] = "warning";
|
|
474
|
-
TagKind2["ERROR"] = "error";
|
|
475
|
-
TagKind2["PENDING"] = "pending";
|
|
476
|
-
TagKind2["SUCCESS"] = "success";
|
|
477
|
-
TagKind2["INFO"] = "info";
|
|
478
|
-
})(TagKind || (TagKind = {}));
|
|
479
|
-
const TOOLTIP_HIDE_DELAY_MS_DEFAULT = 1e3;
|
|
480
|
-
var TooltipShowTrigger;
|
|
481
|
-
(function(TooltipShowTrigger2) {
|
|
482
|
-
TooltipShowTrigger2["MANUAL"] = "manual";
|
|
483
|
-
TooltipShowTrigger2["MOUSEOVER"] = "mouseover";
|
|
484
|
-
TooltipShowTrigger2["CLICK"] = "click";
|
|
485
|
-
})(TooltipShowTrigger || (TooltipShowTrigger = {}));
|
|
486
|
-
var TooltipKind;
|
|
487
|
-
(function(TooltipKind2) {
|
|
488
|
-
TooltipKind2["DEFAULT"] = "default";
|
|
489
|
-
TooltipKind2["HELP"] = "help";
|
|
490
|
-
TooltipKind2["ERROR"] = "error";
|
|
491
|
-
TooltipKind2["WARNING"] = "warning";
|
|
492
|
-
TooltipKind2["CONTAINER"] = "container";
|
|
493
|
-
})(TooltipKind || (TooltipKind = {}));
|
|
494
|
-
const SPS_ACTION_DEFAULTS = {
|
|
97
|
+
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 || {}), v = /* @__PURE__ */ ((e) => (e[e.SMALL = 14] = "SMALL", e[e.MEDIUM = 26] = "MEDIUM", e[e.LARGE = 38] = "LARGE", e))(v || {}), b = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(b || {}), M = /* @__PURE__ */ ((e) => (e.BLUE = "blue200", e.GRAY = "gray600", e.GREEN = "green200", e.ORANGE = "orange200", e.PURPLE = "purple200", e.RED = "red200", e))(M || {}), H = /* @__PURE__ */ ((e) => (e.PURPLE = "purple", e.RED = "red", e.BLUE = "blue", e.ORANGE = "orange", e.GRAY = "gray", e))(H || {}), x = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e))(x || {}), y = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.KEY = "key", e.WARNING = "warning", e.ERROR = "error", e.PENDING = "pending", e.SUCCESS = "success", e.INFO = "info", e))(y || {});
|
|
98
|
+
const te = 1e3;
|
|
99
|
+
var F = /* @__PURE__ */ ((e) => (e.MANUAL = "manual", e.MOUSEOVER = "mouseover", e.CLICK = "click", e))(F || {}), B = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.HELP = "help", e.ERROR = "error", e.WARNING = "warning", e.CONTAINER = "container", e))(B || {});
|
|
100
|
+
const w = {
|
|
495
101
|
icon: "",
|
|
496
102
|
label: "",
|
|
497
103
|
caption: "",
|
|
498
|
-
disabled:
|
|
499
|
-
isLink:
|
|
104
|
+
disabled: !1,
|
|
105
|
+
isLink: !1
|
|
500
106
|
};
|
|
501
|
-
function
|
|
502
|
-
return (
|
|
107
|
+
function ae(e) {
|
|
108
|
+
return (r, a, A) => _(
|
|
109
|
+
e,
|
|
110
|
+
w,
|
|
111
|
+
r,
|
|
112
|
+
a,
|
|
113
|
+
A
|
|
114
|
+
);
|
|
503
115
|
}
|
|
504
|
-
var
|
|
505
|
-
(
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
})
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
116
|
+
var I = /* @__PURE__ */ ((e) => (e.COMPLETED = "completed", e.ERRORED = "errored", e.WARNING = "warning", e.IN_PROGRESS = "in_progress", e))(I || {});
|
|
117
|
+
const le = Object.freeze({
|
|
118
|
+
completed: t.STATUS_OK,
|
|
119
|
+
errored: t.STATUS_ERROR,
|
|
120
|
+
warning: t.STATUS_WARNING,
|
|
121
|
+
in_progress: "sps-spinner sps-spinner--small"
|
|
122
|
+
}), Ee = 5e3;
|
|
123
|
+
var W = /* @__PURE__ */ ((e) => (e.BASIC = "basic", e.COMPLETED = "completed", e.COMPLETE = "completed", e.ACTIVE = "active", e))(W || {}), k = /* @__PURE__ */ ((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))(k || {});
|
|
124
|
+
export {
|
|
125
|
+
j as ButtonKind,
|
|
126
|
+
n as ButtonType,
|
|
127
|
+
s as ClickableTagKind,
|
|
128
|
+
re as DEFAULT_PAGE_SIZE_OPTIONS,
|
|
129
|
+
Y as DropdownKind,
|
|
130
|
+
Q as FeedbackBlockIcons,
|
|
131
|
+
d as FeedbackBlockKind,
|
|
132
|
+
$ as GROWLER_FADEOUT_DURATION_MS,
|
|
133
|
+
J as GROWLER_VISIBLE_DURATION_MS,
|
|
134
|
+
Z as GrowlerIcon,
|
|
135
|
+
D as GrowlerKind,
|
|
136
|
+
g as KeyValueListTitleColor,
|
|
137
|
+
c as LineChartColors,
|
|
138
|
+
P as ModalKind,
|
|
139
|
+
o as ModalSize,
|
|
140
|
+
G as Position,
|
|
141
|
+
v as RingSize,
|
|
142
|
+
w as SPS_ACTION_DEFAULTS,
|
|
143
|
+
N as SelectMode,
|
|
144
|
+
x as SortDirection,
|
|
145
|
+
b as SpinnerSize,
|
|
146
|
+
ae as SpsAction,
|
|
147
|
+
h as SpsFilterTileKind,
|
|
148
|
+
t as SpsIcon,
|
|
149
|
+
C as SpsIconSize,
|
|
150
|
+
S as SpsInsightCardIcons,
|
|
151
|
+
f as SpsInsightCardKind,
|
|
152
|
+
p as SpsInsightTileIcons,
|
|
153
|
+
m as SpsInsightTileKind,
|
|
154
|
+
ee as SpsOptionListOption,
|
|
155
|
+
I as SpsTaskStatus,
|
|
156
|
+
le as SpsTaskStatusIcons,
|
|
157
|
+
M as StackedBarChartMilestone,
|
|
158
|
+
E as StdButtonKind,
|
|
159
|
+
H as SteppedProgressBarColor,
|
|
160
|
+
Ee as TASK_QUEUE_NOTIFICATION_DURATION_MS,
|
|
161
|
+
te as TOOLTIP_HIDE_DELAY_MS_DEFAULT,
|
|
162
|
+
y as TagKind,
|
|
163
|
+
B as TooltipKind,
|
|
164
|
+
F as TooltipShowTrigger,
|
|
165
|
+
W as WizardSubstepConditions,
|
|
166
|
+
k as ZStratum,
|
|
167
|
+
q as exampleIsReactComponentExample,
|
|
168
|
+
K as exampleIsReactJSXExample,
|
|
169
|
+
z as noI18nI18n
|
|
170
|
+
};
|
package/lib/insight-card.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export declare enum SpsInsightCardKind {
|
|
|
7
7
|
PROCESSING = "processing"
|
|
8
8
|
}
|
|
9
9
|
export declare const SpsInsightCardIcons: Readonly<{
|
|
10
|
-
general: SpsIcon;
|
|
11
|
-
success: SpsIcon;
|
|
12
|
-
error: SpsIcon;
|
|
13
|
-
warning: SpsIcon;
|
|
14
|
-
processing: SpsIcon;
|
|
10
|
+
general: SpsIcon.STATUS_NEW;
|
|
11
|
+
success: SpsIcon.STATUS_OK;
|
|
12
|
+
error: SpsIcon.STATUS_ERROR;
|
|
13
|
+
warning: SpsIcon.STATUS_WARNING;
|
|
14
|
+
processing: SpsIcon.STATUS_IN_PROCESS;
|
|
15
15
|
}>;
|
package/lib/insight-tile.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export declare enum SpsInsightTileKind {
|
|
|
7
7
|
PROCESSING = "processing"
|
|
8
8
|
}
|
|
9
9
|
export declare const SpsInsightTileIcons: Readonly<{
|
|
10
|
-
general: SpsIcon;
|
|
11
|
-
success: SpsIcon;
|
|
12
|
-
error: SpsIcon;
|
|
13
|
-
warning: SpsIcon;
|
|
14
|
-
processing: SpsIcon;
|
|
10
|
+
general: SpsIcon.STATUS_NEW;
|
|
11
|
+
success: SpsIcon.STATUS_OK;
|
|
12
|
+
error: SpsIcon.STATUS_ERROR;
|
|
13
|
+
warning: SpsIcon.STATUS_WARNING;
|
|
14
|
+
processing: SpsIcon.STATUS_IN_PROCESS;
|
|
15
15
|
}>;
|
package/lib/option-list.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class SpsOptionListOption<T> {
|
|
|
20
20
|
get href(): any;
|
|
21
21
|
get disabled(): boolean;
|
|
22
22
|
set disabled(value: boolean);
|
|
23
|
-
get bold():
|
|
23
|
+
get bold(): any;
|
|
24
24
|
textKey: string;
|
|
25
25
|
captionKey: string;
|
|
26
26
|
private textInternal;
|
|
@@ -28,5 +28,5 @@ export declare class SpsOptionListOption<T> {
|
|
|
28
28
|
private disabledInternal;
|
|
29
29
|
private boldInternal;
|
|
30
30
|
constructor(value: T, config?: SpsOptionListOptionConfig);
|
|
31
|
-
getHtml(patternToUnderline?: RegExp): string;
|
|
31
|
+
getHtml(patternToUnderline?: RegExp | null): string;
|
|
32
32
|
}
|
package/lib/task-queue.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export declare enum SpsTaskStatus {
|
|
|
8
8
|
IN_PROGRESS = "in_progress"
|
|
9
9
|
}
|
|
10
10
|
export declare const SpsTaskStatusIcons: Readonly<{
|
|
11
|
-
completed: SpsIcon;
|
|
12
|
-
errored: SpsIcon;
|
|
13
|
-
warning: SpsIcon;
|
|
14
|
-
in_progress:
|
|
11
|
+
completed: SpsIcon.STATUS_OK;
|
|
12
|
+
errored: SpsIcon.STATUS_ERROR;
|
|
13
|
+
warning: SpsIcon.STATUS_WARNING;
|
|
14
|
+
in_progress: "sps-spinner sps-spinner--small";
|
|
15
15
|
}>;
|
|
16
16
|
/** Represents a task in the Task Queue. */
|
|
17
17
|
export interface SpsTask {
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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": "
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
-
"repository": "https://github.com/spscommerce/
|
|
8
|
-
"homepage": "https://github.com/spscommerce/
|
|
7
|
+
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-shared",
|
|
8
|
+
"homepage": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-shared#readme",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"main": "./lib/index.
|
|
12
|
+
"main": "./lib/index.es.js",
|
|
13
13
|
"module": "./lib/index.es.js",
|
|
14
14
|
"types": "./lib/index.d.ts",
|
|
15
15
|
"peerDependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"moment-timezone": "^0.5.28"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@spscommerce/utils": "^6.
|
|
21
|
+
"@spscommerce/utils": "^6.12.1",
|
|
22
22
|
"moment": "^2.25.3",
|
|
23
23
|
"moment-timezone": "^0.5.28"
|
|
24
24
|
},
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
|
|
29
29
|
"watch": "vite build --watch",
|
|
30
30
|
"clean": "git clean -fdX",
|
|
31
|
-
"pub": "
|
|
31
|
+
"pub": "node ../../scripts/publish-package.js",
|
|
32
32
|
"build:copy-translations": "echo \"export default \"$(cat ../i18n/locales/en-US/design-system.json)\";\" > src/translations.ts"
|
|
33
|
-
}
|
|
34
|
-
"readme": "[//]: # \"START_AUTOGENERATED\"\n\n## [@spscommerce/ds-shared](https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-shared#readme)\n\n\n\n\n\nPackage for sharing code and types between DS Angular and DS React. \n \n ### Installation \n \n ```shell\nnpm install --save @spscommerce/ds-shared\n```\n\n#### Peer Dependencies\n\n<div class=\"row\">\n <div class=\"col-5\"> \n <table class=\"sps-table\">\n <thead class=\"sps-table__head\">\n <tr class=\"sps-table__row\">\n <th class=\"sps-table__header\">\n <span class=\"sps-table__header-cell-body\"> \n Package\n </span>\n </th>\n <th class=\"sps-table__header text-right\">\n <span class=\"sps-table__header-cell-body\"> \n Version\n </span>\n </th>\n </tr>\n </thead>\n <tbody class=\"sps-table__body\">\n <tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/utils#readme\">@spscommerce/utils</a></td><td class=\"sps-table__cell text-right\">^1.1.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://momentjs.com\">moment</a></td><td class=\"sps-table__cell text-right\">^2.25.3</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"http://momentjs.com/timezone/\">moment-timezone</a></td><td class=\"sps-table__cell text-right\">^0.5.28</td></tr>\n </tbody>\n </table>\n </div>\n <div class=\"col-7\">\n \n </div>\n</div>\n\n[//]: # \"END_AUTOGENERATED\"\n"
|
|
33
|
+
}
|
|
35
34
|
}
|
package/tsconfig.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import path from
|
|
1
|
+
import path from "path";
|
|
2
2
|
|
|
3
|
-
import { defineConfig } from
|
|
3
|
+
import { defineConfig } from "vite";
|
|
4
4
|
|
|
5
|
-
import pkg from
|
|
5
|
+
import pkg from "./package.json";
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
build: {
|
|
9
9
|
lib: {
|
|
10
|
-
entry: path.resolve(__dirname,
|
|
11
|
-
formats: [
|
|
10
|
+
entry: path.resolve(__dirname, "src/index.ts"),
|
|
11
|
+
formats: ["es", "cjs"],
|
|
12
12
|
fileName: (format) => `index.${format}.js`,
|
|
13
13
|
},
|
|
14
|
-
outDir: path.resolve(__dirname,
|
|
14
|
+
outDir: path.resolve(__dirname, "./lib"),
|
|
15
15
|
emptyOutDir: false,
|
|
16
16
|
rollupOptions: {
|
|
17
17
|
external: pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [],
|