@orangelogic/design-system 2.78.0 → 2.79.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/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import { C as a } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as l } from "../chunks/component.styles.
|
|
2
|
+
import { c as l } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { i as c, x as d } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
-
const h = c
|
|
6
|
-
:host(:not(:focus-within)) {
|
|
7
|
-
position: absolute !important;
|
|
8
|
-
width: 1px !important;
|
|
9
|
-
height: 1px !important;
|
|
10
|
-
clip: rect(0 0 0 0) !important;
|
|
11
|
-
clip-path: inset(50%) !important;
|
|
12
|
-
border: none !important;
|
|
13
|
-
overflow: hidden !important;
|
|
14
|
-
white-space: nowrap !important;
|
|
15
|
-
padding: 0 !important;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
5
|
+
const h = c`:host(:not(:focus-within)){clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:none!important;width:1px!important;height:1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}`;
|
|
18
6
|
var f = Object.getOwnPropertyDescriptor, u = (r, n, p, i) => {
|
|
19
7
|
for (var t = i > 1 ? void 0 : i ? f(n, p) : n, o = r.length - 1, s; o >= 0; o--)
|
|
20
8
|
(s = r[o]) && (t = s(t) || t);
|
|
@@ -22,7 +10,7 @@ var f = Object.getOwnPropertyDescriptor, u = (r, n, p, i) => {
|
|
|
22
10
|
};
|
|
23
11
|
let e = class extends a {
|
|
24
12
|
render() {
|
|
25
|
-
return d
|
|
13
|
+
return d`<slot></slot>`;
|
|
26
14
|
}
|
|
27
15
|
};
|
|
28
16
|
e.styles = [l, h];
|
package/library/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangelogic/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.79.0",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"types": "library/types.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -45,5 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"nx": {
|
|
50
|
+
"projectType": "application"
|
|
48
51
|
}
|
|
49
52
|
}
|
|
@@ -13,7 +13,7 @@ import { default as CxTypography } from '../typography/typography';
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @summary Pagination component displays the current page and allows the user to navigate through pages.
|
|
16
|
-
* @description Set `show-pagination-input` to render an editable page input in page counters. Leave it unset to keep the original plain-text counters. Use `back-icon-name` and `next-icon-name` to override the previous/next icon-button glyphs (see the icon component for available names). Use `icon-button-size` for all navigation icon buttons (`small`, `medium`, `large`, `x-large`).
|
|
16
|
+
* @description Set `show-pagination-input` to render an editable page input in page counters. Leave it unset to keep the original plain-text counters. When only one page is available, navigation buttons are hidden and page counters remain plain text. Use `back-icon-name` and `next-icon-name` to override the previous/next icon-button glyphs (see the icon component for available names). Use `icon-button-size` for all navigation icon buttons (`small`, `medium`, `large`, `x-large`).
|
|
17
17
|
*
|
|
18
18
|
* @cssproperty --width - The width of the select
|
|
19
19
|
*
|
|
@@ -95,6 +95,7 @@ export default class CxPagination extends CortexElement {
|
|
|
95
95
|
get pageEnd(): number;
|
|
96
96
|
get prevDisabled(): boolean;
|
|
97
97
|
get nextDisabled(): boolean;
|
|
98
|
+
private get hasMultiplePages();
|
|
98
99
|
private updatePageCount;
|
|
99
100
|
private handlePageSizeSelectChange;
|
|
100
101
|
private handleFirst;
|
|
@@ -86,6 +86,12 @@ export default class CxSelect extends CortexElement implements CortexFormControl
|
|
|
86
86
|
* be an array. **For this reason, values must not contain spaces.**
|
|
87
87
|
*/
|
|
88
88
|
value: string | string[];
|
|
89
|
+
/**
|
|
90
|
+
* The fallback option value used when the select value does not match
|
|
91
|
+
* any explicitly declared option.
|
|
92
|
+
* The original unmatched value is preserved for form submission.
|
|
93
|
+
*/
|
|
94
|
+
fallbackOptionValue: string;
|
|
89
95
|
/**
|
|
90
96
|
* The default value of the form control. Primarily used for resetting the form control.
|
|
91
97
|
*/
|
|
@@ -321,6 +327,11 @@ export default class CxSelect extends CortexElement implements CortexFormControl
|
|
|
321
327
|
* Gets an array of all visible <cx-option> elements
|
|
322
328
|
*/
|
|
323
329
|
private getVisibleOptions;
|
|
330
|
+
/**
|
|
331
|
+
* Resolves selected options for the current value and applies fallback selection
|
|
332
|
+
* when unmatched values exist and `fallbackOptionValue` is configured.
|
|
333
|
+
*/
|
|
334
|
+
private getOptionsForValue;
|
|
324
335
|
/**
|
|
325
336
|
* Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
326
337
|
* option may be "current" at a time.
|
|
@@ -15,7 +15,7 @@ export default class Ajax extends Module {
|
|
|
15
15
|
params: Record<string, unknown> | false;
|
|
16
16
|
loaderPromise: LoaderPromise | false;
|
|
17
17
|
contentTypeFormatters: Record<string, AjaxContentType>;
|
|
18
|
-
private fetchApi;
|
|
18
|
+
private readonly fetchApi;
|
|
19
19
|
static defaultLoaderPromise: LoaderPromise;
|
|
20
20
|
constructor(table: Tabulator);
|
|
21
21
|
initialize(): void;
|
|
@@ -40,6 +40,7 @@ export default class List {
|
|
|
40
40
|
currentItems: ListItem[];
|
|
41
41
|
focusedItem: ListItem | null;
|
|
42
42
|
input: CxSelect;
|
|
43
|
+
initialValue: any;
|
|
43
44
|
initialValues: string[];
|
|
44
45
|
/**
|
|
45
46
|
* Whether the cell is a header cell, used for header filter of type list
|
|
@@ -52,7 +53,7 @@ export default class List {
|
|
|
52
53
|
cancel: CancelCallback;
|
|
53
54
|
success: SuccessCallback;
|
|
54
55
|
};
|
|
55
|
-
private fetchApi;
|
|
56
|
+
private readonly fetchApi;
|
|
56
57
|
constructor(editor: Edit, cell: Cell, onRendered: OnRenderedCallback, success: SuccessCallback, cancel: CancelCallback, editorParams: ListEditorParams);
|
|
57
58
|
/**
|
|
58
59
|
* cx-select only accepts string values without spaces
|
|
@@ -60,6 +61,7 @@ export default class List {
|
|
|
60
61
|
*/
|
|
61
62
|
sanitizeValue(value: any): string;
|
|
62
63
|
_initializeValue(): Promise<void>;
|
|
64
|
+
_getSanitizedInitialValues(initialValue: any): string[];
|
|
63
65
|
_onRendered(): Promise<void>;
|
|
64
66
|
clickStop(e: MouseEvent): void;
|
|
65
67
|
/**
|
|
@@ -83,6 +85,16 @@ export default class List {
|
|
|
83
85
|
_uniqueColumnValues(field?: string): string[];
|
|
84
86
|
_emptyValueCheck(value: any): boolean;
|
|
85
87
|
_parseList(inputValues: ListInputValues | Record<string, any>): ListItem[];
|
|
88
|
+
/**
|
|
89
|
+
* Appends a fallback option when `fallbackOptionValue` is configured
|
|
90
|
+
* and not explicitly declared in the list values.
|
|
91
|
+
*/
|
|
92
|
+
_appendFallbackOptionItem(data: ListItem[]): void;
|
|
93
|
+
/**
|
|
94
|
+
* Checks recursively whether grouped/flat list items already contain
|
|
95
|
+
* a given sanitized option value.
|
|
96
|
+
*/
|
|
97
|
+
_hasListItemValue(items: ListItem[], sanitizedValue: string): boolean;
|
|
86
98
|
_parseListItem(option: any, level: number): ListItem;
|
|
87
99
|
_parseListGroup(option: any, level: number): ListItem;
|
|
88
100
|
_sortOptions(options: ListItem[]): ListItem[];
|
|
@@ -102,6 +114,25 @@ export default class List {
|
|
|
102
114
|
_cancel(): void;
|
|
103
115
|
_chooseItem(item: ListItem, silent?: boolean): void;
|
|
104
116
|
_getCommittedOutput(): any;
|
|
117
|
+
/**
|
|
118
|
+
* Resolves the selected values once so preserved fallback arrays are not
|
|
119
|
+
* inserted into a single selected-option slot.
|
|
120
|
+
*/
|
|
121
|
+
_getCommittedMultipleOutput(options: HTMLElement[]): any[];
|
|
122
|
+
_getMappedOptionOutput(sanitized: string): any;
|
|
123
|
+
_getPreservedInputValueOutput(value: any): any;
|
|
124
|
+
_getPreservedFallbackMultipleOutput(sanitizedOptions: string[]): {
|
|
125
|
+
hasValue: false;
|
|
126
|
+
} | {
|
|
127
|
+
hasValue: true;
|
|
128
|
+
value: any[];
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Checks for a preserved unmatched editor value when the selected option is
|
|
132
|
+
* the configured fallback option used for undeclared values.
|
|
133
|
+
*/
|
|
134
|
+
_hasPreservedFallbackOptionOutput(sanitized: string): boolean;
|
|
135
|
+
_hasPreservedUnmatchedInputValue(inputValues: any[], sanitizedFallbackOptionValue: string): boolean;
|
|
105
136
|
_resolveValue(commitItem?: ListItem): void;
|
|
106
137
|
}
|
|
107
138
|
export {};
|
|
@@ -2441,6 +2441,8 @@ export interface ListEditorParams extends SharedEditorParams, SharedSelectAutoCo
|
|
|
2441
2441
|
valuesURL?: string;
|
|
2442
2442
|
valuesLookup?: ListEditorValuesLookup;
|
|
2443
2443
|
valuesLookupField?: string;
|
|
2444
|
+
fallbackOptionLabel?: string;
|
|
2445
|
+
fallbackOptionValue?: string | number | boolean;
|
|
2444
2446
|
clearable?: boolean;
|
|
2445
2447
|
getItemLabel?: (label: string, value: string, item: any, element: HTMLElement) => string;
|
|
2446
2448
|
sort?: SortDirection;
|