@3t-transform/threeteeui 0.1.6 → 0.1.7

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.
Files changed (101) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/css-shim-211819bc.js +6 -0
  3. package/dist/cjs/dom-9deb26c8.js +75 -0
  4. package/dist/cjs/index-11cfdabe.js +3297 -0
  5. package/dist/cjs/{index-b3010e55.js → index-451f61dd.js} +1 -3
  6. package/dist/cjs/loader.cjs.js +18 -2
  7. package/dist/cjs/shadow-css-bf3843d2.js +389 -0
  8. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  12. package/dist/cjs/tttx-list.cjs.entry.js +34 -4
  13. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  14. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  15. package/dist/cjs/tttx-toolbar.cjs.entry.js +20 -0
  16. package/dist/cjs/tttx.cjs.js +116 -4
  17. package/dist/collection/collection-manifest.json +2 -1
  18. package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +9 -0
  19. package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +83 -0
  20. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +9 -0
  21. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +16 -0
  22. package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +216 -0
  23. package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +64 -0
  24. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.spec.js +38 -0
  25. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +214 -0
  26. package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +9 -0
  27. package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +232 -0
  28. package/dist/collection/components/molecules/tttx-list/test/ttttx-list.spec.e2e.js +26 -0
  29. package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +183 -0
  30. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +9 -0
  31. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +219 -0
  32. package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.test.js +0 -0
  33. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.css +30 -0
  34. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -0
  35. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +20 -0
  36. package/dist/collection/shared/test/domsanitiser.options.spec.js +23 -0
  37. package/dist/components/index.d.ts +1 -0
  38. package/dist/components/index.js +5 -0
  39. package/dist/components/tttx-list.js +33 -3
  40. package/dist/components/tttx-toolbar.d.ts +11 -0
  41. package/dist/components/tttx-toolbar.js +36 -0
  42. package/dist/esm/app-globals-0f993ce5.js +3 -0
  43. package/dist/esm/css-shim-9d54a2f2.js +4 -0
  44. package/dist/esm/dom-6be6f662.js +73 -0
  45. package/dist/esm/{index-31631990.js → index-0350f122.js} +1 -3
  46. package/dist/esm/index-dbe25028.js +3262 -0
  47. package/dist/esm/loader.js +18 -2
  48. package/dist/esm/shadow-css-ed4599f8.js +387 -0
  49. package/dist/esm/tttx-button.entry.js +1 -1
  50. package/dist/esm/tttx-form.entry.js +1 -1
  51. package/dist/esm/tttx-icon.entry.js +1 -1
  52. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  53. package/dist/esm/tttx-list.entry.js +34 -4
  54. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  55. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  56. package/dist/esm/tttx-toolbar.entry.js +16 -0
  57. package/dist/esm/tttx.js +116 -4
  58. package/dist/tttx/app-globals-0f993ce5.js +3 -0
  59. package/dist/tttx/css-shim-9d54a2f2.js +4 -0
  60. package/dist/tttx/dom-6be6f662.js +73 -0
  61. package/dist/tttx/index-dbe25028.js +3262 -0
  62. package/dist/tttx/index.esm.js +1 -0
  63. package/dist/tttx/p-0a85dda4.entry.js +1 -0
  64. package/dist/tttx/{p-1f3d39fc.entry.js → p-1b015a9d.entry.js} +1 -1
  65. package/dist/tttx/{p-2e7f486e.entry.js → p-4f3958fa.entry.js} +1 -1
  66. package/dist/tttx/{p-14270585.entry.js → p-5cae1beb.entry.js} +1 -1
  67. package/dist/tttx/{p-0c6a665d.js → p-62869344.js} +1 -1
  68. package/dist/tttx/{p-979ebe65.entry.js → p-92465671.entry.js} +1 -1
  69. package/dist/tttx/{p-84d90779.entry.js → p-a0179cb1.entry.js} +1 -1
  70. package/dist/tttx/{p-263d093c.entry.js → p-cc6644c9.entry.js} +1 -1
  71. package/dist/tttx/{p-39f991c3.entry.js → p-cd1565e0.entry.js} +1 -1
  72. package/dist/tttx/shadow-css-ed4599f8.js +387 -0
  73. package/dist/tttx/tttx-button.entry.js +30 -0
  74. package/dist/tttx/tttx-form.entry.js +373 -0
  75. package/dist/tttx/tttx-icon.entry.js +17 -0
  76. package/dist/tttx/tttx-keyvalue-block.entry.js +63 -0
  77. package/dist/tttx/tttx-list.entry.js +1730 -0
  78. package/dist/tttx/tttx-loading-spinner.entry.js +22 -0
  79. package/dist/tttx/tttx-standalone-input.entry.js +66 -0
  80. package/dist/tttx/tttx-toolbar.entry.js +16 -0
  81. package/dist/tttx/tttx.esm.js +129 -1
  82. package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +1 -0
  83. package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +1 -0
  84. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +1 -0
  85. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +1 -0
  86. package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +1 -0
  87. package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +1 -0
  88. package/dist/types/components/molecules/tttx-form/lib/setErrorState.spec.d.ts +1 -0
  89. package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +1 -0
  90. package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +1 -0
  91. package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +1 -0
  92. package/dist/types/components/molecules/tttx-list/test/ttttx-list.spec.e2e.d.ts +1 -0
  93. package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +1 -0
  94. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +1 -0
  95. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +1 -0
  96. package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.test.d.ts +0 -0
  97. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -0
  98. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -0
  99. package/dist/types/components.d.ts +15 -0
  100. package/dist/types/shared/test/domsanitiser.options.spec.d.ts +1 -0
  101. package/package.json +1 -1
@@ -1200,9 +1200,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1200
1200
  {
1201
1201
  cmpMeta.$watchers$ = {};
1202
1202
  }
1203
- const tagName = options.transformTagName
1204
- ? options.transformTagName(cmpMeta.$tagName$)
1205
- : cmpMeta.$tagName$;
1203
+ const tagName = cmpMeta.$tagName$;
1206
1204
  const HostElement = class extends HTMLElement {
1207
1205
  // StencilLazyHost
1208
1206
  constructor(self) {
@@ -2,19 +2,35 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
6
7
 
7
8
  /*
8
9
  Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
9
10
  */
10
11
  const patchEsm = () => {
12
+ // NOTE!! This fn cannot use async/await!
13
+ // @ts-ignore
14
+ if (index.BUILD.cssVarShim && !(index.CSS && index.CSS.supports && index.CSS.supports('color', 'var(--c)'))) {
15
+ // @ts-ignore
16
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-css-shim" */ './css-shim-211819bc.js'); }).then(() => {
17
+ if ((index.plt.$cssShim$ = index.win.__cssshim)) {
18
+ return index.plt.$cssShim$.i();
19
+ }
20
+ else {
21
+ // for better minification
22
+ return 0;
23
+ }
24
+ });
25
+ }
11
26
  return index.promiseResolve();
12
27
  };
13
28
 
14
29
  const defineCustomElements = (win, options) => {
15
30
  if (typeof window === 'undefined') return Promise.resolve();
16
31
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
32
+ appGlobals.globalScripts();
33
+ return index.bootstrapLazy([["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-toolbar.cjs",[[1,"tttx-toolbar",{"border":[4]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
18
34
  });
19
35
  };
20
36
 
@@ -0,0 +1,389 @@
1
+ 'use strict';
2
+
3
+ /*
4
+ Stencil Client Platform v2.20.0 | MIT Licensed | https://stenciljs.com
5
+ */
6
+ /**
7
+ * @license
8
+ * Copyright Google Inc. All Rights Reserved.
9
+ *
10
+ * Use of this source code is governed by an MIT-style license that can be
11
+ * found in the LICENSE file at https://angular.io/license
12
+ *
13
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
14
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
15
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
16
+ */
17
+ const safeSelector = (selector) => {
18
+ const placeholders = [];
19
+ let index = 0;
20
+ // Replaces attribute selectors with placeholders.
21
+ // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
22
+ selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
23
+ const replaceBy = `__ph-${index}__`;
24
+ placeholders.push(keep);
25
+ index++;
26
+ return replaceBy;
27
+ });
28
+ // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
29
+ // WS and "+" would otherwise be interpreted as selector separators.
30
+ const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
31
+ const replaceBy = `__ph-${index}__`;
32
+ placeholders.push(exp);
33
+ index++;
34
+ return pseudo + replaceBy;
35
+ });
36
+ const ss = {
37
+ content,
38
+ placeholders,
39
+ };
40
+ return ss;
41
+ };
42
+ const restoreSafeSelector = (placeholders, content) => {
43
+ return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
44
+ };
45
+ const _polyfillHost = '-shadowcsshost';
46
+ const _polyfillSlotted = '-shadowcssslotted';
47
+ // note: :host-context pre-processed to -shadowcsshostcontext.
48
+ const _polyfillHostContext = '-shadowcsscontext';
49
+ const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
50
+ const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
51
+ const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
52
+ const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
53
+ const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
54
+ const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
55
+ const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
56
+ const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
57
+ const _polyfillHostRe = /-shadowcsshost/gim;
58
+ const _colonHostRe = /:host/gim;
59
+ const _colonSlottedRe = /::slotted/gim;
60
+ const _colonHostContextRe = /:host-context/gim;
61
+ const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
62
+ const stripComments = (input) => {
63
+ return input.replace(_commentRe, '');
64
+ };
65
+ const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
66
+ const extractCommentsWithHash = (input) => {
67
+ return input.match(_commentWithHashRe) || [];
68
+ };
69
+ const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
70
+ const _curlyRe = /([{}])/g;
71
+ const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
72
+ const OPEN_CURLY = '{';
73
+ const CLOSE_CURLY = '}';
74
+ const BLOCK_PLACEHOLDER = '%BLOCK%';
75
+ const processRules = (input, ruleCallback) => {
76
+ const inputWithEscapedBlocks = escapeBlocks(input);
77
+ let nextBlockIndex = 0;
78
+ return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
79
+ const selector = m[2];
80
+ let content = '';
81
+ let suffix = m[4];
82
+ let contentPrefix = '';
83
+ if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
84
+ content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
85
+ suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
86
+ contentPrefix = '{';
87
+ }
88
+ const cssRule = {
89
+ selector,
90
+ content,
91
+ };
92
+ const rule = ruleCallback(cssRule);
93
+ return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
94
+ });
95
+ };
96
+ const escapeBlocks = (input) => {
97
+ const inputParts = input.split(_curlyRe);
98
+ const resultParts = [];
99
+ const escapedBlocks = [];
100
+ let bracketCount = 0;
101
+ let currentBlockParts = [];
102
+ for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
103
+ const part = inputParts[partIndex];
104
+ if (part === CLOSE_CURLY) {
105
+ bracketCount--;
106
+ }
107
+ if (bracketCount > 0) {
108
+ currentBlockParts.push(part);
109
+ }
110
+ else {
111
+ if (currentBlockParts.length > 0) {
112
+ escapedBlocks.push(currentBlockParts.join(''));
113
+ resultParts.push(BLOCK_PLACEHOLDER);
114
+ currentBlockParts = [];
115
+ }
116
+ resultParts.push(part);
117
+ }
118
+ if (part === OPEN_CURLY) {
119
+ bracketCount++;
120
+ }
121
+ }
122
+ if (currentBlockParts.length > 0) {
123
+ escapedBlocks.push(currentBlockParts.join(''));
124
+ resultParts.push(BLOCK_PLACEHOLDER);
125
+ }
126
+ const strEscapedBlocks = {
127
+ escapedString: resultParts.join(''),
128
+ blocks: escapedBlocks,
129
+ };
130
+ return strEscapedBlocks;
131
+ };
132
+ const insertPolyfillHostInCssText = (selector) => {
133
+ selector = selector
134
+ .replace(_colonHostContextRe, _polyfillHostContext)
135
+ .replace(_colonHostRe, _polyfillHost)
136
+ .replace(_colonSlottedRe, _polyfillSlotted);
137
+ return selector;
138
+ };
139
+ const convertColonRule = (cssText, regExp, partReplacer) => {
140
+ // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
141
+ return cssText.replace(regExp, (...m) => {
142
+ if (m[2]) {
143
+ const parts = m[2].split(',');
144
+ const r = [];
145
+ for (let i = 0; i < parts.length; i++) {
146
+ const p = parts[i].trim();
147
+ if (!p)
148
+ break;
149
+ r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
150
+ }
151
+ return r.join(',');
152
+ }
153
+ else {
154
+ return _polyfillHostNoCombinator + m[3];
155
+ }
156
+ });
157
+ };
158
+ const colonHostPartReplacer = (host, part, suffix) => {
159
+ return host + part.replace(_polyfillHost, '') + suffix;
160
+ };
161
+ const convertColonHost = (cssText) => {
162
+ return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
163
+ };
164
+ const colonHostContextPartReplacer = (host, part, suffix) => {
165
+ if (part.indexOf(_polyfillHost) > -1) {
166
+ return colonHostPartReplacer(host, part, suffix);
167
+ }
168
+ else {
169
+ return host + part + suffix + ', ' + part + ' ' + host + suffix;
170
+ }
171
+ };
172
+ const convertColonSlotted = (cssText, slotScopeId) => {
173
+ const slotClass = '.' + slotScopeId + ' > ';
174
+ const selectors = [];
175
+ cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
176
+ if (m[2]) {
177
+ const compound = m[2].trim();
178
+ const suffix = m[3];
179
+ const slottedSelector = slotClass + compound + suffix;
180
+ let prefixSelector = '';
181
+ for (let i = m[4] - 1; i >= 0; i--) {
182
+ const char = m[5][i];
183
+ if (char === '}' || char === ',') {
184
+ break;
185
+ }
186
+ prefixSelector = char + prefixSelector;
187
+ }
188
+ const orgSelector = prefixSelector + slottedSelector;
189
+ const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
190
+ if (orgSelector.trim() !== addedSelector.trim()) {
191
+ const updatedSelector = `${addedSelector}, ${orgSelector}`;
192
+ selectors.push({
193
+ orgSelector,
194
+ updatedSelector,
195
+ });
196
+ }
197
+ return slottedSelector;
198
+ }
199
+ else {
200
+ return _polyfillHostNoCombinator + m[3];
201
+ }
202
+ });
203
+ return {
204
+ selectors,
205
+ cssText,
206
+ };
207
+ };
208
+ const convertColonHostContext = (cssText) => {
209
+ return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
210
+ };
211
+ const convertShadowDOMSelectors = (cssText) => {
212
+ return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
213
+ };
214
+ const makeScopeMatcher = (scopeSelector) => {
215
+ const lre = /\[/g;
216
+ const rre = /\]/g;
217
+ scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
218
+ return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
219
+ };
220
+ const selectorNeedsScoping = (selector, scopeSelector) => {
221
+ const re = makeScopeMatcher(scopeSelector);
222
+ return !re.test(selector);
223
+ };
224
+ const injectScopingSelector = (selector, scopingSelector) => {
225
+ return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
226
+ return before + scopingSelector + colon + after;
227
+ });
228
+ };
229
+ const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
230
+ // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
231
+ _polyfillHostRe.lastIndex = 0;
232
+ if (_polyfillHostRe.test(selector)) {
233
+ const replaceBy = `.${hostSelector}`;
234
+ return selector
235
+ .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
236
+ .replace(_polyfillHostRe, replaceBy + ' ');
237
+ }
238
+ return scopeSelector + ' ' + selector;
239
+ };
240
+ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
241
+ const isRe = /\[is=([^\]]*)\]/g;
242
+ scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
243
+ const className = '.' + scopeSelector;
244
+ const _scopeSelectorPart = (p) => {
245
+ let scopedP = p.trim();
246
+ if (!scopedP) {
247
+ return '';
248
+ }
249
+ if (p.indexOf(_polyfillHostNoCombinator) > -1) {
250
+ scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
251
+ }
252
+ else {
253
+ // remove :host since it should be unnecessary
254
+ const t = p.replace(_polyfillHostRe, '');
255
+ if (t.length > 0) {
256
+ scopedP = injectScopingSelector(t, className);
257
+ }
258
+ }
259
+ return scopedP;
260
+ };
261
+ const safeContent = safeSelector(selector);
262
+ selector = safeContent.content;
263
+ let scopedSelector = '';
264
+ let startIndex = 0;
265
+ let res;
266
+ const sep = /( |>|\+|~(?!=))\s*/g;
267
+ // If a selector appears before :host it should not be shimmed as it
268
+ // matches on ancestor elements and not on elements in the host's shadow
269
+ // `:host-context(div)` is transformed to
270
+ // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
271
+ // the `div` is not part of the component in the 2nd selectors and should not be scoped.
272
+ // Historically `component-tag:host` was matching the component so we also want to preserve
273
+ // this behavior to avoid breaking legacy apps (it should not match).
274
+ // The behavior should be:
275
+ // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
276
+ // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
277
+ // `:host-context(tag)`)
278
+ const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
279
+ // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
280
+ let shouldScope = !hasHost;
281
+ while ((res = sep.exec(selector)) !== null) {
282
+ const separator = res[1];
283
+ const part = selector.slice(startIndex, res.index).trim();
284
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
285
+ const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
286
+ scopedSelector += `${scopedPart} ${separator} `;
287
+ startIndex = sep.lastIndex;
288
+ }
289
+ const part = selector.substring(startIndex);
290
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
291
+ scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
292
+ // replace the placeholders with their original values
293
+ return restoreSafeSelector(safeContent.placeholders, scopedSelector);
294
+ };
295
+ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
296
+ return selector
297
+ .split(',')
298
+ .map((shallowPart) => {
299
+ if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
300
+ return shallowPart.trim();
301
+ }
302
+ if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
303
+ return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
304
+ }
305
+ else {
306
+ return shallowPart.trim();
307
+ }
308
+ })
309
+ .join(', ');
310
+ };
311
+ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
312
+ return processRules(cssText, (rule) => {
313
+ let selector = rule.selector;
314
+ let content = rule.content;
315
+ if (rule.selector[0] !== '@') {
316
+ selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
317
+ }
318
+ else if (rule.selector.startsWith('@media') ||
319
+ rule.selector.startsWith('@supports') ||
320
+ rule.selector.startsWith('@page') ||
321
+ rule.selector.startsWith('@document')) {
322
+ content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
323
+ }
324
+ const cssRule = {
325
+ selector: selector.replace(/\s{2,}/g, ' ').trim(),
326
+ content,
327
+ };
328
+ return cssRule;
329
+ });
330
+ };
331
+ const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
332
+ cssText = insertPolyfillHostInCssText(cssText);
333
+ cssText = convertColonHost(cssText);
334
+ cssText = convertColonHostContext(cssText);
335
+ const slotted = convertColonSlotted(cssText, slotScopeId);
336
+ cssText = slotted.cssText;
337
+ cssText = convertShadowDOMSelectors(cssText);
338
+ if (scopeId) {
339
+ cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
340
+ }
341
+ cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
342
+ cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
343
+ return {
344
+ cssText: cssText.trim(),
345
+ slottedSelectors: slotted.selectors,
346
+ };
347
+ };
348
+ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
349
+ const hostScopeId = scopeId + '-h';
350
+ const slotScopeId = scopeId + '-s';
351
+ const commentsWithHash = extractCommentsWithHash(cssText);
352
+ cssText = stripComments(cssText);
353
+ const orgSelectors = [];
354
+ if (commentOriginalSelector) {
355
+ const processCommentedSelector = (rule) => {
356
+ const placeholder = `/*!@___${orgSelectors.length}___*/`;
357
+ const comment = `/*!@${rule.selector}*/`;
358
+ orgSelectors.push({ placeholder, comment });
359
+ rule.selector = placeholder + rule.selector;
360
+ return rule;
361
+ };
362
+ cssText = processRules(cssText, (rule) => {
363
+ if (rule.selector[0] !== '@') {
364
+ return processCommentedSelector(rule);
365
+ }
366
+ else if (rule.selector.startsWith('@media') ||
367
+ rule.selector.startsWith('@supports') ||
368
+ rule.selector.startsWith('@page') ||
369
+ rule.selector.startsWith('@document')) {
370
+ rule.content = processRules(rule.content, processCommentedSelector);
371
+ return rule;
372
+ }
373
+ return rule;
374
+ });
375
+ }
376
+ const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
377
+ cssText = [scoped.cssText, ...commentsWithHash].join('\n');
378
+ if (commentOriginalSelector) {
379
+ orgSelectors.forEach(({ placeholder, comment }) => {
380
+ cssText = cssText.replace(placeholder, comment);
381
+ });
382
+ }
383
+ scoped.slottedSelectors.forEach((slottedSelector) => {
384
+ cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
385
+ });
386
+ return cssText;
387
+ };
388
+
389
+ exports.scopeCss = scopeCss;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  /**
8
8
  * Validates the input field on focusout event by checking its validity state,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
8
8
 
@@ -2,20 +2,47 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
9
+ function getDefaultExportFromCjs (x) {
10
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
11
+ }
12
+
9
13
  function createCommonjsModule(fn, basedir, module) {
10
14
  return module = {
11
15
  path: basedir,
12
16
  exports: {},
13
17
  require: function (path, base) {
14
- return commonjsRequire();
18
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
15
19
  }
16
20
  }, fn(module, module.exports), module.exports;
17
21
  }
18
22
 
23
+ function getDefaultExportFromNamespaceIfPresent (n) {
24
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
25
+ }
26
+
27
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
28
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
29
+ }
30
+
31
+ function getAugmentedNamespace(n) {
32
+ if (n.__esModule) return n;
33
+ var a = Object.defineProperty({}, '__esModule', {value: true});
34
+ Object.keys(n).forEach(function (k) {
35
+ var d = Object.getOwnPropertyDescriptor(n, k);
36
+ Object.defineProperty(a, k, d.get ? d : {
37
+ enumerable: true,
38
+ get: function () {
39
+ return n[k];
40
+ }
41
+ });
42
+ });
43
+ return a;
44
+ }
45
+
19
46
  function commonjsRequire () {
20
47
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
21
48
  }
@@ -24,8 +51,11 @@ var purify = createCommonjsModule(function (module, exports) {
24
51
  /*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
25
52
 
26
53
  (function (global, factory) {
27
- module.exports = factory() ;
28
- })(commonjsGlobal, (function () {
54
+ 'object' === 'object' && 'object' !== 'undefined' ? module.exports = factory() :
55
+ typeof undefined === 'function' && undefined.amd ? undefined(factory) :
56
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());
57
+ })(commonjsGlobal, (function () { 'use strict';
58
+
29
59
  const {
30
60
  entries,
31
61
  setPrototypeOf,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b3010e55.js');
5
+ const index = require('./index-11cfdabe.js');
6
6
 
7
7
  const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.input-icon.sc-tttx-standalone-input{position:absolute;margin-top:9px;margin-left:4px}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center}label.inputInline.sc-tttx-standalone-input .input-container.sc-tttx-standalone-input{margin:0 4px;width:100%;display:flex;align-items:center;gap:4px;position:relative}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}@media (max-width: 600px){input[type=date].sc-tttx-standalone-input{padding-top:6px}}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}.input-icon.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding:0 32px}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}input.sc-tttx-standalone-input:focus-visible{outline:none}.sc-tttx-standalone-input-h{display:block}";
8
8
 
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-11cfdabe.js');
6
+
7
+ const tttxToolbarCss = ":host{height:36px;display:flex;padding:8px 0;gap:8px}:host(.bordered){border-bottom:1px solid #d5d5d5}slot[name=before]{display:flex;flex:1 1 0px;gap:8px}slot[name=center]{display:flex;justify-content:center;flex:1 1 0px;gap:8px}slot[name=after]{display:flex;justify-content:end;flex:1 1 0px;gap:8px}";
8
+
9
+ const TttxToolbar = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.border = true;
13
+ }
14
+ render() {
15
+ return (index.h(index.Host, { class: this.border ? 'bordered' : '' }, index.h("slot", { name: 'before' }), index.h("slot", { name: 'center' }), index.h("slot", { name: 'after' })));
16
+ }
17
+ };
18
+ TttxToolbar.style = tttxToolbarCss;
19
+
20
+ exports.tttx_toolbar = TttxToolbar;