@ucalgary-design-system/icon 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/index.js +238 -762
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ucalgary-design-system/icon
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fe87dab: Updated externalized dependencies
|
|
8
|
+
- Updated dependencies [fe87dab]
|
|
9
|
+
- @ucalgary-design-system/core@1.0.4
|
|
10
|
+
- @ucalgary-design-system/tokens@1.0.4
|
|
11
|
+
|
|
12
|
+
## 1.0.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 386b04a: Added export of type as array to icon component.
|
|
17
|
+
- c3fdd31: Updated dependencies and modified build
|
|
18
|
+
- Updated dependencies [c3fdd31]
|
|
19
|
+
- @ucalgary-design-system/core@1.0.3
|
|
20
|
+
|
|
3
21
|
## 1.0.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/index.js
CHANGED
|
@@ -1,781 +1,257 @@
|
|
|
1
|
-
import { unsafeCSS as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
let n = !1;
|
|
197
|
-
if (o === void 0) e = w(this, e, i, 0), n = !P(e) || e !== this._$AH && e !== A, n && (this._$AH = e);
|
|
198
|
-
else {
|
|
199
|
-
const l = e;
|
|
200
|
-
let h, d;
|
|
201
|
-
for (e = o[0], h = 0; h < o.length - 1; h++) d = w(this, l[s + h], i, h), d === A && (d = this._$AH[h]), n || (n = !P(d) || d !== this._$AH[h]), d === c ? e = c : e !== c && (e += (d ?? "") + o[h + 1]), this._$AH[h] = d;
|
|
202
|
-
}
|
|
203
|
-
n && !r && this.j(e);
|
|
204
|
-
}
|
|
205
|
-
j(e) {
|
|
206
|
-
e === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
class gt extends L {
|
|
210
|
-
constructor() {
|
|
211
|
-
super(...arguments), this.type = 3;
|
|
212
|
-
}
|
|
213
|
-
j(e) {
|
|
214
|
-
this.element[this.name] = e === c ? void 0 : e;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
class yt extends L {
|
|
218
|
-
constructor() {
|
|
219
|
-
super(...arguments), this.type = 4;
|
|
220
|
-
}
|
|
221
|
-
j(e) {
|
|
222
|
-
this.element.toggleAttribute(this.name, !!e && e !== c);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
class vt extends L {
|
|
226
|
-
constructor(e, i, s, r, o) {
|
|
227
|
-
super(e, i, s, r, o), this.type = 5;
|
|
228
|
-
}
|
|
229
|
-
_$AI(e, i = this) {
|
|
230
|
-
if ((e = w(this, e, i, 0) ?? c) === A) return;
|
|
231
|
-
const s = this._$AH, r = e === c && s !== c || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, o = e !== c && (s === c || r);
|
|
232
|
-
r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
233
|
-
}
|
|
234
|
-
handleEvent(e) {
|
|
235
|
-
var i;
|
|
236
|
-
typeof this._$AH == "function" ? this._$AH.call(((i = this.options) == null ? void 0 : i.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
class At {
|
|
240
|
-
constructor(e, i, s) {
|
|
241
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
242
|
-
}
|
|
243
|
-
get _$AU() {
|
|
244
|
-
return this._$AM._$AU;
|
|
245
|
-
}
|
|
246
|
-
_$AI(e) {
|
|
247
|
-
w(this, e);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
const D = x.litHtmlPolyfillSupport;
|
|
251
|
-
D == null || D(T, z), (x.litHtmlVersions ?? (x.litHtmlVersions = [])).push("3.2.1");
|
|
252
|
-
/**
|
|
253
|
-
* @license
|
|
254
|
-
* Copyright 2017 Google LLC
|
|
255
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
256
|
-
*/
|
|
257
|
-
let F = class extends nt {
|
|
258
|
-
constructor(e) {
|
|
259
|
-
if (super(e), this.it = c, e.type !== rt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
260
|
-
}
|
|
261
|
-
render(e) {
|
|
262
|
-
if (e === c || e == null) return this._t = void 0, this.it = e;
|
|
263
|
-
if (e === A) return e;
|
|
264
|
-
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
265
|
-
if (e === this.it) return this._t;
|
|
266
|
-
this.it = e;
|
|
267
|
-
const i = [e];
|
|
268
|
-
return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
F.directiveName = "unsafeHTML", F.resultType = 1;
|
|
272
|
-
/**
|
|
273
|
-
* @license
|
|
274
|
-
* Copyright 2017 Google LLC
|
|
275
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
276
|
-
*/
|
|
277
|
-
let q = class extends F {
|
|
278
|
-
};
|
|
279
|
-
q.directiveName = "unsafeSVG", q.resultType = 2;
|
|
280
|
-
const bt = ot(q);
|
|
281
|
-
/**
|
|
282
|
-
* @license
|
|
283
|
-
* Copyright 2017 Google LLC
|
|
284
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
285
|
-
*/
|
|
286
|
-
const wt = (t) => (e, i) => {
|
|
287
|
-
i !== void 0 ? i.addInitializer(() => {
|
|
288
|
-
customElements.define(t, e);
|
|
289
|
-
}) : customElements.define(t, e);
|
|
290
|
-
};
|
|
291
|
-
/**
|
|
292
|
-
* @license
|
|
293
|
-
* Copyright 2019 Google LLC
|
|
294
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
295
|
-
*/
|
|
296
|
-
const H = globalThis, V = H.ShadowRoot && (H.ShadyCSS === void 0 || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dt = Symbol(), Y = /* @__PURE__ */ new WeakMap();
|
|
297
|
-
let St = class {
|
|
298
|
-
constructor(e, i, s) {
|
|
299
|
-
if (this._$cssResult$ = !0, s !== dt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
300
|
-
this.cssText = e, this.t = i;
|
|
301
|
-
}
|
|
302
|
-
get styleSheet() {
|
|
303
|
-
let e = this.o;
|
|
304
|
-
const i = this.t;
|
|
305
|
-
if (V && e === void 0) {
|
|
306
|
-
const s = i !== void 0 && i.length === 1;
|
|
307
|
-
s && (e = Y.get(i)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Y.set(i, e));
|
|
308
|
-
}
|
|
309
|
-
return e;
|
|
310
|
-
}
|
|
311
|
-
toString() {
|
|
312
|
-
return this.cssText;
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
const Et = (t) => new St(typeof t == "string" ? t : t + "", void 0, dt), Ct = (t, e) => {
|
|
316
|
-
if (V) t.adoptedStyleSheets = e.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
|
|
317
|
-
else for (const i of e) {
|
|
318
|
-
const s = document.createElement("style"), r = H.litNonce;
|
|
319
|
-
r !== void 0 && s.setAttribute("nonce", r), s.textContent = i.cssText, t.appendChild(s);
|
|
320
|
-
}
|
|
321
|
-
}, tt = V ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
322
|
-
let i = "";
|
|
323
|
-
for (const s of e.cssRules) i += s.cssText;
|
|
324
|
-
return Et(i);
|
|
325
|
-
})(t) : t;
|
|
326
|
-
/**
|
|
327
|
-
* @license
|
|
328
|
-
* Copyright 2017 Google LLC
|
|
329
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
330
|
-
*/
|
|
331
|
-
const { is: xt, defineProperty: Ut, getOwnPropertyDescriptor: Pt, getOwnPropertyNames: Tt, getOwnPropertySymbols: Ot, getPrototypeOf: Mt } = Object, _ = globalThis, et = _.trustedTypes, Ht = et ? et.emptyScript : "", j = _.reactiveElementPolyfillSupport, U = (t, e) => t, R = { toAttribute(t, e) {
|
|
332
|
-
switch (e) {
|
|
333
|
-
case Boolean:
|
|
334
|
-
t = t ? Ht : null;
|
|
335
|
-
break;
|
|
336
|
-
case Object:
|
|
337
|
-
case Array:
|
|
338
|
-
t = t == null ? t : JSON.stringify(t);
|
|
339
|
-
}
|
|
340
|
-
return t;
|
|
341
|
-
}, fromAttribute(t, e) {
|
|
342
|
-
let i = t;
|
|
343
|
-
switch (e) {
|
|
344
|
-
case Boolean:
|
|
345
|
-
i = t !== null;
|
|
346
|
-
break;
|
|
347
|
-
case Number:
|
|
348
|
-
i = t === null ? null : Number(t);
|
|
349
|
-
break;
|
|
350
|
-
case Object:
|
|
351
|
-
case Array:
|
|
352
|
-
try {
|
|
353
|
-
i = JSON.parse(t);
|
|
354
|
-
} catch {
|
|
355
|
-
i = null;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return i;
|
|
359
|
-
} }, W = (t, e) => !xt(t, e), it = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: W };
|
|
360
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
361
|
-
class C extends HTMLElement {
|
|
362
|
-
static addInitializer(e) {
|
|
363
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(e);
|
|
364
|
-
}
|
|
365
|
-
static get observedAttributes() {
|
|
366
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
367
|
-
}
|
|
368
|
-
static createProperty(e, i = it) {
|
|
369
|
-
if (i.state && (i.attribute = !1), this._$Ei(), this.elementProperties.set(e, i), !i.noAccessor) {
|
|
370
|
-
const s = Symbol(), r = this.getPropertyDescriptor(e, s, i);
|
|
371
|
-
r !== void 0 && Ut(this.prototype, e, r);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
static getPropertyDescriptor(e, i, s) {
|
|
375
|
-
const { get: r, set: o } = Pt(this.prototype, e) ?? { get() {
|
|
376
|
-
return this[i];
|
|
377
|
-
}, set(n) {
|
|
378
|
-
this[i] = n;
|
|
379
|
-
} };
|
|
380
|
-
return { get() {
|
|
381
|
-
return r == null ? void 0 : r.call(this);
|
|
382
|
-
}, set(n) {
|
|
383
|
-
const l = r == null ? void 0 : r.call(this);
|
|
384
|
-
o.call(this, n), this.requestUpdate(e, l, s);
|
|
385
|
-
}, configurable: !0, enumerable: !0 };
|
|
386
|
-
}
|
|
387
|
-
static getPropertyOptions(e) {
|
|
388
|
-
return this.elementProperties.get(e) ?? it;
|
|
389
|
-
}
|
|
390
|
-
static _$Ei() {
|
|
391
|
-
if (this.hasOwnProperty(U("elementProperties"))) return;
|
|
392
|
-
const e = Mt(this);
|
|
393
|
-
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
394
|
-
}
|
|
395
|
-
static finalize() {
|
|
396
|
-
if (this.hasOwnProperty(U("finalized"))) return;
|
|
397
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
|
|
398
|
-
const i = this.properties, s = [...Tt(i), ...Ot(i)];
|
|
399
|
-
for (const r of s) this.createProperty(r, i[r]);
|
|
400
|
-
}
|
|
401
|
-
const e = this[Symbol.metadata];
|
|
402
|
-
if (e !== null) {
|
|
403
|
-
const i = litPropertyMetadata.get(e);
|
|
404
|
-
if (i !== void 0) for (const [s, r] of i) this.elementProperties.set(s, r);
|
|
405
|
-
}
|
|
406
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
407
|
-
for (const [i, s] of this.elementProperties) {
|
|
408
|
-
const r = this._$Eu(i, s);
|
|
409
|
-
r !== void 0 && this._$Eh.set(r, i);
|
|
410
|
-
}
|
|
411
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
412
|
-
}
|
|
413
|
-
static finalizeStyles(e) {
|
|
414
|
-
const i = [];
|
|
415
|
-
if (Array.isArray(e)) {
|
|
416
|
-
const s = new Set(e.flat(1 / 0).reverse());
|
|
417
|
-
for (const r of s) i.unshift(tt(r));
|
|
418
|
-
} else e !== void 0 && i.push(tt(e));
|
|
419
|
-
return i;
|
|
420
|
-
}
|
|
421
|
-
static _$Eu(e, i) {
|
|
422
|
-
const s = i.attribute;
|
|
423
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
424
|
-
}
|
|
425
|
-
constructor() {
|
|
426
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
427
|
-
}
|
|
428
|
-
_$Ev() {
|
|
429
|
-
var e;
|
|
430
|
-
this._$ES = new Promise((i) => this.enableUpdating = i), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((i) => i(this));
|
|
431
|
-
}
|
|
432
|
-
addController(e) {
|
|
433
|
-
var i;
|
|
434
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((i = e.hostConnected) == null || i.call(e));
|
|
435
|
-
}
|
|
436
|
-
removeController(e) {
|
|
437
|
-
var i;
|
|
438
|
-
(i = this._$EO) == null || i.delete(e);
|
|
439
|
-
}
|
|
440
|
-
_$E_() {
|
|
441
|
-
const e = /* @__PURE__ */ new Map(), i = this.constructor.elementProperties;
|
|
442
|
-
for (const s of i.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
|
|
443
|
-
e.size > 0 && (this._$Ep = e);
|
|
444
|
-
}
|
|
445
|
-
createRenderRoot() {
|
|
446
|
-
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
447
|
-
return Ct(e, this.constructor.elementStyles), e;
|
|
448
|
-
}
|
|
449
|
-
connectedCallback() {
|
|
450
|
-
var e;
|
|
451
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((i) => {
|
|
452
|
-
var s;
|
|
453
|
-
return (s = i.hostConnected) == null ? void 0 : s.call(i);
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
enableUpdating(e) {
|
|
457
|
-
}
|
|
458
|
-
disconnectedCallback() {
|
|
459
|
-
var e;
|
|
460
|
-
(e = this._$EO) == null || e.forEach((i) => {
|
|
461
|
-
var s;
|
|
462
|
-
return (s = i.hostDisconnected) == null ? void 0 : s.call(i);
|
|
463
|
-
});
|
|
464
|
-
}
|
|
465
|
-
attributeChangedCallback(e, i, s) {
|
|
466
|
-
this._$AK(e, s);
|
|
467
|
-
}
|
|
468
|
-
_$EC(e, i) {
|
|
469
|
-
var o;
|
|
470
|
-
const s = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, s);
|
|
471
|
-
if (r !== void 0 && s.reflect === !0) {
|
|
472
|
-
const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : R).toAttribute(i, s.type);
|
|
473
|
-
this._$Em = e, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
_$AK(e, i) {
|
|
477
|
-
var o;
|
|
478
|
-
const s = this.constructor, r = s._$Eh.get(e);
|
|
479
|
-
if (r !== void 0 && this._$Em !== r) {
|
|
480
|
-
const n = s.getPropertyOptions(r), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : R;
|
|
481
|
-
this._$Em = r, this[r] = l.fromAttribute(i, n.type), this._$Em = null;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
requestUpdate(e, i, s) {
|
|
485
|
-
if (e !== void 0) {
|
|
486
|
-
if (s ?? (s = this.constructor.getPropertyOptions(e)), !(s.hasChanged ?? W)(this[e], i)) return;
|
|
487
|
-
this.P(e, i, s);
|
|
488
|
-
}
|
|
489
|
-
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
490
|
-
}
|
|
491
|
-
P(e, i, s) {
|
|
492
|
-
this._$AL.has(e) || this._$AL.set(e, i), s.reflect === !0 && this._$Em !== e && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(e);
|
|
493
|
-
}
|
|
494
|
-
async _$ET() {
|
|
495
|
-
this.isUpdatePending = !0;
|
|
496
|
-
try {
|
|
497
|
-
await this._$ES;
|
|
498
|
-
} catch (i) {
|
|
499
|
-
Promise.reject(i);
|
|
500
|
-
}
|
|
501
|
-
const e = this.scheduleUpdate();
|
|
502
|
-
return e != null && await e, !this.isUpdatePending;
|
|
503
|
-
}
|
|
504
|
-
scheduleUpdate() {
|
|
505
|
-
return this.performUpdate();
|
|
506
|
-
}
|
|
507
|
-
performUpdate() {
|
|
508
|
-
var s;
|
|
509
|
-
if (!this.isUpdatePending) return;
|
|
510
|
-
if (!this.hasUpdated) {
|
|
511
|
-
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
512
|
-
for (const [o, n] of this._$Ep) this[o] = n;
|
|
513
|
-
this._$Ep = void 0;
|
|
514
|
-
}
|
|
515
|
-
const r = this.constructor.elementProperties;
|
|
516
|
-
if (r.size > 0) for (const [o, n] of r) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
|
517
|
-
}
|
|
518
|
-
let e = !1;
|
|
519
|
-
const i = this._$AL;
|
|
520
|
-
try {
|
|
521
|
-
e = this.shouldUpdate(i), e ? (this.willUpdate(i), (s = this._$EO) == null || s.forEach((r) => {
|
|
522
|
-
var o;
|
|
523
|
-
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
|
524
|
-
}), this.update(i)) : this._$EU();
|
|
525
|
-
} catch (r) {
|
|
526
|
-
throw e = !1, this._$EU(), r;
|
|
527
|
-
}
|
|
528
|
-
e && this._$AE(i);
|
|
529
|
-
}
|
|
530
|
-
willUpdate(e) {
|
|
531
|
-
}
|
|
532
|
-
_$AE(e) {
|
|
533
|
-
var i;
|
|
534
|
-
(i = this._$EO) == null || i.forEach((s) => {
|
|
535
|
-
var r;
|
|
536
|
-
return (r = s.hostUpdated) == null ? void 0 : r.call(s);
|
|
537
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
|
|
538
|
-
}
|
|
539
|
-
_$EU() {
|
|
540
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
541
|
-
}
|
|
542
|
-
get updateComplete() {
|
|
543
|
-
return this.getUpdateComplete();
|
|
544
|
-
}
|
|
545
|
-
getUpdateComplete() {
|
|
546
|
-
return this._$ES;
|
|
547
|
-
}
|
|
548
|
-
shouldUpdate(e) {
|
|
549
|
-
return !0;
|
|
550
|
-
}
|
|
551
|
-
update(e) {
|
|
552
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((i) => this._$EC(i, this[i]))), this._$EU();
|
|
553
|
-
}
|
|
554
|
-
updated(e) {
|
|
555
|
-
}
|
|
556
|
-
firstUpdated(e) {
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[U("elementProperties")] = /* @__PURE__ */ new Map(), C[U("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: C }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
|
|
560
|
-
/**
|
|
561
|
-
* @license
|
|
562
|
-
* Copyright 2017 Google LLC
|
|
563
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
564
|
-
*/
|
|
565
|
-
const Nt = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: W }, kt = (t = Nt, e, i) => {
|
|
566
|
-
const { kind: s, metadata: r } = i;
|
|
567
|
-
let o = globalThis.litPropertyMetadata.get(r);
|
|
568
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(i.name, t), s === "accessor") {
|
|
569
|
-
const { name: n } = i;
|
|
570
|
-
return { set(l) {
|
|
571
|
-
const h = e.get.call(this);
|
|
572
|
-
e.set.call(this, l), this.requestUpdate(n, h, t);
|
|
573
|
-
}, init(l) {
|
|
574
|
-
return l !== void 0 && this.P(n, void 0, t), l;
|
|
575
|
-
} };
|
|
576
|
-
}
|
|
577
|
-
if (s === "setter") {
|
|
578
|
-
const { name: n } = i;
|
|
579
|
-
return function(l) {
|
|
580
|
-
const h = this[n];
|
|
581
|
-
e.call(this, l), this.requestUpdate(n, h, t);
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
throw Error("Unsupported decorator location: " + s);
|
|
585
|
-
};
|
|
586
|
-
function S(t) {
|
|
587
|
-
return (e, i) => typeof i == "object" ? kt(t, e, i) : ((s, r, o) => {
|
|
588
|
-
const n = r.hasOwnProperty(o);
|
|
589
|
-
return r.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
|
590
|
-
})(t, e, i);
|
|
591
|
-
}
|
|
592
|
-
/**
|
|
593
|
-
* @license
|
|
594
|
-
* Copyright 2017 Google LLC
|
|
595
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
596
|
-
*/
|
|
597
|
-
function Rt(t) {
|
|
598
|
-
return S({ ...t, state: !0, attribute: !1 });
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* @license
|
|
602
|
-
* Copyright 2018 Google LLC
|
|
603
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
604
|
-
*/
|
|
605
|
-
const zt = ot(class extends nt {
|
|
606
|
-
constructor(t) {
|
|
607
|
-
var e;
|
|
608
|
-
if (super(t), t.type !== rt.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
609
|
-
}
|
|
610
|
-
render(t) {
|
|
611
|
-
return " " + Object.keys(t).filter((e) => t[e]).join(" ") + " ";
|
|
612
|
-
}
|
|
613
|
-
update(t, [e]) {
|
|
614
|
-
var s, r;
|
|
615
|
-
if (this.st === void 0) {
|
|
616
|
-
this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
|
617
|
-
for (const o in e) e[o] && !((s = this.nt) != null && s.has(o)) && this.st.add(o);
|
|
618
|
-
return this.render(e);
|
|
619
|
-
}
|
|
620
|
-
const i = t.element.classList;
|
|
621
|
-
for (const o of this.st) o in e || (i.remove(o), this.st.delete(o));
|
|
622
|
-
for (const o in e) {
|
|
623
|
-
const n = !!e[o];
|
|
624
|
-
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
|
|
625
|
-
}
|
|
626
|
-
return A;
|
|
627
|
-
}
|
|
628
|
-
}), M = {
|
|
629
|
-
arrowDown: () => import("./ArrowDown-Cl_pe6x-.js").then((t) => t.default),
|
|
630
|
-
arrowLeft: () => import("./ArrowLeft-D_pb7-h_.js").then((t) => t.default),
|
|
631
|
-
arrowRight: () => import("./ArrowRight-0rOUWttV.js").then((t) => t.default),
|
|
632
|
-
arrowUp: () => import("./ArrowUp-Kh8KmpaI.js").then((t) => t.default),
|
|
633
|
-
arrowUpDown: () => import("./ArrowUpDown-SqD4IUq6.js").then((t) => t.default),
|
|
634
|
-
attachment: () => import("./Attachment-DMa7gLVG.js").then((t) => t.default),
|
|
635
|
-
camera: () => import("./Camera-BisfqTvi.js").then((t) => t.default),
|
|
636
|
-
chat: () => import("./Chat-DQxghIy_.js").then((t) => t.default),
|
|
637
|
-
checkmark: () => import("./Checkmark-BKXPef9h.js").then((t) => t.default),
|
|
638
|
-
checkmarkCircle: () => import("./CheckmarkCircle-ChmWwela.js").then((t) => t.default),
|
|
639
|
-
checkmarkCircleFilled: () => import("./CheckmarkCircleFilled-Cqky64AP.js").then((t) => t.default),
|
|
640
|
-
chevronDown: () => import("./ChevronDown-CkkPhuqR.js").then((t) => t.default),
|
|
641
|
-
chevronDownCircle: () => import("./ChevronDownCircle-Bzjl-oG1.js").then((t) => t.default),
|
|
642
|
-
chevronDownCircleFilled: () => import("./ChevronDownCircleFilled-BZZIQ64Y.js").then((t) => t.default),
|
|
643
|
-
chevronLeft: () => import("./ChevronLeft-wuwMWp0P.js").then((t) => t.default),
|
|
644
|
-
chevronLeftCircle: () => import("./ChevronLeftCircle-C5GskojN.js").then((t) => t.default),
|
|
645
|
-
chevronLeftCircleFilled: () => import("./ChevronLeftCircleFilled-Fx_qs9nb.js").then((t) => t.default),
|
|
646
|
-
chevronRight: () => import("./ChevronRight-PCxxo-vc.js").then((t) => t.default),
|
|
647
|
-
chevronRightCircle: () => import("./ChevronRightCircle-Dkk7XKGY.js").then((t) => t.default),
|
|
648
|
-
chevronRightCircleFilled: () => import("./ChevronRightCircleFilled-DNCABv_Q.js").then((t) => t.default),
|
|
649
|
-
chevronUp: () => import("./ChevronUp-CjSX0sjw.js").then((t) => t.default),
|
|
650
|
-
chevronUpCircle: () => import("./ChevronUpCircle-DRUN_nTK.js").then((t) => t.default),
|
|
651
|
-
chevronUpCircleFilled: () => import("./ChevronUpCircleFilled-DehyXbZK.js").then((t) => t.default),
|
|
652
|
-
chevronsDown: () => import("./ChevronsDown-Lh2I5g0q.js").then((t) => t.default),
|
|
653
|
-
chevronsLeft: () => import("./ChevronsLeft-Dfl7AHgm.js").then((t) => t.default),
|
|
654
|
-
chevronsRight: () => import("./ChevronsRight-BN_IZIoy.js").then((t) => t.default),
|
|
655
|
-
chevronsUp: () => import("./ChevronsUp-BfPLVHMy.js").then((t) => t.default),
|
|
656
|
-
clock: () => import("./Clock-CSuR6yaZ.js").then((t) => t.default),
|
|
657
|
-
close: () => import("./Close-Q4saba4i.js").then((t) => t.default),
|
|
658
|
-
closeCircle: () => import("./CloseCircle-CvQ3NuZa.js").then((t) => t.default),
|
|
659
|
-
closeCircleFilled: () => import("./CloseCircleFilled-D2iZDSfq.js").then((t) => t.default),
|
|
660
|
-
closeOctagon: () => import("./CloseOctagon-DMLRi0q5.js").then((t) => t.default),
|
|
661
|
-
closeOctagonFilled: () => import("./CloseOctagonFilled-CMwoRq8j.js").then((t) => t.default),
|
|
662
|
-
cloudArrowUp: () => import("./CloudArrowUp-C2uwNhcc.js").then((t) => t.default),
|
|
663
|
-
code: () => import("./Code-ohqcUUQN.js").then((t) => t.default),
|
|
664
|
-
copy: () => import("./Copy-CpvqWx-k.js").then((t) => t.default),
|
|
665
|
-
dot: () => import("./Dot-Cumkgd-m.js").then((t) => t.default),
|
|
666
|
-
download: () => import("./Download-BJ_DfleZ.js").then((t) => t.default),
|
|
667
|
-
ellipsis: () => import("./Ellipsis-CpY1HejQ.js").then((t) => t.default),
|
|
668
|
-
ellipsisVertical: () => import("./EllipsisVertical-CEEYMsqG.js").then((t) => t.default),
|
|
669
|
-
exclamationMark: () => import("./ExclamationMark-exzrOBwL.js").then((t) => t.default),
|
|
670
|
-
externalLink: () => import("./ExternalLink-eS9P88AV.js").then((t) => t.default),
|
|
671
|
-
eye: () => import("./Eye-w9TfhO68.js").then((t) => t.default),
|
|
672
|
-
eyeOff: () => import("./EyeOff-DUEm4ukn.js").then((t) => t.default),
|
|
673
|
-
file: () => import("./File-Cybg1CXH.js").then((t) => t.default),
|
|
674
|
-
fileInput: () => import("./FileInput-1n1FWyo-.js").then((t) => t.default),
|
|
675
|
-
filter: () => import("./Filter-D9y9ugj2.js").then((t) => t.default),
|
|
676
|
-
folder: () => import("./Folder-CU8qYUHQ.js").then((t) => t.default),
|
|
677
|
-
gridView: () => import("./GridView-BPdfFYj_.js").then((t) => t.default),
|
|
678
|
-
home: () => import("./Home-ChwjHVJb.js").then((t) => t.default),
|
|
679
|
-
image: () => import("./Image-ChylX7xd.js").then((t) => t.default),
|
|
680
|
-
link: () => import("./Link-BKFFnXyT.js").then((t) => t.default),
|
|
681
|
-
listView: () => import("./ListView-U-9qAnWr.js").then((t) => t.default),
|
|
682
|
-
lock: () => import("./Lock-Bwz5_UjA.js").then((t) => t.default),
|
|
683
|
-
logIn: () => import("./LogIn-U5Bnfjit.js").then((t) => t.default),
|
|
684
|
-
logOut: () => import("./LogOut-CX1os0_t.js").then((t) => t.default),
|
|
685
|
-
mail: () => import("./Mail-B2VEFWPt.js").then((t) => t.default),
|
|
686
|
-
map: () => import("./Map-D5XWb3YY.js").then((t) => t.default),
|
|
687
|
-
megaphone: () => import("./Megaphone-Do5-_w2j.js").then((t) => t.default),
|
|
688
|
-
menu: () => import("./Menu-Brh_TbFf.js").then((t) => t.default),
|
|
689
|
-
minus: () => import("./Minus-CueXUCgb.js").then((t) => t.default),
|
|
690
|
-
minusCircle: () => import("./MinusCircle-DUmUcGyz.js").then((t) => t.default),
|
|
691
|
-
minusCircleFilled: () => import("./MinusCircleFilled-Cq7IrW21.js").then((t) => t.default),
|
|
692
|
-
mobile: () => import("./Mobile-D7KMmpMV.js").then((t) => t.default),
|
|
693
|
-
move: () => import("./Move-CX01BEbW.js").then((t) => t.default),
|
|
694
|
-
notification: () => import("./Notification-Ds-KwATs.js").then((t) => t.default),
|
|
695
|
-
pencil: () => import("./Pencil-ChoJx5W0.js").then((t) => t.default),
|
|
696
|
-
play: () => import("./Play-nTzXnaQP.js").then((t) => t.default),
|
|
697
|
-
plus: () => import("./Plus-Dh_kC216.js").then((t) => t.default),
|
|
698
|
-
plusCircle: () => import("./PlusCircle-CdRf8LPK.js").then((t) => t.default),
|
|
699
|
-
plusCircleFilled: () => import("./PlusCircleFilled-DfOMIUx7.js").then((t) => t.default),
|
|
700
|
-
questionMark: () => import("./QuestionMark-DOiTgLQi.js").then((t) => t.default),
|
|
701
|
-
questionMarkFilled: () => import("./QuestionMarkFilled-BBfYnj6K.js").then((t) => t.default),
|
|
702
|
-
reload: () => import("./Reload-_znxvsCW.js").then((t) => t.default),
|
|
703
|
-
search: () => import("./Search-BFX6nBPy.js").then((t) => t.default),
|
|
704
|
-
send: () => import("./Send-kLNJhN0M.js").then((t) => t.default),
|
|
705
|
-
settings: () => import("./Settings-Dx5Wxwg6.js").then((t) => t.default),
|
|
706
|
-
shield: () => import("./Shield-B3tfbLxv.js").then((t) => t.default),
|
|
707
|
-
shoppingCart: () => import("./ShoppingCart-DeZy9s4R.js").then((t) => t.default),
|
|
708
|
-
shuffle: () => import("./Shuffle-DPJBz-Nj.js").then((t) => t.default),
|
|
709
|
-
sparkles: () => import("./Sparkles-By12VrmM.js").then((t) => t.default),
|
|
710
|
-
split: () => import("./Split-ByvhCugq.js").then((t) => t.default),
|
|
711
|
-
thumbUp: () => import("./ThumbUp-BqCiXb5D.js").then((t) => t.default),
|
|
712
|
-
trashCan: () => import("./TrashCan-B1y4NnTj.js").then((t) => t.default),
|
|
713
|
-
upload: () => import("./Upload-DXqVc3Ix.js").then((t) => t.default),
|
|
714
|
-
userProfile: () => import("./UserProfile-DXmBd5b6.js").then((t) => t.default),
|
|
715
|
-
warning: () => import("./Warning-CE3ENqy1.js").then((t) => t.default),
|
|
716
|
-
warningFilled: () => import("./WarningFilled-B3b0eySj.js").then((t) => t.default),
|
|
717
|
-
warningOctagon: () => import("./WarningOctagon-DPF5eWBs.js").then((t) => t.default),
|
|
718
|
-
warningOctagonFilled: () => import("./WarningOctagonFilled-km4EmkS4.js").then((t) => t.default),
|
|
719
|
-
warningTriangle: () => import("./WarningTriangle-CKnOc38N.js").then((t) => t.default),
|
|
720
|
-
warningTriangleFilled: () => import("./WarningTriangleFilled-CbuoHfN_.js").then((t) => t.default),
|
|
721
|
-
zoomIn: () => import("./ZoomIn-BT-hX4R6.js").then((t) => t.default),
|
|
722
|
-
zoomOut: () => import("./ZoomOut-B6ILbkP8.js").then((t) => t.default)
|
|
1
|
+
import { unsafeCSS as d, html as u } from "lit";
|
|
2
|
+
import { unsafeSVG as m } from "lit/directives/unsafe-svg.js";
|
|
3
|
+
import { property as l, state as f, customElement as g } from "lit/decorators.js";
|
|
4
|
+
import { classMap as w } from "lit/directives/class-map.js";
|
|
5
|
+
import { BaseElement as s } from "@ucalgary-design-system/core";
|
|
6
|
+
const L = [
|
|
7
|
+
"arrowDown",
|
|
8
|
+
"arrowLeft",
|
|
9
|
+
"arrowRight",
|
|
10
|
+
"arrowUp",
|
|
11
|
+
"arrowUpDown",
|
|
12
|
+
"attachment",
|
|
13
|
+
"camera",
|
|
14
|
+
"chat",
|
|
15
|
+
"checkmark",
|
|
16
|
+
"checkmarkCircle",
|
|
17
|
+
"checkmarkCircleFilled",
|
|
18
|
+
"chevronDown",
|
|
19
|
+
"chevronDownCircle",
|
|
20
|
+
"chevronDownCircleFilled",
|
|
21
|
+
"chevronLeft",
|
|
22
|
+
"chevronLeftCircle",
|
|
23
|
+
"chevronLeftCircleFilled",
|
|
24
|
+
"chevronRight",
|
|
25
|
+
"chevronRightCircle",
|
|
26
|
+
"chevronRightCircleFilled",
|
|
27
|
+
"chevronUp",
|
|
28
|
+
"chevronUpCircle",
|
|
29
|
+
"chevronUpCircleFilled",
|
|
30
|
+
"chevronsDown",
|
|
31
|
+
"chevronsLeft",
|
|
32
|
+
"chevronsRight",
|
|
33
|
+
"chevronsUp",
|
|
34
|
+
"clock",
|
|
35
|
+
"close",
|
|
36
|
+
"closeCircle",
|
|
37
|
+
"closeCircleFilled",
|
|
38
|
+
"closeOctagon",
|
|
39
|
+
"closeOctagonFilled",
|
|
40
|
+
"cloudArrowUp",
|
|
41
|
+
"code",
|
|
42
|
+
"copy",
|
|
43
|
+
"download",
|
|
44
|
+
"dot",
|
|
45
|
+
"ellipsis",
|
|
46
|
+
"ellipsisVertical",
|
|
47
|
+
"exclamationMark",
|
|
48
|
+
"externalLink",
|
|
49
|
+
"eye",
|
|
50
|
+
"eyeOff",
|
|
51
|
+
"file",
|
|
52
|
+
"fileInput",
|
|
53
|
+
"filter",
|
|
54
|
+
"folder",
|
|
55
|
+
"gridView",
|
|
56
|
+
"home",
|
|
57
|
+
"image",
|
|
58
|
+
"link",
|
|
59
|
+
"listView",
|
|
60
|
+
"lock",
|
|
61
|
+
"logIn",
|
|
62
|
+
"logOut",
|
|
63
|
+
"mail",
|
|
64
|
+
"map",
|
|
65
|
+
"megaphone",
|
|
66
|
+
"menu",
|
|
67
|
+
"minus",
|
|
68
|
+
"minusCircle",
|
|
69
|
+
"minusCircleFilled",
|
|
70
|
+
"mobile",
|
|
71
|
+
"move",
|
|
72
|
+
"notification",
|
|
73
|
+
"pencil",
|
|
74
|
+
"play",
|
|
75
|
+
"plus",
|
|
76
|
+
"plusCircle",
|
|
77
|
+
"plusCircleFilled",
|
|
78
|
+
"questionMark",
|
|
79
|
+
"questionMarkFilled",
|
|
80
|
+
"reload",
|
|
81
|
+
"search",
|
|
82
|
+
"send",
|
|
83
|
+
"settings",
|
|
84
|
+
"shield",
|
|
85
|
+
"shoppingCart",
|
|
86
|
+
"shuffle",
|
|
87
|
+
"sparkles",
|
|
88
|
+
"split",
|
|
89
|
+
"thumbUp",
|
|
90
|
+
"trashCan",
|
|
91
|
+
"upload",
|
|
92
|
+
"userProfile",
|
|
93
|
+
"warning",
|
|
94
|
+
"warningFilled",
|
|
95
|
+
"warningOctagon",
|
|
96
|
+
"warningOctagonFilled",
|
|
97
|
+
"warningTriangle",
|
|
98
|
+
"warningTriangleFilled",
|
|
99
|
+
"zoomIn",
|
|
100
|
+
"zoomOut"
|
|
101
|
+
], a = {
|
|
102
|
+
arrowDown: () => import("./ArrowDown-Cl_pe6x-.js").then((e) => e.default),
|
|
103
|
+
arrowLeft: () => import("./ArrowLeft-D_pb7-h_.js").then((e) => e.default),
|
|
104
|
+
arrowRight: () => import("./ArrowRight-0rOUWttV.js").then((e) => e.default),
|
|
105
|
+
arrowUp: () => import("./ArrowUp-Kh8KmpaI.js").then((e) => e.default),
|
|
106
|
+
arrowUpDown: () => import("./ArrowUpDown-SqD4IUq6.js").then((e) => e.default),
|
|
107
|
+
attachment: () => import("./Attachment-DMa7gLVG.js").then((e) => e.default),
|
|
108
|
+
camera: () => import("./Camera-BisfqTvi.js").then((e) => e.default),
|
|
109
|
+
chat: () => import("./Chat-DQxghIy_.js").then((e) => e.default),
|
|
110
|
+
checkmark: () => import("./Checkmark-BKXPef9h.js").then((e) => e.default),
|
|
111
|
+
checkmarkCircle: () => import("./CheckmarkCircle-ChmWwela.js").then((e) => e.default),
|
|
112
|
+
checkmarkCircleFilled: () => import("./CheckmarkCircleFilled-Cqky64AP.js").then((e) => e.default),
|
|
113
|
+
chevronDown: () => import("./ChevronDown-CkkPhuqR.js").then((e) => e.default),
|
|
114
|
+
chevronDownCircle: () => import("./ChevronDownCircle-Bzjl-oG1.js").then((e) => e.default),
|
|
115
|
+
chevronDownCircleFilled: () => import("./ChevronDownCircleFilled-BZZIQ64Y.js").then((e) => e.default),
|
|
116
|
+
chevronLeft: () => import("./ChevronLeft-wuwMWp0P.js").then((e) => e.default),
|
|
117
|
+
chevronLeftCircle: () => import("./ChevronLeftCircle-C5GskojN.js").then((e) => e.default),
|
|
118
|
+
chevronLeftCircleFilled: () => import("./ChevronLeftCircleFilled-Fx_qs9nb.js").then((e) => e.default),
|
|
119
|
+
chevronRight: () => import("./ChevronRight-PCxxo-vc.js").then((e) => e.default),
|
|
120
|
+
chevronRightCircle: () => import("./ChevronRightCircle-Dkk7XKGY.js").then((e) => e.default),
|
|
121
|
+
chevronRightCircleFilled: () => import("./ChevronRightCircleFilled-DNCABv_Q.js").then((e) => e.default),
|
|
122
|
+
chevronUp: () => import("./ChevronUp-CjSX0sjw.js").then((e) => e.default),
|
|
123
|
+
chevronUpCircle: () => import("./ChevronUpCircle-DRUN_nTK.js").then((e) => e.default),
|
|
124
|
+
chevronUpCircleFilled: () => import("./ChevronUpCircleFilled-DehyXbZK.js").then((e) => e.default),
|
|
125
|
+
chevronsDown: () => import("./ChevronsDown-Lh2I5g0q.js").then((e) => e.default),
|
|
126
|
+
chevronsLeft: () => import("./ChevronsLeft-Dfl7AHgm.js").then((e) => e.default),
|
|
127
|
+
chevronsRight: () => import("./ChevronsRight-BN_IZIoy.js").then((e) => e.default),
|
|
128
|
+
chevronsUp: () => import("./ChevronsUp-BfPLVHMy.js").then((e) => e.default),
|
|
129
|
+
clock: () => import("./Clock-CSuR6yaZ.js").then((e) => e.default),
|
|
130
|
+
close: () => import("./Close-Q4saba4i.js").then((e) => e.default),
|
|
131
|
+
closeCircle: () => import("./CloseCircle-CvQ3NuZa.js").then((e) => e.default),
|
|
132
|
+
closeCircleFilled: () => import("./CloseCircleFilled-D2iZDSfq.js").then((e) => e.default),
|
|
133
|
+
closeOctagon: () => import("./CloseOctagon-DMLRi0q5.js").then((e) => e.default),
|
|
134
|
+
closeOctagonFilled: () => import("./CloseOctagonFilled-CMwoRq8j.js").then((e) => e.default),
|
|
135
|
+
cloudArrowUp: () => import("./CloudArrowUp-C2uwNhcc.js").then((e) => e.default),
|
|
136
|
+
code: () => import("./Code-ohqcUUQN.js").then((e) => e.default),
|
|
137
|
+
copy: () => import("./Copy-CpvqWx-k.js").then((e) => e.default),
|
|
138
|
+
dot: () => import("./Dot-Cumkgd-m.js").then((e) => e.default),
|
|
139
|
+
download: () => import("./Download-BJ_DfleZ.js").then((e) => e.default),
|
|
140
|
+
ellipsis: () => import("./Ellipsis-CpY1HejQ.js").then((e) => e.default),
|
|
141
|
+
ellipsisVertical: () => import("./EllipsisVertical-CEEYMsqG.js").then((e) => e.default),
|
|
142
|
+
exclamationMark: () => import("./ExclamationMark-exzrOBwL.js").then((e) => e.default),
|
|
143
|
+
externalLink: () => import("./ExternalLink-eS9P88AV.js").then((e) => e.default),
|
|
144
|
+
eye: () => import("./Eye-w9TfhO68.js").then((e) => e.default),
|
|
145
|
+
eyeOff: () => import("./EyeOff-DUEm4ukn.js").then((e) => e.default),
|
|
146
|
+
file: () => import("./File-Cybg1CXH.js").then((e) => e.default),
|
|
147
|
+
fileInput: () => import("./FileInput-1n1FWyo-.js").then((e) => e.default),
|
|
148
|
+
filter: () => import("./Filter-D9y9ugj2.js").then((e) => e.default),
|
|
149
|
+
folder: () => import("./Folder-CU8qYUHQ.js").then((e) => e.default),
|
|
150
|
+
gridView: () => import("./GridView-BPdfFYj_.js").then((e) => e.default),
|
|
151
|
+
home: () => import("./Home-ChwjHVJb.js").then((e) => e.default),
|
|
152
|
+
image: () => import("./Image-ChylX7xd.js").then((e) => e.default),
|
|
153
|
+
link: () => import("./Link-BKFFnXyT.js").then((e) => e.default),
|
|
154
|
+
listView: () => import("./ListView-U-9qAnWr.js").then((e) => e.default),
|
|
155
|
+
lock: () => import("./Lock-Bwz5_UjA.js").then((e) => e.default),
|
|
156
|
+
logIn: () => import("./LogIn-U5Bnfjit.js").then((e) => e.default),
|
|
157
|
+
logOut: () => import("./LogOut-CX1os0_t.js").then((e) => e.default),
|
|
158
|
+
mail: () => import("./Mail-B2VEFWPt.js").then((e) => e.default),
|
|
159
|
+
map: () => import("./Map-D5XWb3YY.js").then((e) => e.default),
|
|
160
|
+
megaphone: () => import("./Megaphone-Do5-_w2j.js").then((e) => e.default),
|
|
161
|
+
menu: () => import("./Menu-Brh_TbFf.js").then((e) => e.default),
|
|
162
|
+
minus: () => import("./Minus-CueXUCgb.js").then((e) => e.default),
|
|
163
|
+
minusCircle: () => import("./MinusCircle-DUmUcGyz.js").then((e) => e.default),
|
|
164
|
+
minusCircleFilled: () => import("./MinusCircleFilled-Cq7IrW21.js").then((e) => e.default),
|
|
165
|
+
mobile: () => import("./Mobile-D7KMmpMV.js").then((e) => e.default),
|
|
166
|
+
move: () => import("./Move-CX01BEbW.js").then((e) => e.default),
|
|
167
|
+
notification: () => import("./Notification-Ds-KwATs.js").then((e) => e.default),
|
|
168
|
+
pencil: () => import("./Pencil-ChoJx5W0.js").then((e) => e.default),
|
|
169
|
+
play: () => import("./Play-nTzXnaQP.js").then((e) => e.default),
|
|
170
|
+
plus: () => import("./Plus-Dh_kC216.js").then((e) => e.default),
|
|
171
|
+
plusCircle: () => import("./PlusCircle-CdRf8LPK.js").then((e) => e.default),
|
|
172
|
+
plusCircleFilled: () => import("./PlusCircleFilled-DfOMIUx7.js").then((e) => e.default),
|
|
173
|
+
questionMark: () => import("./QuestionMark-DOiTgLQi.js").then((e) => e.default),
|
|
174
|
+
questionMarkFilled: () => import("./QuestionMarkFilled-BBfYnj6K.js").then((e) => e.default),
|
|
175
|
+
reload: () => import("./Reload-_znxvsCW.js").then((e) => e.default),
|
|
176
|
+
search: () => import("./Search-BFX6nBPy.js").then((e) => e.default),
|
|
177
|
+
send: () => import("./Send-kLNJhN0M.js").then((e) => e.default),
|
|
178
|
+
settings: () => import("./Settings-Dx5Wxwg6.js").then((e) => e.default),
|
|
179
|
+
shield: () => import("./Shield-B3tfbLxv.js").then((e) => e.default),
|
|
180
|
+
shoppingCart: () => import("./ShoppingCart-DeZy9s4R.js").then((e) => e.default),
|
|
181
|
+
shuffle: () => import("./Shuffle-DPJBz-Nj.js").then((e) => e.default),
|
|
182
|
+
sparkles: () => import("./Sparkles-By12VrmM.js").then((e) => e.default),
|
|
183
|
+
split: () => import("./Split-ByvhCugq.js").then((e) => e.default),
|
|
184
|
+
thumbUp: () => import("./ThumbUp-BqCiXb5D.js").then((e) => e.default),
|
|
185
|
+
trashCan: () => import("./TrashCan-B1y4NnTj.js").then((e) => e.default),
|
|
186
|
+
upload: () => import("./Upload-DXqVc3Ix.js").then((e) => e.default),
|
|
187
|
+
userProfile: () => import("./UserProfile-DXmBd5b6.js").then((e) => e.default),
|
|
188
|
+
warning: () => import("./Warning-CE3ENqy1.js").then((e) => e.default),
|
|
189
|
+
warningFilled: () => import("./WarningFilled-B3b0eySj.js").then((e) => e.default),
|
|
190
|
+
warningOctagon: () => import("./WarningOctagon-DPF5eWBs.js").then((e) => e.default),
|
|
191
|
+
warningOctagonFilled: () => import("./WarningOctagonFilled-km4EmkS4.js").then((e) => e.default),
|
|
192
|
+
warningTriangle: () => import("./WarningTriangle-CKnOc38N.js").then((e) => e.default),
|
|
193
|
+
warningTriangleFilled: () => import("./WarningTriangleFilled-CbuoHfN_.js").then((e) => e.default),
|
|
194
|
+
zoomIn: () => import("./ZoomIn-BT-hX4R6.js").then((e) => e.default),
|
|
195
|
+
zoomOut: () => import("./ZoomOut-B6ILbkP8.js").then((e) => e.default)
|
|
723
196
|
};
|
|
724
|
-
async function
|
|
197
|
+
async function v(e) {
|
|
725
198
|
try {
|
|
726
|
-
return
|
|
727
|
-
} catch (
|
|
728
|
-
return console.warn(`[ucds-icon] Failed to load "${
|
|
199
|
+
return e in a ? await a[e]() : (console.warn(`[ucds-icon] Icon "${e}" was not found. Falling back to questionMark.`), await a.questionMark());
|
|
200
|
+
} catch (t) {
|
|
201
|
+
return console.warn(`[ucds-icon] Failed to load "${e}". Falling back to questionMark.`, t), a.questionMark();
|
|
729
202
|
}
|
|
730
203
|
}
|
|
731
|
-
const
|
|
732
|
-
var
|
|
733
|
-
for (var
|
|
734
|
-
(
|
|
735
|
-
return
|
|
204
|
+
const C = ":host{display:inline-flex;align-items:center;justify-content:center;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content}.icon{display:inline-flex;width:24px;height:24px;color:currentColor}.icon svg{width:100%;height:100%;fill:currentColor}.icon--color-primary{color:var(--ucds-color-icon-primary)}.icon--color-primary-inverse{color:var(--ucds-color-icon-primary-inverse)}.icon--color-action-rest{color:var(--ucds-color-action-rest)}.icon--color-berry{color:var(--ucds-color-palette-berry-600)}.icon--color-disabled{color:var(--ucds-color-forms-input-element-disabled)}.icon--size-16{width:16px;height:16px}.icon--size-20{width:20px;height:20px}.icon--size-24{width:24px;height:24px}.icon--size-32{width:32px;height:32px}";
|
|
205
|
+
var y = Object.defineProperty, k = Object.getOwnPropertyDescriptor, r = (e, t, c, n) => {
|
|
206
|
+
for (var o = n > 1 ? void 0 : n ? k(t, c) : t, h = e.length - 1, p; h >= 0; h--)
|
|
207
|
+
(p = e[h]) && (o = (n ? p(t, c, o) : p(o)) || o);
|
|
208
|
+
return n && o && y(t, c, o), o;
|
|
736
209
|
};
|
|
737
|
-
let
|
|
210
|
+
let i = class extends s {
|
|
738
211
|
constructor() {
|
|
739
212
|
super(...arguments), this.size = "24", this.accessible = !1, this.svg = null;
|
|
740
213
|
}
|
|
741
|
-
async willUpdate(
|
|
742
|
-
this.name === void 0 && (console.warn("[ucds-icon] No icon name was found. Falling back to questionMark."), this.name = "questionMark"),
|
|
214
|
+
async willUpdate(e) {
|
|
215
|
+
this.name === void 0 && (console.warn("[ucds-icon] No icon name was found. Falling back to questionMark."), this.name = "questionMark"), e.has("name") && this.name && (this.svg = await v(this.name));
|
|
743
216
|
}
|
|
744
217
|
render() {
|
|
745
|
-
const
|
|
218
|
+
const e = {
|
|
746
219
|
icon: !0,
|
|
747
220
|
[`icon--color-${this.color}`]: !!this.color,
|
|
748
221
|
[`icon--size-${this.size}`]: !!this.size
|
|
749
222
|
};
|
|
750
|
-
let
|
|
751
|
-
return
|
|
223
|
+
let t = this.svg;
|
|
224
|
+
return t && (this.accessible ? this.accessibleLabel ? t = t.replace(/<svg\b([^>]*)>/, `<svg$1 role="img" aria-label="${this.accessibleLabel}">`) : console.warn("[ucds-icon] Icon marked as accessible, but no accessible-label provided.") : t = t.replace(/<svg\b([^>]*)>/, '<svg$1 aria-hidden="true">')), u`<span class=${w(e)}>${m(t)}</span>`;
|
|
752
225
|
}
|
|
753
226
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
227
|
+
i.styles = [
|
|
228
|
+
s.styles,
|
|
229
|
+
d(C)
|
|
757
230
|
];
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
],
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
],
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
],
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
],
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
],
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
],
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
],
|
|
231
|
+
r([
|
|
232
|
+
l({ type: String, attribute: "accessible-label" })
|
|
233
|
+
], i.prototype, "accessibleLabel", 2);
|
|
234
|
+
r([
|
|
235
|
+
l({ type: String })
|
|
236
|
+
], i.prototype, "color", 2);
|
|
237
|
+
r([
|
|
238
|
+
l({ type: String })
|
|
239
|
+
], i.prototype, "name", 2);
|
|
240
|
+
r([
|
|
241
|
+
l({ type: String })
|
|
242
|
+
], i.prototype, "size", 2);
|
|
243
|
+
r([
|
|
244
|
+
l({ type: Boolean })
|
|
245
|
+
], i.prototype, "accessible", 2);
|
|
246
|
+
r([
|
|
247
|
+
f()
|
|
248
|
+
], i.prototype, "svg", 2);
|
|
249
|
+
i = r([
|
|
250
|
+
g("ucds-icon")
|
|
251
|
+
], i);
|
|
779
252
|
export {
|
|
780
|
-
|
|
253
|
+
L as ICON_NAMES,
|
|
254
|
+
i as Icon,
|
|
255
|
+
a as iconLoaders,
|
|
256
|
+
v as loadIcon
|
|
781
257
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucalgary-design-system/icon",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"require": "./index.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"@ucalgary-design-system/core": "^1.0.
|
|
15
|
-
"@ucalgary-design-system/tokens": "^1.0.
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@ucalgary-design-system/core": "^1.0.4",
|
|
15
|
+
"@ucalgary-design-system/tokens": "^1.0.4",
|
|
16
16
|
"lit": "^3.2.1"
|
|
17
17
|
},
|
|
18
18
|
"description": "A web component for Icon",
|