@e1011/es-kit 1.0.228 → 1.0.230
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/hooks/esm/index.css +62 -62
- package/dist/hooks/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/hooks/index.css +62 -62
- package/dist/hooks/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/ui.js +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/lib/cjs/src/index.js +1 -1
- package/dist/lib/esm/src/core/utils/helpers/ui.js +1 -1
- package/dist/lib/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/lib/esm/src/index.js +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/core/utils/helpers/ui.d.ts +16 -1
- package/dist/types/src/core/utils/helpers/ui.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/ui.spec.d.ts +3 -0
- package/dist/types/src/core/utils/helpers/ui.spec.d.ts.map +1 -1
- package/dist/ui/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/ui/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/utils/esm/index.css +62 -62
- package/dist/utils/esm/src/core/utils/helpers/ui.js +1 -1
- package/dist/utils/esm/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/utils/esm/src/core/utils/index.js +1 -1
- package/dist/utils/index.css +62 -62
- package/dist/utils/src/core/utils/helpers/ui.js +1 -1
- package/dist/utils/src/core/utils/helpers/ui.js.map +1 -1
- package/dist/utils/src/core/utils/index.js +1 -1
- package/package.json +1 -1
package/dist/hooks/esm/index.css
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
.errorBoundary-module_errorBoundary__gk9ps {
|
|
2
|
-
background: #EFEFEF;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
|
-
margin-right: 10px;
|
|
9
|
-
}
|
|
10
|
-
.icon-module_icon-base-parent__nOMvW {
|
|
11
|
-
line-height: 1px !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.icon-module_icon-base__S0tHf {
|
|
15
|
-
min-width: var(--min-width);
|
|
16
|
-
min-height: var(--min-height);
|
|
17
|
-
width: var(--width) !important;
|
|
18
|
-
height: var(--height) !important;
|
|
19
|
-
line-height: 1px !important;
|
|
20
|
-
background-color: var(--icon-color);
|
|
21
|
-
color: var(--icon-content-color);
|
|
22
|
-
background-repeat: no-repeat;
|
|
23
|
-
mask-image: var(--icon-url);
|
|
24
|
-
-webkit-mask-image: var(--icon-url);
|
|
25
|
-
mask-repeat: no-repeat;
|
|
26
|
-
-webkit-mask-repeat: no-repeat;
|
|
27
|
-
mask-size: contain;
|
|
28
|
-
-webkit-mask-size: contain;
|
|
29
|
-
mask-position: center;
|
|
30
|
-
-webkit-mask-position: center;
|
|
31
|
-
display: inline-block;
|
|
32
|
-
will-change: transform;
|
|
33
|
-
transform: translate3d(0, 0, 0);
|
|
34
|
-
}
|
|
35
|
-
.icon-module_icon-base__S0tHf svg {
|
|
36
|
-
fill: var(--icon-content-color);
|
|
37
|
-
width: var(--height);
|
|
38
|
-
height: var(--width);
|
|
39
|
-
}
|
|
40
1
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
41
2
|
transform-origin: 0% 0%;
|
|
42
3
|
opacity: 0;
|
|
@@ -89,29 +50,44 @@
|
|
|
89
50
|
height: var(--height);
|
|
90
51
|
margin: var(--margin);
|
|
91
52
|
}
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
53
|
+
.icon-module_icon-base-parent__nOMvW {
|
|
54
|
+
line-height: 1px !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.icon-module_icon-base__S0tHf {
|
|
58
|
+
min-width: var(--min-width);
|
|
59
|
+
min-height: var(--min-height);
|
|
60
|
+
width: var(--width) !important;
|
|
61
|
+
height: var(--height) !important;
|
|
62
|
+
line-height: 1px !important;
|
|
63
|
+
background-color: var(--icon-color);
|
|
64
|
+
color: var(--icon-content-color);
|
|
65
|
+
background-repeat: no-repeat;
|
|
66
|
+
mask-image: var(--icon-url);
|
|
67
|
+
-webkit-mask-image: var(--icon-url);
|
|
68
|
+
mask-repeat: no-repeat;
|
|
69
|
+
-webkit-mask-repeat: no-repeat;
|
|
70
|
+
mask-size: contain;
|
|
71
|
+
-webkit-mask-size: contain;
|
|
72
|
+
mask-position: center;
|
|
73
|
+
-webkit-mask-position: center;
|
|
74
|
+
display: inline-block;
|
|
75
|
+
will-change: transform;
|
|
76
|
+
transform: translate3d(0, 0, 0);
|
|
77
|
+
}
|
|
78
|
+
.icon-module_icon-base__S0tHf svg {
|
|
79
|
+
fill: var(--icon-content-color);
|
|
80
|
+
width: var(--height);
|
|
81
|
+
height: var(--width);
|
|
82
|
+
}
|
|
83
|
+
.errorBoundary-module_errorBoundary__gk9ps {
|
|
84
|
+
background: #EFEFEF;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.errorBoundary-module_StyledIcon__IYHiU {
|
|
90
|
+
margin-right: 10px;
|
|
115
91
|
}
|
|
116
92
|
.lazyComponent-module_loader__brMEW {
|
|
117
93
|
position: relative;
|
|
@@ -156,6 +132,30 @@
|
|
|
156
132
|
stroke-dashoffset: -124;
|
|
157
133
|
}
|
|
158
134
|
}
|
|
135
|
+
.layoutBox-module_layout-box__ZIID8 {
|
|
136
|
+
display: flex;
|
|
137
|
+
position: relative;
|
|
138
|
+
flex-direction: row;
|
|
139
|
+
flex: 0;
|
|
140
|
+
flex-grow: 0;
|
|
141
|
+
flex-shrink: 0;
|
|
142
|
+
flex-basis: auto;
|
|
143
|
+
flex-wrap: nowrap;
|
|
144
|
+
gap: 0;
|
|
145
|
+
text-align: left;
|
|
146
|
+
justify-content: flex-start;
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
align-self: auto;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0;
|
|
151
|
+
width: auto;
|
|
152
|
+
height: auto;
|
|
153
|
+
max-width: none;
|
|
154
|
+
max-height: none;
|
|
155
|
+
min-width: 0;
|
|
156
|
+
min-height: 0;
|
|
157
|
+
border-radius: initial;
|
|
158
|
+
}
|
|
159
159
|
.flowLayout-module_flowLayout__VHpnY {
|
|
160
160
|
overflow: auto;
|
|
161
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sources":["../../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const
|
|
1
|
+
{"version":3,"file":"ui.js","sources":["../../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const mapSerReplacer\n= (key: string, value: unknown): unknown | { dataType: string; value: Array<unknown>} => {\n if (value instanceof Map) {\n return {\n dataType: 'Map',\n value: Array.from(value.entries()), // or with spread: value: [...value]\n }\n }\n return value\n}\n\nexport type TClassName = string | boolean | null | undefined\nexport const classNames = (...classes: TClassName[]): string => classes\n .filter((className: TClassName) => (typeof className === 'string' && className !== undefined && className !== null))\n .filter(Boolean).join(' ')\n\n\nexport type PropsCategoriesType = {\n dataProps: Record<string, unknown>\n restProps: Record<string, unknown>\n};\n\nexport const parseProps = (props: Record<string, unknown>):PropsCategoriesType => {\n const dataProps: Record<string, unknown> = {}\n const restProps: Record<string, unknown> = {}\n\n Object.entries(props).forEach(([key, value]) => {\n if (key.substr(0, 5) === 'data-' || key.substr(0, 4) === 'data') {\n dataProps[key] = value\n } else {\n restProps[key] = value\n }\n })\n return { dataProps, restProps }\n}\n\n\n\ntype GeneratorIdCallable = (token: string, increment?: boolean, forcedValue?: number | undefined) => string\ntype GenerateId = { tokens?: Record<string, number | null | undefined> } & GeneratorIdCallable\n\nexport const generateId: GenerateId = (\n token: string,\n increment = true,\n forcedValue: number | undefined = undefined,\n) => {\n generateId.tokens = generateId.tokens || {}\n\n if (forcedValue !== undefined && forcedValue !== null) {\n generateId.tokens[token] = forcedValue\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n const noValue = generateId?.tokens[token] === undefined || generateId?.tokens[token] === null\n\n generateId.tokens[token] = generateId.tokens[token] || 0\n\n if (noValue) {\n return `${token}${0}`\n }\n\n if (increment) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n generateId.tokens[token] += 1\n\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n return `${token}${generateId?.tokens?.[token] as number}`\n}\n\ntype FAnchorClick = { aElement?: HTMLAnchorElement | null }\n & ((href: string, target?: string, remove?: boolean) => void)\n\nexport const anchorClick: FAnchorClick = (href: string, target = '_top', remove = false): HTMLAnchorElement | null => {\n anchorClick.aElement = anchorClick.aElement || document.createElement('a')\n\n const { aElement } = anchorClick\n\n aElement.setAttribute('href', href)\n aElement.setAttribute('target', target)\n\n aElement.dataset.date = `${Date.now()}`\n aElement.click()\n if (remove) {\n aElement.remove()\n anchorClick.aElement = null\n }\n\n return aElement\n}\n\n\n\nexport type NoopEvent = {\n preventDefault?: () => void\n stopPropagation?: () => void\n stopImmediatePropagation?: () => void\n} | Event\n\nexport const noop = (event?: NoopEvent): void => {\n event?.preventDefault?.()\n event?.stopPropagation?.()\n event?.stopImmediatePropagation?.()\n}\n"],"names":["classNames","_len","arguments","length","classes","Array","_key","filter","className","Boolean","join","parseProps","props","dataProps","restProps","Object","entries","forEach","_ref","key","value","substr"],"mappings":"iFAYaA,MAAAA,EAAa,WAAA,IAAA,IAAAC,EAAAC,UAAAC,OAAIC,EAAOC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAPF,EAAOE,GAAAJ,UAAAI,GAAA,OAA2BF,EAC7DG,QAAQC,GAAgD,iBAAdA,GAAP,MAAiCA,IACpED,OAAOE,SAASC,KAAK,IAAI,EAQfC,EAAcC,IACzB,MAAMC,EAAqC,CAAA,EACrCC,EAAqC,CAAA,EAS3C,OAPAC,OAAOC,QAAQJ,GAAOK,SAAQC,IAAkB,IAAhBC,EAAKC,GAAMF,EAChB,UAArBC,EAAIE,OAAO,EAAG,IAAuC,SAArBF,EAAIE,OAAO,EAAG,GAChDR,EAAUM,GAAOC,EAEjBN,EAAUK,GAAOC,CACnB,IAEK,CAAEP,YAAWC,YAAW"}
|
package/dist/hooks/index.css
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
.errorBoundary-module_errorBoundary__gk9ps {
|
|
2
|
-
background: #EFEFEF;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
|
-
margin-right: 10px;
|
|
9
|
-
}
|
|
10
|
-
.icon-module_icon-base-parent__nOMvW {
|
|
11
|
-
line-height: 1px !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.icon-module_icon-base__S0tHf {
|
|
15
|
-
min-width: var(--min-width);
|
|
16
|
-
min-height: var(--min-height);
|
|
17
|
-
width: var(--width) !important;
|
|
18
|
-
height: var(--height) !important;
|
|
19
|
-
line-height: 1px !important;
|
|
20
|
-
background-color: var(--icon-color);
|
|
21
|
-
color: var(--icon-content-color);
|
|
22
|
-
background-repeat: no-repeat;
|
|
23
|
-
mask-image: var(--icon-url);
|
|
24
|
-
-webkit-mask-image: var(--icon-url);
|
|
25
|
-
mask-repeat: no-repeat;
|
|
26
|
-
-webkit-mask-repeat: no-repeat;
|
|
27
|
-
mask-size: contain;
|
|
28
|
-
-webkit-mask-size: contain;
|
|
29
|
-
mask-position: center;
|
|
30
|
-
-webkit-mask-position: center;
|
|
31
|
-
display: inline-block;
|
|
32
|
-
will-change: transform;
|
|
33
|
-
transform: translate3d(0, 0, 0);
|
|
34
|
-
}
|
|
35
|
-
.icon-module_icon-base__S0tHf svg {
|
|
36
|
-
fill: var(--icon-content-color);
|
|
37
|
-
width: var(--height);
|
|
38
|
-
height: var(--width);
|
|
39
|
-
}
|
|
40
1
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
41
2
|
transform-origin: 0% 0%;
|
|
42
3
|
opacity: 0;
|
|
@@ -89,29 +50,44 @@
|
|
|
89
50
|
height: var(--height);
|
|
90
51
|
margin: var(--margin);
|
|
91
52
|
}
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
53
|
+
.icon-module_icon-base-parent__nOMvW {
|
|
54
|
+
line-height: 1px !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.icon-module_icon-base__S0tHf {
|
|
58
|
+
min-width: var(--min-width);
|
|
59
|
+
min-height: var(--min-height);
|
|
60
|
+
width: var(--width) !important;
|
|
61
|
+
height: var(--height) !important;
|
|
62
|
+
line-height: 1px !important;
|
|
63
|
+
background-color: var(--icon-color);
|
|
64
|
+
color: var(--icon-content-color);
|
|
65
|
+
background-repeat: no-repeat;
|
|
66
|
+
mask-image: var(--icon-url);
|
|
67
|
+
-webkit-mask-image: var(--icon-url);
|
|
68
|
+
mask-repeat: no-repeat;
|
|
69
|
+
-webkit-mask-repeat: no-repeat;
|
|
70
|
+
mask-size: contain;
|
|
71
|
+
-webkit-mask-size: contain;
|
|
72
|
+
mask-position: center;
|
|
73
|
+
-webkit-mask-position: center;
|
|
74
|
+
display: inline-block;
|
|
75
|
+
will-change: transform;
|
|
76
|
+
transform: translate3d(0, 0, 0);
|
|
77
|
+
}
|
|
78
|
+
.icon-module_icon-base__S0tHf svg {
|
|
79
|
+
fill: var(--icon-content-color);
|
|
80
|
+
width: var(--height);
|
|
81
|
+
height: var(--width);
|
|
82
|
+
}
|
|
83
|
+
.errorBoundary-module_errorBoundary__gk9ps {
|
|
84
|
+
background: #EFEFEF;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.errorBoundary-module_StyledIcon__IYHiU {
|
|
90
|
+
margin-right: 10px;
|
|
115
91
|
}
|
|
116
92
|
.lazyComponent-module_loader__brMEW {
|
|
117
93
|
position: relative;
|
|
@@ -156,6 +132,30 @@
|
|
|
156
132
|
stroke-dashoffset: -124;
|
|
157
133
|
}
|
|
158
134
|
}
|
|
135
|
+
.layoutBox-module_layout-box__ZIID8 {
|
|
136
|
+
display: flex;
|
|
137
|
+
position: relative;
|
|
138
|
+
flex-direction: row;
|
|
139
|
+
flex: 0;
|
|
140
|
+
flex-grow: 0;
|
|
141
|
+
flex-shrink: 0;
|
|
142
|
+
flex-basis: auto;
|
|
143
|
+
flex-wrap: nowrap;
|
|
144
|
+
gap: 0;
|
|
145
|
+
text-align: left;
|
|
146
|
+
justify-content: flex-start;
|
|
147
|
+
align-items: flex-start;
|
|
148
|
+
align-self: auto;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0;
|
|
151
|
+
width: auto;
|
|
152
|
+
height: auto;
|
|
153
|
+
max-width: none;
|
|
154
|
+
max-height: none;
|
|
155
|
+
min-width: 0;
|
|
156
|
+
min-height: 0;
|
|
157
|
+
border-radius: initial;
|
|
158
|
+
}
|
|
159
159
|
.flowLayout-module_flowLayout__VHpnY {
|
|
160
160
|
overflow: auto;
|
|
161
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sources":["../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const
|
|
1
|
+
{"version":3,"file":"ui.js","sources":["../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const mapSerReplacer\n= (key: string, value: unknown): unknown | { dataType: string; value: Array<unknown>} => {\n if (value instanceof Map) {\n return {\n dataType: 'Map',\n value: Array.from(value.entries()), // or with spread: value: [...value]\n }\n }\n return value\n}\n\nexport type TClassName = string | boolean | null | undefined\nexport const classNames = (...classes: TClassName[]): string => classes\n .filter((className: TClassName) => (typeof className === 'string' && className !== undefined && className !== null))\n .filter(Boolean).join(' ')\n\n\nexport type PropsCategoriesType = {\n dataProps: Record<string, unknown>\n restProps: Record<string, unknown>\n};\n\nexport const parseProps = (props: Record<string, unknown>):PropsCategoriesType => {\n const dataProps: Record<string, unknown> = {}\n const restProps: Record<string, unknown> = {}\n\n Object.entries(props).forEach(([key, value]) => {\n if (key.substr(0, 5) === 'data-' || key.substr(0, 4) === 'data') {\n dataProps[key] = value\n } else {\n restProps[key] = value\n }\n })\n return { dataProps, restProps }\n}\n\n\n\ntype GeneratorIdCallable = (token: string, increment?: boolean, forcedValue?: number | undefined) => string\ntype GenerateId = { tokens?: Record<string, number | null | undefined> } & GeneratorIdCallable\n\nexport const generateId: GenerateId = (\n token: string,\n increment = true,\n forcedValue: number | undefined = undefined,\n) => {\n generateId.tokens = generateId.tokens || {}\n\n if (forcedValue !== undefined && forcedValue !== null) {\n generateId.tokens[token] = forcedValue\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n const noValue = generateId?.tokens[token] === undefined || generateId?.tokens[token] === null\n\n generateId.tokens[token] = generateId.tokens[token] || 0\n\n if (noValue) {\n return `${token}${0}`\n }\n\n if (increment) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n generateId.tokens[token] += 1\n\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n return `${token}${generateId?.tokens?.[token] as number}`\n}\n\ntype FAnchorClick = { aElement?: HTMLAnchorElement | null }\n & ((href: string, target?: string, remove?: boolean) => void)\n\nexport const anchorClick: FAnchorClick = (href: string, target = '_top', remove = false): HTMLAnchorElement | null => {\n anchorClick.aElement = anchorClick.aElement || document.createElement('a')\n\n const { aElement } = anchorClick\n\n aElement.setAttribute('href', href)\n aElement.setAttribute('target', target)\n\n aElement.dataset.date = `${Date.now()}`\n aElement.click()\n if (remove) {\n aElement.remove()\n anchorClick.aElement = null\n }\n\n return aElement\n}\n\n\n\nexport type NoopEvent = {\n preventDefault?: () => void\n stopPropagation?: () => void\n stopImmediatePropagation?: () => void\n} | Event\n\nexport const noop = (event?: NoopEvent): void => {\n event?.preventDefault?.()\n event?.stopPropagation?.()\n event?.stopImmediatePropagation?.()\n}\n"],"names":["_len","arguments","length","classes","Array","_key","filter","className","Boolean","join","props","dataProps","restProps","Object","entries","forEach","_ref","key","value","substr"],"mappings":"oHAY0B,WAAA,IAAA,IAAAA,EAAAC,UAAAC,OAAIC,EAAOC,IAAAA,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAPF,EAAOE,GAAAJ,UAAAI,GAAA,OAA2BF,EAC7DG,QAAQC,GAAgD,iBAAdA,GAAP,MAAiCA,IACpED,OAAOE,SAASC,KAAK,IAAI,qBAQDC,IACzB,MAAMC,EAAqC,CAAA,EACrCC,EAAqC,CAAA,EAS3C,OAPAC,OAAOC,QAAQJ,GAAOK,SAAQC,IAAkB,IAAhBC,EAAKC,GAAMF,EAChB,UAArBC,EAAIE,OAAO,EAAG,IAAuC,SAArBF,EAAIE,OAAO,EAAG,GAChDR,EAAUM,GAAOC,EAEjBN,EAAUK,GAAOC,CACnB,IAEK,CAAEP,YAAWC,YAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require("../../../../node_modules/core-js/modules/web.dom-collections.iterator.js");exports.classNames=function(){for(var
|
|
1
|
+
"use strict";require("../../../../node_modules/core-js/modules/web.dom-collections.iterator.js");const t=function(e){var o;let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r;if(t.tokens=t.tokens||{},null!=l)return t.tokens[e]=l,"".concat(e).concat(null==t||null===(r=t.tokens)||void 0===r?void 0:r[e]);const a=void 0===(null==t?void 0:t.tokens[e])||null===(null==t?void 0:t.tokens[e]);return t.tokens[e]=t.tokens[e]||0,a?"".concat(e,0):n?(t.tokens[e]+=1,"".concat(e).concat(null==t||null===(s=t.tokens)||void 0===s?void 0:s[e])):"".concat(e).concat(null==t||null===(o=t.tokens)||void 0===o?void 0:o[e]);var s},e=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_top",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.aElement=e.aElement||document.createElement("a");const{aElement:l}=e;return l.setAttribute("href",t),l.setAttribute("target",o),l.dataset.date="".concat(Date.now()),l.click(),n&&(l.remove(),e.aElement=null),l};exports.anchorClick=e,exports.classNames=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.filter((t=>"string"==typeof t&&null!=t)).filter(Boolean).join(" ")},exports.generateId=t,exports.mapSerReplacer=(t,e)=>e instanceof Map?{dataType:"Map",value:Array.from(e.entries())}:e,exports.noop=t=>{var e,o,n;null==t||null===(e=t.preventDefault)||void 0===e||e.call(t),null==t||null===(o=t.stopPropagation)||void 0===o||o.call(t),null==t||null===(n=t.stopImmediatePropagation)||void 0===n||n.call(t)},exports.parseProps=t=>{const e={},o={};return Object.entries(t).forEach((t=>{let[n,l]=t;"data-"===n.substr(0,5)||"data"===n.substr(0,4)?e[n]=l:o[n]=l})),{dataProps:e,restProps:o}};
|
|
2
2
|
//# sourceMappingURL=ui.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sources":["../../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const
|
|
1
|
+
{"version":3,"file":"ui.js","sources":["../../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const mapSerReplacer\n= (key: string, value: unknown): unknown | { dataType: string; value: Array<unknown>} => {\n if (value instanceof Map) {\n return {\n dataType: 'Map',\n value: Array.from(value.entries()), // or with spread: value: [...value]\n }\n }\n return value\n}\n\nexport type TClassName = string | boolean | null | undefined\nexport const classNames = (...classes: TClassName[]): string => classes\n .filter((className: TClassName) => (typeof className === 'string' && className !== undefined && className !== null))\n .filter(Boolean).join(' ')\n\n\nexport type PropsCategoriesType = {\n dataProps: Record<string, unknown>\n restProps: Record<string, unknown>\n};\n\nexport const parseProps = (props: Record<string, unknown>):PropsCategoriesType => {\n const dataProps: Record<string, unknown> = {}\n const restProps: Record<string, unknown> = {}\n\n Object.entries(props).forEach(([key, value]) => {\n if (key.substr(0, 5) === 'data-' || key.substr(0, 4) === 'data') {\n dataProps[key] = value\n } else {\n restProps[key] = value\n }\n })\n return { dataProps, restProps }\n}\n\n\n\ntype GeneratorIdCallable = (token: string, increment?: boolean, forcedValue?: number | undefined) => string\ntype GenerateId = { tokens?: Record<string, number | null | undefined> } & GeneratorIdCallable\n\nexport const generateId: GenerateId = (\n token: string,\n increment = true,\n forcedValue: number | undefined = undefined,\n) => {\n generateId.tokens = generateId.tokens || {}\n\n if (forcedValue !== undefined && forcedValue !== null) {\n generateId.tokens[token] = forcedValue\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n const noValue = generateId?.tokens[token] === undefined || generateId?.tokens[token] === null\n\n generateId.tokens[token] = generateId.tokens[token] || 0\n\n if (noValue) {\n return `${token}${0}`\n }\n\n if (increment) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n generateId.tokens[token] += 1\n\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n return `${token}${generateId?.tokens?.[token] as number}`\n}\n\ntype FAnchorClick = { aElement?: HTMLAnchorElement | null }\n & ((href: string, target?: string, remove?: boolean) => void)\n\nexport const anchorClick: FAnchorClick = (href: string, target = '_top', remove = false): HTMLAnchorElement | null => {\n anchorClick.aElement = anchorClick.aElement || document.createElement('a')\n\n const { aElement } = anchorClick\n\n aElement.setAttribute('href', href)\n aElement.setAttribute('target', target)\n\n aElement.dataset.date = `${Date.now()}`\n aElement.click()\n if (remove) {\n aElement.remove()\n anchorClick.aElement = null\n }\n\n return aElement\n}\n\n\n\nexport type NoopEvent = {\n preventDefault?: () => void\n stopPropagation?: () => void\n stopImmediatePropagation?: () => void\n} | Event\n\nexport const noop = (event?: NoopEvent): void => {\n event?.preventDefault?.()\n event?.stopPropagation?.()\n event?.stopImmediatePropagation?.()\n}\n"],"names":["generateId","token","_generateId$tokens3","increment","arguments","length","undefined","forcedValue","_generateId$tokens","tokens","concat","noValue","_generateId$tokens2","anchorClick","href","target","remove","aElement","document","createElement","setAttribute","dataset","date","Date","now","click","_len","classes","Array","_key","filter","className","Boolean","join","mapSerReplacer","key","value","Map","dataType","from","entries","event","_event$preventDefault","_event$stopPropagatio","_event$stopImmediateP","preventDefault","call","stopPropagation","stopImmediatePropagation","props","dataProps","restProps","Object","forEach","_ref","substr"],"mappings":"uGAyCaA,EAAyB,SACpCC,GAGG,IAAAC,EAAA,IAFHC,IAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,KAAAA,UAAA,GACTG,EAA+BH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,QAAGE,EAIqB,IAAAE,EAAvD,GAFAR,EAAWS,OAAST,EAAWS,QAAU,CAAA,EAErCF,QAEF,OADAP,EAAWS,OAAOR,GAASM,EAC3BG,GAAAA,OAAUT,GAAKS,OAAGV,SAAkB,QAARQ,EAAVR,EAAYS,cAAZD,IAAkBA,OAAlBA,EAAAA,EAAqBP,IAGzC,MAAMU,OAAwCL,KAA9BN,aAAAA,EAAAA,EAAYS,OAAOR,KAAsD,QAA9BD,aAAAA,EAAAA,EAAYS,OAAOR,IAI9E,OAFAD,EAAWS,OAAOR,GAASD,EAAWS,OAAOR,IAAU,EAEnDU,EACF,GAAAD,OAAUT,EAAQ,GAGhBE,GAGFH,EAAWS,OAAOR,IAAU,EAE5BS,GAAAA,OAAUT,GAAKS,OAAGV,SAAkB,QAARY,EAAVZ,EAAYS,cAAZG,IAAkBA,OAAlBA,EAAAA,EAAqBX,KAGzCS,GAAAA,OAAUT,GAAKS,OAAGV,SAAkB,QAARE,EAAVF,EAAYS,cAAZP,IAAkBA,OAAlBA,EAAAA,EAAqBD,IARxB,IAAAW,CASjB,EAKaC,EAA4B,SAACC,GAA4E,IAA9DC,EAAMX,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,OAAQY,EAAMZ,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GAC7ES,EAAYI,SAAWJ,EAAYI,UAAYC,SAASC,cAAc,KAEtE,MAAMF,SAAEA,GAAaJ,EAYrB,OAVAI,EAASG,aAAa,OAAQN,GAC9BG,EAASG,aAAa,SAAUL,GAEhCE,EAASI,QAAQC,KAAIZ,GAAAA,OAAMa,KAAKC,OAChCP,EAASQ,QACLT,IACFC,EAASD,SACTH,EAAYI,SAAW,MAGlBA,CACT,2CA/E0B,WAAA,IAAA,IAAAS,EAAAtB,UAAAC,OAAIsB,EAAOC,IAAAA,MAAAF,GAAAG,EAAA,EAAAA,EAAAH,EAAAG,IAAPF,EAAOE,GAAAzB,UAAAyB,GAAA,OAA2BF,EAC7DG,QAAQC,GAAgD,iBAAdA,GAAP,MAAiCA,IACpED,OAAOE,SAASC,KAAK,IAAI,8CAb1BC,CAACC,EAAaC,IACVA,aAAiBC,IACZ,CACLC,SAAU,MACVF,MAAOR,MAAMW,KAAKH,EAAMI,YAGrBJ,eA6FYK,IAA4B,IAAAC,EAAAC,EAAAC,EAC/CH,SAAqBC,QAAhBA,EAALD,EAAOI,0BAAcH,GAArBA,EAAAI,KAAAL,GACAA,SAAsBE,QAAjBA,EAALF,EAAOM,2BAAeJ,GAAtBA,EAAAG,KAAAL,GACAA,SAA+BG,QAA1BA,EAALH,EAAOO,oCAAwBJ,GAA/BA,EAAAE,KAAAL,EAAmC,qBAlFVQ,IACzB,MAAMC,EAAqC,CAAA,EACrCC,EAAqC,CAAA,EAS3C,OAPAC,OAAOZ,QAAQS,GAAOI,SAAQC,IAAkB,IAAhBnB,EAAKC,GAAMkB,EAChB,UAArBnB,EAAIoB,OAAO,EAAG,IAAuC,SAArBpB,EAAIoB,OAAO,EAAG,GAChDL,EAAUf,GAAOC,EAEjBe,EAAUhB,GAAOC,CACnB,IAEK,CAAEc,YAAWC,YAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./core/hooks/useApi.js"),r=require("./core/hooks/useToggle.js"),t=require("./core/hooks/useOutsideClick.js"),o=require("./core/hooks/useResize.js"),s=require("./core/hooks/useClassNames.js"),i=require("./core/hooks/useParseProps.js"),a=require("./core/hooks/useThemePreference.js"),l=require("./core/utils/helpers/birthnumber.validator.js"),p=require("./core/utils/helpers/birthnumberCZSKvalidator.js"),n=require("./core/utils/helpers/fileValidator.js"),
|
|
1
|
+
"use strict";var e=require("./core/hooks/useApi.js"),r=require("./core/hooks/useToggle.js"),t=require("./core/hooks/useOutsideClick.js"),o=require("./core/hooks/useResize.js"),s=require("./core/hooks/useClassNames.js"),i=require("./core/hooks/useParseProps.js"),a=require("./core/hooks/useThemePreference.js"),l=require("./core/utils/helpers/birthnumber.validator.js"),p=require("./core/utils/helpers/birthnumberCZSKvalidator.js"),n=require("./core/utils/helpers/fileValidator.js"),c=require("./core/utils/helpers/date.js"),u=require("./core/utils/helpers/deviceInfo.js"),x=require("./core/utils/helpers/emailMatcher.js"),m=require("./core/utils/helpers/file.js"),d=require("./core/utils/helpers/objectOperations.js"),h=require("./core/utils/helpers/other.js"),C=require("./core/utils/helpers/textValueOperations.js"),T=require("./core/utils/helpers/valueOperations.js"),j=require("./core/utils/helpers/cancelableDelayedFunction.js"),S=require("./core/utils/helpers/ui.js"),v=require("./core/utils/keyExtractor.js"),y=require("./core/utils/date.js"),g=require("./core/utils/webComponents/webComponent.utils.js"),F=require("./core/utils/appState/store/store.vanillajs.js"),b=require("./core/utils/appState/store/store.vanillajs.templates.js"),q=require("./core/utils/appState/store/useStore.react.js"),f=require("./core/constants/ui.constants.js"),z=require("./core/ui/utils/style.js"),D=require("./core/ui/components/container/layoutBox/LayoutBox.js"),I=require("./core/ui/components/container/layoutBox/layoutBox.types.js"),L=require("./core/ui/components/container/lazyComponent/LazyComponent.js"),P=require("./core/ui/components/container/Flex.js"),B=require("./core/ui/components/container/Placeholder.js"),E=require("./core/ui/components/container/CollapsibleContainer.js"),V=require("./core/ui/components/container/ResizableContainer.js"),N=require("./core/ui/components/error/ErrorBoundary.js"),O=require("./core/ui/components/field/Field.js"),k=require("./core/ui/components/dividers/DividerLine.js"),R=require("./core/ui/components/icon/IconBase.js"),A=require("./core/ui/components/icon/Icon.js"),w=require("./core/ui/components/icon/IconWC.js"),M=require("./core/ui/components/molecules/layouts/FlowLayout.js");exports.useApi=e.useApi,exports.useToggle=r.useToggle,exports.outsideClickHandler=t.outsideClickHandler,exports.useOutsideClick=t.useOutsideClick,exports.useResize=o.useResize,exports.useClassNames=s.useClassNames,exports.useParseProps=i.useParseProps,exports.getBaseThemes=a.getBaseThemes,exports.observeThemePreference=a.observeThemePreference,exports.setTHemeClassNames=a.setTHemeClassNames,exports.switchColorTheme=a.switchColorTheme,exports.updateColorTheme=a.updateColorTheme,exports.useThemePreference=a.useThemePreference,exports.isBirthNumberValid=l.isBirthNumberValid,exports.getMatch=p.getMatch,exports.isValidFormat=p.isValidFormat,exports.isValidModulo11=p.isValidModulo11,exports.parse=p.parse,exports.regex=p.regex,exports.parseCSVdata=n.parseCSVdata,exports.validateCSVFile=n.validateCSVFile,exports.validateCSVlines=n.validateCSVlines,exports.validateJSONFile=n.validateJSONFile,exports.validateLineCellTrimmed=n.validateLineCellTrimmed,exports.validateLineNumColumns=n.validateLineNumColumns,exports.validateSDFFile=n.validateSDFFile,exports.DATE_FORMAT=c.DATE_FORMAT,exports.formatDateToTimestamp=c.formatDateToTimestamp,exports.getDate=c.getDate,exports.getDeviceId=u.getDeviceId,exports.emailMatch=x.emailMatch,exports.emailMatcher=x.emailMatcher,exports.regexBuilder=x.regexBuilder,exports.cleanCsvLines=m.cleanCsvLines,exports.formatFilePath=m.formatFilePath,exports.arrayToObjectTree=d.arrayToObjectTree,exports.chunkArray=d.chunkArray,exports.duplicatesInArray=d.duplicatesInArray,exports.formatJsonString=d.formatJsonString,exports.formatObj=d.formatObj,exports.formatObj2=d.formatObj2,exports.debounce=h.debounce,exports.delay=h.delay,exports.memoize=h.memoize,exports.memoizeComplex=h.memoizeComplex,exports.memoizer=h.memoizer,exports.nestedTernary=h.nestedTernary,exports.escapeRegExp=C.escapeRegExp,exports.fileNameExt=C.fileNameExt,exports.findStringInText=C.findStringInText,exports.normalizeString=C.normalizeString,exports.removeWhitespaces=C.removeWhitespaces,exports.sanitizeId=C.sanitizeId,exports.sanitizePathId=C.sanitizePathId,exports.toLowerCase=C.toLowerCase,exports.toUpperCase=C.toUpperCase,exports.truncateText=C.truncateText,exports.Operation=T.Operation,exports.decrementValue=T.decrementValue,exports.incerementValue=T.incerementValue,exports.numberDefined=T.numberDefined,exports.numberOperation=T.numberOperation,exports.restrictNumberInLimits=T.restrictNumberInLimits,exports.setValue=T.setValue,exports.cancelableSetInterval=j.cancelableSetInterval,exports.cancelableSetTimeout=j.cancelableSetTimeout,exports.anchorClick=S.anchorClick,exports.classNames=S.classNames,exports.generateId=S.generateId,exports.mapSerReplacer=S.mapSerReplacer,exports.noop=S.noop,exports.parseProps=S.parseProps,exports.keyExtractor=v.keyExtractor,exports.keyExtractorFunction=v.keyExtractorFunction,exports.dateRangeFormat=y.dateRangeFormat,exports.getDateTime=y.getDateTime,exports.getTimeFromNow=y.getTimeFromNow,exports.getTimeFromNowOriginal=y.getTimeFromNowOriginal,exports.getTimeTo=y.getTimeTo,exports.ced=g.ced,exports.createResolveAttribute=g.createResolveAttribute,exports.customElementDefine=g.customElementDefine,exports.resolveAttributes=g.resolveAttributes,exports.createStore=F.createStore,exports.createDataStore=b.createDataStore,exports.useStore=q.useStore,exports.useStoreApi=q.useStoreApi,exports.EventName=f.EventName,exports.calculateColors=z.calculateColors,exports.calculatePercColor=z.calculatePercColor,exports.convertHex=z.convertHex,exports.convertRGB=z.convertRGB,Object.defineProperty(exports,"defaultFontSize",{enumerable:!0,get:function(){return z.defaultFontSize}}),exports.pxToRem=z.pxToRem,exports.resolveStyleValue=z.resolveStyleValue,exports.setDefaultFontSize=z.setDefaultFontSize,exports.toHex=z.toHex,exports.LayoutBox=D.LayoutBox,exports.LayoutDirection=I.LayoutDirection,exports.LazyComponent=L.LazyComponent,exports.PendingBoundary=L.PendingBoundary,exports.createLazyModule=L.createLazyModule,exports.createLazyModuleWithStore=L.createLazyModuleWithStore,exports.wrapPromise=L.wrapPromise,exports.Flex=P.Flex,exports.FlexTight=P.FlexTight,exports.FlexTightStyled=P.FlexTightStyled,exports.FlexWrapper=P.FlexWrapper,exports.Placeholder=B.Placeholder,exports.CollapsibleContainer=E.CollapsibleContainer,exports.ResizableContainer=V.ResizableContainer,exports.DefaultErrorComponent=N.DefaultErrorComponent,exports.ErrorBoundary=N.ErrorBoundary,exports.Field=O.Field,exports.FieldWrapper=O.FieldWrapper,exports.Select=O.Select,exports.setIconColor=O.setIconColor,exports.setIconComponent=O.setIconComponent,exports.DividerHorizontal=k.DividerHorizontal,exports.DividerLine=k.DividerLine,exports.DividerVertical=k.DividerVertical,exports.IconBase=R.IconBase,exports.Icon=A.Icon,exports.ESIcon=w.ESIcon,exports.ESIconBase=w.ESIconBase,exports.FlowLayout=M.FlowLayout;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../../../node_modules/core-js/modules/web.dom-collections.iterator.js";const
|
|
1
|
+
import"../../../../node_modules/core-js/modules/web.dom-collections.iterator.js";const t=(t,n)=>n instanceof Map?{dataType:"Map",value:Array.from(n.entries())}:n,n=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((t=>"string"==typeof t&&null!=t)).filter(Boolean).join(" ")},e=t=>{const n={},e={};return Object.entries(t).forEach((t=>{let[o,l]=t;"data-"===o.substr(0,5)||"data"===o.substr(0,4)?n[o]=l:e[o]=l})),{dataProps:n,restProps:e}},o=function(t){var n;let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var a;if(o.tokens=o.tokens||{},null!=l)return o.tokens[t]=l,"".concat(t).concat(null==o||null===(a=o.tokens)||void 0===a?void 0:a[t]);const r=void 0===(null==o?void 0:o.tokens[t])||null===(null==o?void 0:o.tokens[t]);return o.tokens[t]=o.tokens[t]||0,r?"".concat(t,0):e?(o.tokens[t]+=1,"".concat(t).concat(null==o||null===(i=o.tokens)||void 0===i?void 0:i[t])):"".concat(t).concat(null==o||null===(n=o.tokens)||void 0===n?void 0:n[t]);var i},l=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_top",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l.aElement=l.aElement||document.createElement("a");const{aElement:o}=l;return o.setAttribute("href",t),o.setAttribute("target",n),o.dataset.date="".concat(Date.now()),o.click(),e&&(o.remove(),l.aElement=null),o},a=t=>{var n,e,o;null==t||null===(n=t.preventDefault)||void 0===n||n.call(t),null==t||null===(e=t.stopPropagation)||void 0===e||e.call(t),null==t||null===(o=t.stopImmediatePropagation)||void 0===o||o.call(t)};export{l as anchorClick,n as classNames,o as generateId,t as mapSerReplacer,a as noop,e as parseProps};
|
|
2
2
|
//# sourceMappingURL=ui.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sources":["../../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const
|
|
1
|
+
{"version":3,"file":"ui.js","sources":["../../../../../../../src/core/utils/helpers/ui.ts"],"sourcesContent":["export const mapSerReplacer\n= (key: string, value: unknown): unknown | { dataType: string; value: Array<unknown>} => {\n if (value instanceof Map) {\n return {\n dataType: 'Map',\n value: Array.from(value.entries()), // or with spread: value: [...value]\n }\n }\n return value\n}\n\nexport type TClassName = string | boolean | null | undefined\nexport const classNames = (...classes: TClassName[]): string => classes\n .filter((className: TClassName) => (typeof className === 'string' && className !== undefined && className !== null))\n .filter(Boolean).join(' ')\n\n\nexport type PropsCategoriesType = {\n dataProps: Record<string, unknown>\n restProps: Record<string, unknown>\n};\n\nexport const parseProps = (props: Record<string, unknown>):PropsCategoriesType => {\n const dataProps: Record<string, unknown> = {}\n const restProps: Record<string, unknown> = {}\n\n Object.entries(props).forEach(([key, value]) => {\n if (key.substr(0, 5) === 'data-' || key.substr(0, 4) === 'data') {\n dataProps[key] = value\n } else {\n restProps[key] = value\n }\n })\n return { dataProps, restProps }\n}\n\n\n\ntype GeneratorIdCallable = (token: string, increment?: boolean, forcedValue?: number | undefined) => string\ntype GenerateId = { tokens?: Record<string, number | null | undefined> } & GeneratorIdCallable\n\nexport const generateId: GenerateId = (\n token: string,\n increment = true,\n forcedValue: number | undefined = undefined,\n) => {\n generateId.tokens = generateId.tokens || {}\n\n if (forcedValue !== undefined && forcedValue !== null) {\n generateId.tokens[token] = forcedValue\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n const noValue = generateId?.tokens[token] === undefined || generateId?.tokens[token] === null\n\n generateId.tokens[token] = generateId.tokens[token] || 0\n\n if (noValue) {\n return `${token}${0}`\n }\n\n if (increment) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n generateId.tokens[token] += 1\n\n return `${token}${generateId?.tokens?.[token] as number}`\n }\n\n return `${token}${generateId?.tokens?.[token] as number}`\n}\n\ntype FAnchorClick = { aElement?: HTMLAnchorElement | null }\n & ((href: string, target?: string, remove?: boolean) => void)\n\nexport const anchorClick: FAnchorClick = (href: string, target = '_top', remove = false): HTMLAnchorElement | null => {\n anchorClick.aElement = anchorClick.aElement || document.createElement('a')\n\n const { aElement } = anchorClick\n\n aElement.setAttribute('href', href)\n aElement.setAttribute('target', target)\n\n aElement.dataset.date = `${Date.now()}`\n aElement.click()\n if (remove) {\n aElement.remove()\n anchorClick.aElement = null\n }\n\n return aElement\n}\n\n\n\nexport type NoopEvent = {\n preventDefault?: () => void\n stopPropagation?: () => void\n stopImmediatePropagation?: () => void\n} | Event\n\nexport const noop = (event?: NoopEvent): void => {\n event?.preventDefault?.()\n event?.stopPropagation?.()\n event?.stopImmediatePropagation?.()\n}\n"],"names":["mapSerReplacer","key","value","Map","dataType","Array","from","entries","classNames","_len","arguments","length","classes","_key","filter","className","Boolean","join","parseProps","props","dataProps","restProps","Object","forEach","_ref","substr","generateId","token","_generateId$tokens3","increment","undefined","forcedValue","_generateId$tokens","tokens","concat","noValue","_generateId$tokens2","anchorClick","href","target","remove","aElement","document","createElement","setAttribute","dataset","date","Date","now","click","noop","event","_event$preventDefault","_event$stopPropagatio","_event$stopImmediateP","preventDefault","call","stopPropagation","stopImmediatePropagation"],"mappings":"uFAAaA,EACXA,CAACC,EAAaC,IACVA,aAAiBC,IACZ,CACLC,SAAU,MACVF,MAAOG,MAAMC,KAAKJ,EAAMK,YAGrBL,EAIIM,EAAa,WAAA,IAAA,IAAAC,EAAAC,UAAAC,OAAIC,EAAOP,IAAAA,MAAAI,GAAAI,EAAA,EAAAA,EAAAJ,EAAAI,IAAPD,EAAOC,GAAAH,UAAAG,GAAA,OAA2BD,EAC7DE,QAAQC,GAAgD,iBAAdA,GAAP,MAAiCA,IACpED,OAAOE,SAASC,KAAK,IAAI,EAQfC,EAAcC,IACzB,MAAMC,EAAqC,CAAA,EACrCC,EAAqC,CAAA,EAS3C,OAPAC,OAAOf,QAAQY,GAAOI,SAAQC,IAAkB,IAAhBvB,EAAKC,GAAMsB,EAChB,UAArBvB,EAAIwB,OAAO,EAAG,IAAuC,SAArBxB,EAAIwB,OAAO,EAAG,GAChDL,EAAUnB,GAAOC,EAEjBmB,EAAUpB,GAAOC,CACnB,IAEK,CAAEkB,YAAWC,YAAW,EAQpBK,EAAyB,SACpCC,GAGG,IAAAC,EAAA,IAFHC,IAASnB,UAAAC,OAAA,QAAAmB,IAAApB,UAAA,KAAAA,UAAA,GACTqB,EAA+BrB,UAAAC,OAAA,QAAAmB,IAAApB,UAAA,GAAAA,UAAA,QAAGoB,EAIqB,IAAAE,EAAvD,GAFAN,EAAWO,OAASP,EAAWO,QAAU,CAAA,EAErCF,QAEF,OADAL,EAAWO,OAAON,GAASI,EAC3BG,GAAAA,OAAUP,GAAKO,OAAGR,SAAkB,QAARM,EAAVN,EAAYO,cAAZD,IAAkBA,OAAlBA,EAAAA,EAAqBL,IAGzC,MAAMQ,OAAwCL,KAA9BJ,aAAAA,EAAAA,EAAYO,OAAON,KAAsD,QAA9BD,aAAAA,EAAAA,EAAYO,OAAON,IAI9E,OAFAD,EAAWO,OAAON,GAASD,EAAWO,OAAON,IAAU,EAEnDQ,EACF,GAAAD,OAAUP,EAAQ,GAGhBE,GAGFH,EAAWO,OAAON,IAAU,EAE5BO,GAAAA,OAAUP,GAAKO,OAAGR,SAAkB,QAARU,EAAVV,EAAYO,cAAZG,IAAkBA,OAAlBA,EAAAA,EAAqBT,KAGzCO,GAAAA,OAAUP,GAAKO,OAAGR,SAAkB,QAARE,EAAVF,EAAYO,cAAZL,IAAkBA,OAAlBA,EAAAA,EAAqBD,IARxB,IAAAS,CASjB,EAKaC,EAA4B,SAACC,GAA4E,IAA9DC,EAAM7B,UAAAC,OAAA,QAAAmB,IAAApB,UAAA,GAAAA,UAAA,GAAG,OAAQ8B,EAAM9B,UAAAC,OAAA,QAAAmB,IAAApB,UAAA,IAAAA,UAAA,GAC7E2B,EAAYI,SAAWJ,EAAYI,UAAYC,SAASC,cAAc,KAEtE,MAAMF,SAAEA,GAAaJ,EAYrB,OAVAI,EAASG,aAAa,OAAQN,GAC9BG,EAASG,aAAa,SAAUL,GAEhCE,EAASI,QAAQC,KAAIZ,GAAAA,OAAMa,KAAKC,OAChCP,EAASQ,QACLT,IACFC,EAASD,SACTH,EAAYI,SAAW,MAGlBA,CACT,EAUaS,EAAQC,IAA4B,IAAAC,EAAAC,EAAAC,EAC/CH,SAAqBC,QAAhBA,EAALD,EAAOI,0BAAcH,GAArBA,EAAAI,KAAAL,GACAA,SAAsBE,QAAjBA,EAALF,EAAOM,2BAAeJ,GAAtBA,EAAAG,KAAAL,GACAA,SAA+BG,QAA1BA,EAALH,EAAOO,oCAAwBJ,GAA/BA,EAAAE,KAAAL,EAAmC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{useApi}from"./core/hooks/useApi.js";export{useToggle}from"./core/hooks/useToggle.js";export{outsideClickHandler,useOutsideClick}from"./core/hooks/useOutsideClick.js";export{useResize}from"./core/hooks/useResize.js";export{useClassNames}from"./core/hooks/useClassNames.js";export{useParseProps}from"./core/hooks/useParseProps.js";export{getBaseThemes,observeThemePreference,setTHemeClassNames,switchColorTheme,updateColorTheme,useThemePreference}from"./core/hooks/useThemePreference.js";export{isBirthNumberValid}from"./core/utils/helpers/birthnumber.validator.js";export{getMatch,isValidFormat,isValidModulo11,parse,regex}from"./core/utils/helpers/birthnumberCZSKvalidator.js";export{parseCSVdata,validateCSVFile,validateCSVlines,validateJSONFile,validateLineCellTrimmed,validateLineNumColumns,validateSDFFile}from"./core/utils/helpers/fileValidator.js";export{DATE_FORMAT,formatDateToTimestamp,getDate}from"./core/utils/helpers/date.js";export{getDeviceId}from"./core/utils/helpers/deviceInfo.js";export{emailMatch,emailMatcher,regexBuilder}from"./core/utils/helpers/emailMatcher.js";export{cleanCsvLines,formatFilePath}from"./core/utils/helpers/file.js";export{arrayToObjectTree,chunkArray,duplicatesInArray,formatJsonString,formatObj,formatObj2}from"./core/utils/helpers/objectOperations.js";export{debounce,delay,memoize,memoizeComplex,memoizer,nestedTernary}from"./core/utils/helpers/other.js";export{escapeRegExp,fileNameExt,findStringInText,normalizeString,removeWhitespaces,sanitizeId,sanitizePathId,toLowerCase,toUpperCase,truncateText}from"./core/utils/helpers/textValueOperations.js";export{Operation,decrementValue,incerementValue,numberDefined,numberOperation,restrictNumberInLimits,setValue}from"./core/utils/helpers/valueOperations.js";export{cancelableSetInterval,cancelableSetTimeout}from"./core/utils/helpers/cancelableDelayedFunction.js";export{classNames,mapSerReplacer,noop,parseProps}from"./core/utils/helpers/ui.js";export{keyExtractor,keyExtractorFunction}from"./core/utils/keyExtractor.js";export{dateRangeFormat,getDateTime,getTimeFromNow,getTimeFromNowOriginal,getTimeTo}from"./core/utils/date.js";export{ced,createResolveAttribute,customElementDefine,resolveAttributes}from"./core/utils/webComponents/webComponent.utils.js";export{createStore}from"./core/utils/appState/store/store.vanillajs.js";export{createDataStore}from"./core/utils/appState/store/store.vanillajs.templates.js";export{useStore,useStoreApi}from"./core/utils/appState/store/useStore.react.js";export{EventName}from"./core/constants/ui.constants.js";export{calculateColors,calculatePercColor,convertHex,convertRGB,defaultFontSize,pxToRem,resolveStyleValue,setDefaultFontSize,toHex}from"./core/ui/utils/style.js";export{LayoutBox}from"./core/ui/components/container/layoutBox/LayoutBox.js";export{LayoutDirection}from"./core/ui/components/container/layoutBox/layoutBox.types.js";export{LazyComponent,PendingBoundary,createLazyModule,createLazyModuleWithStore,wrapPromise}from"./core/ui/components/container/lazyComponent/LazyComponent.js";export{Flex,FlexTight,FlexTightStyled,FlexWrapper}from"./core/ui/components/container/Flex.js";export{Placeholder}from"./core/ui/components/container/Placeholder.js";export{CollapsibleContainer}from"./core/ui/components/container/CollapsibleContainer.js";export{ResizableContainer}from"./core/ui/components/container/ResizableContainer.js";export{DefaultErrorComponent,ErrorBoundary}from"./core/ui/components/error/ErrorBoundary.js";export{Field,FieldWrapper,Select,setIconColor,setIconComponent}from"./core/ui/components/field/Field.js";export{DividerHorizontal,DividerLine,DividerVertical}from"./core/ui/components/dividers/DividerLine.js";export{IconBase}from"./core/ui/components/icon/IconBase.js";export{Icon}from"./core/ui/components/icon/Icon.js";export{ESIcon,ESIconBase}from"./core/ui/components/icon/IconWC.js";export{FlowLayout}from"./core/ui/components/molecules/layouts/FlowLayout.js";
|
|
1
|
+
export{useApi}from"./core/hooks/useApi.js";export{useToggle}from"./core/hooks/useToggle.js";export{outsideClickHandler,useOutsideClick}from"./core/hooks/useOutsideClick.js";export{useResize}from"./core/hooks/useResize.js";export{useClassNames}from"./core/hooks/useClassNames.js";export{useParseProps}from"./core/hooks/useParseProps.js";export{getBaseThemes,observeThemePreference,setTHemeClassNames,switchColorTheme,updateColorTheme,useThemePreference}from"./core/hooks/useThemePreference.js";export{isBirthNumberValid}from"./core/utils/helpers/birthnumber.validator.js";export{getMatch,isValidFormat,isValidModulo11,parse,regex}from"./core/utils/helpers/birthnumberCZSKvalidator.js";export{parseCSVdata,validateCSVFile,validateCSVlines,validateJSONFile,validateLineCellTrimmed,validateLineNumColumns,validateSDFFile}from"./core/utils/helpers/fileValidator.js";export{DATE_FORMAT,formatDateToTimestamp,getDate}from"./core/utils/helpers/date.js";export{getDeviceId}from"./core/utils/helpers/deviceInfo.js";export{emailMatch,emailMatcher,regexBuilder}from"./core/utils/helpers/emailMatcher.js";export{cleanCsvLines,formatFilePath}from"./core/utils/helpers/file.js";export{arrayToObjectTree,chunkArray,duplicatesInArray,formatJsonString,formatObj,formatObj2}from"./core/utils/helpers/objectOperations.js";export{debounce,delay,memoize,memoizeComplex,memoizer,nestedTernary}from"./core/utils/helpers/other.js";export{escapeRegExp,fileNameExt,findStringInText,normalizeString,removeWhitespaces,sanitizeId,sanitizePathId,toLowerCase,toUpperCase,truncateText}from"./core/utils/helpers/textValueOperations.js";export{Operation,decrementValue,incerementValue,numberDefined,numberOperation,restrictNumberInLimits,setValue}from"./core/utils/helpers/valueOperations.js";export{cancelableSetInterval,cancelableSetTimeout}from"./core/utils/helpers/cancelableDelayedFunction.js";export{anchorClick,classNames,generateId,mapSerReplacer,noop,parseProps}from"./core/utils/helpers/ui.js";export{keyExtractor,keyExtractorFunction}from"./core/utils/keyExtractor.js";export{dateRangeFormat,getDateTime,getTimeFromNow,getTimeFromNowOriginal,getTimeTo}from"./core/utils/date.js";export{ced,createResolveAttribute,customElementDefine,resolveAttributes}from"./core/utils/webComponents/webComponent.utils.js";export{createStore}from"./core/utils/appState/store/store.vanillajs.js";export{createDataStore}from"./core/utils/appState/store/store.vanillajs.templates.js";export{useStore,useStoreApi}from"./core/utils/appState/store/useStore.react.js";export{EventName}from"./core/constants/ui.constants.js";export{calculateColors,calculatePercColor,convertHex,convertRGB,defaultFontSize,pxToRem,resolveStyleValue,setDefaultFontSize,toHex}from"./core/ui/utils/style.js";export{LayoutBox}from"./core/ui/components/container/layoutBox/LayoutBox.js";export{LayoutDirection}from"./core/ui/components/container/layoutBox/layoutBox.types.js";export{LazyComponent,PendingBoundary,createLazyModule,createLazyModuleWithStore,wrapPromise}from"./core/ui/components/container/lazyComponent/LazyComponent.js";export{Flex,FlexTight,FlexTightStyled,FlexWrapper}from"./core/ui/components/container/Flex.js";export{Placeholder}from"./core/ui/components/container/Placeholder.js";export{CollapsibleContainer}from"./core/ui/components/container/CollapsibleContainer.js";export{ResizableContainer}from"./core/ui/components/container/ResizableContainer.js";export{DefaultErrorComponent,ErrorBoundary}from"./core/ui/components/error/ErrorBoundary.js";export{Field,FieldWrapper,Select,setIconColor,setIconComponent}from"./core/ui/components/field/Field.js";export{DividerHorizontal,DividerLine,DividerVertical}from"./core/ui/components/dividers/DividerLine.js";export{IconBase}from"./core/ui/components/icon/IconBase.js";export{Icon}from"./core/ui/components/icon/Icon.js";export{ESIcon,ESIconBase}from"./core/ui/components/icon/IconWC.js";export{FlowLayout}from"./core/ui/components/molecules/layouts/FlowLayout.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|