@mattilsynet/design 3.3.0 → 3.3.1
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/mtds/app/app-observer.js +1 -1
- package/mtds/app/app-toggle.js +10 -26
- package/mtds/app/app-toggle.js.map +1 -1
- package/mtds/app/app-toggle2.js +26 -10
- package/mtds/app/app-toggle2.js.map +1 -1
- package/mtds/app/app.js +1 -1
- package/mtds/atlas/atlas-element.js +1 -1
- package/mtds/index.iife.js +10 -10
- package/mtds/index.js +21 -20
- package/mtds/index.js.map +1 -1
- package/mtds/package.json.js +1 -1
- package/mtds/styles.css +1 -1
- package/package.json +1 -1
package/mtds/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "@u-elements/u-progress";
|
|
2
2
|
export * from "@digdir/designsystemet-web";
|
|
3
|
-
import { UHTMLComboboxElement as
|
|
4
|
-
import { version as
|
|
5
|
-
import { analytics as
|
|
6
|
-
import { toggleAppExpanded as
|
|
7
|
-
import { fixLawHtml as B, getLawChecked as
|
|
8
|
-
import * as
|
|
3
|
+
import { UHTMLComboboxElement as h, UHTMLComboboxShadowRoot as S, UHTMLComboboxStyle as T } from "./external/@u-elements/u-combobox/dist/u-combobox.js";
|
|
4
|
+
import { version as y } from "./package.json.js";
|
|
5
|
+
import { analytics as M } from "./analytics/analytics.js";
|
|
6
|
+
import { toggleAppExpanded as I } from "./app/app-observer.js";
|
|
7
|
+
import { fixLawHtml as B, getLawChecked as D, parseLawIds as R, parseLawMeta as v, setLawChecked as A, toggleLawChecked as N } from "./law/law-helper.js";
|
|
8
|
+
import * as i from "./styles.module.css.js";
|
|
9
9
|
import { toast as _ } from "./toast/toast-helper.js";
|
|
10
10
|
import "./chart/chart-element.js";
|
|
11
11
|
import "./deprecations.js";
|
|
@@ -15,30 +15,31 @@ import "./table/table-observer.js";
|
|
|
15
15
|
import "./toast/toast-observer.js";
|
|
16
16
|
import "./tooltip/tooltip-element.js";
|
|
17
17
|
import "./validation/validation-observer.js";
|
|
18
|
-
import { isBrowser as
|
|
19
|
-
const
|
|
20
|
-
for (const o of
|
|
18
|
+
import { isBrowser as e, onHotReload as r, onMutation as s } from "./utils.js";
|
|
19
|
+
const a = e() ? document.getElementsByTagName("u-datalist") : [], t = /* @__PURE__ */ new WeakSet(), m = () => {
|
|
20
|
+
for (const o of a)
|
|
21
|
+
t.has(o) || (o.closest("ds-suggestion")?.connectedCallback(), t.add(o));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
r("deprecations", () => [
|
|
24
|
+
s(document, m, {
|
|
24
25
|
childList: !0,
|
|
25
26
|
subtree: !0
|
|
26
27
|
})
|
|
27
28
|
]);
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
h as UHTMLComboboxElement,
|
|
31
|
+
S as UHTMLComboboxShadowRoot,
|
|
32
|
+
T as UHTMLComboboxStyle,
|
|
33
|
+
M as analytics,
|
|
33
34
|
B as fixLawHtml,
|
|
34
|
-
|
|
35
|
+
D as getLawChecked,
|
|
35
36
|
R as parseLawIds,
|
|
36
37
|
v as parseLawMeta,
|
|
37
38
|
A as setLawChecked,
|
|
38
|
-
|
|
39
|
+
i as styles,
|
|
39
40
|
_ as toast,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
I as toggleAppExpanded,
|
|
42
|
+
N as toggleLawChecked,
|
|
43
|
+
y as version
|
|
43
44
|
};
|
|
44
45
|
//# sourceMappingURL=index.js.map
|
package/mtds/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../designsystem/index.ts"],"sourcesContent":["// Expose u-progress, which is not used in @digdir/designsystemet-web, but is used by Mattilsynet\nimport \"@u-elements/u-progress\";\n\n// Expose API\nexport * from \"@digdir/designsystemet-web\"; // Import and expose Digdir web functionality\nexport * from \"@u-elements/u-combobox\"; // Kept for backward compatibility\nexport { version } from \"../package.json\"; // Expose version to make it easier to debug\nexport * from \"./analytics/analytics\";\nexport * from \"./app/app-observer\";\nexport * from \"./law/law-helper\";\nexport * as styles from \"./styles.module.css\";\nexport * from \"./toast/toast-helper\";\n\n// Load behaviors\nimport \"./chart/chart-element\";\nimport \"./deprecations\";\nimport \"./logo/logo-observer\";\nimport \"./popover/popover-observer\";\nimport \"./table/table-observer\";\nimport \"./toast/toast-observer\";\nimport \"./tooltip/tooltip-element\";\nimport \"./validation/validation-observer\";\nimport { isBrowser, onHotReload, onMutation } from \"./utils\";\n\n// Expose types\nexport type Size = \"sm\" | \"md\" | \"lg\";\nexport type HeadingSize = \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n\n// Fix ds-suggestion while waiting for https://github.com/digdir/designsystemet/pull/4933\nconst LISTS = isBrowser() ? document.getElementsByTagName(\"u-datalist\") : [];\nconst handleDatalistConnect = () => {\n\tfor (const list of LISTS) list.closest(\"ds-suggestion\")?.connectedCallback();\n};\n\nonHotReload(\"deprecations\", () => [\n\tonMutation(document, handleDatalistConnect, {\n\t\tchildList: true,\n\t\tsubtree: true,\n\t}),\n]);\n"],"names":["LISTS","isBrowser","handleDatalistConnect","list","onHotReload","onMutation"],"mappings":";;;;;;;;;;;;;;;;;;AA6BA,MAAMA,IAAQC,EAAA,IAAc,SAAS,qBAAqB,YAAY,IAAI,CAAA,GACpEC,IAAwB,MAAM;AACnC,aAAWC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../designsystem/index.ts"],"sourcesContent":["// Expose u-progress, which is not used in @digdir/designsystemet-web, but is used by Mattilsynet\nimport \"@u-elements/u-progress\";\n\n// Expose API\nexport * from \"@digdir/designsystemet-web\"; // Import and expose Digdir web functionality\nexport * from \"@u-elements/u-combobox\"; // Kept for backward compatibility\nexport { version } from \"../package.json\"; // Expose version to make it easier to debug\nexport * from \"./analytics/analytics\";\nexport * from \"./app/app-observer\";\nexport * from \"./law/law-helper\";\nexport * as styles from \"./styles.module.css\";\nexport * from \"./toast/toast-helper\";\n\n// Load behaviors\nimport \"./chart/chart-element\";\nimport \"./deprecations\";\nimport \"./logo/logo-observer\";\nimport \"./popover/popover-observer\";\nimport \"./table/table-observer\";\nimport \"./toast/toast-observer\";\nimport \"./tooltip/tooltip-element\";\nimport \"./validation/validation-observer\";\nimport { isBrowser, onHotReload, onMutation } from \"./utils\";\n\n// Expose types\nexport type Size = \"sm\" | \"md\" | \"lg\";\nexport type HeadingSize = \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n\n// Fix ds-suggestion while waiting for https://github.com/digdir/designsystemet/pull/4933\nconst LISTS = isBrowser() ? document.getElementsByTagName(\"u-datalist\") : [];\nconst LISTED = new WeakSet();\nconst handleDatalistConnect = () => {\n\tfor (const list of LISTS)\n\t\tif (!LISTED.has(list)) {\n\t\t\tlist.closest(\"ds-suggestion\")?.connectedCallback();\n\t\t\tLISTED.add(list);\n\t\t}\n};\n\nonHotReload(\"deprecations\", () => [\n\tonMutation(document, handleDatalistConnect, {\n\t\tchildList: true,\n\t\tsubtree: true,\n\t}),\n]);\n"],"names":["LISTS","isBrowser","LISTED","handleDatalistConnect","list","onHotReload","onMutation"],"mappings":";;;;;;;;;;;;;;;;;;AA6BA,MAAMA,IAAQC,EAAA,IAAc,SAAS,qBAAqB,YAAY,IAAI,CAAA,GACpEC,wBAAa,QAAA,GACbC,IAAwB,MAAM;AACnC,aAAWC,KAAQJ;AAClB,IAAKE,EAAO,IAAIE,CAAI,MACnBA,EAAK,QAAQ,eAAe,GAAG,kBAAA,GAC/BF,EAAO,IAAIE,CAAI;AAElB;AAEAC,EAAY,gBAAgB,MAAM;AAAA,EACjCC,EAAW,UAAUH,GAAuB;AAAA,IAC3C,WAAW;AAAA,IACX,SAAS;AAAA,EAAA,CACT;AACF,CAAC;"}
|
package/mtds/package.json.js
CHANGED