@simai-studio/view 1.0.0 → 1.2.0

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 (86) hide show
  1. package/README.md +5 -5
  2. package/dist/package-receipt.json +356 -114
  3. package/dist/set.json +35 -2
  4. package/dist/smart/rule.js +94 -0
  5. package/dist/smart/rule.js.gz +0 -0
  6. package/dist/smart/view/component.json +10 -2
  7. package/dist/smart/view/component.json.gz +0 -0
  8. package/dist/smart/view/js/view.js +23 -6
  9. package/dist/smart/view/js/view.js.gz +0 -0
  10. package/dist/smart/view/js/view.min.js +1 -1
  11. package/dist/smart/view/js/view.min.js.gz +0 -0
  12. package/dist/smart/view/smart.manifest.json +10 -3
  13. package/dist/smart/view/smart.manifest.json.gz +0 -0
  14. package/dist/smart/view/static/default/open-record.html +12 -17
  15. package/dist/smart/view/static/default/open-record.html.gz +0 -0
  16. package/dist/smart/view/static/default/reference.html +12 -17
  17. package/dist/smart/view/static/default/reference.html.gz +0 -0
  18. package/dist/smart/view-flow/component.json +612 -0
  19. package/dist/smart/view-flow/component.json.gz +0 -0
  20. package/dist/smart/view-flow/css/view-flow.css +203 -0
  21. package/dist/smart/view-flow/css/view-flow.css.gz +0 -0
  22. package/dist/smart/view-flow/css/view-flow.min.css +2 -0
  23. package/dist/smart/view-flow/css/view-flow.min.css.gz +0 -0
  24. package/dist/smart/view-flow/examples.json +452 -0
  25. package/dist/smart/view-flow/examples.json.gz +0 -0
  26. package/dist/smart/view-flow/js/view-flow.js +5858 -0
  27. package/dist/smart/view-flow/js/view-flow.js.gz +0 -0
  28. package/dist/smart/view-flow/js/view-flow.min.js +638 -0
  29. package/dist/smart/view-flow/js/view-flow.min.js.gz +0 -0
  30. package/dist/smart/view-flow/lang/en.json +24 -0
  31. package/dist/smart/view-flow/lang/en.json.gz +0 -0
  32. package/dist/smart/view-flow/lang/ru.json +24 -0
  33. package/dist/smart/view-flow/lang/ru.json.gz +0 -0
  34. package/dist/smart/view-flow/probe.json +149 -0
  35. package/dist/smart/view-flow/probe.json.gz +0 -0
  36. package/dist/smart/view-flow/smart.manifest.json +478 -0
  37. package/dist/smart/view-flow/smart.manifest.json.gz +0 -0
  38. package/dist/smart/view-flow/static/default/answered.html +57 -0
  39. package/dist/smart/view-flow/static/default/answered.html.gz +0 -0
  40. package/dist/smart/view-flow/static/default/ask.html +146 -0
  41. package/dist/smart/view-flow/static/default/ask.html.gz +0 -0
  42. package/dist/smart/view-flow/static/default/expired.html +16 -0
  43. package/dist/smart/view-flow/static/default/expired.html.gz +0 -0
  44. package/dist/smart/view-flow/static/default/groups.html +44 -0
  45. package/dist/smart/view-flow/static/default/groups.html.gz +0 -0
  46. package/dist/smart/view-flow/static/default/reference.html +72 -0
  47. package/dist/smart/view-flow/static/default/reference.html.gz +0 -0
  48. package/dist/smart/view-flow/static/default/untitled.html +41 -0
  49. package/dist/smart/view-flow/static/default/untitled.html.gz +0 -0
  50. package/dist/smart/view-flow/static/sheets.json +443 -0
  51. package/dist/smart/view-flow/static/sheets.json.gz +0 -0
  52. package/dist/smart/view-flow/template/default.css +180 -0
  53. package/dist/smart/view-flow/template/default.css.gz +0 -0
  54. package/dist/smart/view-flow/template/default.js +136 -0
  55. package/dist/smart/view-flow/template/default.js.gz +0 -0
  56. package/dist/smart/view-properties/component.json +10 -2
  57. package/dist/smart/view-properties/component.json.gz +0 -0
  58. package/dist/smart/view-properties/css/view-properties.css +24 -19
  59. package/dist/smart/view-properties/css/view-properties.css.gz +0 -0
  60. package/dist/smart/view-properties/css/view-properties.min.css +1 -1
  61. package/dist/smart/view-properties/css/view-properties.min.css.gz +0 -0
  62. package/dist/smart/view-properties/js/view-properties.js +358 -185
  63. package/dist/smart/view-properties/js/view-properties.js.gz +0 -0
  64. package/dist/smart/view-properties/js/view-properties.min.js +94 -121
  65. package/dist/smart/view-properties/js/view-properties.min.js.gz +0 -0
  66. package/dist/smart/view-properties/lang/en.json +0 -7
  67. package/dist/smart/view-properties/lang/en.json.gz +0 -0
  68. package/dist/smart/view-properties/lang/ru.json +0 -7
  69. package/dist/smart/view-properties/lang/ru.json.gz +0 -0
  70. package/dist/smart/view-properties/smart.manifest.json +16 -9
  71. package/dist/smart/view-properties/smart.manifest.json.gz +0 -0
  72. package/dist/smart/view-properties/template/default.css +22 -19
  73. package/dist/smart/view-properties/template/default.css.gz +0 -0
  74. package/dist/smart/view-properties/template/default.js +1 -79
  75. package/dist/smart/view-properties/template/default.js.gz +0 -0
  76. package/dist/smart/view-table/component.json +10 -2
  77. package/dist/smart/view-table/component.json.gz +0 -0
  78. package/dist/smart/view-table/js/view-table.js +377 -88
  79. package/dist/smart/view-table/js/view-table.js.gz +0 -0
  80. package/dist/smart/view-table/js/view-table.min.js +58 -56
  81. package/dist/smart/view-table/js/view-table.min.js.gz +0 -0
  82. package/dist/smart/view-table/smart.manifest.json +11 -4
  83. package/dist/smart/view-table/smart.manifest.json.gz +0 -0
  84. package/dist/smart/view-table/template/default.js +1 -1
  85. package/dist/smart/view-table/template/default.js.gz +0 -0
  86. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  <!-- sf-view, example «open-record»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-view aria-label="Решения" current="r-005" data-sf-awaiting aria-busy="true"><sf-view-table slot="content" aria-label="Решения" style="display: contents;" data-sf-host-toolbar selectable="true" data-sf-host-layout layout="auto" size="1" data-sf-host-vertical-scroll vertical-scroll="page" settings="true" settings-menu="false" creatable="false" row-reorder="false" inline-edit="false" filter-templates="false" data-sf-host-row-actions row-actions="false" data-sf-page-scroll data-sf-sticky-head>
2
+ <sf-view aria-label="Решения" current="r-005" data-sf-awaiting aria-busy="true"><sf-view-table slot="content" aria-label="Решения" style="display: contents;" data-sf-host-toolbar data-sf-host-selectable selectable="true" data-sf-host-layout layout="auto" size="1" data-sf-host-vertical-scroll vertical-scroll="page" data-sf-host-settings settings="true" settings-menu="false" creatable="false" row-reorder="false" inline-edit="false" filter-templates="false" data-sf-host-row-actions row-actions="false" data-sf-page-scroll data-sf-sticky-head>
3
3
  <section class="sf-table min-w-0 flex flex-col gap-1/3 flex-1 min-h-0 " data-state="loading" aria-busy="true" data-sf-static>
4
4
 
5
5
  <div class="sf-table-toolbar flex gap-1/2 content-main-between flex-none" data-sf-filter-tags="0">
@@ -56,13 +56,11 @@
56
56
  <div class="sf-table-resize-guide" aria-hidden="true" hidden></div>
57
57
 
58
58
 
59
- <table class="table border-separate border-spacing-0 min-w-full w-max table-fixed transition" aria-label="Решения" style="--sf-table-pin-select: 0px; --sf-table-pin-settings: 0px;">
59
+ <table class="table border-separate border-spacing-0 min-w-full w-max table-fixed transition" aria-label="Решения" style="--sf-table-pin-select: 0px;">
60
60
 
61
61
  <colgroup>
62
62
 
63
- <col data-key="select" style="width: calc(var(--sf-text-height-1) + var(--sf-b6) + calc(var(--sf-px) * 2))">
64
-
65
- <col data-key="settings" style="width: calc(var(--sf-text-height-1) + (var(--sf-ui-1--space-y-tightness-default) * 2) + var(--sf-b6))" data-sf-pin-edge>
63
+ <col data-key="select" style="width: calc(var(--sf-text-height-1) + var(--sf-b6) + calc(var(--sf-px) * 2))" data-sf-pin-edge>
66
64
 
67
65
  </colgroup>
68
66
 
@@ -70,7 +68,7 @@
70
68
  <thead class="sticky top-0 z-5">
71
69
  <tr>
72
70
 
73
- <th class="relative" data-key="select" data-label="select" data-sf-pinned style="position: sticky; inset-inline-start: var(--sf-table-pin-select, 0px); z-index: 2;">
71
+ <th class="relative" data-key="select" data-label="select" data-sf-pinned style="position: sticky; inset-inline-start: var(--sf-table-pin-select, 0px); z-index: 2;" data-sf-pin-edge>
74
72
  <sf-checkbox position="end" root-class="content-main-between" size="1" aria-label="Выбрать все строки" style="display: contents;">
75
73
  <label class="sf-checkbox sf-checkbox--size-1 flex content-main-between cursor-pointer" data-sf-static>
76
74
 
@@ -83,16 +81,13 @@
83
81
  </label>
84
82
  </sf-checkbox>
85
83
  </th>
86
- <th class="relative" data-key="settings" data-label="settings" data-sf-pinned style="position: sticky; inset-inline-start: var(--sf-table-pin-settings, 0px); z-index: 2;" data-sf-pin-edge>
87
- <span class="sf-table-visually-hidden">Настройки</span>
88
- </th>
89
84
  </tr>
90
85
  </thead>
91
86
 
92
87
 
93
88
  <tbody data-state="loading" class="sf-table-skeleton">
94
89
  <tr aria-hidden="true">
95
- <td colspan="2">
90
+ <td colspan="1">
96
91
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
97
92
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-3/4"></div>
98
93
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -102,7 +97,7 @@
102
97
  </div></div></div>
103
98
  </td>
104
99
  </tr><tr aria-hidden="true">
105
- <td colspan="2">
100
+ <td colspan="1">
106
101
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
107
102
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-1/2"></div>
108
103
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -112,7 +107,7 @@
112
107
  </div></div></div>
113
108
  </td>
114
109
  </tr><tr aria-hidden="true">
115
- <td colspan="2">
110
+ <td colspan="1">
116
111
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
117
112
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-2/3"></div>
118
113
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -122,7 +117,7 @@
122
117
  </div></div></div>
123
118
  </td>
124
119
  </tr><tr aria-hidden="true">
125
- <td colspan="2">
120
+ <td colspan="1">
126
121
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
127
122
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-1/3"></div>
128
123
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -132,7 +127,7 @@
132
127
  </div></div></div>
133
128
  </td>
134
129
  </tr><tr aria-hidden="true">
135
- <td colspan="2">
130
+ <td colspan="1">
136
131
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
137
132
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-2/5"></div>
138
133
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -142,7 +137,7 @@
142
137
  </div></div></div>
143
138
  </td>
144
139
  </tr><tr aria-hidden="true">
145
- <td colspan="2">
140
+ <td colspan="1">
146
141
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
147
142
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-3/5"></div>
148
143
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -153,7 +148,7 @@
153
148
  </td>
154
149
  </tr>
155
150
  </tbody>
156
- <tbody><tr><td class="sf-table-visually-hidden" colspan="2">
151
+ <tbody><tr><td class="sf-table-visually-hidden" colspan="1">
157
152
  <span role="status">Загрузка данных</span>
158
153
  </td></tr></tbody>
159
154
 
@@ -227,7 +222,7 @@
227
222
  <label class="sf-dropdown-field cursor-pointer items-cross-center relative transition flex" tabindex="-1">
228
223
 
229
224
 
230
- <input type="text" class="cursor-pointer" readonly placeholder aria-label="На странице:" tabindex="-1">
225
+ <input type="text" class="cursor-pointer" readonly placeholder="Не выбрано" aria-label="На странице:" tabindex="-1">
231
226
 
232
227
  <button type="button" class="sf-icon-button sf-icon-button--icon sf-icon-button--on-surface sf-icon-button--link sf-icon-button--size-1/2 absolute" id="sf-view-open-record-2" tabindex="0" aria-expanded="false" aria-haspopup="listbox" aria-controls="sf-dropdown-1--listbox" aria-describedby="sf-view-open-record-3" aria-label="На странице:">
233
228
  <i class="sf-icon" aria-hidden="true">keyboard_arrow_down</i>
@@ -1,5 +1,5 @@
1
1
  <!-- sf-view, example «reference»: the static markup (standard simai.smart-component 1.3.8 §5.4). Generated by scripts/snapshot-first-paint.mjs from the built output; do not edit, run it again. -->
2
- <sf-view aria-label="Решения" collection="workbench.solutions" data-sf-awaiting aria-busy="true"><sf-view-table slot="content" aria-label="Решения" style="display: contents;" data-sf-host-toolbar selectable="true" data-sf-host-layout layout="auto" size="1" data-sf-host-vertical-scroll vertical-scroll="page" settings="true" settings-menu="false" creatable="false" row-reorder="false" inline-edit="false" filter-templates="false" data-sf-host-row-actions row-actions="false" data-sf-page-scroll data-sf-sticky-head>
2
+ <sf-view aria-label="Решения" collection="workbench.solutions" data-sf-awaiting aria-busy="true"><sf-view-table slot="content" aria-label="Решения" style="display: contents;" data-sf-host-toolbar data-sf-host-selectable selectable="true" data-sf-host-layout layout="auto" size="1" data-sf-host-vertical-scroll vertical-scroll="page" data-sf-host-settings settings="true" settings-menu="false" creatable="false" row-reorder="false" inline-edit="false" filter-templates="false" data-sf-host-row-actions row-actions="false" data-sf-page-scroll data-sf-sticky-head>
3
3
  <section class="sf-table min-w-0 flex flex-col gap-1/3 flex-1 min-h-0 " data-state="loading" aria-busy="true" data-sf-static>
4
4
 
5
5
  <div class="sf-table-toolbar flex gap-1/2 content-main-between flex-none" data-sf-filter-tags="0">
@@ -56,13 +56,11 @@
56
56
  <div class="sf-table-resize-guide" aria-hidden="true" hidden></div>
57
57
 
58
58
 
59
- <table class="table border-separate border-spacing-0 min-w-full w-max table-fixed transition" aria-label="Решения" style="--sf-table-pin-select: 0px; --sf-table-pin-settings: 0px;">
59
+ <table class="table border-separate border-spacing-0 min-w-full w-max table-fixed transition" aria-label="Решения" style="--sf-table-pin-select: 0px;">
60
60
 
61
61
  <colgroup>
62
62
 
63
- <col data-key="select" style="width: calc(var(--sf-text-height-1) + var(--sf-b6) + calc(var(--sf-px) * 2))">
64
-
65
- <col data-key="settings" style="width: calc(var(--sf-text-height-1) + (var(--sf-ui-1--space-y-tightness-default) * 2) + var(--sf-b6))" data-sf-pin-edge>
63
+ <col data-key="select" style="width: calc(var(--sf-text-height-1) + var(--sf-b6) + calc(var(--sf-px) * 2))" data-sf-pin-edge>
66
64
 
67
65
  </colgroup>
68
66
 
@@ -70,7 +68,7 @@
70
68
  <thead class="sticky top-0 z-5">
71
69
  <tr>
72
70
 
73
- <th class="relative" data-key="select" data-label="select" data-sf-pinned style="position: sticky; inset-inline-start: var(--sf-table-pin-select, 0px); z-index: 2;">
71
+ <th class="relative" data-key="select" data-label="select" data-sf-pinned style="position: sticky; inset-inline-start: var(--sf-table-pin-select, 0px); z-index: 2;" data-sf-pin-edge>
74
72
  <sf-checkbox position="end" root-class="content-main-between" size="1" aria-label="Выбрать все строки" style="display: contents;">
75
73
  <label class="sf-checkbox sf-checkbox--size-1 flex content-main-between cursor-pointer" data-sf-static>
76
74
 
@@ -83,16 +81,13 @@
83
81
  </label>
84
82
  </sf-checkbox>
85
83
  </th>
86
- <th class="relative" data-key="settings" data-label="settings" data-sf-pinned style="position: sticky; inset-inline-start: var(--sf-table-pin-settings, 0px); z-index: 2;" data-sf-pin-edge>
87
- <span class="sf-table-visually-hidden">Настройки</span>
88
- </th>
89
84
  </tr>
90
85
  </thead>
91
86
 
92
87
 
93
88
  <tbody data-state="loading" class="sf-table-skeleton">
94
89
  <tr aria-hidden="true">
95
- <td colspan="2">
90
+ <td colspan="1">
96
91
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
97
92
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-3/4"></div>
98
93
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -102,7 +97,7 @@
102
97
  </div></div></div>
103
98
  </td>
104
99
  </tr><tr aria-hidden="true">
105
- <td colspan="2">
100
+ <td colspan="1">
106
101
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
107
102
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-1/2"></div>
108
103
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -112,7 +107,7 @@
112
107
  </div></div></div>
113
108
  </td>
114
109
  </tr><tr aria-hidden="true">
115
- <td colspan="2">
110
+ <td colspan="1">
116
111
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
117
112
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-2/3"></div>
118
113
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -122,7 +117,7 @@
122
117
  </div></div></div>
123
118
  </td>
124
119
  </tr><tr aria-hidden="true">
125
- <td colspan="2">
120
+ <td colspan="1">
126
121
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
127
122
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-1/3"></div>
128
123
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -132,7 +127,7 @@
132
127
  </div></div></div>
133
128
  </td>
134
129
  </tr><tr aria-hidden="true">
135
- <td colspan="2">
130
+ <td colspan="1">
136
131
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
137
132
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-2/5"></div>
138
133
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -142,7 +137,7 @@
142
137
  </div></div></div>
143
138
  </td>
144
139
  </tr><tr aria-hidden="true">
145
- <td colspan="2">
140
+ <td colspan="1">
146
141
  <div class="flex gap-2"><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
147
142
  <div class="sf-skeleton-text sf-skeleton-text--size-1/2 w-3/5"></div>
148
143
  </div></div><div class="flex-1"><div class="sf-skeleton sf-skeleton--animation-pulse" aria-hidden="true">
@@ -153,7 +148,7 @@
153
148
  </td>
154
149
  </tr>
155
150
  </tbody>
156
- <tbody><tr><td class="sf-table-visually-hidden" colspan="2">
151
+ <tbody><tr><td class="sf-table-visually-hidden" colspan="1">
157
152
  <span role="status">Загрузка данных</span>
158
153
  </td></tr></tbody>
159
154
 
@@ -227,7 +222,7 @@
227
222
  <label class="sf-dropdown-field cursor-pointer items-cross-center relative transition flex" tabindex="-1">
228
223
 
229
224
 
230
- <input type="text" class="cursor-pointer" readonly placeholder aria-label="На странице:" tabindex="-1">
225
+ <input type="text" class="cursor-pointer" readonly placeholder="Не выбрано" aria-label="На странице:" tabindex="-1">
231
226
 
232
227
  <button type="button" class="sf-icon-button sf-icon-button--icon sf-icon-button--on-surface sf-icon-button--link sf-icon-button--size-1/2 absolute" id="sf-view-reference-2" tabindex="0" aria-expanded="false" aria-haspopup="listbox" aria-controls="sf-dropdown-1--listbox" aria-describedby="sf-view-reference-3" aria-label="На странице:">
233
228
  <i class="sf-icon" aria-hidden="true">keyboard_arrow_down</i>