@web-atoms/web-controls 2.3.107 → 2.3.109

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 (136) hide show
  1. package/dist/basic/AtomChips.d.ts +2 -0
  2. package/dist/basic/AtomChips.d.ts.map +1 -1
  3. package/dist/basic/AtomChips.js +3 -16
  4. package/dist/basic/AtomChips.js.map +1 -1
  5. package/dist/basic/AtomRepeater.d.ts +3 -0
  6. package/dist/basic/AtomRepeater.d.ts.map +1 -1
  7. package/dist/basic/AtomRepeater.js +6 -22
  8. package/dist/basic/AtomRepeater.js.map +1 -1
  9. package/dist/basic/AtomSuggestions.d.ts +1 -0
  10. package/dist/basic/AtomSuggestions.d.ts.map +1 -1
  11. package/dist/basic/AtomSuggestions.js +3 -13
  12. package/dist/basic/AtomSuggestions.js.map +1 -1
  13. package/dist/basic/Button.d.ts.map +1 -1
  14. package/dist/basic/Button.js +1 -0
  15. package/dist/basic/Button.js.map +1 -1
  16. package/dist/basic/Calendar.d.ts +1 -0
  17. package/dist/basic/Calendar.d.ts.map +1 -1
  18. package/dist/basic/Calendar.js +3 -10
  19. package/dist/basic/Calendar.js.map +1 -1
  20. package/dist/basic/CheckBoxList.d.ts +1 -0
  21. package/dist/basic/CheckBoxList.d.ts.map +1 -1
  22. package/dist/basic/CheckBoxList.js +3 -16
  23. package/dist/basic/CheckBoxList.js.map +1 -1
  24. package/dist/basic/Checkbox.d.ts +1 -0
  25. package/dist/basic/Checkbox.d.ts.map +1 -1
  26. package/dist/basic/Checkbox.js +5 -11
  27. package/dist/basic/Checkbox.js.map +1 -1
  28. package/dist/basic/Chip.d.ts +1 -0
  29. package/dist/basic/Chip.d.ts.map +1 -1
  30. package/dist/basic/Chip.js +4 -12
  31. package/dist/basic/Chip.js.map +1 -1
  32. package/dist/basic/DataGrid.d.ts +1 -0
  33. package/dist/basic/DataGrid.d.ts.map +1 -1
  34. package/dist/basic/DataGrid.js +3 -10
  35. package/dist/basic/DataGrid.js.map +1 -1
  36. package/dist/basic/DateField.d.ts +1 -0
  37. package/dist/basic/DateField.d.ts.map +1 -1
  38. package/dist/basic/DateField.js +3 -14
  39. package/dist/basic/DateField.js.map +1 -1
  40. package/dist/basic/DropDown.d.ts +1 -0
  41. package/dist/basic/DropDown.d.ts.map +1 -1
  42. package/dist/basic/DropDown.js +3 -11
  43. package/dist/basic/DropDown.js.map +1 -1
  44. package/dist/basic/Expander.d.ts +1 -0
  45. package/dist/basic/Expander.d.ts.map +1 -1
  46. package/dist/basic/Expander.js +3 -9
  47. package/dist/basic/Expander.js.map +1 -1
  48. package/dist/basic/styles/calendar-style.d.ts +2 -0
  49. package/dist/basic/styles/calendar-style.d.ts.map +1 -0
  50. package/dist/basic/styles/calendar-style.js +93 -0
  51. package/dist/basic/styles/calendar-style.js.map +1 -0
  52. package/dist/basic/styles/check-box-list-style.d.ts +2 -0
  53. package/dist/basic/styles/check-box-list-style.d.ts.map +1 -0
  54. package/dist/basic/styles/check-box-list-style.js +66 -0
  55. package/dist/basic/styles/check-box-list-style.js.map +1 -0
  56. package/dist/basic/styles/checkbox-style.d.ts +2 -0
  57. package/dist/basic/styles/checkbox-style.d.ts.map +1 -0
  58. package/dist/basic/styles/checkbox-style.js +33 -0
  59. package/dist/basic/styles/checkbox-style.js.map +1 -0
  60. package/dist/basic/styles/chip-style.d.ts +2 -0
  61. package/dist/basic/styles/chip-style.d.ts.map +1 -0
  62. package/dist/basic/styles/chip-style.js +84 -0
  63. package/dist/basic/styles/chip-style.js.map +1 -0
  64. package/dist/basic/styles/chips-style.d.ts +2 -0
  65. package/dist/basic/styles/chips-style.d.ts.map +1 -0
  66. package/dist/basic/styles/chips-style.js +50 -0
  67. package/dist/basic/styles/chips-style.js.map +1 -0
  68. package/dist/basic/styles/data-grid-style.d.ts +2 -0
  69. package/dist/basic/styles/data-grid-style.d.ts.map +1 -0
  70. package/dist/basic/styles/data-grid-style.js +46 -0
  71. package/dist/basic/styles/data-grid-style.js.map +1 -0
  72. package/dist/basic/styles/date-field-style.d.ts +2 -0
  73. package/dist/basic/styles/date-field-style.d.ts.map +1 -0
  74. package/dist/basic/styles/date-field-style.js +80 -0
  75. package/dist/basic/styles/date-field-style.js.map +1 -0
  76. package/dist/basic/styles/drop-down-style.d.ts +2 -0
  77. package/dist/basic/styles/drop-down-style.d.ts.map +1 -0
  78. package/dist/basic/styles/drop-down-style.js +24 -0
  79. package/dist/basic/styles/drop-down-style.js.map +1 -0
  80. package/dist/basic/styles/expander-style.d.ts +2 -0
  81. package/dist/basic/styles/expander-style.d.ts.map +1 -0
  82. package/dist/basic/styles/expander-style.js +138 -0
  83. package/dist/basic/styles/expander-style.js.map +1 -0
  84. package/dist/basic/styles/item-suggestion-style.d.ts +2 -0
  85. package/dist/basic/styles/item-suggestion-style.d.ts.map +1 -0
  86. package/dist/basic/styles/item-suggestion-style.js +51 -0
  87. package/dist/basic/styles/item-suggestion-style.js.map +1 -0
  88. package/dist/basic/styles/popup-style.d.ts +2 -0
  89. package/dist/basic/styles/popup-style.d.ts.map +1 -0
  90. package/dist/basic/styles/popup-style.js +34 -0
  91. package/dist/basic/styles/popup-style.js.map +1 -0
  92. package/dist/basic/styles/repeater-style.d.ts +2 -0
  93. package/dist/basic/styles/repeater-style.d.ts.map +1 -0
  94. package/dist/basic/styles/repeater-style.js +62 -0
  95. package/dist/basic/styles/repeater-style.js.map +1 -0
  96. package/dist/basic/styles/suggestion-popup.d.ts +2 -0
  97. package/dist/basic/styles/suggestion-popup.d.ts.map +1 -0
  98. package/dist/basic/styles/suggestion-popup.js +36 -0
  99. package/dist/basic/styles/suggestion-popup.js.map +1 -0
  100. package/dist/basic/styles/suggestion-style.d.ts +2 -0
  101. package/dist/basic/styles/suggestion-style.d.ts.map +1 -0
  102. package/dist/basic/styles/suggestion-style.js +50 -0
  103. package/dist/basic/styles/suggestion-style.js.map +1 -0
  104. package/dist/basic/styles/ui-display-none-style.d.ts +2 -0
  105. package/dist/basic/styles/ui-display-none-style.d.ts.map +1 -0
  106. package/dist/basic/styles/ui-display-none-style.js +16 -0
  107. package/dist/basic/styles/ui-display-none-style.js.map +1 -0
  108. package/dist/tsconfig.tsbuildinfo +1 -1
  109. package/package.json +2 -2
  110. package/src/basic/AtomChips.tsx +2 -64
  111. package/src/basic/AtomRepeater.tsx +5 -75
  112. package/src/basic/AtomSuggestions.tsx +1 -30
  113. package/src/basic/Button.tsx +2 -0
  114. package/src/basic/Calendar.tsx +2 -64
  115. package/src/basic/CheckBoxList.tsx +22 -20
  116. package/src/basic/Checkbox.tsx +2 -26
  117. package/src/basic/Chip.tsx +2 -61
  118. package/src/basic/DataGrid.tsx +32 -30
  119. package/src/basic/DateField.tsx +1 -54
  120. package/src/basic/DropDown.tsx +1 -6
  121. package/src/basic/Expander.tsx +2 -115
  122. package/src/basic/styles/calendar-style.ts +82 -0
  123. package/src/basic/styles/check-box-list-style.ts +58 -0
  124. package/src/basic/styles/checkbox-style.ts +22 -0
  125. package/src/basic/styles/chip-style.ts +73 -0
  126. package/src/basic/styles/chips-style.ts +39 -0
  127. package/src/basic/styles/data-grid-style.ts +35 -0
  128. package/src/basic/styles/date-field-style.ts +69 -0
  129. package/src/basic/styles/drop-down-style.ts +13 -0
  130. package/src/basic/styles/expander-style.ts +128 -0
  131. package/src/basic/styles/item-suggestion-style.ts +40 -0
  132. package/src/basic/styles/popup-style.ts +23 -0
  133. package/src/basic/styles/repeater-style.ts +51 -0
  134. package/src/basic/styles/suggestion-popup.ts +28 -0
  135. package/src/basic/styles/suggestion-style.ts +39 -0
  136. package/src/basic/styles/ui-display-none-style.ts +5 -0
@@ -0,0 +1,22 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ display: inline-block;
5
+ & > label {
6
+ display: flex;
7
+ padding-left: 5px;
8
+ padding-right: 5px;
9
+ & > input[type=checkbox] {
10
+ border-radius: 3px;
11
+ margin: 0;
12
+ padding: 0;
13
+ align-self: center;
14
+ }
15
+ & > span {
16
+ align-self: center;
17
+ white-space: nowrap;
18
+ margin-left: 5px;
19
+ flex: 1 1 100%;
20
+ }
21
+ }
22
+ `.installGlobal("[data-check-box=check-box]");
@@ -0,0 +1,73 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ padding: 1px;
5
+ padding-left: 5px;
6
+ padding-right: 5px;
7
+ border-radius: 10px;
8
+ display: grid;
9
+ align-items: center;
10
+ grid-template-rows: auto 1fr;
11
+ grid-template-columns: auto 1fr auto;
12
+
13
+ & > [data-content] {
14
+ grid-row-start: 2;
15
+ grid-column-start: 2;
16
+ }
17
+
18
+ & > .icon {
19
+ grid-column-start: 1;
20
+ grid-row-start: 1;
21
+ grid-row-end: span 2;
22
+ padding: 2px;
23
+ padding-right: 4px;
24
+ align-self: center;
25
+ }
26
+
27
+ & > .delete {
28
+ grid-column-start: 3;
29
+ grid-row-start: 1;
30
+ grid-row-end: span 2;
31
+ align-self: center;
32
+ font-size: small;
33
+ background-color: transparent;
34
+ border-radius: 4px;
35
+ padding: 2px;
36
+ padding-left: 4px;
37
+ color: gray;
38
+ &:hover {
39
+ background-color: lightgray;
40
+ color: red;
41
+ }
42
+ }
43
+
44
+ & > .header {
45
+ font-size: x-small;
46
+ grid-row-start: 1;
47
+ grid-column-start: 2;
48
+ }
49
+
50
+ & > .label {
51
+ grid-row-start: 2;
52
+ grid-column-start: 2;
53
+ }
54
+
55
+ & > .delete-strike {
56
+ grid-row: 1 / span 2;
57
+ grid-column: 1 / span 2;
58
+ height: 2px;
59
+ background-color: red;
60
+ align-self: center;
61
+ }
62
+
63
+ &[data-deleted=false] {
64
+ & > .delete-strike {
65
+ display: none;
66
+ }
67
+ }
68
+
69
+ &[data-deleted=true] {
70
+ border: solid 1px red;
71
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M100 0 L0 100 ' stroke='red' stroke-width='1'/><path d='M0 0 L100 100 ' stroke='red' stroke-width='1'/></svg>");
72
+ }
73
+ `.installGlobal("*[data-item-chip]");
@@ -0,0 +1,39 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ flex-direction: row;
5
+ align-items: center;
6
+ justify-content: stretch;
7
+ gap: 4px;
8
+ display: flex;
9
+ flex-flow: wrap;
10
+
11
+ & > .search {
12
+ border: none;
13
+ outline: none;
14
+ flex: 1 1;
15
+ }
16
+
17
+ & > .footer {
18
+ margin-left: auto;
19
+ }
20
+
21
+ & > .presenter {
22
+ flex-direction: row;
23
+ align-items: center;
24
+ justify-content: flex-start;
25
+ gap: 4px;
26
+ display: inline-flex;
27
+ flex-flow: wrap;
28
+ & > * {
29
+ background-color: rgba(211,211,211,0.3);
30
+ }
31
+ }
32
+
33
+ &[data-mode=search] {
34
+ & > .search {
35
+ padding-left: 20px;
36
+ background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E") no-repeat 1px center;
37
+ }
38
+ }
39
+ `.installGlobal("div[data-atom-chips]");
@@ -0,0 +1,35 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ & > thead {
5
+ & > tr[data-header=header] {
6
+ & > th {
7
+ & > i[data-sort] {
8
+ margin-right: 5px;
9
+ margin-left: 3px;
10
+ opacity: 0.5;
11
+ }
12
+ & > input[type=checkbox] {
13
+ margin: 5px;
14
+ }
15
+ }
16
+ }
17
+ }
18
+
19
+ & > tbody {
20
+ & > tr[data-item-index] {
21
+ &:hover {
22
+ background-color: rgba(135,206,250,0.3);
23
+ }
24
+ &[data-selected-item=true] {
25
+ background-color: rgba(211,211,211,0.4);
26
+ }
27
+ & > td[data-ellipsis] {
28
+ max-width: 200px;
29
+ overflow: hidden;
30
+ text-overflow: ellipsis;
31
+ white-space: nowrap;
32
+ }
33
+ }
34
+ }
35
+ `.installGlobal("table[data-data-grid=data-grid]");
@@ -0,0 +1,69 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+
5
+ display: inline-block;
6
+ cursor: pointer;
7
+ text-align: left;
8
+
9
+ &:hover {
10
+ text-decoration: underline;
11
+ color: #0000ff;
12
+ }
13
+
14
+ & .calendar-popup {
15
+ display: grid;
16
+ grid-template-columns: 1fr auto;
17
+ grid-template-rows: 1fr auto auto;
18
+ gap: 7px;
19
+ }
20
+
21
+ & .calendar-popup > [data-calendar] {
22
+ grid-row: 1;
23
+ grid-column: 1 / span 2;
24
+ }
25
+
26
+ & .calendar-popup > .time-editor {
27
+ padding-left: 5px;
28
+ grid-row: 2;
29
+ flex-direction: row;
30
+ align-items: center;
31
+ justify-content: start;
32
+ gap: 4px;
33
+ display: flex;
34
+ }
35
+
36
+ & .calendar-popup > .time-editor [data-item-index] {
37
+ padding-top: 0px;
38
+ padding-bottom: 0px;
39
+ }
40
+
41
+ & .calendar-popup > .time-editor select {
42
+ border: none;
43
+ outline: none;
44
+ }
45
+
46
+ & .calendar-popup > .clear {
47
+ grid-column: 1;
48
+ grid-row: 3;
49
+ justify-self: start;
50
+ border: none;
51
+ outline: none;
52
+ background-color: transparent;
53
+ color: var(--accent-color, blue);
54
+ padding-left: 5px;
55
+ margin-left: 0px;
56
+ }
57
+
58
+ & .calendar-popup > .today {
59
+ grid-row: 3;
60
+ grid-column: 2;
61
+ justify-self: end;
62
+ border: none;
63
+ outline: none;
64
+ background-color: transparent;
65
+ color: var(--accent-color, blue);
66
+ padding-left: 5px;
67
+ margin-left: 0px;
68
+ }
69
+ `.installGlobal("*[data-date-field=date-field]");
@@ -0,0 +1,13 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ display: inline-flex;
5
+ flex-direction: row;
6
+ gap: 4px;
7
+ align-items: center;
8
+ justify-content: stretch;
9
+
10
+ & [data-white-space=nowrap] {
11
+ white-space: nowrap;
12
+ }
13
+ `.installLocal("div[data-drop-down=drop-down]");
@@ -0,0 +1,128 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+
5
+ display: grid;
6
+ grid-template-rows: auto 1fr;
7
+ grid-template-columns: auto 1fr auto;
8
+ align-items: center;
9
+
10
+ & > [data-element=icon] {
11
+ grid-column-start: 1;
12
+ grid-row-start: 1;
13
+ padding: 5px;
14
+ margin-right: 5px;
15
+ align-self: center;
16
+ justify-self: center; }
17
+
18
+ & > [data-element=header] {
19
+ grid-row-start: 1;
20
+ grid-column-start: 2; }
21
+
22
+ & > [data-element=caret] {
23
+ grid-row-start: 1;
24
+ grid-column-start: 3;
25
+ padding: 5px;
26
+ margin-left: 5px; }
27
+
28
+ & > [data-element=detail] {
29
+ grid-row-start: 2;
30
+ grid-column-start: 1;
31
+ grid-column-end: span 3;
32
+ margin-top: 5px; }
33
+
34
+ &[data-is-expanded=true] {
35
+ & > [data-element=caret] {
36
+ overflow: hidden;
37
+ transform: rotate(-180deg);
38
+ transition: transform 150ms ease;
39
+ transform-origin: center center;
40
+ }
41
+ }
42
+
43
+ &[data-is-expanded=false] {
44
+ & > [data-element=caret] {
45
+ overflow: hidden;
46
+ transform: rotate(-360deg);
47
+ transform-origin: center center;
48
+ transition: transform 150ms ease;
49
+ }
50
+ & > *[data-element=detail] {
51
+ display: none;
52
+ }
53
+ }
54
+ `.installGlobal("*[data-is-expander=expander]");
55
+
56
+ styled.css `
57
+
58
+ display: grid;
59
+ grid-template-columns: auto auto 1fr auto;
60
+ align-items: center;
61
+ gap: 0px;
62
+
63
+ & > [data-element=icon] {
64
+ grid-column-start: 1;
65
+ grid-column-end: span 2;
66
+ grid-row-start: 1;
67
+ padding: 5px;
68
+ align-self: center;
69
+ justify-self: center;
70
+ }
71
+
72
+ & > [data-element=header] {
73
+ grid-row-start: 1;
74
+ grid-column-start: 3;
75
+ }
76
+
77
+ & > [data-element=caret] {
78
+ grid-row-start: 1;
79
+ grid-column-start: 4;
80
+ padding: 5px;
81
+ margin-left: 5px;
82
+ }
83
+
84
+ & > [data-element=detail] {
85
+ grid-row-start: 2;
86
+ grid-column-start: 2;
87
+ grid-column-end: span 3;
88
+ padding-left: 20px;
89
+ padding-top: 5px;
90
+ border-left-style: solid;
91
+ border-left-width: 1px;
92
+ border-left-color: var(--border-color, lightgray);
93
+ border-top-left-radius: 0px;
94
+ border-bottom-left-radius: 0px;
95
+ border-bottom-width: 0px;
96
+ border-top-width: 0px;
97
+ margin-top: 0px;
98
+ margin-bottom: 0px;
99
+
100
+ &[data-selected=true] {
101
+ font-weight: bold;
102
+ border-left-color: var(--accent-color, darkgray);
103
+ border-left-width: medium;
104
+ }
105
+ }
106
+
107
+ &[data-is-expanded=true] {
108
+ & > [data-element=caret] {
109
+ overflow: hidden;
110
+ transform: rotate(-180deg);
111
+ transition: transform 150ms ease;
112
+ transform-origin: center center;
113
+ }
114
+ }
115
+
116
+ &[data-is-expanded=false] {
117
+ & > [data-element=caret] {
118
+ overflow: hidden;
119
+ transform: rotate(-360deg);
120
+ transform-origin: center center;
121
+ transition: transform 150ms ease;
122
+ }
123
+ & > *[data-element=detail] {
124
+ display: none;
125
+ }
126
+ }
127
+
128
+ `.installGlobal("*[data-is-expander=menu]")
@@ -0,0 +1,40 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ padding: 1px;
5
+ padding-left: 5px;
6
+ padding-right: 5px;
7
+ border-radius: 10px;
8
+ display: grid;
9
+ align-items: center;
10
+ grid-template-rows: auto 1fr;
11
+ grid-template-columns: auto 1fr auto;
12
+
13
+ & > [data-content] {
14
+ grid-row-start: 2;
15
+ grid-column-start: 2;
16
+ }
17
+ & > .icon {
18
+ grid-column-start: 1;
19
+ grid-row-start: 1;
20
+ grid-row-end: span 2;
21
+ align-self: center;
22
+ margin-right: 5px;
23
+ }
24
+ & > .delete {
25
+ grid-column-start: 3;
26
+ grid-row-start: 1;
27
+ grid-row-end: span 2;
28
+ align-self: center;
29
+ color: #ff0000;
30
+ }
31
+ & > .header {
32
+ font-size: x-small;
33
+ grid-row-start: 1;
34
+ grid-column-start: 2;
35
+ }
36
+ & > .label {
37
+ grid-row-start: 2;
38
+ grid-column-start: 2;
39
+ }
40
+ `.installGlobal("*[data-item-suggestion]");
@@ -0,0 +1,23 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ export const repeaterPopupCss = styled.css `
4
+ min-width: 200px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ justify-content: space-around;
9
+ gap: 4px;
10
+
11
+ & > .items {
12
+ flex: 1 1 100%;
13
+ overflow: auto;
14
+ & > .presenter {
15
+ & > * {
16
+ padding: 5px;
17
+ }
18
+ & > [data-selected-item=true] {
19
+ background-color: lightgreen;
20
+ }
21
+ }
22
+ }
23
+ `.installLocal();
@@ -0,0 +1,51 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+
5
+ *[data-selected-item] {
6
+ & i[data-click-event] {
7
+ padding: 5px;
8
+ }
9
+ & [data-no-wrap=true] {
10
+ white-space: nowrap;
11
+ }
12
+ }
13
+
14
+ *[data-selected-item=true] {
15
+ & i[data-click-event=item-select] {
16
+ padding: 5px;
17
+ }
18
+ & i[data-click-event=item-select] {
19
+ display: none;
20
+ }
21
+ }
22
+
23
+ *[data-selected-item=false] {
24
+ & i[data-click-event=item-deselect] {
25
+ display: none;
26
+ }
27
+ }
28
+
29
+ *[data-select-all=select-all] {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: flex-start;
33
+ margin: 0;
34
+ & i[data-ui-type] {
35
+ padding: 5px;
36
+ }
37
+ & [data-no-wrap=true] {
38
+ white-space: nowrap;
39
+ }
40
+ &[data-is-selected=true] {
41
+ & i[data-ui-type=item-select] {
42
+ display: none;
43
+ }
44
+ }
45
+ &[data-is-selected=false] {
46
+ & i[data-ui-type=item-deselect] {
47
+ display: none;
48
+ }
49
+ }
50
+ }
51
+ `.withId("repeater-styles").installGlobal();
@@ -0,0 +1,28 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ const hasMoreHeight = (window.screen.availHeight / 2) > 250
4
+ ? `height: 250px;`
5
+ : `max-height: 80px;`;
6
+
7
+ styled.css `
8
+ ${hasMoreHeight}
9
+ min-width: 80px;
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: space-around;
14
+ gap: 4px;
15
+
16
+ & > .items {
17
+ flex: 1 1 100%;
18
+ overflow: auto;
19
+ & > .presenter {
20
+ & > * {
21
+ padding: 5px;
22
+ }
23
+ & > [data-selected-item=true] {
24
+ background-color: lightgreen;
25
+ }
26
+ }
27
+ }
28
+ `.installGlobal("*[data-suggestion-popup=suggestion-popup]");
@@ -0,0 +1,39 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ margin: 5px;
5
+ display: flex;
6
+ flex-direction: row;
7
+ justify-content: space-around;
8
+ gap: 4px;
9
+ overflow: hidden;
10
+ & > .header {
11
+ color: darkorange;
12
+ white-space: nowrap;
13
+ }
14
+ & > .items {
15
+ flex: 1 1 100%;
16
+ display: flex;
17
+ flex-direction: row;
18
+ justify-content: flex-start;
19
+ align-items: center;
20
+ gap: 0;
21
+ overflow: hidden;
22
+ & > * {
23
+ white-space: nowrap;
24
+ padding: 3px;
25
+ cursor: pointer;
26
+ &:hover {
27
+ color: blue;
28
+ text-decoration: underline;
29
+ }
30
+ }
31
+ }
32
+ & > .more {
33
+ font-size: smaller;
34
+ color: blue;
35
+ text-transform: lowercase;
36
+ text-decoration: underline;
37
+ cursor: pointer;
38
+ }
39
+ `.installGlobal("*[data-suggestions=suggestions]");
@@ -0,0 +1,5 @@
1
+ import styled from "@web-atoms/core/dist/style/styled";
2
+
3
+ styled.css `
4
+ display: none;
5
+ `.installGlobal("[data-ui-display=none]");