@luzmo/analytics-components-kit 1.0.1-alpha.11 → 1.0.1-alpha.13

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.
Files changed (77) hide show
  1. package/components/area-chart.config-Ba68ZiSX.js +198 -0
  2. package/components/area-chart.config-Vo0u3UK8.cjs +20 -0
  3. package/components/{column-chart.config-BYIX4E6J.js → bar-chart.config-CF1i1Imw.js} +41 -14
  4. package/components/bar-chart.config-YLP38HOE.cjs +20 -0
  5. package/components/bubble-chart.config-1MrC55Nb.js +142 -0
  6. package/components/bubble-chart.config-bQBq1s3C.cjs +20 -0
  7. package/components/circle-pack-chart.config-BOlrxRJA.cjs +20 -0
  8. package/components/circle-pack-chart.config-Bbm2bTgy.js +110 -0
  9. package/components/{bar-chart.config-BYIX4E6J.js → column-chart.config-BT1QH4BI.js} +40 -14
  10. package/components/column-chart.config-CppyNukh.cjs +20 -0
  11. package/components/display-settings-datetime/index.cjs +25 -25
  12. package/components/display-settings-datetime/index.js +66 -59
  13. package/components/donut-chart.config-B_38UAqp.cjs +20 -0
  14. package/components/{donut-chart.config-3DhKiSSM.js → donut-chart.config-DuJFyp4z.js} +4 -2
  15. package/components/dropdown-filter.config-BPBxTuLQ.cjs +20 -0
  16. package/components/dropdown-filter.config-Drv-A4zw.js +163 -0
  17. package/components/edit-item/index.cjs +11 -16
  18. package/components/edit-item/index.js +103 -87
  19. package/components/edit-option/index.cjs +108 -100
  20. package/components/edit-option/index.js +330 -294
  21. package/components/edit-option/item-configs/area-chart.config.d.ts +146 -0
  22. package/components/edit-option/item-configs/bar-chart.config.d.ts +23 -2
  23. package/components/edit-option/item-configs/bubble-chart.config.d.ts +90 -0
  24. package/components/edit-option/item-configs/circle-pack-chart.config.d.ts +35 -0
  25. package/components/edit-option/item-configs/column-chart.config.d.ts +17 -2
  26. package/components/edit-option/item-configs/donut-chart.config.d.ts +4 -0
  27. package/components/edit-option/item-configs/dropdown-filter.config.d.ts +74 -0
  28. package/components/edit-option/item-configs/line-chart.config.d.ts +16 -0
  29. package/components/edit-option/item-configs/ohlc-chart.config.d.ts +37 -0
  30. package/components/edit-option/item-configs/radar-chart.config.d.ts +122 -0
  31. package/components/edit-option/item-configs/sankey-diagram.config.d.ts +46 -0
  32. package/components/edit-option/item-configs/search-filter.config.d.ts +40 -0
  33. package/components/edit-option/item-configs/slicer-filter.config.d.ts +136 -0
  34. package/components/edit-option/item-configs/slider-filter.config.d.ts +45 -0
  35. package/components/edit-option/item-configs/sunburst-chart.config.d.ts +51 -0
  36. package/components/edit-option/item-configs/treemap-chart.config.d.ts +103 -0
  37. package/components/edit-option/item-configs/wordcloud-chart.config.d.ts +46 -0
  38. package/components/{en-GB-C9t4MSgD.js → en-GB-BtLbN8o_.js} +1 -1
  39. package/components/{en-GB-D5Tvhki6.cjs → en-GB-Dd11ROdW.cjs} +1 -1
  40. package/components/{en-DlRadzUI.js → formatter-CQDms6fU.js} +258 -267
  41. package/components/{en-BnVnZvpC.cjs → formatter-DiJYkB6b.cjs} +1 -1
  42. package/components/index-DXyAeBh6.cjs +20 -0
  43. package/components/index-Di00QW2f.js +113 -0
  44. package/components/index.cjs +1 -1
  45. package/components/index.js +8 -6
  46. package/components/{line-chart.config-DBw4A3Rf.js → line-chart.config-BB_thZtA.js} +3 -2
  47. package/components/line-chart.config-i2233s5F.cjs +20 -0
  48. package/components/ohlc-chart.config-BLlRV_bs.cjs +20 -0
  49. package/components/ohlc-chart.config-D9npwajt.js +75 -0
  50. package/components/radar-chart.config-DPPlIptA.cjs +20 -0
  51. package/components/radar-chart.config-DfID1TZ-.js +164 -0
  52. package/components/sankey-diagram.config-BVjCEw5M.js +138 -0
  53. package/components/sankey-diagram.config-CG5S1OI3.cjs +20 -0
  54. package/components/search-filter.config-C9CoGS9f.cjs +20 -0
  55. package/components/search-filter.config-baX2Vdul.js +111 -0
  56. package/components/slicer-filter.config-A3YK_KZn.js +211 -0
  57. package/components/slicer-filter.config-DQunaj8q.cjs +20 -0
  58. package/components/slider-filter.config-C-zvfTNl.js +98 -0
  59. package/components/slider-filter.config-DF_sAElS.cjs +20 -0
  60. package/components/sunburst-chart.config-CEfAd1RQ.cjs +20 -0
  61. package/components/sunburst-chart.config-VZqDthcz.js +139 -0
  62. package/components/treemap-chart.config-BalwwrhW.js +214 -0
  63. package/components/treemap-chart.config-D6H5Hf2B.cjs +20 -0
  64. package/components/utils.cjs +1 -1
  65. package/components/utils.js +69 -6
  66. package/components/wordcloud-chart.config-BLvcDvxT.cjs +20 -0
  67. package/components/wordcloud-chart.config-CQs8YFfd.js +89 -0
  68. package/custom-elements.json +182 -0
  69. package/package.json +4 -9
  70. package/utils/index.d.ts +1 -0
  71. package/utils/switch-item/index.d.ts +18 -0
  72. package/components/bar-chart.config--VDhFN4d.cjs +0 -20
  73. package/components/column-chart.config-BmhmcBZJ.cjs +0 -20
  74. package/components/donut-chart.config-DLWJUlHx.cjs +0 -20
  75. package/components/line-chart.config-cvwDhvSq.cjs +0 -20
  76. /package/components/{slot-configs.cjs → item-slots-configs.cjs} +0 -0
  77. /package/components/{slot-configs.js → item-slots-configs.js} +0 -0
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { h as b } from "../task-Cr9aRIbV.js";
20
+ import { h as S } from "../task-Cr9aRIbV.js";
21
21
  import "../index-CdCtJpK9.js";
22
22
  import "../index-Bee1uunR.js";
23
23
  import "../index-BYfDERr7.js";
@@ -25,45 +25,45 @@ import "../index-ymMEPngt.js";
25
25
  import "../index-B3ve6cAj.js";
26
26
  import "../index-B5Wvyv9s.js";
27
27
  import "../index-CfEn3fIT.js";
28
- import { k, a as x, x as s, n as d } from "../property-B2F7x7Cz.js";
29
- import { m as S, d as w } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
30
- import { m as i, t as F, s as $, l as A } from "../set-locale-DJYT4V7U.js";
28
+ import { k, a as x, x as a, n as d } from "../property-B2F7x7Cz.js";
29
+ import { m as w, d as F } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
30
+ import { m as i, t as $, s as A, l as L } from "../set-locale-DJYT4V7U.js";
31
31
  import { C as p, h as c } from "../luzmo-icons-BE2T8vWu.js";
32
- import { S as _, f } from "../en-DlRadzUI.js";
33
- import { a as L, b as z, W as g } from "../periods.const-GHh5bPfs.js";
32
+ import { S as f, f as _, D as v } from "../formatter-CQDms6fU.js";
33
+ import { a as D, b as g, W as z } from "../periods.const-GHh5bPfs.js";
34
34
  import { e as n } from "../query-Ddbd72Um.js";
35
- const v = () => {
35
+ const b = () => {
36
36
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
37
37
  const t = document.createElement("style");
38
38
  t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
39
39
  }
40
40
  };
41
- v();
41
+ b();
42
42
  const y = {
43
43
  "~": () => i("Auto", { desc: "Automatic setting of the option" }),
44
44
  "/": () => "/",
45
45
  "-": () => "-",
46
46
  ".": () => "."
47
- }, D = ":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";
48
- var E = Object.defineProperty, M = Object.getOwnPropertyDescriptor, m = (t, e, a, o) => {
49
- for (var l = o > 1 ? void 0 : o ? M(e, a) : e, h = t.length - 1, u; h >= 0; h--)
50
- (u = t[h]) && (l = (o ? u(e, a, l) : u(l)) || l);
51
- return o && l && E(e, a, l), l;
47
+ }, E = ":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";
48
+ var M = Object.defineProperty, C = Object.getOwnPropertyDescriptor, m = (t, e, s, o) => {
49
+ for (var l = o > 1 ? void 0 : o ? C(e, s) : e, h = t.length - 1, u; h >= 0; h--)
50
+ (u = t[h]) && (l = (o ? u(e, s, l) : u(l)) || l);
51
+ return o && l && M(e, s, l), l;
52
52
  };
53
- let r = class extends S(k, {
54
- validSizes: Object.values(w)
53
+ let r = class extends w(k, {
54
+ validSizes: Object.values(F)
55
55
  }) {
56
56
  constructor() {
57
- super(...arguments), this._loadLocaleFormatsConfig = new b(this, {
57
+ super(...arguments), this._loadLocaleFormatsConfig = new S(this, {
58
58
  task: async ([t]) => {
59
59
  if (t && t !== this._contentLanguageLoaded) {
60
60
  const e = /* @__PURE__ */ Object.assign({
61
61
  "../../utils/formatter/formats/cs.ts": () => import("../cs-DVZ0Tapy.js"),
62
62
  "../../utils/formatter/formats/da.ts": () => import("../da-DHy05oSR.js"),
63
63
  "../../utils/formatter/formats/de.ts": () => import("../de-iM39JlAt.js"),
64
- "../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-C9t4MSgD.js"),
65
- "../../utils/formatter/formats/en-US.ts": () => import("../en-DlRadzUI.js").then((a) => a.e),
66
- "../../utils/formatter/formats/en.ts": () => import("../en-DlRadzUI.js").then((a) => a.a),
64
+ "../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-BtLbN8o_.js"),
65
+ "../../utils/formatter/formats/en-US.ts": () => Promise.resolve().then(() => N),
66
+ "../../utils/formatter/formats/en.ts": () => Promise.resolve().then(() => O),
67
67
  "../../utils/formatter/formats/es.ts": () => import("../es-KhTq4jX8.js"),
68
68
  "../../utils/formatter/formats/fi.ts": () => import("../fi-Dh_ebgpe.js"),
69
69
  "../../utils/formatter/formats/fr.ts": () => import("../fr-CU727YF1.js"),
@@ -84,8 +84,8 @@ let r = class extends S(k, {
84
84
  "../../utils/formatter/formats/zh-TW.ts": () => import("../zh-TW-wsl7eFSd.js")
85
85
  });
86
86
  if (e[`../../utils/formatter/formats/${t}.ts`]) {
87
- const a = await e[`../../utils/formatter/formats/${t}.ts`]();
88
- this._localeFormats = (a == null ? void 0 : a.default) ?? {};
87
+ const s = await e[`../../utils/formatter/formats/${t}.ts`]();
88
+ this._localeFormats = (s == null ? void 0 : s.default) ?? {};
89
89
  }
90
90
  return this._contentLanguageLoaded = t, this._localeFormats;
91
91
  }
@@ -105,16 +105,16 @@ let r = class extends S(k, {
105
105
  };
106
106
  }
107
107
  static get styles() {
108
- return [x(D)];
108
+ return [x(E)];
109
109
  }
110
110
  _parseSlotContent() {
111
111
  var t, e;
112
112
  this._dateLevel = this.slotContent.level ?? ((t = this.slotContent) == null ? void 0 : t.lowestLevel) ?? 5, this._displayAs = ((e = this.slotContent) == null ? void 0 : e.datetimeDisplayMode) ?? "default", this._displayAs === "weekday_number" && (this._displayAs = "day_in_week", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "weekday_name" && (this._displayAs = "day_in_week"), this._displayAs === "month_number" && (this._displayAs = "month_in_year", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "month_name" && (this._displayAs = "month_in_year");
113
113
  }
114
114
  _calculateFormat() {
115
- var a;
115
+ var s;
116
116
  let t;
117
- const e = ((a = this._localeFormats) == null ? void 0 : a.smartDateFormats) ?? _;
117
+ const e = ((s = this._localeFormats) == null ? void 0 : s.smartDateFormats) ?? f;
118
118
  this._monthName ? (t = e.filter(
119
119
  (o) => o.monthType === "name" && o.longText === (this._monthNameFormat === "long") && o.weekday === this._weekDay
120
120
  ), t.length > 0 ? this._format = t[0].key : (this._weekDayAndMonthInYearFormat = "short", this._weekDay = !0, this._format = "%a %e %B %Y")) : (t = this._dateLevel && this._dateLevel === 4 ? e.filter(
@@ -160,16 +160,16 @@ let r = class extends S(k, {
160
160
  this._currentSlotContent = { ...this.slotContent }, this._calculateFormat(), this._currentSlotContent.format = this._format, this._displayAs === "default" ? delete this._currentSlotContent.datetimeDisplayMode : (this._currentSlotContent.datetimeDisplayMode = this._displayAs, this._displayAs === "week_in_year" ? this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "week_number" : "week_name" : this._displayAs === "month_in_year" ? this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "month_number" : "month_name" : this._displayAs === "day_in_week" && (this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "weekday_number" : "weekday_name", this._currentSlotContent.weekStart = this._weekStart), this._weekDayAndMonthInYearFormat && (this._dateLevel === 3 ? this._currentSlotContent.monthNameFormat = this._weekDayAndMonthInYearFormat : this._dateLevel === 5 && (this._currentSlotContent.weekDayNameFormat = this._weekDayAndMonthInYearFormat)));
161
161
  }
162
162
  willUpdate(t) {
163
- t.has("slotContent") && (this._parseSlotContent(), this._calculateSlotContent()), t.has("language") && ([...F].includes(this.language) || this.language === "en") && ($(this.language), this.requestUpdate());
163
+ t.has("slotContent") && (this._parseSlotContent(), this._calculateSlotContent()), t.has("language") && ([...$].includes(this.language) || this.language === "en") && (A(this.language), this.requestUpdate());
164
164
  }
165
165
  _renderDisplaySettings() {
166
- var e, a;
167
- const t = (a = (e = L) == null ? void 0 : e[`level${this._dateLevel ?? 0}`]) == null ? void 0 : a.map(
168
- (o) => s`<luzmo-menu-item value=${o.key}>
166
+ var e, s;
167
+ const t = (s = (e = D) == null ? void 0 : e[`level${this._dateLevel ?? 0}`]) == null ? void 0 : s.map(
168
+ (o) => a`<luzmo-menu-item value=${o.key}>
169
169
  ${o.i18n()}
170
170
  </luzmo-menu-item>`
171
171
  );
172
- return s`<div class="setting">
172
+ return a`<div class="setting">
173
173
  <luzmo-field-label for="display-as"
174
174
  >${i("Display", {
175
175
  desc: "Label for display setting"
@@ -188,11 +188,11 @@ let r = class extends S(k, {
188
188
  }
189
189
  _renderWeekDayAndMonthNameFormatSettings() {
190
190
  const t = Object.keys(
191
- z
192
- ).map((e) => s`<luzmo-action-button value=${e}>
193
- ${z[e]()}
191
+ g
192
+ ).map((e) => a`<luzmo-action-button value=${e}>
193
+ ${g[e]()}
194
194
  </luzmo-action-button>`);
195
- return s` <div class="setting">
195
+ return a` <div class="setting">
196
196
  <luzmo-field-label for="weekday-and-month-in-year-format"
197
197
  >${i("Format", {
198
198
  desc: "Label for format setting"
@@ -212,7 +212,7 @@ let r = class extends S(k, {
212
212
  </div>`;
213
213
  }
214
214
  _renderMonthNameFormatSettings() {
215
- return s` <div class="setting">
215
+ return a` <div class="setting">
216
216
  <luzmo-field-label for="month-name-format"
217
217
  >${i("Format", {
218
218
  desc: "Label for format setting"
@@ -238,12 +238,12 @@ let r = class extends S(k, {
238
238
  }
239
239
  _renderWeekFormatSettings() {
240
240
  var o;
241
- const t = ((o = this._localeFormats) == null ? void 0 : o.smartDateFormats) ?? _, e = t.find(
241
+ const t = ((o = this._localeFormats) == null ? void 0 : o.smartDateFormats) ?? f, e = t.find(
242
242
  (l) => l.mmdd === !0 && l.separator === this._dateSeparator && l.monthType === "number"
243
- ), a = t.find(
243
+ ), s = t.find(
244
244
  (l) => l.mmdd === !1 && l.separator === this._dateSeparator && l.monthType === "number"
245
245
  );
246
- return s` <div class="setting">
246
+ return a` <div class="setting">
247
247
  <luzmo-field-label for="week-format"
248
248
  >${i("Format", {
249
249
  desc: "Label for format setting"
@@ -259,11 +259,11 @@ let r = class extends S(k, {
259
259
  @change=${this._setWeekFormat}
260
260
  >
261
261
  <luzmo-action-button value="ddmm">
262
- ${f(
262
+ ${_(
263
263
  {
264
264
  ...this._currentSlotContent,
265
265
  type: "datetime",
266
- format: a == null ? void 0 : a.key
266
+ format: s == null ? void 0 : s.key
267
267
  },
268
268
  {
269
269
  localFormats: this._localeFormats,
@@ -272,7 +272,7 @@ let r = class extends S(k, {
272
272
  )(/* @__PURE__ */ new Date())}
273
273
  </luzmo-action-button>
274
274
  <luzmo-action-button value="mmdd"
275
- >${f(
275
+ >${_(
276
276
  {
277
277
  ...this._currentSlotContent,
278
278
  type: "datetime",
@@ -288,12 +288,12 @@ let r = class extends S(k, {
288
288
  </div>`;
289
289
  }
290
290
  _renderWeekStartsOnSettings() {
291
- const t = Object.keys(g).map(
292
- (e) => s`<luzmo-menu-item value=${e}>
293
- ${g[e]()}
291
+ const t = Object.keys(z).map(
292
+ (e) => a`<luzmo-menu-item value=${e}>
293
+ ${z[e]()}
294
294
  </luzmo-menu-item>`
295
295
  );
296
- return s`<div class="setting">
296
+ return a`<div class="setting">
297
297
  <luzmo-field-label for="week-start"
298
298
  >${i("Week starts on", {
299
299
  desc: "Label for week start setting"
@@ -311,7 +311,7 @@ let r = class extends S(k, {
311
311
  </div>`;
312
312
  }
313
313
  _renderMonthNameSettings() {
314
- return s`<div class="settings-">
314
+ return a`<div class="settings-">
315
315
  <luzmo-field-label for="month-name"
316
316
  >${i("Month", { desc: "Month format setting" })}</luzmo-field-label
317
317
  >
@@ -334,7 +334,7 @@ let r = class extends S(k, {
334
334
  }
335
335
  _renderDateFormatSettings() {
336
336
  const t = this._dateSeparator === "~" ? "/" : this._dateSeparator;
337
- return s`<div class="setting">
337
+ return a`<div class="setting">
338
338
  <luzmo-field-label for="date-format"
339
339
  >${i("Format", {
340
340
  desc: "Label for format setting"
@@ -357,11 +357,11 @@ let r = class extends S(k, {
357
357
  }
358
358
  _renderSeparatorSettings() {
359
359
  const t = Object.keys(y).map(
360
- (e) => s`<luzmo-menu-item value=${e}>
360
+ (e) => a`<luzmo-menu-item value=${e}>
361
361
  ${y[e]()}
362
362
  </luzmo-menu-item>`
363
363
  );
364
- return s`<div class="setting">
364
+ return a`<div class="setting">
365
365
  <luzmo-field-label for="date-separator"
366
366
  >${i("Separator", {
367
367
  desc: "Label for date separator setting"
@@ -379,7 +379,7 @@ let r = class extends S(k, {
379
379
  </div>`;
380
380
  }
381
381
  _render24hFormatSettings() {
382
- return s`<div class="settings-">
382
+ return a`<div class="settings-">
383
383
  <luzmo-field-label for="format-24h"
384
384
  >${i("24h", {
385
385
  desc: "Label for 24h format setting"
@@ -402,7 +402,7 @@ let r = class extends S(k, {
402
402
  </div>`;
403
403
  }
404
404
  _renderWeekdaySettings() {
405
- return s`<div class="settings-">
405
+ return a`<div class="settings-">
406
406
  <luzmo-field-label for="weekday"
407
407
  >${i("Weekday", {
408
408
  desc: "Label for weekday setting"
@@ -426,8 +426,8 @@ let r = class extends S(k, {
426
426
  </div>`;
427
427
  }
428
428
  _renderExampleFormat() {
429
- return s`<span class="example">
430
- ${f(
429
+ return a`<span class="example">
430
+ ${_(
431
431
  {
432
432
  ...this._currentSlotContent,
433
433
  type: "datetime"
@@ -438,20 +438,20 @@ let r = class extends S(k, {
438
438
  }
439
439
  )(!this._displayAs || this._displayAs === "default" ? /* @__PURE__ */ new Date() : 1)}
440
440
  </span>
441
- ${(this._dateSeparator === "~" || this._dateFormat === "auto") && !this._monthName ? s`<span class="example-language">
441
+ ${(this._dateSeparator === "~" || this._dateFormat === "auto") && !this._monthName ? a`<span class="example-language">
442
442
  (${this.contentLanguage})
443
443
  </span>` : ""}`;
444
444
  }
445
445
  _renderAllSettings() {
446
- return s`<div class="settings-container">
447
- ${this._dateLevel && ![1, 9].includes(this._dateLevel) ? s` <div class="settings-row">
446
+ return a`<div class="settings-container">
447
+ ${this._dateLevel && ![1, 9].includes(this._dateLevel) ? a` <div class="settings-row">
448
448
  ${this._renderDisplaySettings()}
449
449
  ${this._dateLevel && this._dateLevel >= 5 && this._displayAs === "day_in_week" ? this._renderWeekStartsOnSettings() : ""}
450
450
  </div>` : ""}
451
- ${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? s` <div class="settings-row">
451
+ ${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? a` <div class="settings-row">
452
452
  ${this._renderWeekDayAndMonthNameFormatSettings()}
453
453
  </div>` : ""}
454
- ${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? s` <div class="settings-row">
454
+ ${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? a` <div class="settings-row">
455
455
  ${this._dateLevel && this._dateLevel !== 4 && this._dateLevel !== 2 ? this._renderMonthNameSettings() : ""}
456
456
  ${this._dateLevel && this._dateLevel !== 4 && this._dateLevel > 2 && this._monthName ? this._renderMonthNameFormatSettings() : ""}
457
457
  ${this._dateLevel && this._dateLevel === 4 && !this._monthName ? this._renderWeekFormatSettings() : ""}
@@ -472,7 +472,7 @@ let r = class extends S(k, {
472
472
  }
473
473
  render() {
474
474
  return this._loadLocaleFormatsConfig.render({
475
- pending: () => s`<luzmo-progress-circle
475
+ pending: () => a`<luzmo-progress-circle
476
476
  indeterminate
477
477
  .size=${this.size}
478
478
  ></luzmo-progress-circle>`,
@@ -524,12 +524,19 @@ m([
524
524
  n("#format-24h")
525
525
  ], r.prototype, "_format24hElement", 2);
526
526
  r = m([
527
- A()
527
+ L()
528
528
  ], r);
529
529
  customElements.get("luzmo-display-settings-datetime") || customElements.define(
530
530
  "luzmo-display-settings-datetime",
531
531
  r
532
532
  );
533
+ const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
534
+ __proto__: null,
535
+ default: v
536
+ }, Symbol.toStringTag, { value: "Module" })), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
537
+ __proto__: null,
538
+ default: v
539
+ }, Symbol.toStringTag, { value: "Module" }));
533
540
  export {
534
541
  r as LuzmoDisplaySettingsDatetime
535
542
  };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],fromOptionValue:e=>e?"half":"full",toOptionValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],fromOptionValue:e=>e?"labels":"list",toOptionValue:e=>e==="labels",sideEffect:(e,n)=>(e==="labels"&&(n.display.legend=!1),n)}}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:(e,n,r)=>{var l,t;if(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.rounding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(e,n,r)=>{var l,t;return!(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.rounding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number")},extraLabelClickAction:(e,n,r)=>{var t;const l={...e};return((t=l==null?void 0:l.slices)==null?void 0:t.roundedCorners)!==void 0&&delete l.slices.roundedCorners,{value:null,options:l}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:(e,n,r)=>{var l,t;if(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.padding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:(e,n,r)=>{var l,t;return!(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.padding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number")},extraLabelClickAction:(e,n,r)=>{var t;const l={...e};return((t=l==null?void 0:l.slices)==null?void 0:t.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=u;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- const u = [
20
+ const a = [
21
21
  {
22
22
  key: "general",
23
23
  type: "group",
@@ -48,6 +48,7 @@ const u = [
48
48
  key: "display.title",
49
49
  control: {
50
50
  type: "switch",
51
+ label: "Title",
51
52
  default: !0
52
53
  }
53
54
  },
@@ -55,6 +56,7 @@ const u = [
55
56
  key: "display.legend",
56
57
  control: {
57
58
  type: "switch",
59
+ label: "Legend",
58
60
  default: !0
59
61
  }
60
62
  },
@@ -173,5 +175,5 @@ const u = [
173
175
  }
174
176
  ];
175
177
  export {
176
- u as default
178
+ a as default
177
179
  };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.label",control:{type:"switch",label:"Label",default:!1}},{key:"multiselect",control:{type:"switch",label:"Multiselect",default:!1}},{key:"applyFiltersWithButton",control:{type:"switch",label:"Filter with Apply button",default:!1},visibleIf:e=>e==null?void 0:e.multiselect},{key:"showCheckboxes",control:{type:"switch",label:"Show checkboxes",default:!0},visibleIf:e=>e==null?void 0:e.multiselect},{key:"display.search",control:{type:"switch",label:"Search",default:!0},visibleIf:e=>!(e!=null&&e.multiselect)},{key:"display.clear",control:{type:"switch",label:"Show clear selection",default:!0},visibleIf:e=>!(e!=null&&e.multiselect)}]},{key:"order",type:"group",open:!1,children:[{key:"sort.direction",control:{type:"picker",label:"Ordering",default:"asc",enum:["asc","desc"]}}]},{key:"placeholder",type:"group",open:!0,children:[{key:"display.placeholder",control:{type:"switch",label:"Display",default:!0}},{key:"placeholder",control:{type:"multi-language-field",label:"Text",placeholder:"Search..."},visibleIf:e=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.placeholder)!==!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{label:"Padding left",type:"number-field",default:16,min:0,max:100,step:1}},{key:"padding.right",control:{label:"Padding right",type:"number-field",default:16,min:0,max:100,step:1}}]}];exports.default=t;
@@ -0,0 +1,163 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ const t = [
21
+ {
22
+ key: "general",
23
+ type: "group",
24
+ open: !0,
25
+ children: [
26
+ {
27
+ key: "display.title",
28
+ control: {
29
+ type: "switch",
30
+ label: "Title",
31
+ default: !1
32
+ }
33
+ },
34
+ {
35
+ key: "display.label",
36
+ control: {
37
+ type: "switch",
38
+ label: "Label",
39
+ default: !1
40
+ }
41
+ },
42
+ {
43
+ key: "multiselect",
44
+ control: {
45
+ type: "switch",
46
+ label: "Multiselect",
47
+ default: !1
48
+ }
49
+ },
50
+ {
51
+ key: "applyFiltersWithButton",
52
+ control: {
53
+ type: "switch",
54
+ label: "Filter with Apply button",
55
+ default: !1
56
+ },
57
+ visibleIf: (e) => e == null ? void 0 : e.multiselect
58
+ },
59
+ {
60
+ key: "showCheckboxes",
61
+ control: {
62
+ type: "switch",
63
+ label: "Show checkboxes",
64
+ default: !0
65
+ },
66
+ visibleIf: (e) => e == null ? void 0 : e.multiselect
67
+ },
68
+ {
69
+ key: "display.search",
70
+ control: {
71
+ type: "switch",
72
+ label: "Search",
73
+ default: !0
74
+ },
75
+ visibleIf: (e) => !(e != null && e.multiselect)
76
+ },
77
+ {
78
+ key: "display.clear",
79
+ control: {
80
+ type: "switch",
81
+ label: "Show clear selection",
82
+ default: !0
83
+ },
84
+ visibleIf: (e) => !(e != null && e.multiselect)
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ key: "order",
90
+ type: "group",
91
+ open: !1,
92
+ children: [
93
+ {
94
+ key: "sort.direction",
95
+ control: {
96
+ type: "picker",
97
+ label: "Ordering",
98
+ default: "asc",
99
+ enum: ["asc", "desc"]
100
+ }
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ key: "placeholder",
106
+ type: "group",
107
+ open: !0,
108
+ children: [
109
+ {
110
+ key: "display.placeholder",
111
+ control: {
112
+ type: "switch",
113
+ label: "Display",
114
+ default: !0
115
+ }
116
+ },
117
+ {
118
+ key: "placeholder",
119
+ control: {
120
+ type: "multi-language-field",
121
+ label: "Text",
122
+ placeholder: "Search..."
123
+ },
124
+ visibleIf: (e) => {
125
+ var l;
126
+ return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.placeholder) !== !1;
127
+ }
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ key: "padding",
133
+ type: "group",
134
+ open: !1,
135
+ children: [
136
+ {
137
+ key: "padding.left",
138
+ control: {
139
+ label: "Padding left",
140
+ type: "number-field",
141
+ default: 16,
142
+ min: 0,
143
+ max: 100,
144
+ step: 1
145
+ }
146
+ },
147
+ {
148
+ key: "padding.right",
149
+ control: {
150
+ label: "Padding right",
151
+ type: "number-field",
152
+ default: 16,
153
+ min: 0,
154
+ max: 100,
155
+ step: 1
156
+ }
157
+ }
158
+ ]
159
+ }
160
+ ];
161
+ export {
162
+ t as default
163
+ };