@orangelogic/design-system 2.132.0 → 2.134.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/{asset.D_VITxRH.js → asset.CcxcYY9d.js} +2 -2
- package/library/chunks/{button.DcInI7IV.js → button.DYoFn504.js} +1 -1
- package/library/chunks/calendar-grid.CvdcwfTo.js +34 -0
- package/library/chunks/checkbox.BzbWmmJ0.js +198 -0
- package/library/chunks/{color-swatch-group.Cy-M_lbx.js → color-swatch-group.Dx6-kWC-.js} +3 -3
- package/library/chunks/{color-swatch.U-wztpLf.js → color-swatch.0zyBEfL_.js} +1 -1
- package/library/chunks/{confirm-popover.DfAd2F8S.js → confirm-popover.DpVYvK20.js} +3 -3
- package/library/chunks/{date-picker.D0SJADN6.js → date-picker.DTUICGb9.js} +2 -2
- package/library/chunks/date.dSYNLBVO.js +77 -0
- package/library/chunks/{dialog.BlKHLwFx.js → dialog.BwBD_hJi.js} +2 -2
- package/library/chunks/{document-viewer.CzGnnA_9.js → document-viewer.BM716ovi.js} +7 -7
- package/library/chunks/{dot-pagination.CNJWQ4zf.js → dot-pagination.B70lV5Av.js} +1 -1
- package/library/chunks/{file-on-demand.Dr05DdkU.js → file-on-demand.CsT96fvk.js} +9 -9
- package/library/chunks/{folder-select.CHzRsSGM.js → folder-select.DwZ7lczk.js} +4 -4
- package/library/chunks/{header.WRWyUU36.js → header.BMGvKrdP.js} +1 -1
- package/library/chunks/{i18n.NAH4U8Lw.js → i18n.DoMIwXr2.js} +61 -45
- package/library/chunks/{icon-button.COTH_z-J.js → icon-button.B-Jf9W3v.js} +1 -1
- package/library/chunks/{iframe.DvBR4KYU.js → iframe.Cdv6esyS.js} +1 -1
- package/library/chunks/{image.DAtx64Jj.js → image.SLqIVjqc.js} +2 -2
- package/library/chunks/{input.BRgVRr2i.js → input.CQNhMu4z.js} +1 -1
- package/library/chunks/{list-editor.CwCdVzMl.js → list-editor.BhMNYL8R.js} +9 -9
- package/library/chunks/{option.BH13eKSl.js → option.SCVixE2L.js} +1 -1
- package/library/chunks/{pagination.tSkuYrqk.js → pagination.BFE6Nk3_.js} +5 -5
- package/library/chunks/{resizable-component.styles.B5N-oYx6.js → resizable-component.styles.BVhOesNE.js} +1 -1
- package/library/chunks/{tab-group.GA4X3LL2.js → tab-group.C-p2Dljr.js} +3 -3
- package/library/chunks/{table.C6YsaNOh.js → table.DWcxLbq6.js} +3581 -2656
- package/library/chunks/{tree.CbeHY8pn.js → tree.C2mLhREj.js} +2 -2
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +7 -7
- package/library/components/atoms.js +22 -22
- package/library/components/audio.js +3 -3
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/checkbox.js +18 -195
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +10 -9
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +77 -51
- package/library/components/document-viewer.js +4 -4
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +38 -23
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -3
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +7 -7
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/table.js +16 -16
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +3 -3
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +38201 -38461
- package/library/components/video.js +3 -3
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +3 -0
- package/library/packages/atoms/src/components/diff/utils/diff-worker-client.d.ts +2 -1
- package/library/packages/atoms/src/components/format-date/format-date.d.ts +8 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-dropdown-filter.d.ts +1 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-group-by-dropdown.d.ts +44 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-saved-search-dropdown.d.ts +1 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +33 -1
- package/library/packages/atoms/src/components/table/controllers/ajax-facets/ajax-facet-data-controller.d.ts +39 -0
- package/library/packages/atoms/src/components/table/controllers/ajax-facets/ajax-facet-filter-controller.d.ts +27 -0
- package/library/packages/atoms/src/components/table/{filter-controller.d.ts → controllers/filter-controller.d.ts} +24 -3
- package/library/packages/atoms/src/components/table/controllers/select-all-controller.d.ts +55 -0
- package/library/packages/atoms/src/components/table/table.d.ts +70 -1
- package/library/packages/events/src/cx-table-dropdown-filter-change.d.ts +1 -1
- package/library/packages/events/src/cx-table-export.d.ts +1 -1
- package/library/packages/events/src/cx-table-group-by-change.d.ts +8 -0
- package/library/packages/events/src/cx-table-select-all-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/TabulatorFull.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/avatar.d.ts +5 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/date.d.ts +12 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/diff.d.ts +2 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters.d.ts +4 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/Group.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/GroupRows.d.ts +7 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRow/extensions/formatters/rowSelection.d.ts +1 -1
- package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +2 -0
- package/library/packages/types/src/faceted-filter.d.ts +11 -0
- package/library/packages/types/src/format-date.d.ts +12 -0
- package/library/packages/types/src/table.d.ts +40 -21
- package/library/packages/utils/src/custom-element/i18n-utils.d.ts +7 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/react-web-component.d.ts +278 -246
- package/library/utils.js +86 -85
- package/package.json +1 -1
- package/library/assets/diff.worker-ClilI1xm.js +0 -1
- package/library/chunks/calendar-grid.CXYoS6VA.js +0 -108
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { n as d, C as u } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as p } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import {
|
|
5
|
-
import "../chunks/date
|
|
6
|
-
import
|
|
4
|
+
import { C as m } from "../chunks/calendar-grid.CvdcwfTo.js";
|
|
5
|
+
import { a as b, n as _, p as g, b as v, f } from "../chunks/date.dSYNLBVO.js";
|
|
6
|
+
import "../chunks/date-picker.DTUICGb9.js";
|
|
7
|
+
import { i as y, x as n } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
8
|
import { r as h } from "../chunks/state.CSDxrqLd.js";
|
|
8
9
|
import { e as w } from "../chunks/class-map.BiVq-cVR.js";
|
|
9
10
|
import { c as k } from "../chunks/repeat.DbF2p5ae.js";
|
|
10
|
-
import { C as D } from "../chunks/icon-button.
|
|
11
|
-
const M =
|
|
11
|
+
import { C as D } from "../chunks/icon-button.B-Jf9W3v.js";
|
|
12
|
+
const M = y`:host{display:inline-block}.calendar{background:var(--cx-color-neutral-0);border:1px solid var(--cx-color-neutral-200);border-radius:var(--cx-border-radius-medium);user-select:none;width:fit-content;overflow:hidden}.calendar__header{padding:var(--cx-spacing-3x-small);background:var(--header-background,var(--cx-color-neutral-100));border-bottom:1px solid var(--cx-color-neutral-200);justify-content:space-between;align-items:center;display:flex}.calendar__title{font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-semibold);color:var(--cx-color-neutral-900)}.calendar__weekdays{grid-template-columns:repeat(7, var(--cell-size,30px));border-bottom:1px solid var(--cx-color-neutral-200);display:grid}.calendar__weekday{text-align:center;font-size:var(--cx-font-size-2x-small);font-weight:var(--cx-font-weight-regular);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small)}.calendar__grid{grid-template-columns:repeat(7, var(--cell-size,30px));border-top:1px solid var(--cx-color-neutral-200);border-left:1px solid var(--cx-color-neutral-200);display:grid}.calendar__cell{height:var(--cell-size,30px);border:none;border-right:1px solid var(--cx-color-neutral-200);border-bottom:1px solid var(--cx-color-neutral-200);border-radius:var(--cell-border-radius,0);color:var(--cx-color-neutral-900);font-size:var(--cx-font-size-x-small);cursor:pointer;transition:background var(--cx-transition-x-fast) ease;background:0 0;justify-content:center;align-items:center;padding:0;display:flex}.calendar__cell:hover:not(.calendar__cell--selected){background:var(--cell-hover-background,var(--cx-color-primary-50))}.calendar__cell--disabled{background:var(--cx-color-neutral-50);color:var(--cx-color-neutral-300);cursor:not-allowed}.calendar__cell--disabled:hover{background:var(--cx-color-neutral-50)}.calendar__cell--outside{background:var(--cx-color-neutral-100);color:var(--cx-color-neutral-400)}.calendar__cell--today:not(.calendar__cell--selected){background:var(--cell-today-background,var(--cx-color-primary-200))}.calendar__cell--selected{background:var(--cell-selected-background,var(--cx-color-neutral-300));color:var(--cell-selected-color,var(--cx-color-neutral-0));font-weight:var(--cx-font-weight-bold)}.calendar__cell--selected:hover{background:var(--cell-selected-background,var(--cx-color-neutral-300));opacity:.85}`;
|
|
12
13
|
var $ = Object.defineProperty, C = Object.getOwnPropertyDescriptor, c = (e, a, o, r) => {
|
|
13
14
|
for (var l = r > 1 ? void 0 : r ? C(a, o) : a, i = e.length - 1, s; i >= 0; i--)
|
|
14
15
|
(s = e[i]) && (l = (r ? s(a, o, l) : s(l)) || l);
|
|
@@ -19,14 +20,14 @@ const z = ["SU", "MO", "TU", "WE", "TH", "FR", "SA"].map(
|
|
|
19
20
|
);
|
|
20
21
|
let t = class extends u {
|
|
21
22
|
constructor() {
|
|
22
|
-
super(...arguments), this.today =
|
|
23
|
+
super(...arguments), this.today = b(), this.cells = [], this.selectedDate = "", this.viewYear = (/* @__PURE__ */ new Date()).getFullYear(), this.viewMonth = (/* @__PURE__ */ new Date()).getMonth() + 1, this.value = "", this.min = "", this.max = "";
|
|
23
24
|
}
|
|
24
25
|
willUpdate(e) {
|
|
25
26
|
if (super.willUpdate(e), e.has("value")) {
|
|
26
|
-
const a =
|
|
27
|
+
const a = _(this.value);
|
|
27
28
|
this.selectedDate = a ?? "", this.syncViewDate(a ?? this.today);
|
|
28
29
|
}
|
|
29
|
-
this.cells =
|
|
30
|
+
this.cells = m.generate({
|
|
30
31
|
maxDate: this.max,
|
|
31
32
|
minDate: this.min,
|
|
32
33
|
selectedDate: this.selectedDate,
|
|
@@ -57,7 +58,7 @@ let t = class extends u {
|
|
|
57
58
|
!r || r.isDisabled || (this.selectedDate = r.date, this.emit("cx-date-select", { detail: { value: r.date } }));
|
|
58
59
|
}
|
|
59
60
|
renderHeader() {
|
|
60
|
-
return n`<div part="header" class="calendar__header"><cx-icon-button name="chevron_left" label="Previous month" size="small" @click=${this.handlePrevMonth}></cx-icon-button><span class="calendar__title">${
|
|
61
|
+
return n`<div part="header" class="calendar__header"><cx-icon-button name="chevron_left" label="Previous month" size="small" @click=${this.handlePrevMonth}></cx-icon-button><span class="calendar__title">${f(this.viewYear, this.viewMonth)}</span><cx-icon-button name="chevron_right" label="Next month" size="small" @click=${this.handleNextMonth}></cx-icon-button></div>`;
|
|
61
62
|
}
|
|
62
63
|
renderWeekdays() {
|
|
63
64
|
return n`<div class="calendar__weekdays">${z}</div>`;
|
|
@@ -2,7 +2,7 @@ import { n as l, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as v } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { s as h, a as p, b as m, w as u } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as _ } from "../chunks/i18n.
|
|
5
|
+
import { L as _ } from "../chunks/i18n.DoMIwXr2.js";
|
|
6
6
|
import { w as g } from "../chunks/watch.CThbualB.js";
|
|
7
7
|
import { i as w, x as k } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import { e as n } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/overlayscrollbars.BMav4RQ4.js";
|
|
4
|
-
import { C as v } from "../chunks/dialog.
|
|
4
|
+
import { C as v } from "../chunks/dialog.BwBD_hJi.js";
|
|
5
5
|
import "../chunks/event.BeKOsirN.js";
|
|
6
6
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
7
|
-
import "../chunks/i18n.
|
|
7
|
+
import "../chunks/i18n.DoMIwXr2.js";
|
|
8
8
|
import "../chunks/modal.U1QltQKe.js";
|
|
9
9
|
import "../chunks/scroll.xtO5yojm.js";
|
|
10
10
|
import "../chunks/slot.j5oheLJC.js";
|
|
@@ -18,7 +18,7 @@ import "../chunks/style-map.llVFPd__.js";
|
|
|
18
18
|
import "../chunks/when.Dr1es41R.js";
|
|
19
19
|
import "../chunks/animation-registry.HmpwNuGH.js";
|
|
20
20
|
import "./divider.js";
|
|
21
|
-
import "../chunks/icon-button.
|
|
21
|
+
import "../chunks/icon-button.B-Jf9W3v.js";
|
|
22
22
|
import "./popup.js";
|
|
23
23
|
export {
|
|
24
24
|
v as default
|
|
@@ -1,86 +1,112 @@
|
|
|
1
|
-
import { n as m, C as
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
4
|
-
import { d as
|
|
5
|
-
import { H as
|
|
1
|
+
import { n as m, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as k } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { d as y } from "../chunks/debounce.DaHuiSGU.js";
|
|
5
|
+
import { H as A } from "../chunks/slot.j5oheLJC.js";
|
|
6
6
|
import { w as p } from "../chunks/watch.CThbualB.js";
|
|
7
|
-
import { s as
|
|
8
|
-
import { i as
|
|
9
|
-
import { r as
|
|
10
|
-
import { o as
|
|
11
|
-
import { n as
|
|
12
|
-
const b = C`:host,.cx-diff__content{display:inline}.cx-diff__del,.cx-diff__old{background-color:var(--cx-diff-deleted-bg,var(--cx-color-neutral-200));color:var(--cx-diff-deleted-color,inherit);margin-inline-end:var(--cx-diff-gap,var(--cx-spacing-2x-small));text-decoration:line-through}.cx-diff__ins,.cx-diff__new{background-color:var(--cx-diff-inserted-bg,var(--cx-color-success-200));color:var(--cx-diff-inserted-color,inherit)}`;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
import { s as x } from "../chunks/string.CbnVBzsd.js";
|
|
8
|
+
import { i as B, x as c, E as v } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
|
+
import { r as _ } from "../chunks/state.CSDxrqLd.js";
|
|
10
|
+
import { o as S } from "../chunks/unsafe-html.Dff7-rCx.js";
|
|
11
|
+
import { n as d } from "../chunks/when.Dr1es41R.js";
|
|
12
|
+
const R = B`:host,.cx-diff__content{display:inline}.cx-diff__del,.cx-diff__old{background-color:var(--cx-diff-deleted-bg,var(--cx-color-neutral-200));color:var(--cx-diff-deleted-color,inherit);margin-inline-end:var(--cx-diff-gap,var(--cx-spacing-2x-small));text-decoration:line-through}.cx-diff__ins,.cx-diff__new{background-color:var(--cx-diff-inserted-bg,var(--cx-color-success-200));color:var(--cx-diff-inserted-color,inherit)}`, I = `(function(){"use strict";const N=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],w=["<table>"];function x(e){return e?N.includes(e.match(/^<(\\w+)/)?.[1]?.toLowerCase()||e.match(/^<\\/(\\w+)/)?.[1]?.toLowerCase()||""):!1}function B(e){return!e||x(e.key)?!1:/<([a-z]+)(?![^>]*\\/>)[^>]*>/.test(e.key)}function M(e){return!e||x(e.key)?!1:/<\\/\\w+>/.test(e.key)}let J=new RegExp("^<(iframe|object|math|svg|script|video|head|style|a|source)\\b");function v(e){return e===">"}function C(e){return e==="<"}function j(e){return/^\\s+$/.test(e)}function _(e){const n=e.match(/^\\s*<([^!>][^>]*)>\\s*$/);return!!n&&n[1].trim().split(" ")[0]}function Q(e){return!_(e)}function X(e){return/^<!--/.test(e)}function Y(e){return/-->$/.test(e)}function L(e){const n=J.exec(e);return n&&n[1]}function Z(e,n){return e.substring(e.length-n.length-2)==="</"+n}function ee(e){const n=/^<img[\\s>]/.test(e);return!/^<source[\\s>]/.test(e)&&(n||Q(e)||!!L(e)||x(e))}function g(e){return{key:e,string:e}}function R(e,n,t,s){this.segment=s,this.length=t,this.startInBefore=e+s.beforeIndex,this.startInAfter=n+s.afterIndex,this.endInBefore=this.startInBefore+this.length-1,this.endInAfter=this.startInAfter+this.length-1,this.segmentStartInBefore=e,this.segmentStartInAfter=n,this.segmentEndInBefore=this.segmentStartInBefore+this.length-1,this.segmentEndInAfter=this.segmentStartInAfter+this.length-1}function V(e){let n="char",t="",s="";const o=[];for(let c=0;c<e.length;c++){const r=e[c];switch(n){case"tag":var i=L(t);i?(n="atomic_tag",s=i,t+=r):X(t)?(n="html_comment",t+=r):v(r)?(t+=">",o.push(g(t)),t="",j(r)?n="whitespace":n="char"):t+=r;break;case"atomic_tag":v(r)&&Z(t,s)?(t+=">",o.push(g(t)),t="",s="",n="char"):t+=r;break;case"html_comment":t+=r,Y(t)&&(t="",n="char");break;case"char":C(r)?(t&&o.push(g(t)),t="<",n="tag"):/\\s/.test(r)?(t&&o.push(g(t)),t=r,n="whitespace"):/[\\w\\d#@]/.test(r)?t+=r:/&/.test(r)?(t&&o.push(g(t)),t=r):(t+=r,o.push(g(t)),t="");break;case"whitespace":C(r)?(t&&o.push(g(t)),t="<",n="tag"):j(r)?t+=r:(t&&o.push(g(t)),t=r,n="char");break;default:throw new Error("Unknown mode "+n)}}return t&&o.push(g(t)),o}function E(e){const n=/^<img.*src=['"]([^"']*)['"].*>$/.exec(e);if(n)return'<img src="'+n[1]+'">';const t=/^<a.*href=['"]([^"']*)['"]/.exec(e);if(t)return'<a href="'+t[1]+'"></a>';const s=/^<object.*data=['"]([^"']*)['"]/.exec(e);if(s)return'<object src="'+s[1]+'"></object>';if(/^<(svg|math|video)[\\s>]/.test(e)){const c=e.indexOf('data-uuid="');if(c!==-1){const r=e.slice(0,c),l=e.slice(c+44);return r+l}else return e}const o=/^<iframe.*src=['"]([^"']*)['"].*>/.exec(e);if(o)return'<iframe src="'+o[1]+'"></iframe>';const i=/<([^\\s>]+)[\\s>]/.exec(e);return i?"<"+i[1].toLowerCase()+">":e&&e.replace(/(\\s+| | )/g," ")}function H(e){return e.reduce((n,t,s)=>(n[t.key]?n[t.key].push(s):n[t.key]=[s],n),Object.create(null))}function te(e,n){return n.endInBefore<e.startInBefore&&n.endInAfter<e.startInAfter?-1:n.startInBefore>e.endInBefore&&n.startInAfter>e.endInAfter?1:0}function q(){this._root=null}q.prototype={add:function(e){const n={left:null,right:null,value:e};let t=this._root;if(t)for(;;){const s=te(t.value,e);if(s===-1)if(t.left)t=t.left;else{t.left=n;break}else if(s===1)if(t.right)t=t.right;else{t.right=n;break}else break}else this._root=n},toArray:function(){function e(n,t){return n&&(e(n.left,t),t.push(n.value),e(n.right,t)),t}return e(this._root,[])}};function ne(e,n,t){const s=e.beforeTokens,o=e.afterMap;let i=null,c=null;for(var r=0;r<s.length;r++){var l=!1;const u=s.length-r;if(c&&u<c.length)break;const a=s[r];if(w.includes(E(a.key)))continue;if(a.key===" "){i=r;continue}i===r-1&&(l=!0);const f=o[a.key];f&&f.forEach(h=>{const T=c?c.length:0,p=re(e,r,h,T,l);if(p&&p.length>T){let d=0,A="",y="",k=0,W=0,O=0;for(let I=p.endInBefore;I>=p.startInBefore;I--)M(n[I])?d++:B(n[I])&&d>0&&d--;for(let I=p.endInAfter;I>=p.startInAfter;I--)M(t[I])?k++:B(t[I])&&k>0&&k--;let m=p.startInBefore-1,b=p.startInAfter-1,z=!0;const le=n.length+t.length;let K=0;for(;(m>=0||b>=0)&&!(K>le);)if(K++,m>=0&&!A&&(B(n[m])?W>0?W--:d>0?(A=n[m].string,d--):A=n[m].string:M(n[m])&&W++,m--),b>=0&&!y&&(B(t[b])?O>0?O--:k>0?(y=t[b].string,k--):y=t[b].string:M(t[b])&&O++,b--),A&&y||A&&b<0||y&&m<0){if(A!==y||w.includes(E(A))){z=!1;break}A="",y="";continue}z&&(c=p)}})}return c||null}function re(e,n,t,s,o){const i=e.beforeTokens,c=e.afterTokens,r=n+s,l=t+s;if(r>=i.length||l>=c.length)return;let u="";if(s){const p=i[r].key,d=c[l].key;if(p!==d&&!w.includes(E(p)))return}let a=!0,f=1,h=n+f,T=t+f;for(;a&&h<i.length&&T<c.length;){u=i[h].key;const p=c[T].key;u===p&&!w.includes(E(u))?(f++,h=n+f,T=t+f):a=!1}if(o&&n>0&&t>0){const p=i[n-1].key,d=c[t-1].key;p===" "&&d===" "&&(n--,t--,f++)}return new R(n,t,f,e)}function $(e,n,t,s){return{afterIndex:s,afterMap:H(n),afterTokens:n,beforeIndex:t,beforeMap:H(e),beforeTokens:e}}function se(e){const n=new q;let t;const s=[e],o=e.beforeTokens,i=e.afterTokens;for(;s.length;)if(e=s.pop(),t=ne(e,o,i),t&&t.length){if(t.segmentStartInBefore>0&&t.segmentStartInAfter>0){const a=e.beforeTokens.slice(0,t.segmentStartInBefore),f=e.afterTokens.slice(0,t.segmentStartInAfter);s.push($(a,f,e.beforeIndex,e.afterIndex))}const c=e.beforeTokens.slice(t.segmentEndInBefore+1),r=e.afterTokens.slice(t.segmentEndInAfter+1),l=e.beforeIndex+t.segmentEndInBefore+1,u=e.afterIndex+t.segmentEndInAfter+1;c.length&&r.length&&s.push($(c,r,l,u)),n.add(t)}return n.toArray()}function ie(e,n){if(!e)throw new Error("Missing beforeTokens");if(!n)throw new Error("Missing afterTokens");let t=0,s=0;const o=[],i=$(e,n,0,0),c=se(i);c.push(new R(e.length,n.length,0,i));for(let a=0;a<c.length;a++){const f=c[a];let h="none";t===f.startInBefore?s!==f.startInAfter&&(h="insert"):(h="delete",s!==f.startInAfter&&(h="replace")),h!=="none"&&o.push({action:h,endInAfter:h!=="delete"?f.startInAfter-1:null,endInBefore:h!=="insert"?f.startInBefore-1:null,startInAfter:s,startInBefore:t}),f.length!==0&&o.push({action:"equal",endInAfter:f.endInAfter,endInBefore:f.endInBefore,startInAfter:f.startInAfter,startInBefore:f.startInBefore}),t=f.endInBefore+1,s=f.endInAfter+1}const r=[];let l={action:"none",endInAfter:null,endInBefore:null};function u(a){return a.action!=="equal"||(a.endInBefore??0)-a.startInBefore!==0?!1:/^\\s$/.test(e.slice(a.startInBefore,(a.endInBefore??0)+1))}for(let a=0;a<o.length;a++){const f=o[a];u(f)&&l.action==="replace"||f.action==="replace"&&l.action==="replace"?(l.endInBefore=f.endInBefore,l.endInAfter=f.endInAfter):(r.push(f),l=f)}return r}function G(e){this.tokens=e,this.notes=e.reduce((n,t,s)=>{n.notes.push({insertedTag:B({key:t}),isWrappable:ee(t)});const o=!x(t)&&_(t),i=n.tagStack[n.tagStack.length-1];return o&&(i&&"/"+i.tag===o?(n.notes[i.position].insertedTag=!0,n.tagStack.pop()):n.tagStack.push({position:s,tag:o})),n},{notes:[],tagStack:[]}).notes}G.prototype.combine=function(e,n){const t=this.notes,s=this.tokens.slice();return s.reduce((i,c,r)=>{t[r].insertedTag&&(s[r]=n(s[r])),i.status===null&&(i.status=t[r].isWrappable);const l=t[r].isWrappable;return l!==i.status&&(i.list.push({isWrappable:i.status,tokens:s.slice(i.lastIndex,r)}),i.lastIndex=r,i.status=l),r===s.length-1&&i.list.push({isWrappable:i.status,tokens:s.slice(i.lastIndex,r+1)}),i},{lastIndex:0,list:[],status:null}).list.map(e).join("")};function D(e,n,t,s,o){const i=new G(n);s=s?s+"-":"";let c=" data-"+s+'operation-index="'+t+'"';return o&&(c+=' class="'+o+'"'),i.combine(r=>{if(r.isWrappable){const l=r.tokens.join("");return l.trim()?"<"+e+c+">"+l+"</"+e+">":l}else return r.tokens.join("")},r=>{let l=' data-diff-node="'+e+'"';return l+=" data-"+s+'operation-index="'+t+'"',r.replace(/>\\s*$/,l+"$&")})}const S={delete:function(e,n,t,s,o,i){const r=n.slice(e.startInBefore,(e.endInBefore??0)+1).map(l=>l.string);return D("del",r,s,o,i)},equal:function(e,n,t){return t.slice(e.startInAfter,(e.endInAfter??0)+1).reduce((o,i)=>o+i.string,"")},insert:function(e,n,t,s,o,i){const r=t.slice(e.startInAfter,(e.endInAfter??0)+1).map(l=>l.string);return D("ins",r,s,o,i)},replace:function(e,n,t){const s=n.slice(e.startInBefore,(e.endInBefore??0)+1).reduce((i,c)=>i+c.string,""),o=t.slice(e.startInAfter,(e.endInAfter??0)+1).reduce((i,c)=>i+c.string,"");return s===o?o:S.delete.apply(null,arguments)+S.insert.apply(null,arguments)}};function oe(e,n,t,s,o){return t.reduce((i,c,r)=>i+S[c.action](c,e,n,r,s,o),"")}function F(e){const n=/(\\w+)=("[^"]*")/g;return e.replaceAll(n,(t,s,o)=>{const i=o.replaceAll("<","<").replaceAll(">",">");return\`\${s}=\${i}\`})}function ce(e){const n=/(\\w+)=("[^"]*")/g;return e.replaceAll(n,(t,s,o)=>{const i=o.replaceAll("<","<").replaceAll(">",">");return\`\${s}=\${i}\`})}function P(e,n,t,s,o){if(e===n)return e;const i=F(e),c=F(n),r=V(i),l=V(c),u=ie(r,l),a=oe(r,l,u,s,t);return ce(a)}function U(e){const n=/<[^>]*\\sstyle="([^"]*)"[^>]*>/,t=e.match(n),s=t?.[1]?Object.fromEntries(t[1].split(";").map(r=>r.split(":"))):{};let o="",i="";Object.keys(s).filter(r=>r?r.includes("border")||r.includes("padding")||["width","height"].includes(r)?(o+=\`\${r}:\${s[r]};\`,!1):!0:!1).forEach(r=>{i+=\`\${r}:\${s[r]};\`});const c=t?e.replace(n,r=>r.replace(/style="[^"]*"/,\`style="\${o}"\`)):e;return[i,c]}typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&(self.onmessage=function(e){if(e.data.type==="cx-diff-request"){const{id:n,newValue:t,oldValue:s}=e.data.payload;try{const o=P(s,t);self.postMessage({payload:{id:n,result:o},type:"cx-diff-response"})}catch{self.postMessage({payload:{id:n,result:""},type:"cx-diff-response"})}}if(e.data.type==="diffHTMLRequest"){const{changeRecordID:n,newValue:t,oldValue:s}=e.data.payload;try{let o=P(s,t).replaceAll(/<ins[^>]*>/g,'<span class="mce-item-ins-node">').replaceAll("</ins>","</span>").replaceAll(/<del[^>]*>/g,'<span class="mce-item-del-node">').replaceAll("</del>","</span>");const i=["video","code","iframe"],c=new RegExp(\`<(\${i.join("|")})[^>]*>\`,"g"),r=new RegExp(\`</(\${i.join("|")})[^>]*>\`,"g");o=o.replaceAll(c,l=>{const u=U(l);return\`<span class="block-wrapper" style="\${u[0]}">\${u[1]}\`}).replaceAll(r,l=>\`\${l}</span>\`).replaceAll(new RegExp("<(img)[^>]*>","g"),l=>{const u=U(l);return\`<span class="block-wrapper" style="\${u[0]}">\${u[1]}</span>\`}),self.postMessage({payload:{changeRecordID:n,diff:o,newValue:t,oldValue:s},type:"diffHTML"})}catch{self.postMessage({payload:{changeRecordID:n,diff:"",newValue:t,oldValue:s},type:"diffHTML"})}}})})();
|
|
13
|
+
`, h = typeof self < "u" && self.Blob && new Blob([I], { type: "text/javascript;charset=utf-8" });
|
|
14
|
+
function $(t) {
|
|
15
|
+
let e;
|
|
16
|
+
try {
|
|
17
|
+
if (e = h && (self.URL || self.webkitURL).createObjectURL(h), !e) throw "";
|
|
18
|
+
const n = new Worker(e, {
|
|
19
|
+
name: t?.name
|
|
20
|
+
});
|
|
21
|
+
return n.addEventListener("error", () => {
|
|
22
|
+
(self.URL || self.webkitURL).revokeObjectURL(e);
|
|
23
|
+
}), n;
|
|
24
|
+
} catch {
|
|
25
|
+
return new Worker(
|
|
26
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(I),
|
|
27
|
+
{
|
|
28
|
+
name: t?.name
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
} finally {
|
|
32
|
+
e && (self.URL || self.webkitURL).revokeObjectURL(e);
|
|
33
|
+
}
|
|
20
34
|
}
|
|
21
|
-
let o,
|
|
35
|
+
let o, E = 0;
|
|
22
36
|
const i = /* @__PURE__ */ new Map();
|
|
23
|
-
function
|
|
24
|
-
i.forEach((
|
|
37
|
+
function g() {
|
|
38
|
+
i.forEach((t) => t("")), i.clear(), o?.terminate(), o = void 0;
|
|
25
39
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
function T() {
|
|
41
|
+
if (!o) {
|
|
42
|
+
try {
|
|
43
|
+
o = new $();
|
|
44
|
+
} catch {
|
|
45
|
+
o = void 0;
|
|
29
46
|
return;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
}
|
|
48
|
+
o.addEventListener("message", (t) => {
|
|
49
|
+
if (t.data?.type !== "cx-diff-response")
|
|
50
|
+
return;
|
|
51
|
+
const { id: e, result: n } = t.data.payload, r = i.get(e);
|
|
52
|
+
r && (i.delete(e), r(n));
|
|
53
|
+
}), o.addEventListener("error", g), o.addEventListener("messageerror", g);
|
|
54
|
+
}
|
|
55
|
+
return o;
|
|
33
56
|
}
|
|
34
|
-
function
|
|
35
|
-
const n =
|
|
57
|
+
function j(t, e) {
|
|
58
|
+
const n = T();
|
|
59
|
+
if (!n)
|
|
60
|
+
return Promise.resolve("");
|
|
61
|
+
const r = ++E;
|
|
36
62
|
return new Promise((s) => {
|
|
37
|
-
i.set(r, s), n.postMessage({ payload: { id: r, newValue:
|
|
63
|
+
i.set(r, s), n.postMessage({ payload: { id: r, newValue: e, oldValue: t }, type: "cx-diff-request" });
|
|
38
64
|
});
|
|
39
65
|
}
|
|
40
|
-
var
|
|
41
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
42
|
-
(
|
|
43
|
-
return r && s &&
|
|
66
|
+
var L = Object.defineProperty, M = Object.getOwnPropertyDescriptor, a = (t, e, n, r) => {
|
|
67
|
+
for (var s = r > 1 ? void 0 : r ? M(e, n) : e, f = t.length - 1, u; f >= 0; f--)
|
|
68
|
+
(u = t[f]) && (s = (r ? u(e, n, s) : u(s)) || s);
|
|
69
|
+
return r && s && L(e, n, s), s;
|
|
44
70
|
};
|
|
45
|
-
let l = class extends
|
|
71
|
+
let l = class extends b {
|
|
46
72
|
constructor() {
|
|
47
|
-
super(...arguments), this.hasSlotController = new
|
|
73
|
+
super(...arguments), this.hasSlotController = new A(this, "old", "new"), this.oldValue = "", this.newValue = "", this.diffResult = "", this.latestRequestId = 0;
|
|
48
74
|
}
|
|
49
75
|
handleValuesChange() {
|
|
50
76
|
this.refreshDiff();
|
|
51
77
|
}
|
|
52
78
|
async refreshDiff() {
|
|
53
|
-
const
|
|
79
|
+
const t = ++this.latestRequestId;
|
|
54
80
|
if (this.hasSlotController.test("old") || this.hasSlotController.test("new"))
|
|
55
81
|
return;
|
|
56
82
|
if (!this.oldValue && !this.newValue) {
|
|
57
83
|
this.diffResult = "";
|
|
58
84
|
return;
|
|
59
85
|
}
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
86
|
+
const e = await j(this.oldValue, this.newValue);
|
|
87
|
+
t === this.latestRequestId && (this.diffResult = x(
|
|
88
|
+
e.replaceAll(/<ins[^>]*>/g, '<span class="cx-diff__ins">').replaceAll("</ins>", "</span>").replaceAll(/<del[^>]*>/g, '<span class="cx-diff__del">').replaceAll("</del>", "</span>")
|
|
63
89
|
));
|
|
64
90
|
}
|
|
65
91
|
renderSlotMode() {
|
|
66
|
-
const
|
|
67
|
-
return
|
|
68
|
-
${
|
|
69
|
-
${
|
|
92
|
+
const t = this.hasSlotController.test("old"), e = this.hasSlotController.test("new");
|
|
93
|
+
return c`
|
|
94
|
+
${d(t, () => c`<span class="cx-diff__old" part="deleted"><slot name="old"></slot></span>`)}
|
|
95
|
+
${d(e, () => c`<span class="cx-diff__new" part="inserted"><slot name="new"></slot></span>`)}
|
|
70
96
|
`;
|
|
71
97
|
}
|
|
72
98
|
renderAutoMode() {
|
|
73
|
-
return
|
|
99
|
+
return d(
|
|
74
100
|
!!this.diffResult,
|
|
75
|
-
() =>
|
|
76
|
-
() =>
|
|
101
|
+
() => c`<span class="cx-diff__content">${S(this.diffResult)}</span>`,
|
|
102
|
+
() => v
|
|
77
103
|
);
|
|
78
104
|
}
|
|
79
105
|
render() {
|
|
80
106
|
return this.hasSlotController.test("old") || this.hasSlotController.test("new") ? this.renderSlotMode() : this.renderAutoMode();
|
|
81
107
|
}
|
|
82
108
|
};
|
|
83
|
-
l.styles = [
|
|
109
|
+
l.styles = [k, R];
|
|
84
110
|
l.dependencies = {};
|
|
85
111
|
a([
|
|
86
112
|
m({ attribute: "old-value", type: String })
|
|
@@ -89,15 +115,15 @@ a([
|
|
|
89
115
|
m({ attribute: "new-value", type: String })
|
|
90
116
|
], l.prototype, "newValue", 2);
|
|
91
117
|
a([
|
|
92
|
-
|
|
118
|
+
_()
|
|
93
119
|
], l.prototype, "diffResult", 2);
|
|
94
120
|
a([
|
|
95
121
|
p("oldValue"),
|
|
96
122
|
p("newValue", { waitUntilFirstUpdate: !0 }),
|
|
97
|
-
|
|
123
|
+
y(16)
|
|
98
124
|
], l.prototype, "handleValuesChange", 1);
|
|
99
125
|
l = a([
|
|
100
|
-
|
|
126
|
+
w("cx-diff")
|
|
101
127
|
], l);
|
|
102
128
|
export {
|
|
103
129
|
l as default
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "../chunks/resizable-component.styles.
|
|
2
|
-
import { C as b } from "../chunks/document-viewer.
|
|
1
|
+
import "../chunks/resizable-component.styles.BVhOesNE.js";
|
|
2
|
+
import { C as b } from "../chunks/document-viewer.BM716ovi.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import "../chunks/index.Cpamj0jB.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import "../chunks/i18n.
|
|
6
|
+
import "../chunks/i18n.DoMIwXr2.js";
|
|
7
7
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
9
9
|
import "../chunks/state.CSDxrqLd.js";
|
|
10
10
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import "../chunks/when.Dr1es41R.js";
|
|
12
12
|
import "../chunks/icon.DnBh6-56.js";
|
|
13
|
-
import "../chunks/image.
|
|
13
|
+
import "../chunks/image.SLqIVjqc.js";
|
|
14
14
|
import "../chunks/typography.DJC_UXgs.js";
|
|
15
15
|
export {
|
|
16
16
|
b as default
|
|
@@ -2,7 +2,7 @@ import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
4
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import "../chunks/i18n.
|
|
5
|
+
import "../chunks/i18n.DoMIwXr2.js";
|
|
6
6
|
import "../chunks/watch.CThbualB.js";
|
|
7
7
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import "../chunks/state.CSDxrqLd.js";
|
|
@@ -13,7 +13,7 @@ import "../chunks/if-defined.BRoBj_Rp.js";
|
|
|
13
13
|
import "../chunks/map.D8heArFD.js";
|
|
14
14
|
import "../chunks/when.Dr1es41R.js";
|
|
15
15
|
import "./tooltip.js";
|
|
16
|
-
import { C as g } from "../chunks/dot-pagination.
|
|
16
|
+
import { C as g } from "../chunks/dot-pagination.B70lV5Av.js";
|
|
17
17
|
export {
|
|
18
18
|
g as default
|
|
19
19
|
};
|
|
@@ -2,7 +2,7 @@ import { n as s, C as k } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as z } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { a as d, s as h, w as v } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as P } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as D } from "../chunks/i18n.
|
|
5
|
+
import { L as D } from "../chunks/i18n.DoMIwXr2.js";
|
|
6
6
|
import { M as O } from "../chunks/modal.U1QltQKe.js";
|
|
7
7
|
import { l as w, u } from "../chunks/scroll.xtO5yojm.js";
|
|
8
8
|
import { H as $ } from "../chunks/slot.j5oheLJC.js";
|
|
@@ -15,7 +15,7 @@ import { o as _ } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
|
15
15
|
import { n as b } from "../chunks/when.Dr1es41R.js";
|
|
16
16
|
import { c as x } from "../chunks/capitalize.i-sHIcnm.js";
|
|
17
17
|
import { s as o, g as c } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
18
|
-
import { C as A } from "../chunks/icon-button.
|
|
18
|
+
import { C as A } from "../chunks/icon-button.B-Jf9W3v.js";
|
|
19
19
|
const q = B`:host{--size:25rem;--header-spacing:var(--cx-spacing-large);--body-spacing:var(--cx-spacing-large);--footer-spacing:var(--cx-spacing-large);--font-family:var(--cx-font-sans);display:contents}.drawer{top:0;pointer-events:none;width:0;height:0;inset-inline-start:0;overflow:hidden}.drawer--open{width:100%;height:100%}.drawer--persistent.drawer--open{width:var(--size);min-width:var(--size)}.drawer--contained{z-index:initial;position:absolute}.drawer--persistent{position:relative}.drawer--fixed{z-index:var(--cx-z-index-drawer);position:fixed}.drawer__panel{z-index:2;background-color:var(--cx-panel-background-color);max-width:100%;max-height:100%;box-shadow:var(--cx-shadow-large);pointer-events:all;flex-direction:column;display:flex;position:absolute;overflow:auto}.drawer__panel:focus{outline:none}.drawer--top .drawer__panel{top:0;inset-inline-end:auto;bottom:auto;width:100%;height:var(--size);inset-inline-start:0}.drawer--end .drawer__panel{top:0;inset-inline-end:0;bottom:auto;width:var(--size);height:100%;inset-inline-start:auto}.drawer--bottom .drawer__panel{top:auto;inset-inline-end:auto;bottom:0;width:100%;height:var(--size);inset-inline-start:0}.drawer--start .drawer__panel{top:0;inset-inline-end:auto;bottom:auto;width:var(--size);height:100%;inset-inline-start:0}.drawer__header{gap:var(--cx-spacing-small);padding:var(--header-spacing);border-bottom:solid 1px var(--cx-input-border-color);font-family:var(--font-family);display:flex}.drawer__header__content{flex:auto}.drawer__title{font:inherit;font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--cx-line-height-medium);align-items:center;margin:0;display:flex}.drawer__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.drawer__header-actions cx-icon-button,.drawer__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-medium);flex:none;align-items:center;display:flex}.drawer__description{font-family:var(--font-family);font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-700)}.drawer__description ::slotted(*){margin:0}.drawer__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-family:var(--font-family);flex:auto;display:block;overflow:auto}.drawer__footer{text-align:right;padding:var(--footer-spacing);font-family:var(--font-family)}.drawer__footer ::slotted(cx-button:not(:last-of-type)){margin-inline-end:var(--cx-spacing-x-small)}.drawer:not(.drawer--has-footer) .drawer__footer{display:none}.drawer__overlay{background-color:var(--cx-overlay-background-color);pointer-events:all;display:block;position:fixed;inset:0}.drawer--contained .drawer__overlay{opacity:0;position:absolute}.drawer--contained.drawer--ignore-parent-width.drawer--open{width:0;overflow:visible}.drawer--ignore-parent-width .drawer__panel{max-width:none}.drawer__overlay--disabled{display:none}@media (forced-colors:active){.drawer__panel{border:solid 1px var(--cx-color-neutral-0)}}`;
|
|
20
20
|
var E = Object.defineProperty, L = Object.getOwnPropertyDescriptor, r = (e, a, i, l) => {
|
|
21
21
|
for (var n = l > 1 ? void 0 : l ? L(a, i) : a, f = e.length - 1, m; f >= 0; f--)
|
|
@@ -2,7 +2,7 @@ import { n as s, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as b } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { w as c, s as u, a as g } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as v } from "../chunks/i18n.
|
|
5
|
+
import { L as v } from "../chunks/i18n.DoMIwXr2.js";
|
|
6
6
|
import { H as k } from "../chunks/slot.j5oheLJC.js";
|
|
7
7
|
import { g as m } from "../chunks/tabbable.CcMz3mIL.js";
|
|
8
8
|
import { w as E } from "../chunks/watch.CThbualB.js";
|
|
@@ -11,7 +11,7 @@ import { e as h } from "../chunks/query.BBf1UFkC.js";
|
|
|
11
11
|
import { e as T } from "../chunks/class-map.BiVq-cVR.js";
|
|
12
12
|
import { o as O } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
13
13
|
import { s as y, g as f } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
14
|
-
import { C as _ } from "../chunks/input.
|
|
14
|
+
import { C as _ } from "../chunks/input.CQNhMu4z.js";
|
|
15
15
|
import d from "./menu.js";
|
|
16
16
|
import L from "./popup.js";
|
|
17
17
|
import A from "./textarea.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as g } from "../chunks/button.
|
|
2
|
-
import { C as $ } from "../chunks/icon-button.
|
|
3
|
-
import { C as p, a as O } from "../chunks/option.
|
|
1
|
+
import { C as g } from "../chunks/button.DYoFn504.js";
|
|
2
|
+
import { C as $ } from "../chunks/icon-button.B-Jf9W3v.js";
|
|
3
|
+
import { C as p, a as O } from "../chunks/option.SCVixE2L.js";
|
|
4
4
|
import C from "./select.js";
|
|
5
5
|
import { n as s, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
7
7
|
import { d as w } from "../chunks/debounce.DaHuiSGU.js";
|
|
8
|
-
import { L as S } from "../chunks/i18n.
|
|
8
|
+
import { L as S } from "../chunks/i18n.DoMIwXr2.js";
|
|
9
9
|
import { w as c } from "../chunks/watch.CThbualB.js";
|
|
10
10
|
import { x as r } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as h } from "../chunks/state.CSDxrqLd.js";
|
|
@@ -3,7 +3,7 @@ import EP from "./spinner.js";
|
|
|
3
3
|
import { n as lm, C as PP } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import { c as NP } from "../chunks/component.styles.CRO4Odto.js";
|
|
5
5
|
import { c as RP } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import { L as kP } from "../chunks/i18n.
|
|
6
|
+
import { L as kP } from "../chunks/i18n.DoMIwXr2.js";
|
|
7
7
|
import { w as OP } from "../chunks/watch.CThbualB.js";
|
|
8
8
|
import { i as VP, x as A_ } from "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import { e as BP } from "../chunks/query.BBf1UFkC.js";
|
|
@@ -2,14 +2,14 @@ import { n as a, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as w } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { s as d, a as c, b as m, w as u } from "../chunks/event.BeKOsirN.js";
|
|
4
4
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as v } from "../chunks/i18n.
|
|
5
|
+
import { L as v } from "../chunks/i18n.DoMIwXr2.js";
|
|
6
6
|
import { w as y } from "../chunks/watch.CThbualB.js";
|
|
7
7
|
import { i as C, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as k } from "../chunks/state.CSDxrqLd.js";
|
|
9
9
|
import { e as E } from "../chunks/query.BBf1UFkC.js";
|
|
10
10
|
import { e as H } from "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import { a as p, g } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
12
|
-
import { C as B } from "../chunks/button.
|
|
12
|
+
import { C as B } from "../chunks/button.DYoFn504.js";
|
|
13
13
|
const T = C`:host{--toggler-color:var(--cx-color-primary);display:block;overflow:hidden}.element-clamp{overflow-anchor:none}.element-clamp--disabled{opacity:.5}.element-clamp-icon{transition:var(--cx-transition-medium) rotate ease;flex:none;align-items:center;display:flex}.details--open .element-clamp-icon{rotate:90deg}.details--open.details--rtl .element-clamp-icon{rotate:-90deg}.element-clamp--open slot[name=expand-icon],.element-clamp:not(.element-clamp--open) slot[name=collapse-icon]{display:none}.element-clamp__content{display:block;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`;
|
|
14
14
|
var z = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (e, t, i, r) => {
|
|
15
15
|
for (var s = r > 1 ? void 0 : r ? O(t, i) : t, h = e.length - 1, l; h >= 0; h--)
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { C as K } from "../chunks/file-on-demand.
|
|
1
|
+
import { C as K } from "../chunks/file-on-demand.CsT96fvk.js";
|
|
2
2
|
import "./avatar.js";
|
|
3
|
-
import "../chunks/button.
|
|
4
|
-
import "../chunks/dialog.
|
|
3
|
+
import "../chunks/button.DYoFn504.js";
|
|
4
|
+
import "../chunks/dialog.BwBD_hJi.js";
|
|
5
5
|
import "./divider.js";
|
|
6
6
|
import "./format-bytes.js";
|
|
7
7
|
import "../chunks/icon.DnBh6-56.js";
|
|
8
|
-
import "../chunks/icon-button.
|
|
9
|
-
import "../chunks/input.
|
|
8
|
+
import "../chunks/icon-button.B-Jf9W3v.js";
|
|
9
|
+
import "../chunks/input.CQNhMu4z.js";
|
|
10
10
|
import "./line-clamp.js";
|
|
11
|
-
import "../chunks/option.
|
|
11
|
+
import "../chunks/option.SCVixE2L.js";
|
|
12
12
|
import "./relative-time.js";
|
|
13
13
|
import "./select.js";
|
|
14
14
|
import "./space.js";
|
|
15
15
|
import "./tab.js";
|
|
16
|
-
import "../chunks/tab-group.
|
|
16
|
+
import "../chunks/tab-group.C-p2Dljr.js";
|
|
17
17
|
import "./tab-panel.js";
|
|
18
18
|
import "./tooltip.js";
|
|
19
|
-
import "../chunks/tree.
|
|
19
|
+
import "../chunks/tree.C2mLhREj.js";
|
|
20
20
|
import "../chunks/typography.DJC_UXgs.js";
|
|
21
21
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
22
|
-
import "../chunks/confirm-popover.
|
|
22
|
+
import "../chunks/confirm-popover.DpVYvK20.js";
|
|
23
23
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
24
24
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
25
|
-
import "../chunks/i18n.
|
|
25
|
+
import "../chunks/i18n.DoMIwXr2.js";
|
|
26
26
|
import "../chunks/watch.CThbualB.js";
|
|
27
27
|
import "../chunks/number.B4PQLJIg.js";
|
|
28
28
|
import "../chunks/string.CbnVBzsd.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunks/icon.DnBh6-56.js";
|
|
2
|
-
import "../chunks/input.
|
|
2
|
+
import "../chunks/input.CQNhMu4z.js";
|
|
3
3
|
import "./line-clamp.js";
|
|
4
4
|
import "./select.js";
|
|
5
5
|
import "./tag.js";
|
|
6
|
-
import "../chunks/tree.
|
|
6
|
+
import "../chunks/tree.C2mLhREj.js";
|
|
7
7
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { C as h } from "../chunks/folder-select.
|
|
8
|
+
import { C as h } from "../chunks/folder-select.DwZ7lczk.js";
|
|
9
9
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
10
10
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
11
|
-
import "../chunks/i18n.
|
|
11
|
+
import "../chunks/i18n.DoMIwXr2.js";
|
|
12
12
|
import "../chunks/watch.CThbualB.js";
|
|
13
13
|
import "../chunks/endpoints.6E17hFiK.js";
|
|
14
14
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as u, n as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as h } from "../chunks/custom-element.L4WJXn1j.js";
|
|
3
|
-
import { L as m } from "../chunks/i18n.
|
|
3
|
+
import { L as m } from "../chunks/i18n.DoMIwXr2.js";
|
|
4
4
|
var c = Object.defineProperty, f = Object.getOwnPropertyDescriptor, l = (a, r, s, e) => {
|
|
5
5
|
for (var t = e > 1 ? void 0 : e ? f(r, s) : r, i = a.length - 1, n; i >= 0; i--)
|
|
6
6
|
(n = a[i]) && (t = (e ? n(r, s, t) : n(t)) || t);
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as p, n as o } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as d } from "../chunks/custom-element.L4WJXn1j.js";
|
|
3
|
-
import { L as u } from "../chunks/i18n.
|
|
3
|
+
import { L as u } from "../chunks/i18n.DoMIwXr2.js";
|
|
4
4
|
import { x as y } from "../chunks/lit-element.jLBm65_O.js";
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
(
|
|
8
|
-
return
|
|
5
|
+
var l = Object.defineProperty, c = Object.getOwnPropertyDescriptor, e = (r, i, s, n) => {
|
|
6
|
+
for (var a = n > 1 ? void 0 : n ? c(i, s) : i, h = r.length - 1, m; h >= 0; h--)
|
|
7
|
+
(m = r[h]) && (a = (n ? m(i, s, a) : m(a)) || a);
|
|
8
|
+
return n && a && l(i, s, a), a;
|
|
9
9
|
};
|
|
10
|
-
let t = class extends
|
|
10
|
+
let t = class extends p {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this.localize = new u(this), this.date = /* @__PURE__ */ new Date(), this.hourFormat = "auto";
|
|
12
|
+
super(...arguments), this.localize = new u(this), this.date = /* @__PURE__ */ new Date(), this.hourFormat = "auto", this.noDatetimeSeparator = !1;
|
|
13
|
+
}
|
|
14
|
+
buildDateTimeOptions() {
|
|
15
|
+
const r = this.hourFormat === "auto" ? void 0 : this.hourFormat === "12";
|
|
16
|
+
return {
|
|
17
|
+
day: this.day ?? void 0,
|
|
18
|
+
era: this.era ?? void 0,
|
|
19
|
+
hour: this.hour ?? void 0,
|
|
20
|
+
hour12: r ?? void 0,
|
|
21
|
+
minute: this.minute ?? void 0,
|
|
22
|
+
month: this.month ?? void 0,
|
|
23
|
+
second: this.second ?? void 0,
|
|
24
|
+
timeZone: this.timeZone ?? void 0,
|
|
25
|
+
timeZoneName: this.timeZoneName ?? void 0,
|
|
26
|
+
weekday: this.weekday ?? void 0,
|
|
27
|
+
year: this.year ?? void 0
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
hasDateParts() {
|
|
31
|
+
return !!(this.weekday || this.era || this.year || this.month || this.day);
|
|
32
|
+
}
|
|
33
|
+
hasTimeParts() {
|
|
34
|
+
return !!(this.hour || this.minute || this.second);
|
|
13
35
|
}
|
|
14
36
|
render() {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hour: this.hour ?? void 0,
|
|
21
|
-
hour12: a ?? void 0,
|
|
22
|
-
minute: this.minute ?? void 0,
|
|
23
|
-
month: this.month ?? void 0,
|
|
24
|
-
second: this.second ?? void 0,
|
|
25
|
-
timeZone: this.timeZone ?? void 0,
|
|
26
|
-
timeZoneName: this.timeZoneName ?? void 0,
|
|
27
|
-
weekday: this.weekday ?? void 0,
|
|
28
|
-
year: this.year ?? void 0
|
|
29
|
-
})}</time>`;
|
|
37
|
+
const r = new Date(this.date);
|
|
38
|
+
if (isNaN(r.getMilliseconds()))
|
|
39
|
+
return;
|
|
40
|
+
const i = this.buildDateTimeOptions(), s = this.noDatetimeSeparator && this.hasDateParts() && this.hasTimeParts() ? this.localize.dateWithoutConnector(r, i) : this.localize.date(r, i);
|
|
41
|
+
return y`<time datetime=${r.toISOString()}>${s}</time>`;
|
|
30
42
|
}
|
|
31
43
|
};
|
|
32
44
|
e([
|
|
@@ -65,6 +77,9 @@ e([
|
|
|
65
77
|
e([
|
|
66
78
|
o({ attribute: "hour-format" })
|
|
67
79
|
], t.prototype, "hourFormat", 2);
|
|
80
|
+
e([
|
|
81
|
+
o({ attribute: "no-datetime-separator", type: Boolean })
|
|
82
|
+
], t.prototype, "noDatetimeSeparator", 2);
|
|
68
83
|
t = e([
|
|
69
84
|
d("cx-format-date")
|
|
70
85
|
], t);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as p, n as r } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c } from "../chunks/custom-element.L4WJXn1j.js";
|
|
3
|
-
import { L as g } from "../chunks/i18n.
|
|
3
|
+
import { L as g } from "../chunks/i18n.DoMIwXr2.js";
|
|
4
4
|
var y = Object.defineProperty, l = Object.getOwnPropertyDescriptor, t = (a, m, s, n) => {
|
|
5
5
|
for (var e = n > 1 ? void 0 : n ? l(m, s) : m, u = a.length - 1, o; u >= 0; u--)
|
|
6
6
|
(o = a[u]) && (e = (n ? o(m, s, e) : o(e)) || e);
|
|
@@ -2,7 +2,7 @@ import { n as l, C as h } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
|
2
2
|
import { c as y } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { U as r, D as u, L as D, F as d, g as S, a as F, c as U, f as g, S as _ } from "../chunks/time.BSmpFe2G.js";
|
|
4
4
|
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as N } from "../chunks/i18n.
|
|
5
|
+
import { L as N } from "../chunks/i18n.DoMIwXr2.js";
|
|
6
6
|
import { w as m } from "../chunks/watch.CThbualB.js";
|
|
7
7
|
import { i as L, x as f } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as M } from "../chunks/state.CSDxrqLd.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./copy-button.js";
|
|
2
2
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
|
-
import { C as x } from "../chunks/header.
|
|
4
|
+
import { C as x } from "../chunks/header.BMGvKrdP.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
-
import "../chunks/i18n.
|
|
6
|
+
import "../chunks/i18n.DoMIwXr2.js";
|
|
7
7
|
import "../chunks/watch.CThbualB.js";
|
|
8
8
|
import "../chunks/query.BBf1UFkC.js";
|
|
9
9
|
import "../chunks/class-map.BiVq-cVR.js";
|