@shibui-ui/ui 1.24.1 → 1.25.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/dist/components/atoms/index.d.ts +45 -16
- package/dist/components/atoms/index.d.ts.map +1 -1
- package/dist/components/molecules/index.d.ts +20 -1
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/components/organisms/index.d.ts +17 -1
- package/dist/components/organisms/index.d.ts.map +1 -1
- package/dist/index.d.ts +3 -82
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +79 -80
- package/dist/index.js.map +1 -1
- package/dist/index10.js +82 -18
- package/dist/index10.js.map +1 -1
- package/dist/index11.js +84 -69
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +40 -26
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +16 -39
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +29 -44
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +16 -117
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +48 -40
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +41 -25
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +76 -49
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +19 -39
- package/dist/index19.js.map +1 -1
- package/dist/index194.js +94 -24
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +2 -2
- package/dist/index197.js +2 -24
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +74 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +64 -35
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +21 -41
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +2 -2
- package/dist/index201.js +54 -13
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -2
- package/dist/index203.js +2 -2
- package/dist/index204.js +143 -157
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +43 -24
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +51 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -11
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +33 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -91
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +90 -26
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +6 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +2 -41
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +260 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +16 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -2
- package/dist/index215.js +2 -35
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +59 -42
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +32 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -85
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -2
- package/dist/index22.js +41 -48
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +73 -65
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +81 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -10
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +133 -2
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +2 -26
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +2 -2
- package/dist/index226.js +66 -12
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +97 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -2
- package/dist/index229.js +62 -24
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +50 -94
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +2 -2
- package/dist/index231.js +2 -2
- package/dist/index232.js +12 -2
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +5 -16
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -2
- package/dist/index235.js +11 -9
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -2
- package/dist/index237.js +76 -34
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -2
- package/dist/index239.js +2 -27
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +37 -34
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +39 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -34
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +235 -12
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +82 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +94 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -5
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +268 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -36
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +21 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +51 -32
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +2 -31
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +9 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -19
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +15 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +2 -2
- package/dist/index255.js +135 -69
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -2
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +2 -78
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +9 -2
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +31 -236
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +2 -32
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +2 -2
- package/dist/index262.js +92 -9
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +59 -2
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +2 -16
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +41 -2
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +2 -16
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +34 -9
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -54
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +2 -2
- package/dist/index27.js +27 -58
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +42 -7
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +2 -2
- package/dist/index272.js +2 -34
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -2
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +9 -2
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +6 -13
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +2 -2
- package/dist/index277.js +8 -15
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +2 -2
- package/dist/index279.js +55 -2
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +247 -24
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +2 -42
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +2 -100
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +20 -2
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +2 -97
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +33 -2
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +6 -27
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +2 -2
- package/dist/index287.js +9 -44
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +2 -2
- package/dist/index289.js +2 -33
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +249 -39
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +36 -2
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +2 -57
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +24 -2
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +2 -2
- package/dist/index294.js +26 -247
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +2 -2
- package/dist/index296.js +2 -72
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +42 -2
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +7 -56
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +2 -133
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +32 -19
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +30 -2
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +2 -12
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +34 -2
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +2 -162
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +26 -42
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +2 -81
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -2
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +2 -71
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +2 -2
- package/dist/index309.js +19 -2
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +96 -11
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +2 -81
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +2 -2
- package/dist/index312.js +42 -2
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +2 -74
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +25 -67
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +2 -2
- package/dist/index316.js +9 -17
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +2 -2
- package/dist/index318.js +84 -32
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +2 -2
- package/dist/index32.js +40 -48
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +68 -77
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +2 -2
- package/dist/index322.js +12 -148
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +1 -1
- package/dist/index324.js +28 -6
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +2 -2
- package/dist/index326.js +78 -87
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +2 -2
- package/dist/index328.js +78 -2
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +2 -237
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +20 -56
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +11 -6
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +2 -2
- package/dist/index332.js +18 -59
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +2 -2
- package/dist/index334.js +12 -5
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +2 -2
- package/dist/index336.js +2 -15
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +88 -2
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +24 -2
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +2 -92
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +59 -35
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +42 -14
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +2 -2
- package/dist/index342.js +22 -80
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +2 -2
- package/dist/index344.js +2 -18
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +16 -2
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +2 -268
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +176 -2
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +2 -2
- package/dist/index349.js +35 -39
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +101 -28
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +3 -3
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +2 -2
- package/dist/index352.js +19 -26
- package/dist/index352.js.map +1 -1
- package/dist/index357.js +26 -19
- package/dist/index357.js.map +1 -1
- package/dist/index36.js +115 -33
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +41 -115
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +34 -246
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +30 -137
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +26 -84
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +26 -400
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +28 -77
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +23 -26
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +36 -33
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +62 -16
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +138 -21
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +129 -22
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +41 -19
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +11 -82
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +56 -279
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +21 -34
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +280 -33
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +74 -94
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +66 -41
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +333 -62
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +96 -256
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +38 -130
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +251 -50
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +144 -115
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +93 -183
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +33 -339
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.js +102 -66
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +73 -179
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +117 -97
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +113 -263
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +258 -251
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +177 -79
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +261 -140
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +183 -100
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +28 -89
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +20 -161
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +394 -32
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +190 -53
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +204 -112
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -2
- package/dist/index73.js +89 -28
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +126 -63
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +122 -111
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +67 -64
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +112 -88
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +87 -16
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +151 -79
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +25 -127
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +104 -186
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +59 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +17 -129
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +88 -217
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +64 -112
- package/dist/index84.js.map +1 -1
- package/dist/index9.js +30 -45
- package/dist/index9.js.map +1 -1
- package/dist/src/components/atoms/index.d.ts +45 -16
- package/dist/src/components/atoms/index.d.ts.map +1 -1
- package/dist/src/components/molecules/index.d.ts +20 -1
- package/dist/src/components/molecules/index.d.ts.map +1 -1
- package/dist/src/components/organisms/index.d.ts +17 -1
- package/dist/src/components/organisms/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -82
- package/dist/src/index.d.ts.map +1 -1
- package/dist/tokens.css +353 -7
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index57.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unsafeCSS, css, LitElement } from "lit";
|
|
2
|
-
import { property, customElement } from "lit/decorators.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
3
|
+
import { headerTemplate } from "./index213.js";
|
|
4
|
+
import headerCss from "./index214.js";
|
|
5
5
|
import sharedTokens from "./index196.js";
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -13,155 +13,184 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
13
|
if (kind && result) __defProp(target, key, result);
|
|
14
14
|
return result;
|
|
15
15
|
};
|
|
16
|
-
let
|
|
16
|
+
let LibHeader = class extends LitElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
19
|
+
this.variant = "classic";
|
|
20
|
+
this.logoMark = "渋";
|
|
21
|
+
this.brandName = "shibui";
|
|
22
|
+
this.brandTagline = "";
|
|
23
|
+
this.logoHref = "#";
|
|
24
|
+
this.version = "";
|
|
25
|
+
this.links = [];
|
|
26
|
+
this.actions = [];
|
|
27
|
+
this.loginLabel = "";
|
|
28
|
+
this.loginHref = "";
|
|
29
|
+
this.contactLabel = "";
|
|
30
|
+
this.contactHref = "";
|
|
31
|
+
this.announcement = "";
|
|
32
|
+
this.announcementHref = "";
|
|
33
|
+
this.megaColumns = [];
|
|
34
|
+
this.megaCta = null;
|
|
35
|
+
this.breadcrumbs = [];
|
|
36
|
+
this.showSearch = false;
|
|
37
|
+
this.searchPlaceholder = "Buscar…";
|
|
38
|
+
this.notifications = false;
|
|
39
|
+
this.userName = "";
|
|
40
|
+
this.userInitials = "";
|
|
41
|
+
this.compact = false;
|
|
42
|
+
this.shrunk = false;
|
|
43
|
+
this.scrolled = false;
|
|
44
|
+
this._megaOpen = false;
|
|
45
|
+
this._mobileOpen = false;
|
|
46
|
+
this._onScroll = () => {
|
|
47
|
+
const y = window.scrollY;
|
|
48
|
+
if (this.variant === "transparent") this.scrolled = y > 20;
|
|
49
|
+
if (this.variant === "shrink") this.shrunk = y > 60;
|
|
50
|
+
};
|
|
37
51
|
}
|
|
38
|
-
/* ──
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
get _parsedMarks() {
|
|
44
|
-
if (!this.marks) return [];
|
|
45
|
-
try {
|
|
46
|
-
return JSON.parse(this.marks);
|
|
47
|
-
} catch {
|
|
48
|
-
return [];
|
|
52
|
+
/* ── Lifecycle ── */
|
|
53
|
+
connectedCallback() {
|
|
54
|
+
super.connectedCallback();
|
|
55
|
+
if (this.variant === "transparent" || this.variant === "shrink") {
|
|
56
|
+
window.addEventListener("scroll", this._onScroll, { passive: true });
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
59
|
+
disconnectedCallback() {
|
|
60
|
+
super.disconnectedCallback();
|
|
61
|
+
window.removeEventListener("scroll", this._onScroll);
|
|
62
|
+
}
|
|
63
|
+
/* ── Mega-nav ── */
|
|
64
|
+
_openMega() {
|
|
65
|
+
this._megaOpen = true;
|
|
66
|
+
}
|
|
67
|
+
_closeMega() {
|
|
68
|
+
this._megaOpen = false;
|
|
69
|
+
}
|
|
70
|
+
/* ── Mobile drawer ── */
|
|
71
|
+
_toggleMobile() {
|
|
72
|
+
this._mobileOpen = !this._mobileOpen;
|
|
55
73
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
74
|
+
_closeMobile() {
|
|
75
|
+
this._mobileOpen = false;
|
|
76
|
+
}
|
|
77
|
+
/* ── Event dispatchers ── */
|
|
78
|
+
_onLinkClick(id) {
|
|
79
|
+
this._closeMobile();
|
|
80
|
+
this.dispatchEvent(new CustomEvent("ui-lib-header-link", {
|
|
81
|
+
detail: { id },
|
|
82
|
+
bubbles: true,
|
|
83
|
+
composed: true
|
|
84
|
+
}));
|
|
60
85
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
this.
|
|
64
|
-
|
|
86
|
+
_onActionClick(action) {
|
|
87
|
+
this._closeMobile();
|
|
88
|
+
this.dispatchEvent(new CustomEvent("ui-lib-header-action", {
|
|
89
|
+
detail: { label: action.label, href: action.href },
|
|
90
|
+
bubbles: true,
|
|
91
|
+
composed: true
|
|
92
|
+
}));
|
|
65
93
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
detail,
|
|
94
|
+
_onSearch(query) {
|
|
95
|
+
this.dispatchEvent(new CustomEvent("ui-lib-header-search", {
|
|
96
|
+
detail: { query },
|
|
70
97
|
bubbles: true,
|
|
71
98
|
composed: true
|
|
72
99
|
}));
|
|
73
100
|
}
|
|
74
101
|
render() {
|
|
75
|
-
return
|
|
76
|
-
size: this.size,
|
|
77
|
-
tone: this.tone,
|
|
78
|
-
dual: this.dual,
|
|
79
|
-
vertical: this.vertical,
|
|
80
|
-
disabled: this.disabled,
|
|
81
|
-
tooltip: this.tooltip,
|
|
82
|
-
min: this.min,
|
|
83
|
-
max: this.max,
|
|
84
|
-
step: this.step,
|
|
85
|
-
value: this.value,
|
|
86
|
-
valueMin: this.valueMin,
|
|
87
|
-
valueMax: this.valueMax,
|
|
88
|
-
pct: this._pct(this.value),
|
|
89
|
-
minPct: this._pct(this.valueMin),
|
|
90
|
-
maxPct: this._pct(this.valueMax),
|
|
91
|
-
label: this.label,
|
|
92
|
-
unit: this.unit,
|
|
93
|
-
showLimits: this.showLimits,
|
|
94
|
-
limitMinText: this.limitMin || String(this.min),
|
|
95
|
-
limitMaxText: this.limitMax || String(this.max),
|
|
96
|
-
marks: this._parsedMarks,
|
|
97
|
-
onInput: this._onInput.bind(this),
|
|
98
|
-
onInputMin: this._onInputMin.bind(this),
|
|
99
|
-
onInputMax: this._onInputMax.bind(this)
|
|
100
|
-
});
|
|
102
|
+
return headerTemplate(this);
|
|
101
103
|
}
|
|
102
104
|
};
|
|
103
|
-
|
|
105
|
+
LibHeader.styles = [
|
|
104
106
|
css`${unsafeCSS(sharedTokens)}`,
|
|
105
|
-
css`${unsafeCSS(
|
|
107
|
+
css`${unsafeCSS(headerCss)}`
|
|
106
108
|
];
|
|
107
109
|
__decorateClass([
|
|
108
|
-
property({ type:
|
|
109
|
-
],
|
|
110
|
+
property({ type: String, reflect: true })
|
|
111
|
+
], LibHeader.prototype, "variant", 2);
|
|
110
112
|
__decorateClass([
|
|
111
|
-
property({ type:
|
|
112
|
-
],
|
|
113
|
+
property({ type: String, attribute: "logo-mark" })
|
|
114
|
+
], LibHeader.prototype, "logoMark", 2);
|
|
113
115
|
__decorateClass([
|
|
114
|
-
property({ type:
|
|
115
|
-
],
|
|
116
|
+
property({ type: String, attribute: "brand-name" })
|
|
117
|
+
], LibHeader.prototype, "brandName", 2);
|
|
116
118
|
__decorateClass([
|
|
117
|
-
property({ type:
|
|
118
|
-
],
|
|
119
|
+
property({ type: String, attribute: "brand-tagline" })
|
|
120
|
+
], LibHeader.prototype, "brandTagline", 2);
|
|
119
121
|
__decorateClass([
|
|
120
|
-
property({ type:
|
|
121
|
-
],
|
|
122
|
+
property({ type: String, attribute: "logo-href" })
|
|
123
|
+
], LibHeader.prototype, "logoHref", 2);
|
|
122
124
|
__decorateClass([
|
|
123
|
-
property({ type:
|
|
124
|
-
],
|
|
125
|
+
property({ type: String })
|
|
126
|
+
], LibHeader.prototype, "version", 2);
|
|
125
127
|
__decorateClass([
|
|
126
|
-
property({ type:
|
|
127
|
-
],
|
|
128
|
+
property({ type: Array })
|
|
129
|
+
], LibHeader.prototype, "links", 2);
|
|
128
130
|
__decorateClass([
|
|
129
|
-
property({ type:
|
|
130
|
-
],
|
|
131
|
+
property({ type: Array })
|
|
132
|
+
], LibHeader.prototype, "actions", 2);
|
|
131
133
|
__decorateClass([
|
|
132
|
-
property({ type: String,
|
|
133
|
-
],
|
|
134
|
+
property({ type: String, attribute: "login-label" })
|
|
135
|
+
], LibHeader.prototype, "loginLabel", 2);
|
|
134
136
|
__decorateClass([
|
|
135
|
-
property({ type: String,
|
|
136
|
-
],
|
|
137
|
+
property({ type: String, attribute: "login-href" })
|
|
138
|
+
], LibHeader.prototype, "loginHref", 2);
|
|
137
139
|
__decorateClass([
|
|
138
|
-
property({ type:
|
|
139
|
-
],
|
|
140
|
+
property({ type: String, attribute: "contact-label" })
|
|
141
|
+
], LibHeader.prototype, "contactLabel", 2);
|
|
140
142
|
__decorateClass([
|
|
141
|
-
property({ type: String })
|
|
142
|
-
],
|
|
143
|
+
property({ type: String, attribute: "contact-href" })
|
|
144
|
+
], LibHeader.prototype, "contactHref", 2);
|
|
143
145
|
__decorateClass([
|
|
144
146
|
property({ type: String })
|
|
145
|
-
],
|
|
147
|
+
], LibHeader.prototype, "announcement", 2);
|
|
148
|
+
__decorateClass([
|
|
149
|
+
property({ type: String, attribute: "announcement-href" })
|
|
150
|
+
], LibHeader.prototype, "announcementHref", 2);
|
|
146
151
|
__decorateClass([
|
|
147
|
-
property({ type:
|
|
148
|
-
],
|
|
152
|
+
property({ type: Array, attribute: "mega-columns" })
|
|
153
|
+
], LibHeader.prototype, "megaColumns", 2);
|
|
149
154
|
__decorateClass([
|
|
150
|
-
property({ type:
|
|
151
|
-
],
|
|
155
|
+
property({ type: Object, attribute: "mega-cta" })
|
|
156
|
+
], LibHeader.prototype, "megaCta", 2);
|
|
152
157
|
__decorateClass([
|
|
153
|
-
property({ type:
|
|
154
|
-
],
|
|
158
|
+
property({ type: Array })
|
|
159
|
+
], LibHeader.prototype, "breadcrumbs", 2);
|
|
160
|
+
__decorateClass([
|
|
161
|
+
property({ type: Boolean, attribute: "show-search" })
|
|
162
|
+
], LibHeader.prototype, "showSearch", 2);
|
|
163
|
+
__decorateClass([
|
|
164
|
+
property({ type: String, attribute: "search-placeholder" })
|
|
165
|
+
], LibHeader.prototype, "searchPlaceholder", 2);
|
|
155
166
|
__decorateClass([
|
|
156
167
|
property({ type: Boolean })
|
|
157
|
-
],
|
|
168
|
+
], LibHeader.prototype, "notifications", 2);
|
|
158
169
|
__decorateClass([
|
|
159
|
-
property({ type: String })
|
|
160
|
-
],
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
],
|
|
170
|
+
property({ type: String, attribute: "user-name" })
|
|
171
|
+
], LibHeader.prototype, "userName", 2);
|
|
172
|
+
__decorateClass([
|
|
173
|
+
property({ type: String, attribute: "user-initials" })
|
|
174
|
+
], LibHeader.prototype, "userInitials", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
property({ type: Boolean, reflect: true })
|
|
177
|
+
], LibHeader.prototype, "compact", 2);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
property({ type: Boolean, reflect: true })
|
|
180
|
+
], LibHeader.prototype, "shrunk", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
property({ type: Boolean, reflect: true })
|
|
183
|
+
], LibHeader.prototype, "scrolled", 2);
|
|
184
|
+
__decorateClass([
|
|
185
|
+
state()
|
|
186
|
+
], LibHeader.prototype, "_megaOpen", 2);
|
|
187
|
+
__decorateClass([
|
|
188
|
+
state()
|
|
189
|
+
], LibHeader.prototype, "_mobileOpen", 2);
|
|
190
|
+
LibHeader = __decorateClass([
|
|
191
|
+
customElement("lib-header")
|
|
192
|
+
], LibHeader);
|
|
164
193
|
export {
|
|
165
|
-
|
|
194
|
+
LibHeader
|
|
166
195
|
};
|
|
167
196
|
//# sourceMappingURL=index57.js.map
|
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":["../src/components/molecules/range-slider/lib-range-slider.component.ts"],"sourcesContent":["import { LitElement, css, unsafeCSS, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { rangeSliderTemplate } from './lib-range-slider.html';\nimport sliderCss from './lib-range-slider.css?inline';\nimport sharedTokens from '../../../styles/shared/tokens.css?inline';\n\nexport type RsSize = 'sm' | 'md' | 'lg';\nexport type RsTone = 'default' | 'kaki' | 'celadon' | 'error' | 'washi' | 'dark';\n\nexport interface RsMark {\n /** Posición 0–100 sobre el track */\n pct: number;\n /** Etiqueta opcional bajo la marca */\n label?: string;\n}\n\n/**\n * @element lib-range-slider\n *\n * Control de selección de valor numérico — single, dual y vertical.\n *\n * @prop value — valor actual (modo single)\n * @prop value-min — valor inferior (modo dual)\n * @prop value-max — valor superior (modo dual)\n * @prop dual — activa dos thumbs para rango min/max\n * @prop vertical — orientación vertical\n * @prop tooltip — globito flotante sobre el thumb (solo single horizontal)\n * @prop marks — JSON string de marcas: '[{\"pct\":0,\"label\":\"XS\"},...]'\n * @prop show-limits — muestra min/max labels bajo el track\n * @prop limit-min / limit-max — texto personalizado de los extremos\n *\n * @fires ui-lib-change — { value } (single) | { valueMin, valueMax } (dual)\n *\n * @example single\n * <lib-range-slider label=\"Volumen\" value=\"48\" unit=\"%\" show-limits></lib-range-slider>\n *\n * @example dual\n * <lib-range-slider dual label=\"Precio\" value-min=\"120\" value-max=\"480\"\n * unit=\"€\" show-limits limit-min=\"0 €\" limit-max=\"500 €\" tone=\"kaki\">\n * </lib-range-slider>\n *\n * @example vertical\n * <lib-range-slider vertical tone=\"kaki\" value=\"80\" label=\"Bajo\"\n * style=\"height:220px\"></lib-range-slider>\n */\n@customElement('lib-range-slider')\nexport class LibRangeSlider extends LitElement {\n static override styles = [\n css`${unsafeCSS(sharedTokens)}`,\n css`${unsafeCSS(sliderCss)}`,\n ];\n\n /* ── Range attrs ─────────────────────────────────────── */\n @property({ type: Number })\n min = 0;\n\n @property({ type: Number })\n max = 100;\n\n @property({ type: Number })\n step = 1;\n\n /* ── Values ──────────────────────────────────────────── */\n /** Valor actual — modo single. */\n @property({ type: Number })\n value = 50;\n\n /** Límite inferior — modo dual. */\n @property({ type: Number, attribute: 'value-min' })\n valueMin = 25;\n\n /** Límite superior — modo dual. */\n @property({ type: Number, attribute: 'value-max' })\n valueMax = 75;\n\n /* ── Modes ───────────────────────────────────────────── */\n @property({ type: Boolean, reflect: true })\n dual = false;\n\n @property({ type: Boolean, reflect: true })\n vertical = false;\n\n /* ── Appearance ──────────────────────────────────────── */\n @property({ type: String, reflect: true })\n size: RsSize = 'md';\n\n @property({ type: String, reflect: true })\n tone: RsTone = 'default';\n\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /* ── Display ─────────────────────────────────────────── */\n @property({ type: String })\n label = '';\n\n @property({ type: String })\n unit = '';\n\n @property({ type: Boolean, attribute: 'show-limits' })\n showLimits = false;\n\n /** Texto personalizado extremo izquierdo/abajo. Por defecto: `min`. */\n @property({ type: String, attribute: 'limit-min' })\n limitMin = '';\n\n /** Texto personalizado extremo derecho/arriba. Por defecto: `max`. */\n @property({ type: String, attribute: 'limit-max' })\n limitMax = '';\n\n /* ── Extras ──────────────────────────────────────────── */\n /** Globito flotante sobre el thumb (solo modo single horizontal). */\n @property({ type: Boolean })\n tooltip = false;\n\n /**\n * Marcas de paso como JSON string.\n * Formato: '[{\"pct\":0,\"label\":\"XS\"},{\"pct\":25,\"label\":\"S\"},...]'\n * `pct` = posición 0–100 sobre el track. `label` es opcional.\n */\n @property({ type: String })\n marks = '';\n\n /* ── Computed ────────────────────────────────────────── */\n private _pct(v: number): number {\n const clamped = Math.min(Math.max(v, this.min), this.max);\n return ((clamped - this.min) / (this.max - this.min)) * 100;\n }\n\n private get _parsedMarks(): RsMark[] {\n if (!this.marks) return [];\n try { return JSON.parse(this.marks) as RsMark[]; }\n catch { return []; }\n }\n\n /* ── Handlers ────────────────────────────────────────── */\n private _onInput(e: Event): void {\n this.value = parseFloat((e.target as HTMLInputElement).value);\n this._dispatchChange();\n }\n\n private _onInputMin(e: Event): void {\n const v = parseFloat((e.target as HTMLInputElement).value);\n this.valueMin = Math.min(v, this.valueMax - this.step);\n this._dispatchChange();\n }\n\n private _onInputMax(e: Event): void {\n const v = parseFloat((e.target as HTMLInputElement).value);\n this.valueMax = Math.max(v, this.valueMin + this.step);\n this._dispatchChange();\n }\n\n private _dispatchChange(): void {\n const detail = this.dual\n ? { valueMin: this.valueMin, valueMax: this.valueMax }\n : { value: this.value };\n\n this.dispatchEvent(new CustomEvent('ui-lib-change', {\n detail,\n bubbles: true,\n composed: true,\n }));\n }\n\n override render(): TemplateResult {\n return rangeSliderTemplate({\n size: this.size,\n tone: this.tone,\n dual: this.dual,\n vertical: this.vertical,\n disabled: this.disabled,\n tooltip: this.tooltip,\n min: this.min,\n max: this.max,\n step: this.step,\n value: this.value,\n valueMin: this.valueMin,\n valueMax: this.valueMax,\n pct: this._pct(this.value),\n minPct: this._pct(this.valueMin),\n maxPct: this._pct(this.valueMax),\n label: this.label,\n unit: this.unit,\n showLimits: this.showLimits,\n limitMinText: this.limitMin || String(this.min),\n limitMaxText: this.limitMax || String(this.max),\n marks: this._parsedMarks,\n onInput: this._onInput.bind(this),\n onInputMin: this._onInputMin.bind(this),\n onInputMax: this._onInputMax.bind(this),\n });\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'lib-range-slider': LibRangeSlider;\n }\n}"],"names":[],"mappings":";;;;;;;;;;;;;;;AA8CO,IAAM,iBAAN,cAA6B,WAAW;AAAA,EAAxC,cAAA;AAAA,UAAA,GAAA,SAAA;AAQL,SAAA,MAAM;AAGN,SAAA,MAAM;AAGN,SAAA,OAAO;AAKP,SAAA,QAAQ;AAIR,SAAA,WAAW;AAIX,SAAA,WAAW;AAIX,SAAA,OAAO;AAGP,SAAA,WAAW;AAIX,SAAA,OAAe;AAGf,SAAA,OAAe;AAGf,SAAA,WAAW;AAIX,SAAA,QAAQ;AAGR,SAAA,OAAO;AAGP,SAAA,aAAa;AAIb,SAAA,WAAW;AAIX,SAAA,WAAW;AAKX,SAAA,UAAU;AAQV,SAAA,QAAQ;AAAA,EAAA;AAAA;AAAA,EAGA,KAAK,GAAmB;AAC9B,UAAM,UAAU,KAAK,IAAI,KAAK,I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"file":"index57.js","sources":["../src/components/molecules/header/lib-header.component.ts"],"sourcesContent":["import { LitElement, css, unsafeCSS, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { headerTemplate } from './lib-header.html';\nimport headerCss from './lib-header.css?inline';\nimport sharedTokens from '../../../styles/shared/tokens.css?inline';\nimport type {\n HeaderVariant, NavLink, HeaderAction, BreadcrumbItem,\n} from './lib-header.types';\n\nexport interface MegaColumn {\n title: string;\n items: { label: string; href?: string }[];\n}\n\nexport interface MegaCta {\n label: string; title: string; desc: string;\n href?: string; cta: string;\n}\n\n/**\n * lib-header — Shibui UI · SG-66\n *\n * 10 variantes: classic · dark · centered · transparent · kintsugi ·\n * glitch · mega · minimal · shrink · app-bar\n *\n * Mobile: breakpoint 640px — drawer vertical compartido por todas las variantes.\n */\n@customElement('lib-header')\nexport class LibHeader extends LitElement {\n static override styles = [\n css`${unsafeCSS(sharedTokens)}`,\n css`${unsafeCSS(headerCss)}`,\n ];\n\n /* ── Variant ── */\n @property({ type: String, reflect: true })\n variant: HeaderVariant = 'classic';\n\n /* ── Logo ── */\n @property({ type: String, attribute: 'logo-mark' })\n logoMark = '渋';\n\n @property({ type: String, attribute: 'brand-name' })\n brandName = 'shibui';\n\n @property({ type: String, attribute: 'brand-tagline' })\n brandTagline = '';\n\n @property({ type: String, attribute: 'logo-href' })\n logoHref = '#';\n\n @property({ type: String })\n version = '';\n\n /* ── Nav ── */\n @property({ type: Array })\n links: NavLink[] = [];\n\n @property({ type: Array })\n actions: HeaderAction[] = [];\n\n @property({ type: String, attribute: 'login-label' })\n loginLabel = '';\n\n @property({ type: String, attribute: 'login-href' })\n loginHref = '';\n\n @property({ type: String, attribute: 'contact-label' })\n contactLabel = '';\n\n @property({ type: String, attribute: 'contact-href' })\n contactHref = '';\n\n /* ── Centered announcement ── */\n @property({ type: String })\n announcement = '';\n\n @property({ type: String, attribute: 'announcement-href' })\n announcementHref = '';\n\n /* ── Mega-nav ── */\n @property({ type: Array, attribute: 'mega-columns' })\n megaColumns: MegaColumn[] = [];\n\n @property({ type: Object, attribute: 'mega-cta' })\n megaCta: MegaCta | null = null;\n\n /* ── App-bar ── */\n @property({ type: Array })\n breadcrumbs: BreadcrumbItem[] = [];\n\n @property({ type: Boolean, attribute: 'show-search' })\n showSearch = false;\n\n @property({ type: String, attribute: 'search-placeholder' })\n searchPlaceholder = 'Buscar…';\n\n @property({ type: Boolean })\n notifications = false;\n\n @property({ type: String, attribute: 'user-name' })\n userName = '';\n\n @property({ type: String, attribute: 'user-initials' })\n userInitials = '';\n\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n /* ── Scroll states ── */\n @property({ type: Boolean, reflect: true })\n shrunk = false;\n\n @property({ type: Boolean, reflect: true })\n scrolled = false;\n\n /* ── Internal ── */\n @state() _megaOpen = false;\n @state() _mobileOpen = false;\n\n /* ── Lifecycle ── */\n override connectedCallback(): void {\n super.connectedCallback();\n if (this.variant === 'transparent' || this.variant === 'shrink') {\n window.addEventListener('scroll', this._onScroll, { passive: true });\n }\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n window.removeEventListener('scroll', this._onScroll);\n }\n\n /* ── Scroll handler ── */\n private _onScroll = (): void => {\n const y = window.scrollY;\n if (this.variant === 'transparent') this.scrolled = y > 20;\n if (this.variant === 'shrink') this.shrunk = y > 60;\n };\n\n /* ── Mega-nav ── */\n _openMega(): void { this._megaOpen = true; }\n _closeMega(): void { this._megaOpen = false; }\n\n /* ── Mobile drawer ── */\n _toggleMobile(): void {\n this._mobileOpen = !this._mobileOpen;\n }\n\n _closeMobile(): void {\n this._mobileOpen = false;\n }\n\n /* ── Event dispatchers ── */\n _onLinkClick(id: string): void {\n this._closeMobile();\n this.dispatchEvent(new CustomEvent('ui-lib-header-link', {\n detail: { id }, bubbles: true, composed: true,\n }));\n }\n\n _onActionClick(action: HeaderAction): void {\n this._closeMobile();\n this.dispatchEvent(new CustomEvent('ui-lib-header-action', {\n detail: { label: action.label, href: action.href },\n bubbles: true, composed: true,\n }));\n }\n\n _onSearch(query: string): void {\n this.dispatchEvent(new CustomEvent('ui-lib-header-search', {\n detail: { query }, bubbles: true, composed: true,\n }));\n }\n\n protected override render(): TemplateResult {\n return headerTemplate(this);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'lib-header': LibHeader;\n }\n}"],"names":[],"mappings":";;;;;;;;;;;;;;;AA4BO,IAAM,YAAN,cAAwB,WAAW;AAAA,EAAnC,cAAA;AAAA,UAAA,GAAA,SAAA;AAQL,SAAA,UAAyB;AAIzB,SAAA,WAAW;AAGX,SAAA,YAAY;AAGZ,SAAA,eAAe;AAGf,SAAA,WAAW;AAGX,SAAA,UAAU;AAIV,SAAA,QAAmB,CAAA;AAGnB,SAAA,UAA0B,CAAA;AAG1B,SAAA,aAAa;AAGb,SAAA,YAAY;AAGZ,SAAA,eAAe;AAGf,SAAA,cAAc;AAId,SAAA,eAAe;AAGf,SAAA,mBAAmB;AAInB,SAAA,cAA4B,CAAA;AAG5B,SAAA,UAA0B;AAI1B,SAAA,cAAgC,CAAA;AAGhC,SAAA,aAAa;AAGb,SAAA,oBAAoB;AAGpB,SAAA,gBAAgB;AAGhB,SAAA,WAAW;AAGX,SAAA,eAAe;AAGf,SAAA,UAAU;AAIV,SAAA,SAAS;AAGT,SAAA,WAAW;AAGF,SAAA,YAAe;AACf,SAAA,cAAe;AAgBxB,SAAQ,YAAY,MAAY;AAC9B,YAAM,IAAI,OAAO;AACjB,UAAI,KAAK,YAAY,cAAe,MAAK,WAAW,IAAI;AACxD,UAAI,KAAK,YAAY,SAAe,MAAK,SAAW,IAAI;AAAA,IAC1D;AAAA,EAAA;AAAA;AAAA,EAjBS,oBAA0B;AACjC,UAAM,kBAAA;AACN,QAAI,KAAK,YAAY,iBAAiB,KAAK,YAAY,UAAU;AAC/D,aAAO,iBAAiB,UAAU,KAAK,WAAW,EAAE,SAAS,MAAM;AAAA,IACrE;AAAA,EACF;AAAA,EAES,uBAA6B;AAC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Ac,YAAY;AAAA,GACd,SAAA;"}
|
package/dist/index58.js
CHANGED
|
@@ -1,188 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</div>` : html`<div class="ts-toggle-spacer"></div>`;
|
|
46
|
-
const checkbox = ctx.multi ? html`
|
|
47
|
-
<div class="ts-checkbox">
|
|
48
|
-
<svg class="ts-checkbox-check" viewBox="0 0 10 10" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
49
|
-
<path d="M1.5 5l2.5 2.5L8.5 2"/>
|
|
50
|
-
</svg>
|
|
51
|
-
<div class="ts-checkbox-dash"></div>
|
|
52
|
-
</div>` : nothing;
|
|
53
|
-
const rowCls = [
|
|
54
|
-
"ts-node-row",
|
|
55
|
-
st.selected && !st.indeterminate ? "is-selected" : "",
|
|
56
|
-
st.indeterminate ? "is-indeterminate" : ""
|
|
57
|
-
].filter(Boolean).join(" ");
|
|
58
|
-
const badge = hasKids ? html`<span class="ts-node-badge">${node.children.length}</span>` : nothing;
|
|
59
|
-
const childAncestors = [...ancestorIsLast, isLast];
|
|
60
|
-
const children = hasKids ? html`
|
|
61
|
-
<div class="ts-children">
|
|
62
|
-
<div class="ts-children-inner">
|
|
63
|
-
${o(
|
|
64
|
-
node.children,
|
|
65
|
-
(child, ci) => renderNode(child, ctx, depth + 1, childAncestors, ci === node.children.length - 1)
|
|
66
|
-
)}
|
|
67
|
-
</div>
|
|
68
|
-
</div>` : nothing;
|
|
69
|
-
return html`
|
|
70
|
-
<div class="ts-node ${isExpanded ? "is-expanded" : ""}">
|
|
71
|
-
<div class="${rowCls}" @click="${() => ctx.onSelect(node)}">
|
|
72
|
-
${indent}
|
|
73
|
-
${toggle}
|
|
74
|
-
${checkbox}
|
|
75
|
-
<span class="ts-node-label">${highlightLabel(node.label, ctx.searchValue)}</span>
|
|
76
|
-
${badge}
|
|
77
|
-
</div>
|
|
78
|
-
${children}
|
|
79
|
-
</div>
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
function renderTree(props) {
|
|
83
|
-
const ctx = {
|
|
84
|
-
nodeStates: props.nodeStates,
|
|
85
|
-
multi: props.multi,
|
|
86
|
-
searchValue: props.searchValue,
|
|
87
|
-
onToggle: props.onToggle,
|
|
88
|
-
onSelect: props.onSelect
|
|
89
|
-
};
|
|
90
|
-
const visibleNodes = props.nodes.filter(
|
|
91
|
-
(n) => !props.searchValue || nodeMatchesSearch(n, props.searchValue)
|
|
92
|
-
);
|
|
93
|
-
if (visibleNodes.length === 0) {
|
|
94
|
-
return html`<div class="ts-empty">${props.emptyText}</div>`;
|
|
1
|
+
import { unsafeCSS, css, LitElement } from "lit";
|
|
2
|
+
import { property, state, customElement } from "lit/decorators.js";
|
|
3
|
+
import sharedTokens from "./index196.js";
|
|
4
|
+
import inputStyles from "./index215.js";
|
|
5
|
+
import { inputTemplate } from "./index216.js";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
+
if (kind && result) __defProp(target, key, result);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
let LibInput = class extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.label = "";
|
|
20
|
+
this.placeholder = "";
|
|
21
|
+
this.type = "text";
|
|
22
|
+
this.required = false;
|
|
23
|
+
this.disabled = false;
|
|
24
|
+
this.error = false;
|
|
25
|
+
this.errorMessage = "";
|
|
26
|
+
this.value = "";
|
|
27
|
+
this._showPassword = false;
|
|
28
|
+
this._uuid = `lib-input-${Math.random().toString(36).slice(2, 9)}`;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return inputTemplate({
|
|
32
|
+
uuid: this._uuid,
|
|
33
|
+
type: this.type,
|
|
34
|
+
label: this.label,
|
|
35
|
+
placeholder: this.placeholder,
|
|
36
|
+
required: this.required,
|
|
37
|
+
disabled: this.disabled,
|
|
38
|
+
error: this.error,
|
|
39
|
+
errorMessage: this.errorMessage,
|
|
40
|
+
value: this.value,
|
|
41
|
+
showPassword: this._showPassword,
|
|
42
|
+
handleInput: this._handleInput.bind(this),
|
|
43
|
+
handleTogglePassword: this._handleTogglePassword.bind(this)
|
|
44
|
+
});
|
|
95
45
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<circle cx="7" cy="7" r="5"/><path d="M12 12l2.5 2.5"/>
|
|
107
|
-
</svg>
|
|
108
|
-
<input
|
|
109
|
-
class="ts-search"
|
|
110
|
-
type="text"
|
|
111
|
-
placeholder="Buscar…"
|
|
112
|
-
.value="${props.searchValue}"
|
|
113
|
-
autocomplete="off"
|
|
114
|
-
@input="${(e) => props.onSearch(e.target.value)}"
|
|
115
|
-
>
|
|
116
|
-
</div>
|
|
117
|
-
`;
|
|
118
|
-
}
|
|
119
|
-
function renderFooter(props) {
|
|
120
|
-
if (!props.multi) return nothing;
|
|
121
|
-
return html`
|
|
122
|
-
<div class="ts-footer">
|
|
123
|
-
<span class="ts-footer-info">${props.footerInfo}</span>
|
|
124
|
-
<div class="ts-footer-actions">
|
|
125
|
-
<button class="ts-btn" @click="${props.onClear}">Limpiar</button>
|
|
126
|
-
${props.inline ? nothing : html`<button class="ts-btn ts-btn-confirm" @click="${props.onConfirm}">Aplicar</button>`}
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
`;
|
|
130
|
-
}
|
|
131
|
-
function renderTags(props) {
|
|
132
|
-
if (!props.multi || props.inline) return nothing;
|
|
133
|
-
return html`
|
|
134
|
-
<div class="ts-tags">
|
|
135
|
-
${o(props.tags, (tag) => html`
|
|
136
|
-
<div class="ts-tag">
|
|
137
|
-
${tag.label}
|
|
138
|
-
<span class="ts-tag-remove" @click="${() => props.onTagRemove(tag.id)}">×</span>
|
|
139
|
-
</div>
|
|
140
|
-
`)}
|
|
141
|
-
</div>
|
|
142
|
-
`;
|
|
143
|
-
}
|
|
144
|
-
function treeSelectTemplate(props) {
|
|
145
|
-
if (props.inline) {
|
|
146
|
-
return html`
|
|
147
|
-
<div class="ts-inline">
|
|
148
|
-
${renderSearch(props)}
|
|
149
|
-
<div class="ts-tree">${renderTree(props)}</div>
|
|
150
|
-
${renderFooter(props)}
|
|
151
|
-
</div>
|
|
152
|
-
`;
|
|
46
|
+
_handleInput(e) {
|
|
47
|
+
const target = e.target;
|
|
48
|
+
this.value = target.value;
|
|
49
|
+
this.dispatchEvent(
|
|
50
|
+
new CustomEvent("ui-lib-input", {
|
|
51
|
+
detail: { value: this.value },
|
|
52
|
+
bubbles: true,
|
|
53
|
+
composed: true
|
|
54
|
+
})
|
|
55
|
+
);
|
|
153
56
|
}
|
|
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
|
-
}
|
|
57
|
+
_handleTogglePassword() {
|
|
58
|
+
this._showPassword = !this._showPassword;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
LibInput.styles = [
|
|
62
|
+
css`${unsafeCSS(sharedTokens)}`,
|
|
63
|
+
css`${unsafeCSS(inputStyles)}`
|
|
64
|
+
];
|
|
65
|
+
__decorateClass([
|
|
66
|
+
property({ type: String })
|
|
67
|
+
], LibInput.prototype, "label", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
property({ type: String })
|
|
70
|
+
], LibInput.prototype, "placeholder", 2);
|
|
71
|
+
__decorateClass([
|
|
72
|
+
property({ type: String })
|
|
73
|
+
], LibInput.prototype, "type", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
property({ type: Boolean, reflect: true })
|
|
76
|
+
], LibInput.prototype, "required", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
property({ type: Boolean, reflect: true })
|
|
79
|
+
], LibInput.prototype, "disabled", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
property({ type: Boolean, reflect: true })
|
|
82
|
+
], LibInput.prototype, "error", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
property({ type: String })
|
|
85
|
+
], LibInput.prototype, "errorMessage", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
property({ type: String })
|
|
88
|
+
], LibInput.prototype, "value", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
state()
|
|
91
|
+
], LibInput.prototype, "_showPassword", 2);
|
|
92
|
+
LibInput = __decorateClass([
|
|
93
|
+
customElement("lib-input")
|
|
94
|
+
], LibInput);
|
|
185
95
|
export {
|
|
186
|
-
|
|
96
|
+
LibInput
|
|
187
97
|
};
|
|
188
98
|
//# sourceMappingURL=index58.js.map
|