@xplortech/apollo-core 2.4.3 → 2.5.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/.typings/apollo-components.html-data.json +1011 -3481
- package/build/style.css +7 -7
- package/dist/apollo-core/apollo-core.css +1 -1
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-8c1f73ea.entry.js → p-0e1877a2.entry.js} +1 -1
- package/dist/apollo-core/{p-94209785.entry.js → p-1c2e4034.entry.js} +1 -1
- package/dist/apollo-core/p-77f0fd4a.entry.js +1 -0
- package/dist/apollo-core/p-7c22b842.entry.js +1 -0
- package/dist/apollo-core/p-7d245bf0.entry.js +1 -0
- package/dist/apollo-core/{p-b1f4604d.entry.js → p-f4c2626d.entry.js} +1 -1
- package/dist/cjs/xpl-avatar_41.cjs.entry.js +11724 -1158
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +11 -25
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +4 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +2 -2
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +4 -0
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +4 -0
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
- package/dist/collection/components/xpl-icon/icon-types.js +1 -0
- package/dist/collection/components/xpl-icon/icons.stories.js +47 -12
- package/dist/collection/components/xpl-icon/xpl-icon.js +13 -15
- package/dist/collection/components/xpl-input/input.stories.js +4 -0
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +3 -3
- package/dist/collection/components/xpl-list/list.stories.js +4 -0
- package/dist/collection/components/xpl-progress/progress.stories.js +4 -0
- package/dist/collection/components/xpl-radio/radio.stories.js +4 -0
- package/dist/collection/components/xpl-select/select.stories.js +4 -0
- package/dist/collection/components/xpl-select/xpl-select.js +10 -16
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +4 -0
- package/dist/collection/components/xpl-slideout/slideout.stories.js +6 -0
- package/dist/collection/components/xpl-table/table.stories.js +4 -0
- package/dist/collection/components/xpl-table-header/table-header.stories.js +4 -0
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +4 -0
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +5 -15
- package/dist/collection/components/xpl-tabs/tabs.stories.js +4 -0
- package/dist/collection/components/xpl-toast/toast.stories.js +4 -0
- package/dist/collection/components/xpl-toggle/toggle.stories.js +4 -0
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +4 -0
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider2.js +1 -1
- package/dist/components/xpl-dropdown-group2.js +1 -1
- package/dist/components/xpl-dropdown-heading2.js +1 -1
- package/dist/components/xpl-dropdown-option2.js +1 -1
- package/dist/components/xpl-dropdown2.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon2.js +1 -6
- package/dist/components/xpl-input2.js +1 -1
- package/dist/components/xpl-select2.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +62 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-avatar/readme.md +35 -0
- package/dist/docs/xpl-backdrop/readme.md +34 -0
- package/dist/docs/xpl-badge/readme.md +29 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +19 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +22 -0
- package/dist/docs/xpl-button/readme.md +44 -0
- package/dist/docs/xpl-button-row/readme.md +41 -0
- package/dist/docs/xpl-calendar/readme.md +48 -0
- package/dist/docs/xpl-checkbox/readme.md +47 -0
- package/dist/docs/xpl-choicelist/readme.md +43 -0
- package/dist/docs/xpl-content-area/readme.md +17 -0
- package/dist/docs/xpl-dashboard/readme.md +10 -0
- package/dist/docs/xpl-data-card/readme.md +54 -0
- package/dist/docs/xpl-divider/readme.md +30 -0
- package/dist/docs/xpl-dropdown/readme.md +80 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +39 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +30 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +36 -0
- package/dist/docs/xpl-dynamic-table/readme.md +19 -0
- package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -0
- package/dist/docs/xpl-dynamic-table-row/readme.md +19 -0
- package/dist/docs/xpl-grid/readme.md +10 -0
- package/dist/docs/xpl-grid-item/readme.md +20 -0
- package/dist/docs/xpl-header-accordion/readme.md +39 -0
- package/dist/docs/xpl-icon/readme.md +80 -0
- package/dist/docs/xpl-input/readme.md +90 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +61 -0
- package/dist/docs/xpl-input/xpl-input-date/readme.md +56 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +79 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +69 -0
- package/dist/docs/xpl-large-card/readme.md +40 -0
- package/dist/docs/xpl-list/readme.md +34 -0
- package/dist/docs/xpl-main-nav/readme.md +28 -0
- package/dist/docs/xpl-modal/readme.md +55 -0
- package/dist/docs/xpl-nav-item/readme.md +24 -0
- package/dist/docs/xpl-pagination/readme.md +52 -0
- package/dist/docs/xpl-popover/readme.md +48 -0
- package/dist/docs/xpl-progress/readme.md +22 -0
- package/dist/docs/xpl-radio/readme.md +43 -0
- package/dist/docs/xpl-secondary-nav/readme.md +10 -0
- package/dist/docs/xpl-select/readme.md +88 -0
- package/dist/docs/xpl-skeleton/readme.md +31 -0
- package/dist/docs/xpl-slideout/readme.md +46 -0
- package/dist/docs/xpl-tab/readme.md +25 -0
- package/dist/docs/xpl-tab-panel/readme.md +18 -0
- package/dist/docs/xpl-table/readme.md +46 -0
- package/dist/docs/xpl-table-header/readme.md +13 -0
- package/dist/docs/xpl-table-header-cell/readme.md +47 -0
- package/dist/docs/xpl-tabs/readme.md +54 -0
- package/dist/docs/xpl-tag/readme.md +30 -0
- package/dist/docs/xpl-toast/readme.md +42 -0
- package/dist/docs/xpl-toggle/readme.md +23 -0
- package/dist/docs/xpl-toolbar/readme.md +18 -0
- package/dist/docs/xpl-tooltip/readme.md +35 -0
- package/dist/docs/xpl-utility-bar/readme.md +55 -0
- package/dist/esm/xpl-avatar_41.entry.js +11724 -1158
- package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table.entry.js +1 -1
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +2 -3
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +4 -0
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +4 -0
- package/dist/types/components/xpl-icon/icon-types.d.ts +2 -0
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +1 -3
- package/dist/types/components/xpl-input/input.stories.d.ts +4 -0
- package/dist/types/components/xpl-list/list.stories.d.ts +4 -0
- package/dist/types/components/xpl-progress/progress.stories.d.ts +4 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +4 -0
- package/dist/types/components/xpl-select/select.stories.d.ts +4 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -3
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +6 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +1 -2
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +4 -0
- package/dist/types/components/xpl-toast/toast.stories.d.ts +4 -0
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +4 -0
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +4 -0
- package/dist/types/components.d.ts +24 -28
- package/package.json +7 -4
- package/dist/apollo-core/p-31461db7.entry.js +0 -1
- package/dist/apollo-core/p-5c0236db.entry.js +0 -6
- package/dist/apollo-core/p-7f8e5cd0.entry.js +0 -1
|
@@ -21,9 +21,9 @@ const XplDynamicTableCell = class {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const colIndex = Array.from(this.el.parentElement.children).indexOf(this.el) + 1;
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '639f0a42ea0189fb4c269de1b76c5491729f868c', role: "gridcell", "aria-colindex": colIndex, class: "xpl-dynamic-table-cell", ref: (el) => {
|
|
25
25
|
this.hostElement = el;
|
|
26
|
-
} }, h("slot", { key: '
|
|
26
|
+
} }, h("slot", { key: '29864a738aa7d5e9498195ce0d22bb8d78e39989' })));
|
|
27
27
|
}
|
|
28
28
|
get el() { return getElement(this); }
|
|
29
29
|
};
|
|
@@ -26,9 +26,9 @@ const XplDynamicTableRow = class {
|
|
|
26
26
|
const classList = `xpl-dynamic-table-row
|
|
27
27
|
${this.isDisabled ? 'disabled' : ''}
|
|
28
28
|
${this.selected ? 'selected' : ''}`;
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '4969ae6223aa4f6604d20e657d390d8ec43eb9bd', role: "row", class: classList, ref: (el) => {
|
|
30
30
|
this.hostElement = el;
|
|
31
|
-
} }, h("slot", { key: '
|
|
31
|
+
} }, h("slot", { key: '244d34612847408ddb9e0d718b1e5916b7e24b2d' })));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -54,7 +54,7 @@ const XplDynamicTable = class {
|
|
|
54
54
|
this.updateColumnCount();
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'f49634b51fd6fb49bcb75cc4247f683ff99d6b99', role: "grid", class: "xpl-dynamic-table", "aria-colcount": this.colCount }, h("slot", { key: 'e5cd66e212a41ce26dfaccae634ab7ee22ba9910', name: "header" }), h("slot", { key: '07e1fbec46f08e46f728340291510992d21f71a4', name: "body" })));
|
|
58
58
|
}
|
|
59
59
|
get el() { return getElement(this); }
|
|
60
60
|
};
|
|
@@ -14,7 +14,7 @@ const XplGridItem = class {
|
|
|
14
14
|
className += ` xpl-grid-item-sm-${this.sm}`;
|
|
15
15
|
className += ` xpl-grid-item-md-${this.md}`;
|
|
16
16
|
className += ` xpl-grid-item-lg-${this.lg}`;
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '4a3a254b51eae0907baf74c383b0d2b60017b69b', class: className }, h("slot", { key: 'b23f50ff733b9f3009eda4a3569a28b0636e76f4' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ const XplGrid = class {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return h(Host, { key: '
|
|
29
|
+
return h(Host, { key: 'b7adecdd36342641869726ffa094578c1272dc1e', class: "xpl-grid" });
|
|
30
30
|
}
|
|
31
31
|
get container() { return getElement(this); }
|
|
32
32
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IconName } from '../xpl-icon/xpl-icon';
|
|
2
1
|
export declare class XplDataCard {
|
|
3
2
|
el: HTMLXplDataCardElement;
|
|
4
3
|
link?: boolean;
|
|
@@ -7,9 +6,9 @@ export declare class XplDataCard {
|
|
|
7
6
|
shortStat?: string;
|
|
8
7
|
variant?: 'primary' | 'secondary';
|
|
9
8
|
leadingIcon?: boolean;
|
|
10
|
-
icon?:
|
|
9
|
+
icon?: string;
|
|
11
10
|
smallStat?: string;
|
|
12
|
-
smallStatIcon?:
|
|
11
|
+
smallStatIcon?: string;
|
|
13
12
|
detail?: string;
|
|
14
13
|
smallStatVariant?: 'positive' | 'negative' | 'neutral';
|
|
15
14
|
tooltipTextSmallStat?: string;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import data from '@xplortech/apollo-icons/build/data.json';
|
|
3
2
|
import type { DropdownItem } from '../xpl-dropdown/dropdown-option';
|
|
4
|
-
export type IconName = keyof typeof data;
|
|
5
3
|
export declare class XplSelect {
|
|
6
4
|
choices?: DropdownItem[];
|
|
7
|
-
selectIcon?:
|
|
5
|
+
selectIcon?: string;
|
|
8
6
|
description?: string;
|
|
9
7
|
disabled?: boolean;
|
|
10
8
|
error?: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { IconName } from '../xpl-icon/xpl-icon';
|
|
3
2
|
export declare class XplTableHeaderCell {
|
|
4
3
|
el: HTMLXplTableHeaderCellElement;
|
|
5
|
-
icon?:
|
|
4
|
+
icon?: string;
|
|
6
5
|
sortable?: boolean;
|
|
7
6
|
label?: string;
|
|
8
7
|
type: 'label' | 'checkbox' | 'icon';
|
|
@@ -6,19 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Choice } from "./components/xpl-choicelist/choice";
|
|
9
|
-
import { IconName } from "./components/xpl-icon/xpl-icon";
|
|
10
9
|
import { DropdownItem, DropdownOptionGroup } from "./components/xpl-dropdown/dropdown-option";
|
|
11
|
-
import { IconName as IconName1 } from "./components/xpl-icon/xpl-icon";
|
|
12
10
|
import { ListItem } from "./components/xpl-list/listitem";
|
|
13
11
|
import { PopoverPosition } from "./components/xpl-popover/xpl-popover";
|
|
14
|
-
import { IconName as IconName2 } from "./components/xpl-select/xpl-select";
|
|
15
12
|
export { Choice } from "./components/xpl-choicelist/choice";
|
|
16
|
-
export { IconName } from "./components/xpl-icon/xpl-icon";
|
|
17
13
|
export { DropdownItem, DropdownOptionGroup } from "./components/xpl-dropdown/dropdown-option";
|
|
18
|
-
export { IconName as IconName1 } from "./components/xpl-icon/xpl-icon";
|
|
19
14
|
export { ListItem } from "./components/xpl-list/listitem";
|
|
20
15
|
export { PopoverPosition } from "./components/xpl-popover/xpl-popover";
|
|
21
|
-
export { IconName as IconName2 } from "./components/xpl-select/xpl-select";
|
|
22
16
|
export namespace Components {
|
|
23
17
|
interface XplAccordion {
|
|
24
18
|
/**
|
|
@@ -308,9 +302,9 @@ export namespace Components {
|
|
|
308
302
|
*/
|
|
309
303
|
"detail"?: string;
|
|
310
304
|
/**
|
|
311
|
-
* An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown.
|
|
305
|
+
* An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
312
306
|
*/
|
|
313
|
-
"icon"?:
|
|
307
|
+
"icon"?: string;
|
|
314
308
|
/**
|
|
315
309
|
* Whether to display the icon or not.
|
|
316
310
|
* @default true
|
|
@@ -333,11 +327,11 @@ export namespace Components {
|
|
|
333
327
|
*/
|
|
334
328
|
"smallStat"?: string;
|
|
335
329
|
/**
|
|
336
|
-
* An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown.
|
|
330
|
+
* An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
337
331
|
*/
|
|
338
|
-
"smallStatIcon"?:
|
|
332
|
+
"smallStatIcon"?: string;
|
|
339
333
|
/**
|
|
340
|
-
* set a variant that changes the color of the small stat based on the following rules:
|
|
334
|
+
* set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used
|
|
341
335
|
*/
|
|
342
336
|
"smallStatVariant"?: 'positive' | 'negative' | 'neutral';
|
|
343
337
|
/**
|
|
@@ -527,9 +521,10 @@ export namespace Components {
|
|
|
527
521
|
*/
|
|
528
522
|
"backgroundColor"?: string;
|
|
529
523
|
/**
|
|
530
|
-
* Name of icon
|
|
524
|
+
* Name of icon.
|
|
525
|
+
* @property {string} See [available icons](./ICONS.md) for the complete list, or view the [Storybook icon gallery](?path=/story/components-icons--icons).
|
|
531
526
|
*/
|
|
532
|
-
"icon":
|
|
527
|
+
"icon": string;
|
|
533
528
|
/**
|
|
534
529
|
* Size of icon
|
|
535
530
|
*/
|
|
@@ -1042,10 +1037,10 @@ export namespace Components {
|
|
|
1042
1037
|
*/
|
|
1043
1038
|
"reset": () => Promise<void>;
|
|
1044
1039
|
/**
|
|
1045
|
-
* The icon to display in the select trigger button.
|
|
1040
|
+
* The icon to display in the select trigger button. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
1046
1041
|
* @default 'chevron-down'
|
|
1047
1042
|
*/
|
|
1048
|
-
"selectIcon"?:
|
|
1043
|
+
"selectIcon"?: string;
|
|
1049
1044
|
/**
|
|
1050
1045
|
* The value(s) currently selected in the select component.
|
|
1051
1046
|
*/
|
|
@@ -1184,9 +1179,9 @@ export namespace Components {
|
|
|
1184
1179
|
}
|
|
1185
1180
|
interface XplTableHeaderCell {
|
|
1186
1181
|
/**
|
|
1187
|
-
*
|
|
1182
|
+
* Icon to display in the cell. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
1188
1183
|
*/
|
|
1189
|
-
"icon"?:
|
|
1184
|
+
"icon"?: string;
|
|
1190
1185
|
/**
|
|
1191
1186
|
* @property {string} - Text to display in the cell
|
|
1192
1187
|
* @default ''
|
|
@@ -2432,9 +2427,9 @@ declare namespace LocalJSX {
|
|
|
2432
2427
|
*/
|
|
2433
2428
|
"detail"?: string;
|
|
2434
2429
|
/**
|
|
2435
|
-
* An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown.
|
|
2430
|
+
* An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
2436
2431
|
*/
|
|
2437
|
-
"icon"?:
|
|
2432
|
+
"icon"?: string;
|
|
2438
2433
|
/**
|
|
2439
2434
|
* Whether to display the icon or not.
|
|
2440
2435
|
* @default true
|
|
@@ -2457,11 +2452,11 @@ declare namespace LocalJSX {
|
|
|
2457
2452
|
*/
|
|
2458
2453
|
"smallStat"?: string;
|
|
2459
2454
|
/**
|
|
2460
|
-
* An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown.
|
|
2455
|
+
* An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
2461
2456
|
*/
|
|
2462
|
-
"smallStatIcon"?:
|
|
2457
|
+
"smallStatIcon"?: string;
|
|
2463
2458
|
/**
|
|
2464
|
-
* set a variant that changes the color of the small stat based on the following rules:
|
|
2459
|
+
* set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used
|
|
2465
2460
|
*/
|
|
2466
2461
|
"smallStatVariant"?: 'positive' | 'negative' | 'neutral';
|
|
2467
2462
|
/**
|
|
@@ -2655,9 +2650,10 @@ declare namespace LocalJSX {
|
|
|
2655
2650
|
*/
|
|
2656
2651
|
"backgroundColor"?: string;
|
|
2657
2652
|
/**
|
|
2658
|
-
* Name of icon
|
|
2653
|
+
* Name of icon.
|
|
2654
|
+
* @property {string} See [available icons](./ICONS.md) for the complete list, or view the [Storybook icon gallery](?path=/story/components-icons--icons).
|
|
2659
2655
|
*/
|
|
2660
|
-
"icon"
|
|
2656
|
+
"icon": string;
|
|
2661
2657
|
/**
|
|
2662
2658
|
* Size of icon
|
|
2663
2659
|
*/
|
|
@@ -3259,10 +3255,10 @@ declare namespace LocalJSX {
|
|
|
3259
3255
|
*/
|
|
3260
3256
|
"placeholder"?: string;
|
|
3261
3257
|
/**
|
|
3262
|
-
* The icon to display in the select trigger button.
|
|
3258
|
+
* The icon to display in the select trigger button. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
3263
3259
|
* @default 'chevron-down'
|
|
3264
3260
|
*/
|
|
3265
|
-
"selectIcon"?:
|
|
3261
|
+
"selectIcon"?: string;
|
|
3266
3262
|
/**
|
|
3267
3263
|
* The value(s) currently selected in the select component.
|
|
3268
3264
|
*/
|
|
@@ -3421,9 +3417,9 @@ declare namespace LocalJSX {
|
|
|
3421
3417
|
}
|
|
3422
3418
|
interface XplTableHeaderCell {
|
|
3423
3419
|
/**
|
|
3424
|
-
*
|
|
3420
|
+
* Icon to display in the cell. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
|
|
3425
3421
|
*/
|
|
3426
|
-
"icon"?:
|
|
3422
|
+
"icon"?: string;
|
|
3427
3423
|
/**
|
|
3428
3424
|
* @property {string} - Text to display in the cell
|
|
3429
3425
|
* @default ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xplortech/apollo-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/types/components.d.ts",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"build:css": "cross-env NODE_ENV=production postcss src/style.css -o build/style.css && npm-run-all build-partial:css.*",
|
|
36
36
|
"build-partial:css.react": "cp build/style.css ../apollo-react/css/apollo.css",
|
|
37
37
|
"build-partial:css.storybook": "cp -r build/ .storybook/build",
|
|
38
|
-
"build:stencil": "stencil build --docs --prod && cp -r dist .storybook && cp -r loader .storybook && node .storybook/patch-stencil-sourcemaps.mjs",
|
|
38
|
+
"build:stencil": "node ../../scripts/generate-icon-docs.mjs && stencil build --docs --prod && cp -r dist .storybook && cp -r loader .storybook && node .storybook/patch-stencil-sourcemaps.mjs",
|
|
39
|
+
"postbuild": "node ../../scripts/copy-readmes-to-dist.mjs",
|
|
39
40
|
"clean": "rm -rf dist/ loader/ storybook-static/ www/ build/ src/components/components.d.ts",
|
|
40
41
|
"dev": "run-p dev:*",
|
|
41
42
|
"dev:css": "postcss src/style.css -o build/style.css -w",
|
|
@@ -46,11 +47,13 @@
|
|
|
46
47
|
"lint:html": "prettier --write src/**/*.html",
|
|
47
48
|
"lint:js": "prettier --write *{.js,.json}",
|
|
48
49
|
"format": "npm run lint:css -- --fix && npm run lint:ts -- --fix && npm run lint:js && npm run lint:html",
|
|
50
|
+
"generate:icons": "node ../../scripts/generate-icon-docs.mjs",
|
|
49
51
|
"test": "stencil test --spec",
|
|
50
52
|
"test.watch": "stencil test --spec --watch",
|
|
51
53
|
"test.e2e": "stencil test --e2e --runInBand",
|
|
52
54
|
"release": "release-it",
|
|
53
|
-
"
|
|
55
|
+
"prestorybook": "npm run build",
|
|
56
|
+
"storybook": "npm run storybook:start",
|
|
54
57
|
"storybook:start": "storybook dev -p 9009",
|
|
55
58
|
"stencil-generate": "stencil generate"
|
|
56
59
|
},
|
|
@@ -86,7 +89,7 @@
|
|
|
86
89
|
"@vitest/coverage-v8": "^4.0.13",
|
|
87
90
|
"@vueless/storybook-dark-mode": "^10.0.3",
|
|
88
91
|
"@xplortech/apollo-foundation": "0.1.0",
|
|
89
|
-
"@xplortech/apollo-icons": "^0.
|
|
92
|
+
"@xplortech/apollo-icons": "^0.3.1",
|
|
90
93
|
"auto-changelog": "^2.3.0",
|
|
91
94
|
"autoprefixer": "^10.4.16",
|
|
92
95
|
"cross-env": "^7.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as e}from"./p-DhZas3eX.js";const a=class{constructor(s){t(this,s),this.disabled=!1,this.selected=!1,this.isDisabled=!1}componentWillLoad(){this.isDisabled=this.disabled}componentDidLoad(){this.updateRowCellsDisabledState()}componentDidUpdate(){this.updateRowCellsDisabledState()}updateRowCellsDisabledState(){this.hostElement.querySelectorAll("xpl-dynamic-table-cell").forEach((t=>{t.disabled=this.isDisabled}))}render(){return s(e,{key:"3f514b6ebd0c519329c1f88fd7a06681fd263c20",role:"row",class:`xpl-dynamic-table-row\n ${this.isDisabled?"disabled":""}\n ${this.selected?"selected":""}`,ref:t=>{this.hostElement=t}},s("slot",{key:"acfe30cd4d852f2787ac18376b8b491731a736d4"}))}};export{a as xpl_dynamic_table_row}
|