@ucalgary-design-system/link 1.0.2 → 1.0.3
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 +8 -0
- package/index.js +19 -19
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -52,7 +52,7 @@ const z = (o) => new R(typeof o == "string" ? o : o + "", void 0, O), j = (o, t)
|
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
const { is: T, defineProperty: D, getOwnPropertyDescriptor: L, getOwnPropertyNames: q, getOwnPropertySymbols: N, getPrototypeOf: B } = Object,
|
|
55
|
+
const { is: T, defineProperty: D, getOwnPropertyDescriptor: L, getOwnPropertyNames: q, getOwnPropertySymbols: N, getPrototypeOf: B } = Object, l = globalThis, P = l.trustedTypes, I = P ? P.emptyScript : "", $ = l.reactiveElementPolyfillSupport, u = (o, t) => o, m = { toAttribute(o, t) {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case Boolean:
|
|
58
58
|
o = o ? I : null;
|
|
@@ -81,7 +81,7 @@ const { is: T, defineProperty: D, getOwnPropertyDescriptor: L, getOwnPropertyNam
|
|
|
81
81
|
}
|
|
82
82
|
return e;
|
|
83
83
|
} }, v = (o, t) => !T(o, t), U = { attribute: !0, type: String, converter: m, reflect: !1, useDefault: !1, hasChanged: v };
|
|
84
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
84
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), l.litPropertyMetadata ?? (l.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
85
85
|
class p extends HTMLElement {
|
|
86
86
|
static addInitializer(t) {
|
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
@@ -205,11 +205,11 @@ class p extends HTMLElement {
|
|
|
205
205
|
this[r] = _ ?? ((n = this._$Ej) == null ? void 0 : n.get(r)) ?? _, this._$Em = null;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
requestUpdate(t, e, s) {
|
|
209
|
-
var
|
|
208
|
+
requestUpdate(t, e, s, r = !1, i) {
|
|
209
|
+
var n;
|
|
210
210
|
if (t !== void 0) {
|
|
211
|
-
const
|
|
212
|
-
if (s ?? (s =
|
|
211
|
+
const a = this.constructor;
|
|
212
|
+
if (r === !1 && (i = this[t]), s ?? (s = a.getPropertyOptions(t)), !((s.hasChanged ?? v)(i, e) || s.useDefault && s.reflect && i === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(a._$Eu(t, s)))) return;
|
|
213
213
|
this.C(t, e, s);
|
|
214
214
|
}
|
|
215
215
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -285,7 +285,7 @@ class p extends HTMLElement {
|
|
|
285
285
|
firstUpdated(t) {
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
p.elementStyles = [], p.shadowRootOptions = { mode: "open" }, p[u("elementProperties")] = /* @__PURE__ */ new Map(), p[u("finalized")] = /* @__PURE__ */ new Map(), $ == null || $({ ReactiveElement: p }), (
|
|
288
|
+
p.elementStyles = [], p.shadowRootOptions = { mode: "open" }, p[u("elementProperties")] = /* @__PURE__ */ new Map(), p[u("finalized")] = /* @__PURE__ */ new Map(), $ == null || $({ ReactiveElement: p }), (l.reactiveElementVersions ?? (l.reactiveElementVersions = [])).push("2.1.2");
|
|
289
289
|
/**
|
|
290
290
|
* @license
|
|
291
291
|
* Copyright 2017 Google LLC
|
|
@@ -298,7 +298,7 @@ const J = { attribute: !0, type: String, converter: m, reflect: !1, hasChanged:
|
|
|
298
298
|
const { name: n } = e;
|
|
299
299
|
return { set(a) {
|
|
300
300
|
const c = t.get.call(this);
|
|
301
|
-
t.set.call(this, a), this.requestUpdate(n, c, o);
|
|
301
|
+
t.set.call(this, a), this.requestUpdate(n, c, o, !0, a);
|
|
302
302
|
}, init(a) {
|
|
303
303
|
return a !== void 0 && this.C(n, void 0, o, a), a;
|
|
304
304
|
} };
|
|
@@ -307,7 +307,7 @@ const J = { attribute: !0, type: String, converter: m, reflect: !1, hasChanged:
|
|
|
307
307
|
const { name: n } = e;
|
|
308
308
|
return function(a) {
|
|
309
309
|
const c = this[n];
|
|
310
|
-
t.call(this, a), this.requestUpdate(n, c, o);
|
|
310
|
+
t.call(this, a), this.requestUpdate(n, c, o, !0, a);
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
313
|
throw Error("Unsupported decorator location: " + s);
|
|
@@ -325,7 +325,7 @@ var W = Object.defineProperty, F = Object.getOwnPropertyDescriptor, d = (o, t, e
|
|
|
325
325
|
return s && r && W(t, e, r), r;
|
|
326
326
|
};
|
|
327
327
|
const G = ["red", "grey", "inherit"];
|
|
328
|
-
let
|
|
328
|
+
let h = class extends C {
|
|
329
329
|
constructor() {
|
|
330
330
|
super(...arguments), this.href = "", this.color = "red";
|
|
331
331
|
}
|
|
@@ -343,29 +343,29 @@ let l = class extends C {
|
|
|
343
343
|
`;
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
|
-
|
|
346
|
+
h.styles = [
|
|
347
347
|
C.styles,
|
|
348
348
|
x(V)
|
|
349
349
|
];
|
|
350
350
|
d([
|
|
351
351
|
f({ type: String })
|
|
352
|
-
],
|
|
352
|
+
], h.prototype, "href", 2);
|
|
353
353
|
d([
|
|
354
354
|
f({ reflect: !0 })
|
|
355
|
-
],
|
|
355
|
+
], h.prototype, "rel", 2);
|
|
356
356
|
d([
|
|
357
357
|
f({ reflect: !0 })
|
|
358
|
-
],
|
|
358
|
+
], h.prototype, "target", 2);
|
|
359
359
|
d([
|
|
360
360
|
f()
|
|
361
|
-
],
|
|
361
|
+
], h.prototype, "color", 2);
|
|
362
362
|
d([
|
|
363
363
|
f({ type: Boolean, reflect: !0 })
|
|
364
|
-
],
|
|
365
|
-
|
|
364
|
+
], h.prototype, "cta", 2);
|
|
365
|
+
h = d([
|
|
366
366
|
M("ucds-link")
|
|
367
|
-
],
|
|
367
|
+
], h);
|
|
368
368
|
A();
|
|
369
369
|
export {
|
|
370
|
-
|
|
370
|
+
h as Link
|
|
371
371
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ucalgary-design-system/link",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A web component for Link",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,8 +16,11 @@
|
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@ucalgary-design-system/core": "^1.0.10",
|
|
19
|
+
"@ucalgary-design-system/icon": "^1.0.7",
|
|
19
20
|
"@ucalgary-design-system/tokens": "^1.0.0",
|
|
20
|
-
"@ucalgary-design-system/icon": "^1.0.5",
|
|
21
21
|
"lit": "^3.2.1"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"lerna": "^9.0.3"
|
|
22
25
|
}
|
|
23
26
|
}
|