@orangelogic/design-system 2.60.0 → 2.61.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/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { n as r, C as p } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as b } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as f } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { H as v } from "../chunks/slot.j5oheLJC.js";
|
|
5
|
+
import { w as h } from "../chunks/watch.q1sEjPWL.js";
|
|
6
|
+
import { i as g, b as m, x as k } from "../chunks/lit-element.jLBm65_O.js";
|
|
7
|
+
import { r as u } from "../chunks/state.CSDxrqLd.js";
|
|
8
|
+
import { e as n } from "../chunks/class-map.BiVq-cVR.js";
|
|
7
9
|
import x from "./icon.js";
|
|
8
|
-
const _ =
|
|
10
|
+
const _ = g`
|
|
9
11
|
:host {
|
|
10
12
|
display: block;
|
|
11
13
|
}
|
|
@@ -137,7 +139,7 @@ const _ = p`
|
|
|
137
139
|
height: 100%;
|
|
138
140
|
display: block;
|
|
139
141
|
}
|
|
140
|
-
`, y = (i) =>
|
|
142
|
+
`, y = (i) => m`
|
|
141
143
|
<svg part="checked-icon svg" class="radio__icon" viewBox="0 0 16 16">
|
|
142
144
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
143
145
|
<g fill="currentColor">
|
|
@@ -151,9 +153,9 @@ var C = Object.defineProperty, z = Object.getOwnPropertyDescriptor, o = (i, a, c
|
|
|
151
153
|
(d = i[l]) && (t = (s ? d(a, c, t) : d(t)) || t);
|
|
152
154
|
return s && t && C(a, c, t), t;
|
|
153
155
|
};
|
|
154
|
-
let e = class extends
|
|
156
|
+
let e = class extends p {
|
|
155
157
|
constructor() {
|
|
156
|
-
super(), this.hasSlotController = new
|
|
158
|
+
super(), this.hasSlotController = new v(this, "[default]"), this.checked = !1, this.hasFocus = !1, this.size = "medium", this.disabled = !1, this.hideIndicator = !1, this.checkedIconRadius = 4.5, this.handleBlur = this.handleBlur.bind(this), this.handleClick = this.handleClick.bind(this), this.handleFocus = this.handleFocus.bind(this), this.addEventListener("blur", this.handleBlur), this.addEventListener("click", this.handleClick), this.addEventListener("focus", this.handleFocus);
|
|
157
159
|
}
|
|
158
160
|
connectedCallback() {
|
|
159
161
|
super.connectedCallback(), this.setInitialAttributes();
|
|
@@ -177,7 +179,7 @@ let e = class extends f {
|
|
|
177
179
|
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
178
180
|
}
|
|
179
181
|
render() {
|
|
180
|
-
return
|
|
182
|
+
return k`
|
|
181
183
|
<span
|
|
182
184
|
part="base"
|
|
183
185
|
class=${n({
|
|
@@ -211,7 +213,7 @@ let e = class extends f {
|
|
|
211
213
|
`;
|
|
212
214
|
}
|
|
213
215
|
};
|
|
214
|
-
e.styles = [
|
|
216
|
+
e.styles = [b, _];
|
|
215
217
|
e.dependencies = { "cx-icon": x };
|
|
216
218
|
o([
|
|
217
219
|
u()
|
|
@@ -241,7 +243,7 @@ o([
|
|
|
241
243
|
h("disabled", { waitUntilFirstUpdate: !0 })
|
|
242
244
|
], e.prototype, "handleDisabledChange", 1);
|
|
243
245
|
e = o([
|
|
244
|
-
|
|
246
|
+
f("cx-radio")
|
|
245
247
|
], e);
|
|
246
248
|
export {
|
|
247
249
|
e as default
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import R from "./resize-observer.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import { f as
|
|
5
|
-
import {
|
|
6
|
-
import { d as
|
|
2
|
+
import { n as u, C as I } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
3
|
+
import { c as P } from "../chunks/component.styles.DMSLciL5.js";
|
|
4
|
+
import { f as F } from "../chunks/form-control.styles.CUGhvlfT.js";
|
|
5
|
+
import { c as U } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
|
+
import { d as $ } from "../chunks/debounce.DaHuiSGU.js";
|
|
7
|
+
import { d as O } from "../chunks/default-value.COZopaet.js";
|
|
7
8
|
import { d as w } from "../chunks/drag.DXEXVXPv.js";
|
|
8
|
-
import { F as
|
|
9
|
-
import { L as S } from "../chunks/i18n.
|
|
9
|
+
import { F as N } from "../chunks/form.CO12-VK0.js";
|
|
10
|
+
import { L as S } from "../chunks/i18n.DrzK7TPf.js";
|
|
10
11
|
import { c as d } from "../chunks/math.DqTA6ya4.js";
|
|
11
|
-
import { H as
|
|
12
|
-
import { w as v } from "../chunks/watch.
|
|
13
|
-
import {
|
|
12
|
+
import { H as A } from "../chunks/slot.j5oheLJC.js";
|
|
13
|
+
import { w as v } from "../chunks/watch.q1sEjPWL.js";
|
|
14
|
+
import { x as M, i as B } from "../chunks/lit-element.jLBm65_O.js";
|
|
15
|
+
import { r as g } from "../chunks/state.CSDxrqLd.js";
|
|
14
16
|
import { t as E } from "../chunks/event-options.CYHYGOd8.js";
|
|
15
17
|
import { e as c } from "../chunks/query.BBf1UFkC.js";
|
|
16
|
-
import { e as p } from "../chunks/class-map.
|
|
17
|
-
import { o as k } from "../chunks/if-defined.
|
|
18
|
-
import { l as W } from "../chunks/live.
|
|
19
|
-
import { o as f } from "../chunks/style-map.
|
|
18
|
+
import { e as p } from "../chunks/class-map.BiVq-cVR.js";
|
|
19
|
+
import { o as k } from "../chunks/if-defined.BRoBj_Rp.js";
|
|
20
|
+
import { l as W } from "../chunks/live.SCz6M8Gs.js";
|
|
21
|
+
import { o as f } from "../chunks/style-map.llVFPd__.js";
|
|
20
22
|
import H from "./tooltip.js";
|
|
21
|
-
import { e as K, n as j } from "../chunks/ref.
|
|
22
|
-
import { c as q } from "../chunks/repeat.
|
|
23
|
+
import { e as K, n as j } from "../chunks/ref.bzeTdX0K.js";
|
|
24
|
+
import { c as q } from "../chunks/repeat.DbF2p5ae.js";
|
|
23
25
|
function X({
|
|
24
26
|
edgeMode: t = "center",
|
|
25
27
|
maxOffset: e,
|
|
@@ -241,7 +243,7 @@ class L {
|
|
|
241
243
|
lt([
|
|
242
244
|
$(100)
|
|
243
245
|
], L.prototype, "handleResize");
|
|
244
|
-
const ot =
|
|
246
|
+
const ot = B`
|
|
245
247
|
:host {
|
|
246
248
|
--thumb-color: #fff;
|
|
247
249
|
--thumb-size: 20px;
|
|
@@ -560,9 +562,9 @@ var ht = Object.defineProperty, ut = Object.getOwnPropertyDescriptor, l = (t, e,
|
|
|
560
562
|
(o = t[n]) && (r = (a ? o(e, i, r) : o(r)) || r);
|
|
561
563
|
return a && r && ht(e, i, r), r;
|
|
562
564
|
};
|
|
563
|
-
let s = class extends
|
|
565
|
+
let s = class extends I {
|
|
564
566
|
constructor() {
|
|
565
|
-
super(), this.formControlController = new
|
|
567
|
+
super(), this.formControlController = new N(this), this.hasSlotController = new A(
|
|
566
568
|
this,
|
|
567
569
|
"help-text",
|
|
568
570
|
"label",
|
|
@@ -1282,8 +1284,8 @@ let s = class extends P {
|
|
|
1282
1284
|
}
|
|
1283
1285
|
};
|
|
1284
1286
|
s.styles = [
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
+
P,
|
|
1288
|
+
F,
|
|
1287
1289
|
ot
|
|
1288
1290
|
];
|
|
1289
1291
|
s.dependencies = {
|
|
@@ -1438,7 +1440,7 @@ l([
|
|
|
1438
1440
|
g()
|
|
1439
1441
|
], s.prototype, "marks", 2);
|
|
1440
1442
|
l([
|
|
1441
|
-
|
|
1443
|
+
O()
|
|
1442
1444
|
], s.prototype, "defaultValue", 2);
|
|
1443
1445
|
l([
|
|
1444
1446
|
v(["min", "max", "step"])
|
|
@@ -1465,7 +1467,7 @@ l([
|
|
|
1465
1467
|
v("_multiValue", { waitUntilFirstUpdate: !0 })
|
|
1466
1468
|
], s.prototype, "handleMultiValueChange", 1);
|
|
1467
1469
|
s = l([
|
|
1468
|
-
|
|
1470
|
+
U("cx-range")
|
|
1469
1471
|
], s);
|
|
1470
1472
|
export {
|
|
1471
1473
|
s as default
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { n as l, C as g } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as y } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as f } from "../chunks/i18n.DrzK7TPf.js";
|
|
5
|
+
import { c as _ } from "../chunks/math.DqTA6ya4.js";
|
|
6
|
+
import { w as p } from "../chunks/watch.q1sEjPWL.js";
|
|
7
|
+
import { i as x, x as c } from "../chunks/lit-element.jLBm65_O.js";
|
|
8
|
+
import { r as v } from "../chunks/state.CSDxrqLd.js";
|
|
7
9
|
import { t as $ } from "../chunks/event-options.CYHYGOd8.js";
|
|
8
10
|
import { e as V } from "../chunks/query.BBf1UFkC.js";
|
|
9
|
-
import { e as u } from "../chunks/class-map.
|
|
10
|
-
import { c as w } from "../chunks/repeat.
|
|
11
|
-
import { o as m } from "../chunks/style-map.
|
|
12
|
-
import { o as d } from "../chunks/unsafe-html.
|
|
11
|
+
import { e as u } from "../chunks/class-map.BiVq-cVR.js";
|
|
12
|
+
import { c as w } from "../chunks/repeat.DbF2p5ae.js";
|
|
13
|
+
import { o as m } from "../chunks/style-map.llVFPd__.js";
|
|
14
|
+
import { o as d } from "../chunks/unsafe-html.Dff7-rCx.js";
|
|
13
15
|
import M from "./icon.js";
|
|
14
|
-
const H =
|
|
16
|
+
const H = x`
|
|
15
17
|
:host {
|
|
16
18
|
--symbol-color: var(--cx-color-neutral-300);
|
|
17
19
|
--symbol-color-active: var(--cx-color-warning-500);
|
|
@@ -148,9 +150,9 @@ var C = Object.defineProperty, P = Object.getOwnPropertyDescriptor, a = (e, o, i
|
|
|
148
150
|
(h = e[n]) && (t = (s ? h(o, i, t) : h(t)) || t);
|
|
149
151
|
return s && t && C(o, i, t), t;
|
|
150
152
|
};
|
|
151
|
-
let r = class extends
|
|
153
|
+
let r = class extends g {
|
|
152
154
|
constructor() {
|
|
153
|
-
super(...arguments), this.localize = new
|
|
155
|
+
super(...arguments), this.localize = new f(this), this.hoverValue = 0, this.isHovering = !1, this.label = "", this.value = 0, this.max = 5, this.precision = 1, this.readonly = !1, this.disabled = !1, this.variant = "default", this.getSymbol = (e, o = !1) => this.variant !== "outlined" ? '<cx-icon name="star"></cx-icon>' : o ? '<cx-icon name="star" variant="filled"></cx-icon>' : '<cx-icon name="star"></cx-icon>';
|
|
154
156
|
}
|
|
155
157
|
getValueFromMousePosition(e) {
|
|
156
158
|
return this.getValueFromXCoordinate(e.clientX);
|
|
@@ -166,7 +168,7 @@ let r = class extends y {
|
|
|
166
168
|
(e - i) / t * this.max,
|
|
167
169
|
this.precision
|
|
168
170
|
);
|
|
169
|
-
return
|
|
171
|
+
return _(n, 0, this.max);
|
|
170
172
|
}
|
|
171
173
|
handleClick(e) {
|
|
172
174
|
this.disabled || (this.setValue(this.getValueFromMousePosition(e)), this.emit("cx-change"));
|
|
@@ -309,7 +311,7 @@ let r = class extends y {
|
|
|
309
311
|
`;
|
|
310
312
|
}
|
|
311
313
|
};
|
|
312
|
-
r.styles = [
|
|
314
|
+
r.styles = [y, H];
|
|
313
315
|
r.dependencies = { "cx-icon": M };
|
|
314
316
|
a([
|
|
315
317
|
V(".rating")
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { n as l, C as h } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as p } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as v } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as d } from "../chunks/i18n.DrzK7TPf.js";
|
|
5
|
+
import { i as f, x as y } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
|
+
import { r as c } from "../chunks/state.CSDxrqLd.js";
|
|
7
|
+
const T = f`
|
|
6
8
|
:host {
|
|
7
9
|
display: contents;
|
|
8
10
|
}
|
|
@@ -14,8 +16,8 @@ const T = h`
|
|
|
14
16
|
}
|
|
15
17
|
`;
|
|
16
18
|
var x = Object.defineProperty, w = Object.getOwnPropertyDescriptor, a = (o, t, i, s) => {
|
|
17
|
-
for (var n = s > 1 ? void 0 : s ? w(t, i) : t, r = o.length - 1,
|
|
18
|
-
(
|
|
19
|
+
for (var n = s > 1 ? void 0 : s ? w(t, i) : t, r = o.length - 1, u; r >= 0; r--)
|
|
20
|
+
(u = o[r]) && (n = (s ? u(t, i, n) : u(n)) || n);
|
|
19
21
|
return s && n && x(t, i, n), n;
|
|
20
22
|
};
|
|
21
23
|
const I = [
|
|
@@ -33,9 +35,9 @@ const I = [
|
|
|
33
35
|
// max 11 months
|
|
34
36
|
{ max: 1 / 0, unit: "year", value: 31536e6 }
|
|
35
37
|
];
|
|
36
|
-
let e = class extends
|
|
38
|
+
let e = class extends h {
|
|
37
39
|
constructor() {
|
|
38
|
-
super(...arguments), this.localize = new
|
|
40
|
+
super(...arguments), this.localize = new d(this), this.isoTime = "", this.relativeTime = "", this.date = /* @__PURE__ */ new Date(), this.format = "long", this.numeric = "auto", this.sync = !1, this.syncInterval = -1;
|
|
39
41
|
}
|
|
40
42
|
connectedCallback() {
|
|
41
43
|
super.connectedCallback(), this.sync && this.syncInterval > 0 && (this.updateTimeout = window.setTimeout(
|
|
@@ -60,13 +62,13 @@ let e = class extends v {
|
|
|
60
62
|
numeric: this.numeric,
|
|
61
63
|
style: this.format
|
|
62
64
|
}
|
|
63
|
-
), this.updateTimeout && clearTimeout(this.updateTimeout), this.updateTimeout = null, this.sync && (this.syncInterval < 0 && (s === "minute" ? this.syncInterval =
|
|
65
|
+
), this.updateTimeout && clearTimeout(this.updateTimeout), this.updateTimeout = null, this.sync && (this.syncInterval < 0 && (s === "minute" ? this.syncInterval = m("second") : s === "hour" ? this.syncInterval = m("minute") : s === "day" ? this.syncInterval = m("hour") : this.syncInterval = m("day")), this.updateTimeout = window.setTimeout(
|
|
64
66
|
() => this.requestUpdate(),
|
|
65
67
|
this.syncInterval
|
|
66
|
-
)),
|
|
68
|
+
)), y`<time class="relative-time" datetime=${this.isoTime}>${this.relativeTime}</time>`;
|
|
67
69
|
}
|
|
68
70
|
};
|
|
69
|
-
e.styles = [
|
|
71
|
+
e.styles = [p, T];
|
|
70
72
|
a([
|
|
71
73
|
c()
|
|
72
74
|
], e.prototype, "isoTime", 2);
|
|
@@ -89,9 +91,9 @@ a([
|
|
|
89
91
|
l({ attribute: "sync-interval", reflect: !0, type: Number })
|
|
90
92
|
], e.prototype, "syncInterval", 2);
|
|
91
93
|
e = a([
|
|
92
|
-
|
|
94
|
+
v("cx-relative-time")
|
|
93
95
|
], e);
|
|
94
|
-
function
|
|
96
|
+
function m(o) {
|
|
95
97
|
const i = { day: 864e5, hour: 36e5, minute: 6e4, second: 1e3 }[o];
|
|
96
98
|
return i - Date.now() % i;
|
|
97
99
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { n as h, C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as d } from "../chunks/component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
+
import { w as p } from "../chunks/watch.q1sEjPWL.js";
|
|
5
|
+
import { i as v, x as m } from "../chunks/lit-element.jLBm65_O.js";
|
|
6
|
+
const f = v`
|
|
5
7
|
:host {
|
|
6
8
|
display: contents;
|
|
7
9
|
}
|
|
8
10
|
`;
|
|
9
|
-
var u = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (s, r, e,
|
|
10
|
-
for (var t =
|
|
11
|
-
(a = s[
|
|
12
|
-
return
|
|
11
|
+
var u = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (s, r, e, i) => {
|
|
12
|
+
for (var t = i > 1 ? void 0 : i ? O(r, e) : r, l = s.length - 1, a; l >= 0; l--)
|
|
13
|
+
(a = s[l]) && (t = (i ? a(r, e, t) : a(t)) || t);
|
|
14
|
+
return i && t && u(r, e, t), t;
|
|
13
15
|
};
|
|
14
|
-
let
|
|
16
|
+
let o = class extends c {
|
|
15
17
|
constructor() {
|
|
16
18
|
super(...arguments), this.observedElements = [], this.disabled = !1;
|
|
17
19
|
}
|
|
@@ -46,19 +48,19 @@ let i = class extends d {
|
|
|
46
48
|
this.disabled ? this.stopObserver() : this.startObserver();
|
|
47
49
|
}
|
|
48
50
|
render() {
|
|
49
|
-
return
|
|
51
|
+
return m` <slot @slotchange=${this.handleSlotChange}></slot> `;
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
|
-
|
|
54
|
+
o.styles = [d, f];
|
|
53
55
|
n([
|
|
54
|
-
|
|
55
|
-
],
|
|
56
|
+
h({ reflect: !0, type: Boolean })
|
|
57
|
+
], o.prototype, "disabled", 2);
|
|
56
58
|
n([
|
|
57
|
-
|
|
58
|
-
],
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
],
|
|
59
|
+
p("disabled", { waitUntilFirstUpdate: !0 })
|
|
60
|
+
], o.prototype, "handleDisabledChange", 1);
|
|
61
|
+
o = n([
|
|
62
|
+
b("cx-resize-observer")
|
|
63
|
+
], o);
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
o as default
|
|
64
66
|
};
|