overview-components 0.6.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.
Files changed (93) hide show
  1. package/dist/assets/icons/iconGlyphs.d.ts +875 -0
  2. package/dist/assets/icons/iconGlyphs.d.ts.map +1 -0
  3. package/dist/assets/icons/iconGlyphs.js +663 -0
  4. package/dist/assets/icons/iconGlyphs.js.map +1 -0
  5. package/dist/assets/ilustration/not-found.d.ts +5 -0
  6. package/dist/assets/ilustration/not-found.d.ts.map +1 -0
  7. package/dist/assets/ilustration/not-found.js +103 -0
  8. package/dist/assets/ilustration/not-found.js.map +1 -0
  9. package/dist/components/custom-filters.d.ts +2 -0
  10. package/dist/components/custom-filters.d.ts.map +1 -0
  11. package/dist/components/custom-filters.js +19 -0
  12. package/dist/components/custom-filters.js.map +1 -0
  13. package/dist/components/lit-case-variables-tab.d.ts +77 -0
  14. package/dist/components/lit-case-variables-tab.d.ts.map +1 -0
  15. package/dist/components/lit-case-variables-tab.js +298 -0
  16. package/dist/components/lit-case-variables-tab.js.map +1 -0
  17. package/dist/components/lit-data-grid-tanstack.d.ts +110 -0
  18. package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -0
  19. package/dist/components/lit-data-grid-tanstack.js +1085 -0
  20. package/dist/components/lit-data-grid-tanstack.js.map +1 -0
  21. package/dist/components/react-wrappers/case-variables-tab.d.ts +3 -0
  22. package/dist/components/react-wrappers/case-variables-tab.d.ts.map +1 -0
  23. package/dist/components/react-wrappers/case-variables-tab.js +9 -0
  24. package/dist/components/react-wrappers/case-variables-tab.js.map +1 -0
  25. package/dist/components/react-wrappers/data-grid-tanstack.d.ts +3 -0
  26. package/dist/components/react-wrappers/data-grid-tanstack.d.ts.map +1 -0
  27. package/dist/components/react-wrappers/data-grid-tanstack.js +9 -0
  28. package/dist/components/react-wrappers/data-grid-tanstack.js.map +1 -0
  29. package/dist/data/translations.d.ts +2 -0
  30. package/dist/data/translations.d.ts.map +1 -0
  31. package/dist/data/translations.js +2763 -0
  32. package/dist/data/translations.js.map +1 -0
  33. package/dist/index.d.ts +5 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +7 -0
  36. package/dist/index.js.map +1 -0
  37. package/dist/shared/filter-inputs.d.ts +36 -0
  38. package/dist/shared/filter-inputs.d.ts.map +1 -0
  39. package/dist/shared/filter-inputs.js +442 -0
  40. package/dist/shared/filter-inputs.js.map +1 -0
  41. package/dist/shared/lit-button.d.ts +24 -0
  42. package/dist/shared/lit-button.d.ts.map +1 -0
  43. package/dist/shared/lit-button.js +113 -0
  44. package/dist/shared/lit-button.js.map +1 -0
  45. package/dist/shared/lit-custom-popper.d.ts +19 -0
  46. package/dist/shared/lit-custom-popper.d.ts.map +1 -0
  47. package/dist/shared/lit-custom-popper.js +117 -0
  48. package/dist/shared/lit-custom-popper.js.map +1 -0
  49. package/dist/shared/lit-data-grid-export-popover.d.ts +15 -0
  50. package/dist/shared/lit-data-grid-export-popover.d.ts.map +1 -0
  51. package/dist/shared/lit-data-grid-export-popover.js +95 -0
  52. package/dist/shared/lit-data-grid-export-popover.js.map +1 -0
  53. package/dist/shared/lit-icon-button.d.ts +18 -0
  54. package/dist/shared/lit-icon-button.d.ts.map +1 -0
  55. package/dist/shared/lit-icon-button.js +81 -0
  56. package/dist/shared/lit-icon-button.js.map +1 -0
  57. package/dist/shared/lit-icon.d.ts +17 -0
  58. package/dist/shared/lit-icon.d.ts.map +1 -0
  59. package/dist/shared/lit-icon.js +284 -0
  60. package/dist/shared/lit-icon.js.map +1 -0
  61. package/dist/shared/lit-pill.d.ts +13 -0
  62. package/dist/shared/lit-pill.d.ts.map +1 -0
  63. package/dist/shared/lit-pill.js +88 -0
  64. package/dist/shared/lit-pill.js.map +1 -0
  65. package/dist/shared/lit-responsive-button.d.ts +27 -0
  66. package/dist/shared/lit-responsive-button.d.ts.map +1 -0
  67. package/dist/shared/lit-responsive-button.js +94 -0
  68. package/dist/shared/lit-responsive-button.js.map +1 -0
  69. package/dist/shared/lit-select.d.ts +25 -0
  70. package/dist/shared/lit-select.d.ts.map +1 -0
  71. package/dist/shared/lit-select.js +177 -0
  72. package/dist/shared/lit-select.js.map +1 -0
  73. package/dist/shared/lit-tooltip.d.ts +20 -0
  74. package/dist/shared/lit-tooltip.d.ts.map +1 -0
  75. package/dist/shared/lit-tooltip.js +122 -0
  76. package/dist/shared/lit-tooltip.js.map +1 -0
  77. package/dist/shared/styles/button-shared-styles.d.ts +3 -0
  78. package/dist/shared/styles/button-shared-styles.d.ts.map +1 -0
  79. package/dist/shared/styles/button-shared-styles.js +66 -0
  80. package/dist/shared/styles/button-shared-styles.js.map +1 -0
  81. package/dist/styles.d.ts +3 -0
  82. package/dist/styles.d.ts.map +1 -0
  83. package/dist/styles.js +169 -0
  84. package/dist/styles.js.map +1 -0
  85. package/dist/utils/date.d.ts +2 -0
  86. package/dist/utils/date.d.ts.map +1 -0
  87. package/dist/utils/date.js +19 -0
  88. package/dist/utils/date.js.map +1 -0
  89. package/dist/utils/getOverviewValue.d.ts +5 -0
  90. package/dist/utils/getOverviewValue.d.ts.map +1 -0
  91. package/dist/utils/getOverviewValue.js +178 -0
  92. package/dist/utils/getOverviewValue.js.map +1 -0
  93. package/package.json +50 -0
@@ -0,0 +1,177 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css } from 'lit';
8
+ import { customElement, property, state } from 'lit/decorators.js';
9
+ import './lit-custom-popper.ts';
10
+ import './lit-icon.ts';
11
+ import './lit-icon-button.ts';
12
+ let LitSelect = class LitSelect extends LitElement {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.value = ''; // Aktuálne vybraná hodnota
16
+ this.options = []; // Možnosti
17
+ this.onChange = () => { }; // Callback funkcia
18
+ this.isOpen = false; // Stav poppera
19
+ }
20
+ toggleCustomPopover() {
21
+ this.isOpen = !this.isOpen;
22
+ }
23
+ closePopover() {
24
+ this.isOpen = false;
25
+ }
26
+ selectOption(optionValue) {
27
+ this.value = optionValue === 'All' ? '' : optionValue;
28
+ this.onChange(this.value); // Zavolaj callback s hodnotou (alebo prázdnou hodnotou pre All)
29
+ this.closePopover();
30
+ }
31
+ clearValue(e) {
32
+ e.stopPropagation(); // Zabrániť spusteniu togglePopover
33
+ this.value = '';
34
+ this.onChange(''); // Nastav prázdnu hodnotu a zavolaj callback
35
+ }
36
+ render() {
37
+ const optionsWithAll = [...this.options];
38
+ const displayValue = this.value === '' ? '' : optionsWithAll.find((o) => o.value === this.value)?.label;
39
+ return html `
40
+ <lit-custom-popper
41
+ .open="${this.isOpen}"
42
+ placement="bottom-start"
43
+ @close="${this.closePopover}"
44
+ >
45
+ <div class="custom-icon-wrapper" slot="reference">
46
+ <input
47
+ type="text"
48
+ readonly
49
+ .value="${displayValue || ''}"
50
+ @click="${this.toggleCustomPopover}"
51
+ />
52
+ <div class="dropdown-icon">
53
+ <lit-icon icon="chevronDownFilled" rotated="true"></lit-icon>
54
+ </div>
55
+ ${this.value
56
+ ? html `
57
+ <div class="custom-icon" @click="${this.clearValue}">
58
+ <lit-icon-button
59
+ icon="close"
60
+ size="small"
61
+ variant="text"
62
+ ></lit-icon-button>
63
+ </div>
64
+ `
65
+ : ''}
66
+ </div>
67
+ <div slot="content">
68
+ <div class="menu">
69
+ ${optionsWithAll.map((option) => html `
70
+ <div
71
+ class="menu-item ${this.value === option.value ||
72
+ (option.value === 'All' && this.value === '')
73
+ ? 'selected'
74
+ : ''}"
75
+ @click="${() => this.selectOption(option.value)}"
76
+ >
77
+ ${option.label}
78
+ </div>
79
+ `)}
80
+ </div>
81
+ </div>
82
+ </lit-custom-popper>
83
+ `;
84
+ }
85
+ };
86
+ LitSelect.styles = css `
87
+ .custom-icon-wrapper {
88
+ position: relative;
89
+ width: 100%;
90
+ display: inline-block;
91
+ }
92
+
93
+ input {
94
+ padding: 0.5rem 0.75rem;
95
+ border: 0.0625rem solid var(--color-divider, #d0d3db);
96
+ border-radius: 0.25rem;
97
+ min-width: 70px;
98
+ width: -webkit-fill-available;
99
+ }
100
+
101
+ input:hover {
102
+ border: 0.0625rem solid var(--color-secondary-main, #111827);
103
+ cursor: pointer;
104
+ }
105
+
106
+ input:focus {
107
+ outline: none;
108
+ border: 0.0625rem solid var(--color-secondary-dark, #010204);
109
+ }
110
+
111
+ .custom-icon-wrapper .custom-icon {
112
+ position: absolute;
113
+ right: 30px;
114
+ top: 50%;
115
+ transform: translateY(-50%);
116
+ cursor: pointer;
117
+ pointer-events: auto;
118
+ }
119
+
120
+ .custom-icon-wrapper .dropdown-icon {
121
+ position: absolute;
122
+ right: 10px;
123
+ top: 50%;
124
+ transform: translateY(-50%);
125
+ pointer-events: none;
126
+ }
127
+
128
+ .menu {
129
+ display: flex;
130
+ flex-direction: column;
131
+ background: var(--background-paper, #fff);
132
+ border-radius: 4px;
133
+
134
+ max-height: 200px;
135
+ overflow-y: auto;
136
+ z-index: 1;
137
+ }
138
+
139
+ .menu-item {
140
+ padding: 0.375rem 0.625rem;
141
+ margin: 0 0 0.25rem;
142
+ font-size: 0.8125rem;
143
+ font-weight: 500;
144
+ text-align: left;
145
+ cursor: pointer;
146
+ color: var(--text-primary, #111827);
147
+ transition: background-color 0.2s;
148
+ }
149
+
150
+ .menu-item:hover {
151
+ background: var(--color-primary-light, #f0fadf);
152
+ border-radius: 4px;
153
+ }
154
+
155
+ .menu-item.selected {
156
+ background: var(--color-primary-light, #f0fadf); /* Rovnaký background ako hover */
157
+ font-weight: 600; /* Zvýraznenie písma */
158
+ border-radius: 4px;
159
+ }
160
+ `;
161
+ __decorate([
162
+ property({ type: String })
163
+ ], LitSelect.prototype, "value", void 0);
164
+ __decorate([
165
+ property({ type: Array })
166
+ ], LitSelect.prototype, "options", void 0);
167
+ __decorate([
168
+ property({ type: Function })
169
+ ], LitSelect.prototype, "onChange", void 0);
170
+ __decorate([
171
+ state()
172
+ ], LitSelect.prototype, "isOpen", void 0);
173
+ LitSelect = __decorate([
174
+ customElement('lit-select')
175
+ ], LitSelect);
176
+ export { LitSelect };
177
+ //# sourceMappingURL=lit-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-select.js","sourceRoot":"","sources":["../../src/shared/lit-select.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,wBAAwB,CAAC;AAChC,OAAO,eAAe,CAAC;AACvB,OAAO,sBAAsB,CAAC;AAGvB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QACyB,UAAK,GAAW,EAAE,CAAC,CAAC,2BAA2B;QAChD,YAAO,GAAuC,EAAE,CAAC,CAAC,WAAW;QAC1D,aAAQ,GAA4B,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,mBAAmB;QAE9E,WAAM,GAAG,KAAK,CAAC,CAAC,eAAe;IAwJpD,CAAC;IA1EW,mBAAmB;QACvB,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;IAC/B,CAAC;IAEO,YAAY;QAChB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAEO,YAAY,CAAC,WAAmB;QACpC,IAAI,CAAC,KAAK,GAAG,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;QACtD,IAAI,CAAC,QAA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IhB,CAAC;IACN,CAAC;;AArJM,gBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0ElB,AA1EY,CA0EX;AAhF0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAoB;AACpB;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;0CAAkD;AAC9C;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;2CAA8C;AAE1D;IAAhB,KAAK,EAAE;yCAAwB;AALvB,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA6JrB"}
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ declare class LitTooltip extends LitElement {
3
+ label: string;
4
+ variant: 'top' | 'bottom' | 'left' | 'right';
5
+ private triggerElement;
6
+ private tooltipElement;
7
+ private arrowElement;
8
+ static styles: import("lit").CSSResult;
9
+ firstUpdated(): void;
10
+ showTooltip(): Promise<void>;
11
+ hideTooltip(): void;
12
+ render(): import("lit-html").TemplateResult<1>;
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'lit-tooltip': LitTooltip;
17
+ }
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=lit-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-tooltip.d.ts","sourceRoot":"","sources":["../../src/shared/lit-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAI5C,cACM,UAAW,SAAQ,UAAU;IACH,KAAK,EAAE,MAAM,CAAkB;IAC/B,OAAO,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAS;IAEjF,OAAO,CAAC,cAAc,CAAwC;IAC9D,OAAO,CAAC,cAAc,CAAwC;IAC9D,OAAO,CAAC,YAAY,CAAwC;IAE5D,MAAM,CAAC,MAAM,0BAyCX;IAEF,YAAY;IAMN,WAAW;IAwCjB,WAAW;IAIX,MAAM;CAWT;AACD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACJ"}
@@ -0,0 +1,122 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ import { computePosition, offset, flip, shift, arrow } from '@floating-ui/dom';
10
+ let LitTooltip = class LitTooltip extends LitElement {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.label = 'Tooltip text';
14
+ this.variant = 'top';
15
+ this.triggerElement = null;
16
+ this.tooltipElement = null;
17
+ this.arrowElement = null;
18
+ }
19
+ firstUpdated() {
20
+ this.triggerElement = this.shadowRoot?.getElementById('trigger');
21
+ this.tooltipElement = this.shadowRoot?.getElementById('tooltip');
22
+ this.arrowElement = this.shadowRoot?.querySelector('#arrow');
23
+ }
24
+ async showTooltip() {
25
+ this.tooltipElement?.setAttribute('visible', '');
26
+ if (!this.triggerElement || !this.tooltipElement || !this.arrowElement)
27
+ return;
28
+ const { x, y, placement, middlewareData } = await computePosition(this.triggerElement, this.tooltipElement, {
29
+ placement: this.variant,
30
+ middleware: [
31
+ offset(6),
32
+ flip(),
33
+ shift({ padding: 5 }),
34
+ arrow({ element: this.arrowElement }),
35
+ ],
36
+ });
37
+ Object.assign(this.tooltipElement.style, {
38
+ left: `${x}px`,
39
+ top: `${y}px`,
40
+ });
41
+ const { x: arrowX, y: arrowY } = middlewareData.arrow;
42
+ const staticSide = {
43
+ top: 'bottom',
44
+ right: 'left',
45
+ bottom: 'top',
46
+ left: 'right',
47
+ }[placement.split('-')[0]] || 'top';
48
+ Object.assign(this.arrowElement.style, {
49
+ left: arrowX != null ? `${arrowX}px` : '',
50
+ top: arrowY != null ? `${arrowY}px` : '',
51
+ right: '',
52
+ bottom: '',
53
+ [staticSide]: '-4px',
54
+ });
55
+ }
56
+ hideTooltip() {
57
+ this.tooltipElement?.removeAttribute('visible');
58
+ }
59
+ render() {
60
+ return html `
61
+ <div id="trigger" @mouseenter=${this.showTooltip} @mouseleave=${this.hideTooltip}>
62
+ <slot>Hover me</slot>
63
+ </div>
64
+ <div id="tooltip">
65
+ ${this.label}
66
+ <div id="arrow"></div>
67
+ </div>
68
+ `;
69
+ }
70
+ };
71
+ LitTooltip.styles = css `
72
+ :host {
73
+ display: inline-block;
74
+ position: relative;
75
+ font-family: 'Inter', sans-serif;
76
+ }
77
+ #tooltip {
78
+ position: absolute;
79
+ background: black;
80
+ color: white;
81
+ padding: 8px;
82
+ border-radius: 8px;
83
+ font-size: 12px;
84
+ box-shadow: var(--box-shadow, 0px 4px 6px rgba(0, 0, 0, 0.1));
85
+ white-space: nowrap;
86
+ z-index: 1000;
87
+ visibility: hidden;
88
+ opacity: 0;
89
+ overflow-wrap: break-word;
90
+ transition: opacity 0.2s ease-in-out;
91
+ width: max-content;
92
+ white-space: normal;
93
+ max-width: 300px;
94
+ transition:
95
+ opacity 0.2s ease-in-out,
96
+ visibility 0.2s ease-in-out;
97
+ }
98
+ #tooltip[visible] {
99
+ visibility: visible;
100
+ opacity: 1;
101
+ }
102
+ #trigger {
103
+ cursor: pointer;
104
+ }
105
+ #arrow {
106
+ position: absolute;
107
+ background: black;
108
+ width: 8px;
109
+ height: 8px;
110
+ transform: rotate(45deg);
111
+ }
112
+ `;
113
+ __decorate([
114
+ property({ type: String })
115
+ ], LitTooltip.prototype, "label", void 0);
116
+ __decorate([
117
+ property({ type: String })
118
+ ], LitTooltip.prototype, "variant", void 0);
119
+ LitTooltip = __decorate([
120
+ customElement('lit-tooltip')
121
+ ], LitTooltip);
122
+ //# sourceMappingURL=lit-tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-tooltip.js","sourceRoot":"","sources":["../../src/shared/lit-tooltip.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG/E,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QACgC,UAAK,GAAW,cAAc,CAAC;QAC/B,YAAO,GAAwC,KAAK,CAAC;QAEzE,mBAAc,GAAmC,IAAI,CAAC;QACtD,mBAAc,GAAmC,IAAI,CAAC;QACtD,iBAAY,GAAmC,IAAI,CAAC;IA0GhE,CAAC;IA7DG,YAAY;QACR,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACjE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACjE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,WAAW;QACb,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IA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IACP,CAAC;IAED,WAAW;QACP,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAA;4CACyB,IAAI,CAAC,WAAW,gBAAgB,IAAI,CAAC,WAAW;;;;kBAI1E,IAAI,CAAC,KAAK;;;SAGnB,CAAC;IACN,CAAC;;AAvGM,iBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyClB,AAzCY,CAyCX;AAhD0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAAgC;AAC/B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CAAsD;AAF/E,UAAU;IADf,aAAa,CAAC,aAAa,CAAC;GACvB,UAAU,CAgHf"}
@@ -0,0 +1,3 @@
1
+ export default buttonStyles;
2
+ declare const buttonStyles: import("lit").CSSResult;
3
+ //# sourceMappingURL=button-shared-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-shared-styles.d.ts","sourceRoot":"","sources":["../../../src/shared/styles/button-shared-styles.js"],"names":[],"mappings":";AAEA,oDA8DE"}
@@ -0,0 +1,66 @@
1
+ import { css } from 'lit';
2
+ const buttonStyles = css `
3
+ :host {
4
+ button {
5
+ border-radius: var(--border-radius-small, 0.5rem);
6
+ cursor: pointer;
7
+ transition:
8
+ background-color 0.3s,
9
+ color 0.3s,
10
+ border 0.3s;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ }
15
+ /* Disabled button state */
16
+ .button--contained:disabled {
17
+ background-color: var(--color-primary-disabled, #d0d3db);
18
+ cursor: not-allowed;
19
+ }
20
+
21
+ .button--outlined:disabled {
22
+ color: var(--color-primary-disabled);
23
+ border: 1px solid var(--color-primary-disabled, #d0d3db);
24
+ cursor: not-allowed;
25
+ }
26
+
27
+ .button--text:disabled {
28
+ color: var(--color-primary-disabled, #d0d3db);
29
+ cursor: not-allowed;
30
+ }
31
+
32
+ /* Button Variants */
33
+ .button--outlined {
34
+ color: var(--text-primary);
35
+ border: 1px solid var(--text-primary, #111827);
36
+ background-color: transparent;
37
+ }
38
+ .button--outlined:not(:disabled):hover {
39
+ background-color: var(--color-primary-light, #f0fadf);
40
+ }
41
+
42
+ .button--contained {
43
+ border: none;
44
+ color: #fff;
45
+ background-color: var(--color-primary-main, #76b703);
46
+ }
47
+ .button--contained:not(:disabled):hover {
48
+ background-color: var(--color-primary-dark, #5f9402);
49
+ }
50
+
51
+ .button--text {
52
+ border: none;
53
+ color: var(--text-primary, #111827);
54
+ background-color: transparent;
55
+ }
56
+ .button--text:not(:disabled):hover {
57
+ background-color: var(--color-primary-light, #f0fadf);
58
+ }
59
+
60
+ .button--text.active {
61
+ background-color: var(--color-primary-light, #f0fadf);
62
+ }
63
+ }
64
+ `;
65
+ export default buttonStyles;
66
+ //# sourceMappingURL=button-shared-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-shared-styles.js","sourceRoot":"","sources":["../../../src/shared/styles/button-shared-styles.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DvB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit-element").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":""}
package/dist/styles.js ADDED
@@ -0,0 +1,169 @@
1
+ import { css } from 'lit-element';
2
+ export default css `
3
+ :host {
4
+ --breakpoint-sm: 600px;
5
+ --breakpoint-md: 960px;
6
+ --breakpoint-lg: 1280px;
7
+ --breakpoint-xl: 1536px;
8
+
9
+ --color-primary-main: #76b703;
10
+ --color-primary-light: #f0fadf;
11
+ --color-primary-dark: #5f9402;
12
+ --color-primary-disabled: #d0d3db;
13
+
14
+ --color-secondary-main: #111827;
15
+ --color-secondary-light: #d0d3db;
16
+ --color-secondary-dark: #010204;
17
+
18
+ --color-info-main: #00687e;
19
+ --color-info-light: #cbf6ff;
20
+ --color-info-dark: #004452;
21
+
22
+ --color-warning-main: #875900;
23
+ --color-warning-light: #ffe1a8;
24
+ --color-warning-dark: #684500;
25
+
26
+ --color-error-main: #ca2d0a;
27
+ --color-error-light: #ffd6cd;
28
+ --color-error-dark: #a52103;
29
+
30
+ --color-success-main: #76b703;
31
+ --color-success-light: #f0fadf;
32
+ --color-success-dark: #5f9402;
33
+
34
+ --color-divider: #d0d3db;
35
+
36
+ --text-primary: #111827;
37
+ --text-secondary: #5d6371;
38
+ --text-disabled: #d0d3db;
39
+
40
+ --background-paper: #ffffff;
41
+ --background-default: #eff3f4;
42
+
43
+ --border-radius-small: 0.5rem;
44
+ --border-radius-medium: 0.75rem;
45
+
46
+ --box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
47
+
48
+ --section-padding: 0.75rem 1rem;
49
+
50
+ font-family: Inter, sans-serif;
51
+ box-sizing: border-box;
52
+
53
+ *,
54
+ *::before,
55
+ *::after {
56
+ margin: 0;
57
+ padding: 0;
58
+ box-sizing: border-box;
59
+ }
60
+
61
+ * {
62
+ box-sizing: border-box;
63
+ }
64
+
65
+ article,
66
+ aside,
67
+ details,
68
+ figcaption,
69
+ figure,
70
+ footer,
71
+ header,
72
+ hgroup,
73
+ main,
74
+ menu,
75
+ nav,
76
+ section {
77
+ display: block;
78
+ }
79
+
80
+ ol,
81
+ ul {
82
+ list-style: none;
83
+ }
84
+ a {
85
+ text-decoration: none;
86
+ color: inherit;
87
+ }
88
+
89
+ img,
90
+ video {
91
+ max-width: 100%;
92
+ height: auto;
93
+ }
94
+
95
+ button,
96
+ input,
97
+ optgroup,
98
+ select,
99
+ textarea {
100
+ font: inherit;
101
+ color: inherit;
102
+ margin: 0;
103
+ border: none;
104
+ background: none;
105
+ padding: 0;
106
+ appearance: none;
107
+ -webkit-appearance: none;
108
+ -moz-appearance: none;
109
+ }
110
+
111
+ table {
112
+ border-collapse: collapse;
113
+ border-spacing: 0;
114
+ width: 100%;
115
+ }
116
+
117
+ html {
118
+ font-size: 100%; /* 16px base */
119
+ line-height: 1.5;
120
+ scroll-behavior: smooth;
121
+ -webkit-text-size-adjust: 100%; /* Prevent font scaling in Safari */
122
+ }
123
+
124
+ body {
125
+ font-family:
126
+ system-ui,
127
+ -apple-system,
128
+ BlinkMacSystemFont,
129
+ 'Segoe UI',
130
+ Roboto,
131
+ Oxygen,
132
+ Ubuntu,
133
+ Cantarell,
134
+ 'Open Sans',
135
+ 'Helvetica Neue',
136
+ sans-serif;
137
+ line-height: 1.6;
138
+ color: #333;
139
+ background-color: #fff;
140
+ }
141
+
142
+ strong {
143
+ font-weight: bold;
144
+ }
145
+
146
+ h1,
147
+ h2,
148
+ h3,
149
+ h4,
150
+ h5,
151
+ h6 {
152
+ font-size: inherit;
153
+ font-weight: inherit;
154
+ }
155
+
156
+ blockquote,
157
+ q {
158
+ quotes: none;
159
+ }
160
+
161
+ blockquote::before,
162
+ blockquote::after,
163
+ q::before,
164
+ q::after {
165
+ content: '';
166
+ }
167
+ }
168
+ `;
169
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const formatDate: (date: Date, locale: string) => string;
2
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,SAAU,IAAI,UAAU,MAAM,WAgBpD,CAAC"}
@@ -0,0 +1,19 @@
1
+ // format date by dynamic by locale props check correct format date
2
+ export const formatDate = (date, locale) => {
3
+ const dateObj = new Date(date);
4
+ // if invalid date return Invalid Date
5
+ if (isNaN(dateObj.getTime())) {
6
+ return 'Invalid Date';
7
+ }
8
+ return new Intl.DateTimeFormat(locale, {
9
+ year: 'numeric',
10
+ month: 'numeric', // 'short' for abbreviated month names
11
+ day: 'numeric',
12
+ // weekday: 'long', // Include the full name of the day
13
+ // hour: '2-digit',
14
+ // minute: '2-digit',
15
+ // second: '2-digit',
16
+ // timeZoneName: 'short', // Include timezone
17
+ }).format(dateObj);
18
+ };
19
+ //# sourceMappingURL=date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAU,EAAE,MAAc,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,sCAAsC;IACtC,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;QAC3B,OAAO,cAAc,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;QACnC,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS,EAAE,sCAAsC;QACxD,GAAG,EAAE,SAAS;QACd,uDAAuD;QACvD,mBAAmB;QACnB,qBAAqB;QACrB,qBAAqB;QACrB,6CAA6C;KAChD,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACvB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const getIvarName: (object: any, tvarName: string) => any;
2
+ export declare const getIvarValue: (object: any, tvarName: string, itemValue?: any) => any;
3
+ export declare const getItemValue: (object: any, tvarName: string, column: string, itemValue: any) => any;
4
+ export declare const getTranslation: (string: string) => any;
5
+ //# sourceMappingURL=getOverviewValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOverviewValue.d.ts","sourceRoot":"","sources":["../../src/utils/getOverviewValue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,WAAY,GAAG,YAAY,MAAM,QAUxD,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,GAAG,YAAY,MAAM,cAAc,GAAG,QAmE1E,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,GAAG,YAAY,MAAM,UAAU,MAAM,aAAa,GAAG,QA0BzF,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,QAG5C,CAAC"}