shared-ritm 1.3.88 → 1.3.89

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 (74) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +15 -15
  3. package/dist/shared-ritm.umd.js +3 -3
  4. package/dist/types/api/settings/ApiService.d.ts +1 -1
  5. package/package.json +70 -70
  6. package/src/App.vue +2461 -2461
  7. package/src/api/services/AuthService.ts +67 -67
  8. package/src/api/services/ControlsService.ts +96 -96
  9. package/src/api/services/EquipmentService.ts +52 -52
  10. package/src/api/services/MetricsService.ts +143 -143
  11. package/src/api/services/RepairsService.ts +111 -111
  12. package/src/api/services/UserIssueService.ts +32 -32
  13. package/src/api/services/UserService.ts +129 -129
  14. package/src/api/services/VideoService.ts +118 -118
  15. package/src/api/settings/ApiService.ts +184 -184
  16. package/src/api/types/Api_Auth.ts +121 -121
  17. package/src/api/types/Api_Equipment.ts +13 -13
  18. package/src/api/types/Api_Metrics.ts +51 -51
  19. package/src/api/types/Api_Repairs.ts +187 -187
  20. package/src/api/types/Api_Search.ts +81 -81
  21. package/src/api/types/Api_Tasks.ts +376 -376
  22. package/src/api/types/Api_User.ts +160 -160
  23. package/src/api/types/Api_User_Issue.ts +36 -36
  24. package/src/api/types/Api_Video.ts +244 -244
  25. package/src/common/app-button/Button.stories.ts +369 -369
  26. package/src/common/app-checkbox/AppCheckbox.vue +31 -31
  27. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  28. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  29. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  30. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  31. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  32. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  33. package/src/common/app-file/File.stories.ts +104 -104
  34. package/src/common/app-icon/AppIcon.vue +110 -110
  35. package/src/common/app-icon/Icon.stories.ts +91 -91
  36. package/src/common/app-input/Input.stories.ts +160 -160
  37. package/src/common/app-input-new/AppInputNew.vue +181 -181
  38. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  39. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  40. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  41. package/src/common/app-loader/Loader.stories.ts +114 -114
  42. package/src/common/app-select/AppSelect.vue +159 -159
  43. package/src/common/app-select/Select.stories.ts +155 -155
  44. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  45. package/src/common/app-table/AppTable.vue +313 -313
  46. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  47. package/src/common/app-table/components/ModalSelect.vue +302 -302
  48. package/src/common/app-table/components/TableModal.vue +369 -369
  49. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  50. package/src/common/app-table/controllers/useTableModel.ts +97 -97
  51. package/src/common/app-toggle/AppToggle.vue +12 -12
  52. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  53. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  54. package/src/configs/storybook.ts +14 -14
  55. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  56. package/src/index.ts +134 -134
  57. package/src/shared/styles/general.css +140 -140
  58. package/src/styles/variables.sass +12 -12
  59. package/src/utils/files.ts +38 -38
  60. package/src/utils/helpers.ts +59 -59
  61. package/dist/types/api/services/PhotoService.d.ts +0 -40
  62. package/dist/types/stories/Button.stories.d.ts +0 -13
  63. package/dist/types/stories/Checkbox.stories.d.ts +0 -7
  64. package/dist/types/stories/Confirm.stories.d.ts +0 -8
  65. package/dist/types/stories/DatePicker.stories.d.ts +0 -8
  66. package/dist/types/stories/Dropdown.stories.d.ts +0 -8
  67. package/dist/types/stories/File.stories.d.ts +0 -8
  68. package/dist/types/stories/Icon.stories.d.ts +0 -7
  69. package/dist/types/stories/Input.stories.d.ts +0 -11
  70. package/dist/types/stories/InputNew.stories.d.ts +0 -12
  71. package/dist/types/stories/InputSearch.stories.d.ts +0 -10
  72. package/dist/types/stories/Loader.stories.d.ts +0 -8
  73. package/dist/types/stories/Select.stories.d.ts +0 -7
  74. package/dist/types/stories/Toggle.stories.d.ts +0 -8
@@ -1,160 +1,160 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3'
2
- import AppInput from '@/common/app-input/AppInput.vue'
3
-
4
- const meta: Meta<typeof AppInput> = {
5
- title: 'Components/AppInput',
6
- component: AppInput,
7
- tags: ['autodocs'],
8
- argTypes: {
9
- modelValue: {
10
- control: 'text',
11
- table: { category: 'Используется' },
12
- },
13
- placeholder: {
14
- control: 'text',
15
- description: 'Текст-подсказка внутри поля.',
16
- table: { category: 'Используется' },
17
- },
18
- type: {
19
- control: 'select',
20
- options: ['text', 'password', 'number', 'email', 'search', 'tel', 'date', 'url'],
21
- description: 'Тип HTML-инпута.',
22
- table: { category: 'Используется' },
23
- },
24
-
25
- width: {
26
- control: 'text',
27
- description: 'Ширина поля (CSS-значение, например "300px", "100%").',
28
- table: { disable: true },
29
- },
30
- height: {
31
- control: 'text',
32
- description: 'Высота поля (например, "48px").',
33
- table: { category: 'Используется' },
34
- },
35
- borderRadius: {
36
- control: 'text',
37
- description: 'Скругление углов (например, "8px").',
38
- table: { disable: true },
39
- },
40
- borderWidth: {
41
- control: 'text',
42
- description: 'Толщина границы (например, "1px").',
43
- table: { disable: true },
44
- },
45
-
46
- disabled: {
47
- control: 'boolean',
48
- description: 'Отключает поле ввода.',
49
- table: { category: 'Используется' },
50
- },
51
- readonly: {
52
- control: 'boolean',
53
- description: 'Делает поле доступным только для чтения.',
54
- table: { category: 'Используется' },
55
- },
56
- field: {
57
- control: 'boolean',
58
- description: 'Делает поле доступным только для чтения.',
59
- table: { category: 'Используется' },
60
- },
61
- required: {
62
- control: 'boolean',
63
- description: 'Добавляет визуальный признак обязательного поля (стиль --required).',
64
- table: { disable: true },
65
- },
66
-
67
- withArrow: {
68
- control: 'boolean',
69
- description: 'Для type="number": показывать ли стрелки вверх/вниз.',
70
- table: { disable: true },
71
- },
72
- mask: { control: 'text', table: { disable: true } },
73
- debounce: { control: 'number', table: { disable: true } },
74
- datePicker: { table: { disable: true } },
75
- timePicker: { table: { disable: true } },
76
- withIcon: { table: { disable: true } },
77
- withButton: { table: { disable: true } },
78
- rules: { description: 'Правила для валидации.', table: { category: 'Используется' } },
79
- borderColor: { table: { disable: true } },
80
- name: { table: { disable: true } },
81
- label: { table: { disable: true } },
82
- hint: { table: { disable: true } },
83
- },
84
- args: {
85
- modelValue: '',
86
- placeholder: 'Введите значение...',
87
- type: 'text',
88
- height: '48px',
89
- },
90
- }
91
-
92
- export default meta
93
-
94
- type Story = StoryObj<typeof AppInput>
95
-
96
- export const Default: Story = {}
97
-
98
- export const InputTypes: Story = {
99
- render: () => ({
100
- components: { AppInput },
101
- template: `
102
- <div style="display: flex; flex-direction: column; gap: 16px;">
103
- <AppInput v-model="textValue" placeholder="Текст" type="text" />
104
- <AppInput v-model="passwordValue" placeholder="Пароль" type="password" />
105
- <AppInput v-model="emailValue" placeholder="Email" type="email" />
106
- <AppInput v-model="telValue" placeholder="Телефон" type="tel" />
107
- <AppInput v-model="numValue" placeholder="Число" type="number"/>
108
- </div>
109
- `,
110
- data() {
111
- return {
112
- textValue: '',
113
- passwordValue: '',
114
- emailValue: '',
115
- telValue: '',
116
- numValue: 0,
117
- }
118
- },
119
- }),
120
- }
121
-
122
- export const States: Story = {
123
- render: () => ({
124
- components: { AppInput },
125
- template: `
126
- <div style="display: flex; flex-direction: column; gap: 16px;">
127
- <AppInput v-model="activeValue" placeholder="Активное" />
128
- <AppInput v-model="disabledValue" :disabled="true" />
129
- <AppInput v-model="readonlyValue" :readonly="true" />
130
- </div>
131
- `,
132
- data() {
133
- return {
134
- activeValue: '',
135
- disabledValue: 'недоступно',
136
- readonlyValue: 'только чтение',
137
- }
138
- },
139
- }),
140
- }
141
-
142
- export const Sizes: Story = {
143
- render: () => ({
144
- components: { AppInput },
145
- template: `
146
- <div style="display: flex; gap: 16px; flex-wrap: wrap; align-items: end;">
147
- <AppInput v-model="val1" placeholder="40px" height="40px" width="180px" />
148
- <AppInput v-model="val2" placeholder="48px" height="48px" width="200px" />
149
- <AppInput v-model="val3" placeholder="60px" height="60px" width="220px" border-radius="12px" />
150
- </div>
151
- `,
152
- data() {
153
- return {
154
- val1: '',
155
- val2: '',
156
- val3: '',
157
- }
158
- },
159
- }),
160
- }
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+ import AppInput from '@/common/app-input/AppInput.vue'
3
+
4
+ const meta: Meta<typeof AppInput> = {
5
+ title: 'Components/AppInput',
6
+ component: AppInput,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ modelValue: {
10
+ control: 'text',
11
+ table: { category: 'Используется' },
12
+ },
13
+ placeholder: {
14
+ control: 'text',
15
+ description: 'Текст-подсказка внутри поля.',
16
+ table: { category: 'Используется' },
17
+ },
18
+ type: {
19
+ control: 'select',
20
+ options: ['text', 'password', 'number', 'email', 'search', 'tel', 'date', 'url'],
21
+ description: 'Тип HTML-инпута.',
22
+ table: { category: 'Используется' },
23
+ },
24
+
25
+ width: {
26
+ control: 'text',
27
+ description: 'Ширина поля (CSS-значение, например "300px", "100%").',
28
+ table: { disable: true },
29
+ },
30
+ height: {
31
+ control: 'text',
32
+ description: 'Высота поля (например, "48px").',
33
+ table: { category: 'Используется' },
34
+ },
35
+ borderRadius: {
36
+ control: 'text',
37
+ description: 'Скругление углов (например, "8px").',
38
+ table: { disable: true },
39
+ },
40
+ borderWidth: {
41
+ control: 'text',
42
+ description: 'Толщина границы (например, "1px").',
43
+ table: { disable: true },
44
+ },
45
+
46
+ disabled: {
47
+ control: 'boolean',
48
+ description: 'Отключает поле ввода.',
49
+ table: { category: 'Используется' },
50
+ },
51
+ readonly: {
52
+ control: 'boolean',
53
+ description: 'Делает поле доступным только для чтения.',
54
+ table: { category: 'Используется' },
55
+ },
56
+ field: {
57
+ control: 'boolean',
58
+ description: 'Делает поле доступным только для чтения.',
59
+ table: { category: 'Используется' },
60
+ },
61
+ required: {
62
+ control: 'boolean',
63
+ description: 'Добавляет визуальный признак обязательного поля (стиль --required).',
64
+ table: { disable: true },
65
+ },
66
+
67
+ withArrow: {
68
+ control: 'boolean',
69
+ description: 'Для type="number": показывать ли стрелки вверх/вниз.',
70
+ table: { disable: true },
71
+ },
72
+ mask: { control: 'text', table: { disable: true } },
73
+ debounce: { control: 'number', table: { disable: true } },
74
+ datePicker: { table: { disable: true } },
75
+ timePicker: { table: { disable: true } },
76
+ withIcon: { table: { disable: true } },
77
+ withButton: { table: { disable: true } },
78
+ rules: { description: 'Правила для валидации.', table: { category: 'Используется' } },
79
+ borderColor: { table: { disable: true } },
80
+ name: { table: { disable: true } },
81
+ label: { table: { disable: true } },
82
+ hint: { table: { disable: true } },
83
+ },
84
+ args: {
85
+ modelValue: '',
86
+ placeholder: 'Введите значение...',
87
+ type: 'text',
88
+ height: '48px',
89
+ },
90
+ }
91
+
92
+ export default meta
93
+
94
+ type Story = StoryObj<typeof AppInput>
95
+
96
+ export const Default: Story = {}
97
+
98
+ export const InputTypes: Story = {
99
+ render: () => ({
100
+ components: { AppInput },
101
+ template: `
102
+ <div style="display: flex; flex-direction: column; gap: 16px;">
103
+ <AppInput v-model="textValue" placeholder="Текст" type="text" />
104
+ <AppInput v-model="passwordValue" placeholder="Пароль" type="password" />
105
+ <AppInput v-model="emailValue" placeholder="Email" type="email" />
106
+ <AppInput v-model="telValue" placeholder="Телефон" type="tel" />
107
+ <AppInput v-model="numValue" placeholder="Число" type="number"/>
108
+ </div>
109
+ `,
110
+ data() {
111
+ return {
112
+ textValue: '',
113
+ passwordValue: '',
114
+ emailValue: '',
115
+ telValue: '',
116
+ numValue: 0,
117
+ }
118
+ },
119
+ }),
120
+ }
121
+
122
+ export const States: Story = {
123
+ render: () => ({
124
+ components: { AppInput },
125
+ template: `
126
+ <div style="display: flex; flex-direction: column; gap: 16px;">
127
+ <AppInput v-model="activeValue" placeholder="Активное" />
128
+ <AppInput v-model="disabledValue" :disabled="true" />
129
+ <AppInput v-model="readonlyValue" :readonly="true" />
130
+ </div>
131
+ `,
132
+ data() {
133
+ return {
134
+ activeValue: '',
135
+ disabledValue: 'недоступно',
136
+ readonlyValue: 'только чтение',
137
+ }
138
+ },
139
+ }),
140
+ }
141
+
142
+ export const Sizes: Story = {
143
+ render: () => ({
144
+ components: { AppInput },
145
+ template: `
146
+ <div style="display: flex; gap: 16px; flex-wrap: wrap; align-items: end;">
147
+ <AppInput v-model="val1" placeholder="40px" height="40px" width="180px" />
148
+ <AppInput v-model="val2" placeholder="48px" height="48px" width="200px" />
149
+ <AppInput v-model="val3" placeholder="60px" height="60px" width="220px" border-radius="12px" />
150
+ </div>
151
+ `,
152
+ data() {
153
+ return {
154
+ val1: '',
155
+ val2: '',
156
+ val3: '',
157
+ }
158
+ },
159
+ }),
160
+ }