@logosphere-ui/core 0.0.0-alpha.23 → 0.0.0-alpha.25

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 (95) hide show
  1. package/AGENTS.md +1118 -0
  2. package/dist/AGENTS.md +1118 -0
  3. package/dist/atoms/Badge/badge.d.ts +1 -1
  4. package/dist/atoms/FormField/formfield.d.ts +3 -0
  5. package/dist/badge-CGgnn_UN.js +72 -0
  6. package/dist/badge-DXBwR32c.cjs +13 -0
  7. package/dist/badge.cjs +1 -1
  8. package/dist/badge.js +1 -1
  9. package/dist/button-BBf5JAD-.js +58 -0
  10. package/dist/button-BryTzF74.cjs +10 -0
  11. package/dist/button.cjs +1 -1
  12. package/dist/button.js +1 -1
  13. package/dist/{calendar-WZ_GQvnn.js → calendar-BiJlAmA6.js} +1 -1
  14. package/dist/{calendar-LMn1ZF3N.cjs → calendar-D5W-t26J.cjs} +1 -1
  15. package/dist/calendar.cjs +1 -1
  16. package/dist/calendar.js +1 -1
  17. package/dist/{card-KiNHfEi2.cjs → card-C8G9YXhU.cjs} +1 -1
  18. package/dist/{card-CNoTUaJC.js → card-RWV7CumH.js} +1 -1
  19. package/dist/card.cjs +1 -1
  20. package/dist/card.js +1 -1
  21. package/dist/chatbot-BfzuCerB.cjs +183 -0
  22. package/dist/{chatbot-B1Yb35Rp.js → chatbot-CDtwNwGX.js} +146 -84
  23. package/dist/chatbot.cjs +1 -1
  24. package/dist/chatbot.js +1 -1
  25. package/dist/{combobox-C6zoQopK.cjs → combobox-BrANDiaM.cjs} +4 -4
  26. package/dist/{combobox-LBU6VHLi.js → combobox-D5QdM3ue.js} +22 -10
  27. package/dist/combobox.cjs +1 -1
  28. package/dist/combobox.js +1 -1
  29. package/dist/{datepicker-CwDDA6np.cjs → datepicker-CxKs90IQ.cjs} +1 -1
  30. package/dist/{datepicker-SwKsdw3S.js → datepicker-DZsZdSCv.js} +3 -3
  31. package/dist/datepicker.cjs +1 -1
  32. package/dist/datepicker.js +1 -1
  33. package/dist/{drawer-DVINJB4a.js → drawer-D_qOdapq.js} +2 -2
  34. package/dist/drawer-s1BLy2Xe.cjs +25 -0
  35. package/dist/drawer.cjs +1 -1
  36. package/dist/drawer.js +1 -1
  37. package/dist/{formfield-CNh4mBSs.js → formfield-BZOK4Pkz.js} +23 -16
  38. package/dist/formfield-HIqosWPz.cjs +33 -0
  39. package/dist/formfield.cjs +1 -1
  40. package/dist/formfield.js +1 -1
  41. package/dist/index.cjs +119 -1
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.js +358 -41
  44. package/dist/index.umd.js +404 -196
  45. package/dist/input-CG6RsUJs.js +257 -0
  46. package/dist/input-DgGaco-Y.cjs +59 -0
  47. package/dist/input.cjs +1 -1
  48. package/dist/input.js +1 -1
  49. package/dist/left-menu.cjs +1 -1
  50. package/dist/left-menu.js +1 -1
  51. package/dist/{leftmenu-DBcncBN8.cjs → leftmenu-BSVpwbyD.cjs} +1 -1
  52. package/dist/{leftmenu-C-q1h_2U.js → leftmenu-DJE2N5kl.js} +7 -7
  53. package/dist/{modal-DU1sszVn.cjs → modal-3-TNUICH.cjs} +1 -1
  54. package/dist/{modal-B8aQyCBg.js → modal-BhhhXCEK.js} +1 -1
  55. package/dist/modal.cjs +1 -1
  56. package/dist/modal.js +1 -1
  57. package/dist/molecules/Input/input.d.ts +4 -0
  58. package/dist/molecules/Textarea/text-area.d.ts +5 -1
  59. package/dist/molecules/TimePicker/index.d.ts +2 -0
  60. package/dist/molecules/TimePicker/timepicker.d.ts +62 -0
  61. package/dist/organisms/Chatbot/chatbot.d.ts +7 -0
  62. package/dist/organisms/Combobox/combobox.d.ts +2 -0
  63. package/dist/organisms/Toast/index.d.ts +2 -0
  64. package/dist/organisms/Toast/toast-container.d.ts +42 -0
  65. package/dist/organisms/Toast/toast.d.ts +48 -0
  66. package/dist/styles/main.css +89 -83
  67. package/dist/text-area-Bz62kq2S.cjs +51 -0
  68. package/dist/text-area-CG0gBXni.js +235 -0
  69. package/dist/textarea.cjs +1 -1
  70. package/dist/textarea.js +1 -1
  71. package/dist/toast-container-Br8TDkFh.js +274 -0
  72. package/dist/toast-container-DsEbVrT7.cjs +64 -0
  73. package/dist/toast.cjs +1 -0
  74. package/dist/toast.js +6 -0
  75. package/dist/{tree-menu-BbX8GK_z.js → tree-menu-B39KDvKV.js} +2 -2
  76. package/dist/tree-menu-BZEOD4_f.cjs +47 -0
  77. package/dist/tree-menu.cjs +1 -1
  78. package/dist/tree-menu.js +1 -1
  79. package/dist/ui-icon-BRl1UmIf.cjs +22 -0
  80. package/dist/ui-icon-CFvsDv0z.js +66 -0
  81. package/package.json +21 -11
  82. package/dist/badge-7IIatiRv.cjs +0 -13
  83. package/dist/badge-B2chRYGd.js +0 -72
  84. package/dist/button-BqOMevro.js +0 -58
  85. package/dist/button-CDRccsk9.cjs +0 -10
  86. package/dist/chatbot-CweQSDtr.cjs +0 -161
  87. package/dist/drawer-BvcPd5nz.cjs +0 -25
  88. package/dist/formfield-BFOIEicR.cjs +0 -33
  89. package/dist/input-JpAWN-M1.cjs +0 -59
  90. package/dist/input-jmbvgWEq.js +0 -212
  91. package/dist/text-area-CZDdxbrN.cjs +0 -46
  92. package/dist/text-area-Dec_k4rs.js +0 -205
  93. package/dist/tree-menu-B1iwfHyd.cjs +0 -47
  94. package/dist/ui-icon-Bys4HYSQ.js +0 -57
  95. package/dist/ui-icon-DWh1MhBa.cjs +0 -22
@@ -1,212 +0,0 @@
1
- import { unsafeCSS as y, css as c, LitElement as m, nothing as o, html as u } from "lit";
2
- import { query as b, property as s, state as d, customElement as _ } from "lit/decorators.js";
3
- import { live as f } from "lit/directives/live.js";
4
- import "./formfield-CNh4mBSs.js";
5
- import "./ui-icon-Bys4HYSQ.js";
6
- const g = ".input__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.input__field::placeholder{color:var(--color-tertiary)}.input__field:disabled{cursor:not-allowed}.input__field--default{height:16px}.input__field--large{height:24px}.input__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.input__clear-btn:hover{color:var(--color-gray-600)}";
7
- var v = Object.defineProperty, E = Object.getOwnPropertyDescriptor, i = (e, r, l, a) => {
8
- for (var n = a > 1 ? void 0 : a ? E(r, l) : r, p = e.length - 1, h; p >= 0; p--)
9
- (h = e[p]) && (n = (a ? h(r, l, n) : h(n)) || n);
10
- return a && n && v(r, l, n), n;
11
- };
12
- let t = class extends m {
13
- constructor() {
14
- super(...arguments), this.value = "", this.type = "text", this.placeholder = "", this.name = "", this.autocomplete = "", this.pattern = "", this.size = "default", this.variant = "default", this.label = "", this.helper = "", this.error = "", this.required = !1, this.disabled = !1, this.readonly = !1, this._internalError = "", this._showPassword = !1, this.handleInput = (e) => {
15
- const r = e.target;
16
- this.value = r.value, this._internalError && (this._internalError = "", this._inputElement.setCustomValidity("")), this.dispatchEvent(new CustomEvent("input", {
17
- bubbles: !0,
18
- composed: !0,
19
- detail: { value: this.value, originalEvent: e }
20
- }));
21
- }, this.handleChange = (e) => {
22
- const r = e.target;
23
- this.value = r.value, r.checkValidity() || (this._internalError = r.validationMessage), this.dispatchEvent(new CustomEvent("change", {
24
- bubbles: !0,
25
- composed: !0,
26
- detail: { value: this.value, originalEvent: e }
27
- }));
28
- }, this.handleKeyDown = (e) => {
29
- this.dispatchEvent(new CustomEvent("keydown", {
30
- bubbles: !0,
31
- composed: !0,
32
- detail: { key: e.key, originalEvent: e }
33
- }));
34
- }, this.handleKeyUp = (e) => {
35
- this.dispatchEvent(new CustomEvent("keyup", {
36
- bubbles: !0,
37
- composed: !0,
38
- detail: { key: e.key, originalEvent: e }
39
- }));
40
- }, this.handleClear = () => {
41
- this.value = "", this._inputElement && (this._inputElement.value = ""), this.dispatchEvent(new CustomEvent("clear", { bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent("input", {
42
- bubbles: !0,
43
- composed: !0,
44
- detail: { value: "", originalEvent: null }
45
- }));
46
- }, this.handlePasswordToggle = () => {
47
- this.disabled || (this._showPassword = !this._showPassword, this._inputElement?.focus());
48
- };
49
- }
50
- get inputElement() {
51
- return this._inputElement;
52
- }
53
- focus() {
54
- this._inputElement?.focus();
55
- }
56
- blur() {
57
- this._inputElement?.blur();
58
- }
59
- select() {
60
- this._inputElement?.select();
61
- }
62
- setSelectionRange(e, r, l) {
63
- this._inputElement?.setSelectionRange(e, r, l);
64
- }
65
- checkValidity() {
66
- return this._inputElement?.checkValidity() ?? !0;
67
- }
68
- reportValidity() {
69
- return this._inputElement?.reportValidity() ?? !0;
70
- }
71
- setCustomValidity(e) {
72
- this._inputElement?.setCustomValidity(e), this._internalError = e, this.requestUpdate();
73
- }
74
- willUpdate(e) {
75
- e.has("type") && this.type !== "password" && this._showPassword && (this._showPassword = !1);
76
- }
77
- render() {
78
- const e = this.error || this._internalError, r = !!this.value && !this.disabled && !this.readonly, l = this.type === "password", a = l && this._showPassword ? "text" : this.type, n = `input__field input__field--${this.size}`;
79
- return u`
80
- <logosphere-formfield
81
- .label=${this.label}
82
- .helper=${this.helper}
83
- .error=${e}
84
- .required=${this.required}
85
- .disabled=${this.disabled}
86
- .readonly=${this.readonly}
87
- .placeholder=${this.placeholder}
88
- .size=${this.size}
89
- .variant=${this.variant}
90
- >
91
- <slot name="prefix" slot="prefix"></slot>
92
- <input
93
- class="${n}"
94
- type=${a}
95
- .value=${f(this.value)}
96
- placeholder=${this.placeholder || o}
97
- name=${this.name || o}
98
- autocomplete=${this.autocomplete || o}
99
- ?required=${this.required}
100
- ?disabled=${this.disabled}
101
- ?readonly=${this.readonly}
102
- minlength=${this.minlength ?? o}
103
- maxlength=${this.maxlength ?? o}
104
- pattern=${this.pattern || o}
105
- min=${this.min ?? o}
106
- max=${this.max ?? o}
107
- step=${this.step ?? o}
108
- @input=${this.handleInput}
109
- @change=${this.handleChange}
110
- @keydown=${this.handleKeyDown}
111
- @keyup=${this.handleKeyUp}
112
- />
113
- ${r ? u`
114
- <button
115
- type="button"
116
- slot="clear"
117
- class="input__clear-btn"
118
- @click=${this.handleClear}
119
- tabindex="-1"
120
- >
121
- <ui-icon name="uil-times" size="14"></ui-icon>
122
- </button>
123
- ` : o}
124
- ${l ? u`
125
- <button
126
- type="button"
127
- slot="suffix"
128
- class="input__clear-btn"
129
- aria-label=${this._showPassword ? "Şifreyi gizle" : "Şifreyi göster"}
130
- @click=${this.handlePasswordToggle}
131
- >
132
- <ui-icon name=${this._showPassword ? "uil-eye-slash" : "uil-eye"} size="16"></ui-icon>
133
- </button>
134
- ` : o}
135
- <slot name="suffix" slot="suffix"></slot>
136
- </logosphere-formfield>
137
- `;
138
- }
139
- };
140
- t.styles = [c`${y(g)}`];
141
- i([
142
- b("input")
143
- ], t.prototype, "_inputElement", 2);
144
- i([
145
- s({ type: String })
146
- ], t.prototype, "value", 2);
147
- i([
148
- s({ type: String })
149
- ], t.prototype, "type", 2);
150
- i([
151
- s({ type: String })
152
- ], t.prototype, "placeholder", 2);
153
- i([
154
- s({ type: String })
155
- ], t.prototype, "name", 2);
156
- i([
157
- s({ type: String })
158
- ], t.prototype, "autocomplete", 2);
159
- i([
160
- s({ type: Number })
161
- ], t.prototype, "minlength", 2);
162
- i([
163
- s({ type: Number })
164
- ], t.prototype, "maxlength", 2);
165
- i([
166
- s({ type: String })
167
- ], t.prototype, "pattern", 2);
168
- i([
169
- s({ type: Number })
170
- ], t.prototype, "min", 2);
171
- i([
172
- s({ type: Number })
173
- ], t.prototype, "max", 2);
174
- i([
175
- s({ type: Number })
176
- ], t.prototype, "step", 2);
177
- i([
178
- s({ type: String })
179
- ], t.prototype, "size", 2);
180
- i([
181
- s({ type: String })
182
- ], t.prototype, "variant", 2);
183
- i([
184
- s({ type: String })
185
- ], t.prototype, "label", 2);
186
- i([
187
- s({ type: String })
188
- ], t.prototype, "helper", 2);
189
- i([
190
- s({ type: String })
191
- ], t.prototype, "error", 2);
192
- i([
193
- s({ type: Boolean })
194
- ], t.prototype, "required", 2);
195
- i([
196
- s({ type: Boolean })
197
- ], t.prototype, "disabled", 2);
198
- i([
199
- s({ type: Boolean })
200
- ], t.prototype, "readonly", 2);
201
- i([
202
- d()
203
- ], t.prototype, "_internalError", 2);
204
- i([
205
- d()
206
- ], t.prototype, "_showPassword", 2);
207
- t = i([
208
- _("logosphere-input")
209
- ], t);
210
- export {
211
- t as L
212
- };
@@ -1,46 +0,0 @@
1
- "use strict";const i=require("lit"),t=require("lit/decorators.js"),p=require("lit/directives/live.js");require("./formfield-BFOIEicR.cjs");require("./ui-icon-DWh1MhBa.cjs");const u=".textarea__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:flex-start;align-self:flex-start;margin-top:var(--spacing-1);outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-gray-600)}";var d=Object.defineProperty,y=Object.getOwnPropertyDescriptor,r=(l,e,a,o)=>{for(var s=o>1?void 0:o?y(e,a):e,n=l.length-1,h;n>=0;n--)(h=l[n])&&(s=(o?h(e,a,s):h(s))||s);return o&&s&&d(e,a,s),s};exports.TextArea=class extends i.LitElement{constructor(){super(...arguments),this.value="",this.placeholder="",this.name="",this.autocomplete="",this.rows=3,this.wrap="soft",this.resize="vertical",this.autoResize=!1,this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this.handleInput=e=>{const a=e.target;this.value=a.value,this.autoResize&&this.adjustHeight(),this._internalError&&(this._internalError="",this._textareaElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const a=e.target;this.value=a.value,a.checkValidity()||(this._internalError=a.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._textareaElement&&(this._textareaElement.value="",this.autoResize&&this.adjustHeight()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))}}get textareaElement(){return this._textareaElement}focus(){this._textareaElement?.focus()}blur(){this._textareaElement?.blur()}select(){this._textareaElement?.select()}setSelectionRange(e,a,o){this._textareaElement?.setSelectionRange(e,a,o)}checkValidity(){return this._textareaElement?.checkValidity()??!0}reportValidity(){return this._textareaElement?.reportValidity()??!0}setCustomValidity(e){this._textareaElement?.setCustomValidity(e),this._internalError=e,this.requestUpdate()}adjustHeight(){!this.autoResize||!this._textareaElement||(this._textareaElement.style.height="auto",this._textareaElement.style.height=`${this._textareaElement.scrollHeight}px`)}updated(e){super.updated(e),e.has("value")&&this.autoResize&&this.adjustHeight()}getResizeClass(){return this.autoResize?"textarea__field--auto-resize":{none:"textarea__field--resize-none",vertical:"textarea__field--resize-vertical",horizontal:"textarea__field--resize-horizontal",both:"textarea__field--resize-both"}[this.resize]}render(){const e=this.error||this._internalError,a=!!this.value&&!this.disabled&&!this.readonly,o=`textarea__field ${this.getResizeClass()}`;return i.html`
2
- <logosphere-formfield
3
- .label=${this.label}
4
- .helper=${this.helper}
5
- .error=${e}
6
- .required=${this.required}
7
- .disabled=${this.disabled}
8
- .readonly=${this.readonly}
9
- .placeholder=${this.placeholder}
10
- .size=${this.size}
11
- .variant=${this.variant}
12
- >
13
- <slot name="prefix" slot="prefix"></slot>
14
- <textarea
15
- class="${o}"
16
- .value=${p.live(this.value)}
17
- placeholder=${this.placeholder||i.nothing}
18
- name=${this.name||i.nothing}
19
- autocomplete=${this.autocomplete||i.nothing}
20
- ?required=${this.required}
21
- ?disabled=${this.disabled}
22
- ?readonly=${this.readonly}
23
- minlength=${this.minlength??i.nothing}
24
- maxlength=${this.maxlength??i.nothing}
25
- rows=${this.rows}
26
- cols=${this.cols??i.nothing}
27
- wrap=${this.wrap}
28
- @input=${this.handleInput}
29
- @change=${this.handleChange}
30
- @keydown=${this.handleKeyDown}
31
- @keyup=${this.handleKeyUp}
32
- ></textarea>
33
- ${a?i.html`
34
- <button
35
- type="button"
36
- slot="clear"
37
- class="textarea__clear-btn"
38
- @click=${this.handleClear}
39
- tabindex="-1"
40
- >
41
- <ui-icon name="uil-times" size="14"></ui-icon>
42
- </button>
43
- `:i.nothing}
44
- <slot name="suffix" slot="suffix"></slot>
45
- </logosphere-formfield>
46
- `}};exports.TextArea.styles=[i.css`${i.unsafeCSS(u)}`];r([t.query("textarea")],exports.TextArea.prototype,"_textareaElement",2);r([t.property({type:String})],exports.TextArea.prototype,"value",2);r([t.property({type:String})],exports.TextArea.prototype,"placeholder",2);r([t.property({type:String})],exports.TextArea.prototype,"name",2);r([t.property({type:String})],exports.TextArea.prototype,"autocomplete",2);r([t.property({type:Number})],exports.TextArea.prototype,"minlength",2);r([t.property({type:Number})],exports.TextArea.prototype,"maxlength",2);r([t.property({type:Number})],exports.TextArea.prototype,"rows",2);r([t.property({type:Number})],exports.TextArea.prototype,"cols",2);r([t.property({type:String})],exports.TextArea.prototype,"wrap",2);r([t.property({type:String})],exports.TextArea.prototype,"resize",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"autoResize",2);r([t.property({type:String})],exports.TextArea.prototype,"size",2);r([t.property({type:String})],exports.TextArea.prototype,"variant",2);r([t.property({type:String})],exports.TextArea.prototype,"label",2);r([t.property({type:String})],exports.TextArea.prototype,"helper",2);r([t.property({type:String})],exports.TextArea.prototype,"error",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"required",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"disabled",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"readonly",2);r([t.state()],exports.TextArea.prototype,"_internalError",2);exports.TextArea=r([t.customElement("logosphere-textarea")],exports.TextArea);
@@ -1,205 +0,0 @@
1
- import { unsafeCSS as d, css as c, LitElement as y, nothing as l, html as u } from "lit";
2
- import { query as m, property as i, state as f, customElement as _ } from "lit/decorators.js";
3
- import { live as v } from "lit/directives/live.js";
4
- import "./formfield-CNh4mBSs.js";
5
- import "./ui-icon-Bys4HYSQ.js";
6
- const x = ".textarea__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:flex-start;align-self:flex-start;margin-top:var(--spacing-1);outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-gray-600)}";
7
- var b = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (e, a, s, n) => {
8
- for (var o = n > 1 ? void 0 : n ? g(a, s) : a, h = e.length - 1, p; h >= 0; h--)
9
- (p = e[h]) && (o = (n ? p(a, s, o) : p(o)) || o);
10
- return n && o && b(a, s, o), o;
11
- };
12
- let t = class extends y {
13
- constructor() {
14
- super(...arguments), this.value = "", this.placeholder = "", this.name = "", this.autocomplete = "", this.rows = 3, this.wrap = "soft", this.resize = "vertical", this.autoResize = !1, this.size = "default", this.variant = "default", this.label = "", this.helper = "", this.error = "", this.required = !1, this.disabled = !1, this.readonly = !1, this._internalError = "", this.handleInput = (e) => {
15
- const a = e.target;
16
- this.value = a.value, this.autoResize && this.adjustHeight(), this._internalError && (this._internalError = "", this._textareaElement.setCustomValidity("")), this.dispatchEvent(new CustomEvent("input", {
17
- bubbles: !0,
18
- composed: !0,
19
- detail: { value: this.value, originalEvent: e }
20
- }));
21
- }, this.handleChange = (e) => {
22
- const a = e.target;
23
- this.value = a.value, a.checkValidity() || (this._internalError = a.validationMessage), this.dispatchEvent(new CustomEvent("change", {
24
- bubbles: !0,
25
- composed: !0,
26
- detail: { value: this.value, originalEvent: e }
27
- }));
28
- }, this.handleKeyDown = (e) => {
29
- this.dispatchEvent(new CustomEvent("keydown", {
30
- bubbles: !0,
31
- composed: !0,
32
- detail: { key: e.key, originalEvent: e }
33
- }));
34
- }, this.handleKeyUp = (e) => {
35
- this.dispatchEvent(new CustomEvent("keyup", {
36
- bubbles: !0,
37
- composed: !0,
38
- detail: { key: e.key, originalEvent: e }
39
- }));
40
- }, this.handleClear = () => {
41
- this.value = "", this._textareaElement && (this._textareaElement.value = "", this.autoResize && this.adjustHeight()), this.dispatchEvent(new CustomEvent("clear", { bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent("input", {
42
- bubbles: !0,
43
- composed: !0,
44
- detail: { value: "", originalEvent: null }
45
- }));
46
- };
47
- }
48
- get textareaElement() {
49
- return this._textareaElement;
50
- }
51
- focus() {
52
- this._textareaElement?.focus();
53
- }
54
- blur() {
55
- this._textareaElement?.blur();
56
- }
57
- select() {
58
- this._textareaElement?.select();
59
- }
60
- setSelectionRange(e, a, s) {
61
- this._textareaElement?.setSelectionRange(e, a, s);
62
- }
63
- checkValidity() {
64
- return this._textareaElement?.checkValidity() ?? !0;
65
- }
66
- reportValidity() {
67
- return this._textareaElement?.reportValidity() ?? !0;
68
- }
69
- setCustomValidity(e) {
70
- this._textareaElement?.setCustomValidity(e), this._internalError = e, this.requestUpdate();
71
- }
72
- adjustHeight() {
73
- !this.autoResize || !this._textareaElement || (this._textareaElement.style.height = "auto", this._textareaElement.style.height = `${this._textareaElement.scrollHeight}px`);
74
- }
75
- updated(e) {
76
- super.updated(e), e.has("value") && this.autoResize && this.adjustHeight();
77
- }
78
- getResizeClass() {
79
- return this.autoResize ? "textarea__field--auto-resize" : {
80
- none: "textarea__field--resize-none",
81
- vertical: "textarea__field--resize-vertical",
82
- horizontal: "textarea__field--resize-horizontal",
83
- both: "textarea__field--resize-both"
84
- }[this.resize];
85
- }
86
- render() {
87
- const e = this.error || this._internalError, a = !!this.value && !this.disabled && !this.readonly, s = `textarea__field ${this.getResizeClass()}`;
88
- return u`
89
- <logosphere-formfield
90
- .label=${this.label}
91
- .helper=${this.helper}
92
- .error=${e}
93
- .required=${this.required}
94
- .disabled=${this.disabled}
95
- .readonly=${this.readonly}
96
- .placeholder=${this.placeholder}
97
- .size=${this.size}
98
- .variant=${this.variant}
99
- >
100
- <slot name="prefix" slot="prefix"></slot>
101
- <textarea
102
- class="${s}"
103
- .value=${v(this.value)}
104
- placeholder=${this.placeholder || l}
105
- name=${this.name || l}
106
- autocomplete=${this.autocomplete || l}
107
- ?required=${this.required}
108
- ?disabled=${this.disabled}
109
- ?readonly=${this.readonly}
110
- minlength=${this.minlength ?? l}
111
- maxlength=${this.maxlength ?? l}
112
- rows=${this.rows}
113
- cols=${this.cols ?? l}
114
- wrap=${this.wrap}
115
- @input=${this.handleInput}
116
- @change=${this.handleChange}
117
- @keydown=${this.handleKeyDown}
118
- @keyup=${this.handleKeyUp}
119
- ></textarea>
120
- ${a ? u`
121
- <button
122
- type="button"
123
- slot="clear"
124
- class="textarea__clear-btn"
125
- @click=${this.handleClear}
126
- tabindex="-1"
127
- >
128
- <ui-icon name="uil-times" size="14"></ui-icon>
129
- </button>
130
- ` : l}
131
- <slot name="suffix" slot="suffix"></slot>
132
- </logosphere-formfield>
133
- `;
134
- }
135
- };
136
- t.styles = [c`${d(x)}`];
137
- r([
138
- m("textarea")
139
- ], t.prototype, "_textareaElement", 2);
140
- r([
141
- i({ type: String })
142
- ], t.prototype, "value", 2);
143
- r([
144
- i({ type: String })
145
- ], t.prototype, "placeholder", 2);
146
- r([
147
- i({ type: String })
148
- ], t.prototype, "name", 2);
149
- r([
150
- i({ type: String })
151
- ], t.prototype, "autocomplete", 2);
152
- r([
153
- i({ type: Number })
154
- ], t.prototype, "minlength", 2);
155
- r([
156
- i({ type: Number })
157
- ], t.prototype, "maxlength", 2);
158
- r([
159
- i({ type: Number })
160
- ], t.prototype, "rows", 2);
161
- r([
162
- i({ type: Number })
163
- ], t.prototype, "cols", 2);
164
- r([
165
- i({ type: String })
166
- ], t.prototype, "wrap", 2);
167
- r([
168
- i({ type: String })
169
- ], t.prototype, "resize", 2);
170
- r([
171
- i({ type: Boolean })
172
- ], t.prototype, "autoResize", 2);
173
- r([
174
- i({ type: String })
175
- ], t.prototype, "size", 2);
176
- r([
177
- i({ type: String })
178
- ], t.prototype, "variant", 2);
179
- r([
180
- i({ type: String })
181
- ], t.prototype, "label", 2);
182
- r([
183
- i({ type: String })
184
- ], t.prototype, "helper", 2);
185
- r([
186
- i({ type: String })
187
- ], t.prototype, "error", 2);
188
- r([
189
- i({ type: Boolean })
190
- ], t.prototype, "required", 2);
191
- r([
192
- i({ type: Boolean })
193
- ], t.prototype, "disabled", 2);
194
- r([
195
- i({ type: Boolean })
196
- ], t.prototype, "readonly", 2);
197
- r([
198
- f()
199
- ], t.prototype, "_internalError", 2);
200
- t = r([
201
- _("logosphere-textarea")
202
- ], t);
203
- export {
204
- t as T
205
- };
@@ -1,47 +0,0 @@
1
- "use strict";const r=require("lit"),s=require("lit/decorators.js"),d=require("lit/directives/unsafe-html.js");require("./ui-icon-DWh1MhBa.cjs");const h=".tree{width:100%;font-family:var(--font-family-base)}.tree__list,.tree__children{list-style:none;margin:0;padding:0}.tree__item{margin:0;padding:0}.tree__row{display:flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-2) var(--spacing-3);padding-left:calc(var(--spacing-3) + (var(--tree-level, 0) * 14px));border-radius:var(--radius-sm);color:var(--color-body-text);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.tree--icons .tree__row{justify-content:center;padding:0;width:44px;height:44px;min-height:44px;margin:0 auto}.tree__row:hover{background-color:var(--color-tertiary-bg)}.tree__row:focus-visible{outline:2px solid var(--color-secondary);outline-offset:1px}.tree__row--disabled{opacity:.5;cursor:not-allowed}.tree__row--active .tree__label,.tree__row--active .tree__icon{color:var(--color-primary)}.tree:not(.tree--icons) .tree__row--active{background-color:var(--color-tertiary-bg)}.tree__icon{width:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;color:inherit}.tree--icons .tree__icon{width:20px;min-width:20px;height:20px}.tree--icons .tree__row--active{background-color:var(--color-primary)}.tree--icons .tree__row--active .tree__icon{color:#fff}.tree--icons .tree__row--active:hover{background-color:var(--color-primary-hover)}.tree__chevron-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;flex-shrink:0}.tree__chevron-btn--right{margin-left:auto}.tree__chevron{transform:rotate(-90deg);transition:transform var(--transition-speed-fast) var(--transition-timing)}.tree__chevron--open{transform:rotate(0)}.tree__chevron-spacer{width:20px;height:20px;flex-shrink:0}.tree__label{display:inline-flex;align-items:center;font-size:var(--font-size-sm);color:inherit}";var p=Object.defineProperty,_=Object.getOwnPropertyDescriptor,a=(c,e,t,n)=>{for(var i=n>1?void 0:n?_(e,t):e,l=c.length-1,o;l>=0;l--)(o=c[l])&&(i=(n?o(e,t,i):o(i))||i);return n&&i&&p(e,t,i),i};exports.TreeMenu=class extends r.LitElement{constructor(){super(...arguments),this.items=[],this.expandedIds=[],this.expandOnLabelClick=!0,this.chevronPosition="left",this.showLabels=!0,this.iconSize=16,this._expandedSet=new Set}willUpdate(e){e.has("expandedIds")&&(this._expandedSet=new Set(this.expandedIds??[]))}_isExpanded(e){return this._expandedSet.has(e)}_emitToggle(e,t){this.dispatchEvent(new CustomEvent("toggle",{detail:{item:e,expanded:t},bubbles:!0,composed:!0}))}_emitItemClick(e){this.dispatchEvent(new CustomEvent("item-click",{detail:{item:e},bubbles:!0,composed:!0}))}_emitNodeClick(e,t){this.dispatchEvent(new CustomEvent("node-click",{detail:{item:e,hasChildren:t},bubbles:!0,composed:!0}))}_setExpanded(e,t){t?this._expandedSet.add(e.id):this._expandedSet.delete(e.id),this.expandedIds=Array.from(this._expandedSet),this._emitToggle(e,t)}_toggle(e,t){t.stopPropagation(),!(e.disabled||!e.children?.length)&&this._setExpanded(e,!this._isExpanded(e.id))}_handleItemClick(e,t){if(t.stopPropagation(),e.disabled)return;const n=!!e.children?.length;if(this._emitNodeClick(e,n),n&&this.expandOnLabelClick){this._setExpanded(e,!this._isExpanded(e.id));return}n||(e.onClick?.(e),this._emitItemClick(e))}_handleRowKeydown(e,t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),this._handleItemClick(e,t))}_renderIcon(e){return e.iconName?r.html`
2
- <span class="tree__icon">
3
- <ui-icon name=${e.iconName} .size=${this.iconSize}></ui-icon>
4
- </span>
5
- `:e.iconHtml?r.html`<span class="tree__icon">${d.unsafeHTML(e.iconHtml)}</span>`:r.nothing}_renderChevron(e,t){const n=!!e.children?.length;return this.showLabels?n?r.html`
6
- <button
7
- type="button"
8
- class="tree__chevron-btn ${this.chevronPosition==="right"?"tree__chevron-btn--right":""}"
9
- aria-label=${t?"Collapse":"Expand"}
10
- @click=${i=>this._toggle(e,i)}
11
- >
12
- <ui-icon
13
- class="tree__chevron ${t?"tree__chevron--open":""}"
14
- name="uil-angle-down"
15
- size="20"
16
- ></ui-icon>
17
- </button>
18
- `:r.html`<span class="tree__chevron-spacer"></span>`:r.nothing}_renderNode(e,t){const n=!!e.children?.length,i=n?this._isExpanded(e.id):!1,l=this.showLabels?`--tree-level:${t};`:"--tree-level:0;";return r.html`
19
- <li class="tree__item">
20
- <div
21
- class="tree__row ${e.disabled?"tree__row--disabled":""} ${e.active?"tree__row--active":""}"
22
- style=${l}
23
- role="button"
24
- tabindex=${e.disabled?-1:0}
25
- @click=${o=>this._handleItemClick(e,o)}
26
- @keydown=${o=>this._handleRowKeydown(e,o)}
27
- title=${this.showLabels?"":e.label}
28
- >
29
- ${this.chevronPosition==="left"?this._renderChevron(e,i):r.nothing}
30
- ${this._renderIcon(e)}
31
- ${this.showLabels?r.html`<span class="tree__label">${e.label}</span>`:r.nothing}
32
- ${this.chevronPosition==="right"?this._renderChevron(e,i):r.nothing}
33
- </div>
34
-
35
- ${this.showLabels&&n&&i?r.html`
36
- <ul class="tree__children">
37
- ${e.children.map(o=>this._renderNode(o,t+1))}
38
- </ul>
39
- `:r.nothing}
40
- </li>
41
- `}render(){return r.html`
42
- <nav class="tree ${this.showLabels?"":"tree--icons"}" aria-label="Tree Menu">
43
- <ul class="tree__list">
44
- ${this.items.map(e=>this._renderNode(e,0))}
45
- </ul>
46
- </nav>
47
- `}};exports.TreeMenu.styles=[r.css`${r.unsafeCSS(h)}`];a([s.property({attribute:!1})],exports.TreeMenu.prototype,"items",2);a([s.property({type:Array})],exports.TreeMenu.prototype,"expandedIds",2);a([s.property({type:Boolean})],exports.TreeMenu.prototype,"expandOnLabelClick",2);a([s.property({type:String})],exports.TreeMenu.prototype,"chevronPosition",2);a([s.property({type:Boolean})],exports.TreeMenu.prototype,"showLabels",2);a([s.property({type:Number})],exports.TreeMenu.prototype,"iconSize",2);a([s.state()],exports.TreeMenu.prototype,"_expandedSet",2);exports.TreeMenu=a([s.customElement("logosphere-tree-menu")],exports.TreeMenu);
@@ -1,57 +0,0 @@
1
- import { LitElement as l, css as e, html as w } from "lit";
2
- import { unsafeHTML as o } from "lit/directives/unsafe-html.js";
3
- const g = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>', h = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>', i = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>', n = '<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>', r = '<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>', v = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>', p = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>', A = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>', m = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>', c = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>', H = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>', Z = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>', x = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>', V = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"/></svg>', M = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"/></svg>', u = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,11H9.41l2.3-2.29a1,1,0,1,0-1.42-1.42l-4,4a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l4,4a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H21a1,1,0,0,0,0-2ZM3,3A1,1,0,0,0,2,4V20a1,1,0,0,0,2,0V4A1,1,0,0,0,3,3Z"/></svg>', d = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.71,11.29l-4-4a1,1,0,1,0-1.42,1.42L14.59,11H3a1,1,0,0,0,0,2H14.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76A1,1,0,0,0,17.71,11.29ZM21,4a1,1,0,0,0-1,1V19a1,1,0,0,0,2,0V5A1,1,0,0,0,21,4Z"/></svg>', L = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z"/></svg>', B = {
4
- "uil-times": g,
5
- "uil-angle-down": h,
6
- "uil-calendar": i,
7
- "uil-arrow-left": n,
8
- "uil-arrow-right": r,
9
- "uil-trash": v,
10
- "uil-compress-alt": p,
11
- "uil-expand-alt": A,
12
- "uil-copy": m,
13
- "uil-thumbs-up": c,
14
- "uil-thumbs-down": H,
15
- "uil-arrow-circle-right": Z,
16
- "uil-eye": x,
17
- "uil-eye-slash": V,
18
- "uil-search": M,
19
- "uil-left-arrow-to-left": u,
20
- "uil-right-arrow-to-right": d,
21
- "uil-pin": L
22
- }, a = class a extends l {
23
- constructor() {
24
- super(...arguments), this.name = "", this.size = 20;
25
- }
26
- render() {
27
- const t = B[this.name];
28
- return t ? w`
29
- <span
30
- style="font-size: ${this.size}px;"
31
- aria-hidden="true"
32
- >
33
- ${o(t)}
34
- </span>
35
- ` : (console.warn(`Icon "${this.name}" not found.`), w``);
36
- }
37
- };
38
- a.properties = {
39
- name: { type: String },
40
- size: { type: Number }
41
- }, a.styles = e`
42
- :host {
43
- display: inline-flex;
44
- align-items: center;
45
- justify-content: center;
46
- line-height: 0;
47
- color: inherit;
48
- }
49
-
50
- svg {
51
- width: 1em;
52
- height: 1em;
53
- fill: currentColor;
54
- }
55
- `;
56
- let s = a;
57
- customElements.define("ui-icon", s);
@@ -1,22 +0,0 @@
1
- "use strict";const a=require("lit"),e=require("lit/directives/unsafe-html.js"),l='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>',g='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>',h='<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>',i='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>',r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>',v='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>',p='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>',A='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>',c='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>',m='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>',H='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>',Z='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"/></svg>',x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"/></svg>',u='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,11H9.41l2.3-2.29a1,1,0,1,0-1.42-1.42l-4,4a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l4,4a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H21a1,1,0,0,0,0-2ZM3,3A1,1,0,0,0,2,4V20a1,1,0,0,0,2,0V4A1,1,0,0,0,3,3Z"/></svg>',V='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.71,11.29l-4-4a1,1,0,1,0-1.42,1.42L14.59,11H3a1,1,0,0,0,0,2H14.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76A1,1,0,0,0,17.71,11.29ZM21,4a1,1,0,0,0-1,1V19a1,1,0,0,0,2,0V5A1,1,0,0,0,21,4Z"/></svg>',M='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z"/></svg>',d={"uil-times":l,"uil-angle-down":o,"uil-calendar":g,"uil-arrow-left":h,"uil-arrow-right":n,"uil-trash":i,"uil-compress-alt":r,"uil-expand-alt":v,"uil-copy":p,"uil-thumbs-up":A,"uil-thumbs-down":c,"uil-arrow-circle-right":m,"uil-eye":H,"uil-eye-slash":Z,"uil-search":x,"uil-left-arrow-to-left":u,"uil-right-arrow-to-right":V,"uil-pin":M},s=class s extends a.LitElement{constructor(){super(...arguments),this.name="",this.size=20}render(){const w=d[this.name];return w?a.html`
2
- <span
3
- style="font-size: ${this.size}px;"
4
- aria-hidden="true"
5
- >
6
- ${e.unsafeHTML(w)}
7
- </span>
8
- `:(console.warn(`Icon "${this.name}" not found.`),a.html``)}};s.properties={name:{type:String},size:{type:Number}},s.styles=a.css`
9
- :host {
10
- display: inline-flex;
11
- align-items: center;
12
- justify-content: center;
13
- line-height: 0;
14
- color: inherit;
15
- }
16
-
17
- svg {
18
- width: 1em;
19
- height: 1em;
20
- fill: currentColor;
21
- }
22
- `;let t=s;customElements.define("ui-icon",t);