@3t-transform/threeteeui 0.1.37 → 0.1.41

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 (125) hide show
  1. package/dist/cjs/domsanitiser.options-277161b9.js +1667 -0
  2. package/dist/cjs/{index-457ca775.js → index-76f14107.js} +2 -88
  3. package/dist/cjs/loader.cjs.js +2 -3
  4. package/dist/cjs/tttx-button.cjs.entry.js +25 -25
  5. package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
  6. package/dist/cjs/tttx-form.cjs.entry.js +457 -373
  7. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  8. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
  9. package/dist/cjs/tttx-list.cjs.entry.js +32 -1694
  10. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  11. package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
  12. package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
  13. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  14. package/dist/cjs/tttx.cjs.js +2 -6
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/atoms/tttx-button/tttx-button.css +4 -4
  17. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  18. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  19. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  20. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  21. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
  22. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  23. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  24. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  25. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
  26. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
  27. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
  28. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -58
  29. package/dist/collection/components/molecules/tttx-form/tttx-form.css +98 -2
  30. package/dist/collection/components/molecules/tttx-form/tttx-form.js +477 -393
  31. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +274 -218
  32. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  33. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  34. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
  35. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
  36. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
  37. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
  38. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  39. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  40. package/dist/collection/components/palette.stories.js +7 -7
  41. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  42. package/dist/collection/icons.js +2838 -2838
  43. package/dist/collection/index.js +1 -1
  44. package/dist/collection/shared/domsanitiser.options.js +14 -14
  45. package/dist/components/domsanitiser.options.js +1664 -0
  46. package/dist/components/index.d.ts +0 -9
  47. package/dist/components/index.js +1 -1
  48. package/dist/components/tttx-button.js +49 -49
  49. package/dist/components/tttx-filter.js +191 -191
  50. package/dist/components/tttx-form.js +475 -391
  51. package/dist/components/tttx-icon2.js +28 -28
  52. package/dist/components/tttx-keyvalue-block.js +76 -76
  53. package/dist/components/tttx-list.js +54 -1716
  54. package/dist/components/tttx-loading-spinner.js +33 -33
  55. package/dist/components/tttx-sorter.js +130 -130
  56. package/dist/components/tttx-standalone-input.js +130 -130
  57. package/dist/components/tttx-toolbar.js +26 -26
  58. package/dist/esm/domsanitiser.options-cc420431.js +1664 -0
  59. package/dist/esm/{index-d784fb3e.js → index-9cde46a5.js} +3 -88
  60. package/dist/esm/loader.js +2 -3
  61. package/dist/esm/polyfills/core-js.js +0 -0
  62. package/dist/esm/polyfills/css-shim.js +1 -1
  63. package/dist/esm/polyfills/dom.js +0 -0
  64. package/dist/esm/polyfills/es5-html-element.js +0 -0
  65. package/dist/esm/polyfills/index.js +0 -0
  66. package/dist/esm/polyfills/system.js +0 -0
  67. package/dist/esm/tttx-button.entry.js +25 -25
  68. package/dist/esm/tttx-filter.entry.js +159 -159
  69. package/dist/esm/tttx-form.entry.js +457 -373
  70. package/dist/esm/tttx-icon.entry.js +11 -11
  71. package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
  72. package/dist/esm/tttx-list.entry.js +32 -1694
  73. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  74. package/dist/esm/tttx-sorter.entry.js +102 -102
  75. package/dist/esm/tttx-standalone-input.entry.js +79 -79
  76. package/dist/esm/tttx-toolbar.entry.js +10 -10
  77. package/dist/esm/tttx.js +2 -3
  78. package/dist/tttx/{p-400868f1.entry.js → p-3b1be372.entry.js} +1 -1
  79. package/dist/tttx/{p-563605b2.entry.js → p-561224f5.entry.js} +1 -1
  80. package/dist/tttx/{p-b720c4ad.entry.js → p-9f1e9cc1.entry.js} +1 -1
  81. package/dist/tttx/{p-798a098a.entry.js → p-aef96333.entry.js} +1 -1
  82. package/dist/tttx/p-b4290a5b.js +3 -0
  83. package/dist/tttx/p-bd1edaed.entry.js +1 -0
  84. package/dist/tttx/p-d0ff9ad0.entry.js +1 -0
  85. package/dist/tttx/{p-cac26a1b.entry.js → p-d2f1aa8e.entry.js} +1 -1
  86. package/dist/tttx/p-db059a69.js +2 -0
  87. package/dist/tttx/p-dc2a37b0.entry.js +1 -0
  88. package/dist/tttx/{p-ab6ce9f6.entry.js → p-e53c7f9d.entry.js} +1 -1
  89. package/dist/tttx/{p-92cade7f.entry.js → p-f885f17a.entry.js} +1 -1
  90. package/dist/tttx/tttx.esm.js +1 -1
  91. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  92. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  93. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  94. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  95. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  96. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  97. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  98. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  99. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
  100. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
  101. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  102. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  103. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -111
  104. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -13
  105. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  106. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  107. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
  108. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
  109. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
  110. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
  111. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  112. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  113. package/dist/types/components/palette.stories.d.ts +6 -6
  114. package/dist/types/components.d.ts +1 -1
  115. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  116. package/dist/types/icons.d.ts +2 -2
  117. package/dist/types/index.d.ts +1 -1
  118. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  119. package/dist/types/stencil-public-runtime.d.ts +3 -59
  120. package/loader/index.d.ts +0 -9
  121. package/package.json +1 -1
  122. package/dist/tttx/p-0ebffdfc.js +0 -2
  123. package/dist/tttx/p-72e7f7dd.entry.js +0 -3
  124. package/dist/tttx/p-c4162029.entry.js +0 -1
  125. package/dist/tttx/p-eb126fd0.entry.js +0 -1
@@ -2,25 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-457ca775.js');
5
+ const index = require('./index-76f14107.js');
6
6
 
7
7
  const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.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
 
9
- const TttxLoadingSpinner = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.loadingMessage = undefined;
13
- this.size = 'large';
14
- }
15
- renderLoadingMessage() {
16
- if (!this.loadingMessage)
17
- return '';
18
- return index.h("div", { class: "loading-text" }, "Loading, please wait...");
19
- }
20
- render() {
21
- return (index.h("div", null, index.h("div", { class: "loading-box" }, index.h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
22
- }
23
- };
9
+ const TttxLoadingSpinner = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.loadingMessage = undefined;
13
+ this.size = 'large';
14
+ }
15
+ renderLoadingMessage() {
16
+ if (!this.loadingMessage)
17
+ return '';
18
+ return index.h("div", { class: "loading-text" }, "Loading, please wait...");
19
+ }
20
+ render() {
21
+ return (index.h("div", null, index.h("div", { class: "loading-box" }, index.h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
22
+ }
23
+ };
24
24
  TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
25
25
 
26
26
  exports.tttx_loading_spinner = TttxLoadingSpinner;
@@ -2,111 +2,111 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-457ca775.js');
5
+ const index = require('./index-76f14107.js');
6
6
 
7
7
  const tttxSorterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:100%;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#e7f1f9}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}";
8
8
 
9
- const TttxSorter = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.sorterChangeEvent = index.createEvent(this, "sorterChangeEvent", 7);
13
- this.sorterKey = undefined;
14
- this.defaultSortDirection = 'descending';
15
- this.fieldOptionsData = null;
16
- this.defaultOption = '';
17
- this.selectedField = this.defaultOption;
18
- this.sortDirection = this.defaultSortDirection;
19
- this.dropdownExpand = false;
20
- this.dropdownOptions = undefined;
21
- }
22
- emitSortEvent() {
23
- this.sorterChangeEvent.emit({
24
- sorterDirection: this.sortDirection,
25
- sorterKey: this.sorterKey,
26
- sortField: this.selectedField,
27
- });
28
- }
29
- onSortToggleClick(event) {
30
- event.preventDefault();
31
- if (this.sortDirection == 'ascending') {
32
- this.sortDirection = 'descending';
33
- }
34
- else {
35
- this.sortDirection = 'ascending';
36
- }
37
- this.emitSortEvent();
38
- }
39
- onDropdownClicked() {
40
- this.dropdownExpand = !this.dropdownExpand;
41
- }
42
- onDropdownSelected(event) {
43
- this.dropdownExpand = false;
44
- const target = event.target;
45
- this.selectedField = target.innerHTML;
46
- this.emitSortEvent();
47
- }
48
- // getOptionsList() {
49
- // return this.el.shadowRoot.querySelectorAll('.dropdown-option');
50
- // }
51
- // /* istanbul ignore next */
52
- // @Listen('keyup')
53
- // handleKeyDown(ev: KeyboardEvent) {
54
- // const keyboardEventValue = ev.key;
55
- // if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
56
- // switch (keyboardEventValue) {
57
- // case 'Enter':
58
- // if (this._focussedElementIndex > -1) {
59
- // const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
60
- // this.selectedField = options[this._focussedElementIndex].innerHTML;
61
- // this.emitSortEvent();
62
- // }
63
- // this.dropdownExpand = false;
64
- // break;
65
- // case 'Escape':
66
- // this.dropdownExpand = false;
67
- // break;
68
- // case 'ArrowDown':
69
- // this.dropdownExpand = true;
70
- // if (this._focussedElementIndex > -1) {
71
- // const options = this.getOptionsList();
72
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
73
- // currentOption.blur();
74
- // options[this._focussedElementIndex].focus();
75
- // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
76
- // } else {
77
- // this._focussedElementIndex++;
78
- // }
79
- // break;
80
- // case 'ArrowUp':
81
- // this.dropdownExpand = true;
82
- // if (this._focussedElementIndex == -1) {
83
- // const options = this.getOptionsList();
84
- // this._focussedElementIndex = options.length - 1;
85
- // } else {
86
- // const options = this.getOptionsList();
87
- // const currentOption = options[this._focussedElementIndex] as HTMLElement;
88
- // currentOption.blur();
89
- // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
90
- // options[this._focussedElementIndex].focus();
91
- // }
92
- // break;
93
- // }
94
- // }
95
- render() {
96
- const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
97
- if (!this.fieldOptionsData)
98
- return;
99
- const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
100
- const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
101
- const selectedOption = this.selectedField;
102
- const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
103
- const sorterKey = `sorter__${this.sorterKey}`;
104
- return (index.h(index.Host, { id: sorterKey }, index.h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, index.h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, index.h("tttx-icon", { icon: arrowIcon, color: "black" })), index.h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, index.h("div", { class: "dropdown-selector-button" }, index.h("div", { class: "dropdown-selector-text" }, selectedOption), index.h("div", { class: "dropdown-selector-chevron" }, index.h("tttx-icon", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (index.h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
105
- return (index.h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
106
- }))))));
107
- }
108
- get el() { return index.getElement(this); }
109
- };
9
+ const TttxSorter = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.sorterChangeEvent = index.createEvent(this, "sorterChangeEvent", 7);
13
+ this.sorterKey = undefined;
14
+ this.defaultSortDirection = 'descending';
15
+ this.fieldOptionsData = null;
16
+ this.defaultOption = '';
17
+ this.selectedField = this.defaultOption;
18
+ this.sortDirection = this.defaultSortDirection;
19
+ this.dropdownExpand = false;
20
+ this.dropdownOptions = undefined;
21
+ }
22
+ emitSortEvent() {
23
+ this.sorterChangeEvent.emit({
24
+ sorterDirection: this.sortDirection,
25
+ sorterKey: this.sorterKey,
26
+ sortField: this.selectedField,
27
+ });
28
+ }
29
+ onSortToggleClick(event) {
30
+ event.preventDefault();
31
+ if (this.sortDirection == 'ascending') {
32
+ this.sortDirection = 'descending';
33
+ }
34
+ else {
35
+ this.sortDirection = 'ascending';
36
+ }
37
+ this.emitSortEvent();
38
+ }
39
+ onDropdownClicked() {
40
+ this.dropdownExpand = !this.dropdownExpand;
41
+ }
42
+ onDropdownSelected(event) {
43
+ this.dropdownExpand = false;
44
+ const target = event.target;
45
+ this.selectedField = target.innerHTML;
46
+ this.emitSortEvent();
47
+ }
48
+ // getOptionsList() {
49
+ // return this.el.shadowRoot.querySelectorAll('.dropdown-option');
50
+ // }
51
+ // /* istanbul ignore next */
52
+ // @Listen('keyup')
53
+ // handleKeyDown(ev: KeyboardEvent) {
54
+ // const keyboardEventValue = ev.key;
55
+ // if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
56
+ // switch (keyboardEventValue) {
57
+ // case 'Enter':
58
+ // if (this._focussedElementIndex > -1) {
59
+ // const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
60
+ // this.selectedField = options[this._focussedElementIndex].innerHTML;
61
+ // this.emitSortEvent();
62
+ // }
63
+ // this.dropdownExpand = false;
64
+ // break;
65
+ // case 'Escape':
66
+ // this.dropdownExpand = false;
67
+ // break;
68
+ // case 'ArrowDown':
69
+ // this.dropdownExpand = true;
70
+ // if (this._focussedElementIndex > -1) {
71
+ // const options = this.getOptionsList();
72
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
73
+ // currentOption.blur();
74
+ // options[this._focussedElementIndex].focus();
75
+ // this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
76
+ // } else {
77
+ // this._focussedElementIndex++;
78
+ // }
79
+ // break;
80
+ // case 'ArrowUp':
81
+ // this.dropdownExpand = true;
82
+ // if (this._focussedElementIndex == -1) {
83
+ // const options = this.getOptionsList();
84
+ // this._focussedElementIndex = options.length - 1;
85
+ // } else {
86
+ // const options = this.getOptionsList();
87
+ // const currentOption = options[this._focussedElementIndex] as HTMLElement;
88
+ // currentOption.blur();
89
+ // this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
90
+ // options[this._focussedElementIndex].focus();
91
+ // }
92
+ // break;
93
+ // }
94
+ // }
95
+ render() {
96
+ const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
97
+ if (!this.fieldOptionsData)
98
+ return;
99
+ const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
100
+ const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
101
+ const selectedOption = this.selectedField;
102
+ const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
103
+ const sorterKey = `sorter__${this.sorterKey}`;
104
+ return (index.h(index.Host, { id: sorterKey }, index.h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, index.h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, index.h("tttx-icon", { icon: arrowIcon, color: "black" })), index.h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, index.h("div", { class: "dropdown-selector-button" }, index.h("div", { class: "dropdown-selector-text" }, selectedOption), index.h("div", { class: "dropdown-selector-chevron" }, index.h("tttx-icon", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (index.h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
105
+ return (index.h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
106
+ }))))));
107
+ }
108
+ get el() { return index.getElement(this); }
109
+ };
110
110
  TttxSorter.style = tttxSorterCss;
111
111
 
112
112
  exports.tttx_sorter = TttxSorter;
@@ -2,88 +2,88 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-457ca775.js');
5
+ const index = require('./index-76f14107.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-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:normal;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;line-height:16px;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;line-height:19px;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;line-height:19px;margin-bottom: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;line-height:19px;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{position:relative;font-size:14px;line-height:16px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){display:none}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px}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}input.sc-tttx-standalone-input:focus{border-color:#1479c6}input.sc-tttx-standalone-input:focus-visible{outline:none}.secondarylabel.sc-tttx-standalone-input{color:#757575;font-size:14px;line-height:16px;font-weight:normal;display:flex;margin-top:4px}label.inputBlock.readonly.sc-tttx-standalone-input{pointer-events:none;user-select:none;color:gray}input[readonly].sc-tttx-standalone-input{cursor:default;pointer-events:none;user-select:none;color:gray}.sc-tttx-standalone-input-h{display:block}.input-container.sc-tttx-standalone-input{position:relative}#icon-left.sc-tttx-standalone-input{position:absolute;left:8px;top:10px}#icon-left.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding-left:36px}#icon-right.sc-tttx-standalone-input{position:absolute;right:8px;top:10px}#icon-right.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding-right:36px}";
8
8
 
9
- const TttxInput = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
- this.focusChanged = index.createEvent(this, "focusChanged", 7);
14
- this.blurChanged = index.createEvent(this, "blurChanged", 7);
15
- this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
16
- this.inputIconClick = index.createEvent(this, "inputIconClick", 7);
17
- this.leftIconClick = index.createEvent(this, "leftIconClick", 7);
18
- this.rightIconClick = index.createEvent(this, "rightIconClick", 7);
19
- this.label = undefined;
20
- this.secondarylabel = undefined;
21
- this.showerrormsg = undefined;
22
- this.showerrorbubble = true;
23
- this.errormsg = undefined;
24
- this.iconleft = undefined;
25
- this.iconleftcolor = 'grey';
26
- this.iconright = undefined;
27
- this.iconrightcolor = 'grey';
28
- this.inputicon = undefined;
29
- this.inputiconcolor = 'grey';
30
- this.inline = undefined;
31
- this.inputautocapitalize = undefined;
32
- this.inputautofocus = undefined;
33
- this.inputkeyhint = undefined;
34
- this.inputindex = undefined;
35
- this.inputtitle = undefined;
36
- this.autocomplete = undefined;
37
- this.checked = undefined;
38
- this.disabled = undefined;
39
- this.max = undefined;
40
- this.maxlength = undefined;
41
- this.min = undefined;
42
- this.minlength = undefined;
43
- this.name = undefined;
44
- this.pattern = undefined;
45
- this.placeholder = undefined;
46
- this.readonly = undefined;
47
- this.required = undefined;
48
- this.step = undefined;
49
- this.type = 'text';
50
- this.value = undefined;
51
- }
52
- handleChange(event) {
53
- const target = event.target;
54
- this.value = target.value;
55
- this.valueChanged.emit(target.value);
56
- }
57
- handleFocus(event) {
58
- const target = event.target;
59
- this.focusChanged.emit(target.value);
60
- }
61
- handleBlur(event) {
62
- const target = event.target;
63
- this.blurChanged.emit(target.value);
64
- }
65
- handleInvalid(event) {
66
- event.preventDefault();
67
- const target = event.target;
68
- this.invalidChanged.emit(target.value);
69
- }
70
- handleInputIconClick(event) {
71
- event.preventDefault();
72
- this.inputIconClick.emit();
73
- }
74
- handleLeftIconClick(event) {
75
- event.preventDefault();
76
- this.leftIconClick.emit();
77
- }
78
- handleRightIconClick(event) {
79
- event.preventDefault();
80
- this.rightIconClick.emit();
81
- }
82
- render() {
83
- const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
84
- return (index.h(index.Host, null, index.h("label", { class: this.inline ? 'inputInline' : 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', index.h("div", { class: "input-container" }, this.inputicon && (index.h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (index.h("tttx-icon", { id: "icon-left", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })), this.iconright && (index.h("tttx-icon", { id: "icon-right", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })), index.h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.secondarylabel && index.h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
85
- }
86
- };
9
+ const TttxInput = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
+ this.focusChanged = index.createEvent(this, "focusChanged", 7);
14
+ this.blurChanged = index.createEvent(this, "blurChanged", 7);
15
+ this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
16
+ this.inputIconClick = index.createEvent(this, "inputIconClick", 7);
17
+ this.leftIconClick = index.createEvent(this, "leftIconClick", 7);
18
+ this.rightIconClick = index.createEvent(this, "rightIconClick", 7);
19
+ this.label = undefined;
20
+ this.secondarylabel = undefined;
21
+ this.showerrormsg = undefined;
22
+ this.showerrorbubble = true;
23
+ this.errormsg = undefined;
24
+ this.iconleft = undefined;
25
+ this.iconleftcolor = 'grey';
26
+ this.iconright = undefined;
27
+ this.iconrightcolor = 'grey';
28
+ this.inputicon = undefined;
29
+ this.inputiconcolor = 'grey';
30
+ this.inline = undefined;
31
+ this.inputautocapitalize = undefined;
32
+ this.inputautofocus = undefined;
33
+ this.inputkeyhint = undefined;
34
+ this.inputindex = undefined;
35
+ this.inputtitle = undefined;
36
+ this.autocomplete = undefined;
37
+ this.checked = undefined;
38
+ this.disabled = undefined;
39
+ this.max = undefined;
40
+ this.maxlength = undefined;
41
+ this.min = undefined;
42
+ this.minlength = undefined;
43
+ this.name = undefined;
44
+ this.pattern = undefined;
45
+ this.placeholder = undefined;
46
+ this.readonly = undefined;
47
+ this.required = undefined;
48
+ this.step = undefined;
49
+ this.type = 'text';
50
+ this.value = undefined;
51
+ }
52
+ handleChange(event) {
53
+ const target = event.target;
54
+ this.value = target.value;
55
+ this.valueChanged.emit(target.value);
56
+ }
57
+ handleFocus(event) {
58
+ const target = event.target;
59
+ this.focusChanged.emit(target.value);
60
+ }
61
+ handleBlur(event) {
62
+ const target = event.target;
63
+ this.blurChanged.emit(target.value);
64
+ }
65
+ handleInvalid(event) {
66
+ event.preventDefault();
67
+ const target = event.target;
68
+ this.invalidChanged.emit(target.value);
69
+ }
70
+ handleInputIconClick(event) {
71
+ event.preventDefault();
72
+ this.inputIconClick.emit();
73
+ }
74
+ handleLeftIconClick(event) {
75
+ event.preventDefault();
76
+ this.leftIconClick.emit();
77
+ }
78
+ handleRightIconClick(event) {
79
+ event.preventDefault();
80
+ this.rightIconClick.emit();
81
+ }
82
+ render() {
83
+ const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
84
+ return (index.h(index.Host, null, index.h("label", { class: this.inline ? 'inputInline' : 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', index.h("div", { class: "input-container" }, this.inputicon && (index.h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (index.h("tttx-icon", { id: "icon-left", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })), this.iconright && (index.h("tttx-icon", { id: "icon-right", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })), index.h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.secondarylabel && index.h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
85
+ }
86
+ };
87
87
  TttxInput.style = tttxStandaloneInputCss;
88
88
 
89
89
  exports.tttx_standalone_input = TttxInput;
@@ -2,19 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-457ca775.js');
5
+ const index = require('./index-76f14107.js');
6
6
 
7
7
  const tttxToolbarCss = ":host{height:36px;display:flex;padding:8px 0;gap:8px}:host(.bordered){border-bottom:1px solid #d5d5d5}::slotted([slot=before]){display:flex;align-items:center;flex:1 1 0px;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:center;flex:1 1 0px;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:center;flex:1 1 0px;gap:8px}";
8
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
- };
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
18
  TttxToolbar.style = tttxToolbarCss;
19
19
 
20
20
  exports.tttx_toolbar = TttxToolbar;
@@ -1,11 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-457ca775.js');
3
+ const index = require('./index-76f14107.js');
6
4
 
7
5
  /*
8
- Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
9
7
  */
10
8
  const patchBrowser = () => {
11
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('tttx.cjs.js', document.baseURI).href));
@@ -19,5 +17,3 @@ const patchBrowser = () => {
19
17
  patchBrowser().then(options => {
20
18
  return index.bootstrapLazy([["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-filter.cjs",[[1,"tttx-filter",{"filterKey":[1,"filter-key"],"filterOptions":[1,"filter-options"],"showSelectAll":[4,"show-select-all"],"showSearchField":[4,"show-search-field"],"showOptionIcons":[4,"show-option-icons"],"filterButtonStyle":[1,"filter-button-style"],"filterHeader":[1,"filter-header"],"showPopover":[32],"displayedFilterSettings":[32],"selectedFilters":[32],"filterSearchTerm":[32],"allSelected":[32]}]]],["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-sorter.cjs",[[1,"tttx-sorter",{"sorterKey":[1,"sorter-key"],"defaultSortDirection":[1,"default-sort-direction"],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"selectedField":[32],"sortDirection":[32],"dropdownExpand":[32],"dropdownOptions":[32]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconleftcolor":[1],"iconright":[1],"iconrightcolor":[1],"inputicon":[1],"inputiconcolor":[1],"inline":[4],"inputautocapitalize":[1],"inputautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"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],"data":[1032],"submit":[64]}]]],["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]}]]]], options);
21
19
  });
22
-
23
- exports.setNonce = index.setNonce;
@@ -13,8 +13,8 @@
13
13
  ],
14
14
  "compiler": {
15
15
  "name": "@stencil/core",
16
- "version": "2.22.3",
17
- "typescriptVersion": "4.9.4"
16
+ "version": "2.20.0",
17
+ "typescriptVersion": "4.8.4"
18
18
  },
19
19
  "collections": [],
20
20
  "bundles": []
@@ -2,6 +2,10 @@
2
2
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
3
3
  }
4
4
 
5
+ button {
6
+ cursor: pointer;
7
+ }
8
+
5
9
  .button {
6
10
  font-family: Roboto, serif;
7
11
  box-sizing: border-box;
@@ -133,10 +137,6 @@
133
137
  display: inline-block;
134
138
  }
135
139
 
136
- button {
137
- cursor: pointer;
138
- }
139
-
140
140
  tttx-icon {
141
141
  cursor: inherit;
142
142
  }