@vitrosoftware/common-ui-ts 1.1.252 → 1.1.254

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 (30) hide show
  1. package/css/std/controls/date-picker/date-picker.css +231 -12
  2. package/css/std/controls/field-iterator/field-iterator.css +11 -0
  3. package/css/std/controls/table-view/table-view-custom-date-edit.css +18 -0
  4. package/dist/index.css +274 -44
  5. package/dist/index.js +391 -120
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/constants/Attribute.d.ts +1 -0
  8. package/dist/src/constants/HtmlElement.d.ts +4 -0
  9. package/dist/src/controls/Checkbox/Checkbox.d.ts +2 -2
  10. package/dist/src/controls/DatePicker/DatePicker.d.ts +7 -4
  11. package/dist/src/controls/DatePicker/DatePickerConstants.d.ts +7 -0
  12. package/dist/src/controls/DatePicker/services/DatePickerService.d.ts +6 -0
  13. package/dist/src/controls/ExpandControlGroup/ExpandControlGroup.d.ts +2 -0
  14. package/dist/src/controls/FieldIterator/FieldIterator.d.ts +3 -0
  15. package/dist/src/controls/FieldIterator/FieldIteratorGroup.d.ts +19 -0
  16. package/dist/src/controls/FieldIterator/models/FieldIteratorGroup.d.ts +6 -0
  17. package/dist/src/controls/Filter/Inputs/Checkbox.d.ts +0 -2
  18. package/dist/src/controls/TableView/TableViewConstants.d.ts +2 -1
  19. package/dist/src/controls/TimePicker/TimePicker.d.ts +1 -1
  20. package/dist/src/controls/TimePicker/TimePickerConstants.d.ts +3 -0
  21. package/dist/src/controls/TimePicker/services/TimePickerService.d.ts +3 -0
  22. package/dist/src/controls/TimePicker/services/impl/TimePickerServiceImpl.d.ts +5 -0
  23. package/dist/src/models.d.ts +3 -0
  24. package/dist/src/services.d.ts +3 -0
  25. package/lib/kendo/kendo.messages.ru-RU.min.js +15 -6
  26. package/lib/third-party.js +15 -6
  27. package/package.json +1 -1
  28. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  29. package/src/controls/DxfViewer/js/dxf-viewer.js +15 -15
  30. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -1,4 +1,5 @@
1
1
  export declare class ATTRIBUTE {
2
2
  static readonly STYLE = "style";
3
3
  static readonly CLASS = "class";
4
+ static readonly DATA_VALUE = "data-value";
4
5
  }
@@ -0,0 +1,4 @@
1
+ export declare class HTML_ELEMENT {
2
+ static readonly LI = "li";
3
+ static readonly SPAN = "span";
4
+ }
@@ -5,9 +5,9 @@ export interface CheckboxProps {
5
5
  isIndeterminate?: boolean;
6
6
  onChange?: (value: boolean, name: string) => void;
7
7
  labelPosition?: string;
8
- label: string;
8
+ label?: string;
9
9
  isDisabled?: boolean;
10
- name: string;
10
+ name?: string;
11
11
  className?: string;
12
12
  isReadOnly?: boolean;
13
13
  }
@@ -1,8 +1,9 @@
1
- import React from 'react';
1
+ import React, { RefObject } from 'react';
2
+ import { services } from '../../services';
2
3
  export interface DatePickerProps {
3
4
  name?: string;
4
5
  culture?: string;
5
- value: string | Date;
6
+ value?: string | Date;
6
7
  start?: string;
7
8
  depth?: string;
8
9
  format?: string;
@@ -18,7 +19,9 @@ export interface DatePickerProps {
18
19
  isRequired?: boolean;
19
20
  position?: string;
20
21
  origin?: string;
21
- popupConteiner?: HTMLElement;
22
+ popupContainer?: HTMLElement;
23
+ popupContainerRef?: RefObject<HTMLElement>;
24
+ isTimeSelectEnabled?: boolean;
22
25
  isWorkDay?: (date: Date) => any;
23
26
  onOpen?: (e: any, container: any) => void;
24
27
  onChange?: (value: any, name?: string) => void;
@@ -27,4 +30,4 @@ export interface DatePickerProps {
27
30
  onFocus?: (e: any) => void;
28
31
  className?: string;
29
32
  }
30
- export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<unknown>>;
33
+ export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<services.DatePickerService>>;
@@ -10,3 +10,10 @@ export declare enum CULTURE {
10
10
  export declare enum LABEL_POSITION {
11
11
  LEFT = "left"
12
12
  }
13
+ export declare enum COMPONENT_TYPE {
14
+ MODERN = "modern"
15
+ }
16
+ export declare enum EVENT {
17
+ ACTIVATE = "activate",
18
+ OPEN = "open"
19
+ }
@@ -0,0 +1,6 @@
1
+ export interface DatePickerService {
2
+ focus(): void;
3
+ open(): void;
4
+ setOnChange(func: (value: any, name?: string) => void): void;
5
+ [key: string]: any;
6
+ }
@@ -10,6 +10,8 @@ interface ExpandControlGroupProps {
10
10
  className?: string;
11
11
  buttonClassName?: string;
12
12
  buttonContent?: React.ReactNode;
13
+ button?: React.ReactNode;
14
+ isButtonVisible?: boolean;
13
15
  children: React.ReactNode;
14
16
  }
15
17
  export declare const ExpandControlGroup: (props: ExpandControlGroupProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { models } from '../../models';
2
3
  interface FieldIteratorProps {
3
4
  fieldList: any[];
4
5
  componentMap: {
@@ -20,7 +21,9 @@ interface FieldIteratorProps {
20
21
  maxVisibleCount?: number;
21
22
  isReadOnly?: boolean;
22
23
  controlData?: any;
24
+ groupList?: models.FieldIteratorGroup[];
23
25
  className?: string;
26
+ getIsVisibleGroup?: (isVisible: string | boolean) => Promise<boolean>;
24
27
  }
25
28
  export declare const FieldIterator: React.ForwardRefExoticComponent<FieldIteratorProps & React.RefAttributes<unknown>>;
26
29
  export {};
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface FieldIteratorGroupProps {
3
+ label: string;
4
+ isVisible: boolean | string;
5
+ fieldList: string[];
6
+ controlList: {
7
+ [key: string]: any;
8
+ }[];
9
+ componentMap: {
10
+ name: string;
11
+ value: React.FunctionComponent<any>;
12
+ }[];
13
+ getComponent: (component: React.FunctionComponent<any>, control: {
14
+ [key: string]: any;
15
+ }, index: number) => React.ReactNode;
16
+ getIsVisible?: (isVisible: string | boolean) => Promise<boolean>;
17
+ }
18
+ export declare const FieldIteratorGroup: (props: FieldIteratorGroupProps) => JSX.Element;
19
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface FieldIteratorGroup {
2
+ label: string;
3
+ fieldList: string[];
4
+ isVisible: string | boolean;
5
+ field: string;
6
+ }
@@ -3,8 +3,6 @@ interface CheckboxProps {
3
3
  value?: {
4
4
  valueList: boolean[];
5
5
  };
6
- label?: string;
7
- name?: string;
8
6
  }
9
7
  export declare const Checkbox: (props: CheckboxProps) => JSX.Element;
10
8
  export {};
@@ -260,7 +260,8 @@ export declare enum DEF_ROW {
260
260
  R = "R"
261
261
  }
262
262
  export declare enum DATE_FORMAT {
263
- DEFAULT = "dd.MM.yyyy"
263
+ DEFAULT = "dd.MM.yyyy",
264
+ HOURS_MINUTES = "HH:mm"
264
265
  }
265
266
  export declare enum DEPENDENCY_TYPE {
266
267
  START_START = "ss",
@@ -13,7 +13,7 @@ interface TimePickerProps {
13
13
  isRequired?: boolean;
14
14
  position?: string;
15
15
  origin?: string;
16
- popupConteiner?: HTMLElement;
16
+ popupContainer?: HTMLElement;
17
17
  onChange?: (value: any) => void;
18
18
  onOpen?: (e: any, container: any) => void;
19
19
  onClose?: (e: any, container: any) => void;
@@ -10,3 +10,6 @@ export declare enum LABEL_POSITION {
10
10
  export declare enum COMPONENT_TYPE {
11
11
  MODERN = "modern"
12
12
  }
13
+ export declare enum EVENT {
14
+ ACTIVATE = "activate"
15
+ }
@@ -0,0 +1,3 @@
1
+ export interface TimePickerService {
2
+ initHours(picker: any): void;
3
+ }
@@ -0,0 +1,5 @@
1
+ import { TimePickerService } from '../TimePickerService';
2
+ export declare class TimePickerServiceImpl implements TimePickerService {
3
+ initHours(picker: any): void;
4
+ private getListElement;
5
+ }
@@ -27,6 +27,7 @@ import { QuillRichEditorSettings as _QuillRichEditorSettings } from './controls/
27
27
  import { TelerikMediaPlayerSettings as _TelerikMediaPlayerSettings } from './controls/VideoViewer/models/TelerikMediaPlayerSettings';
28
28
  import { FilePickerItem as _FilePickerItem } from './controls/FilePicker/models/FilePickerItem';
29
29
  import { SortItem as _SortItem } from './controls/Filter/models/SortItem';
30
+ import { FieldIteratorGroup as _FieldIteratorGroup } from './controls/FieldIterator/models/FieldIteratorGroup';
30
31
  export declare namespace models {
31
32
  interface JsTreeViewNode extends _JsTreeViewNode {
32
33
  }
@@ -86,4 +87,6 @@ export declare namespace models {
86
87
  }
87
88
  interface SortItem extends _SortItem {
88
89
  }
90
+ interface FieldIteratorGroup extends _FieldIteratorGroup {
91
+ }
89
92
  }
@@ -26,6 +26,7 @@ import { TabGroupService as _TabGroupService } from './controls/TabGroup/service
26
26
  import { DropdownButtonService as _DropdownButtonService } from './controls/DropdownButton/services/DropdownButtonService';
27
27
  import { SearchService as _SearchService } from './controls/Search/services/SearchService';
28
28
  import { ViewService as _ViewService } from './controls/View/services/ViewService';
29
+ import { DatePickerService as _DatePickerService } from './controls/DatePicker/services/DatePickerService';
29
30
  export declare namespace services {
30
31
  interface BimViewerService extends _BimViewerService {
31
32
  }
@@ -83,4 +84,6 @@ export declare namespace services {
83
84
  }
84
85
  interface ViewService extends _ViewService {
85
86
  }
87
+ interface DatePickerService extends _DatePickerService {
88
+ }
86
89
  }
@@ -22,15 +22,24 @@
22
22
 
23
23
 
24
24
  */
25
- !function (e) { "function" == typeof define && define.amd ? define(["kendo.core.min"], e) : e() }(function () { !function(e, t) {
25
+ !function (e) { "function" == typeof define && define.amd ? define(["kendo.core.min"], e) : e(); }(function () {
26
+ !function (e, t) {
27
+ kendo.ui.Calendar && (kendo.ui.Calendar.prototype.options.messages = e.extend(!0,
28
+ kendo.ui.Calendar.prototype.options.messages,
29
+ {
30
+ today: "Сегодня"
31
+ })),
26
32
  kendo.ui.DateTimePicker && (kendo.ui.DateTimePicker.prototype.options.messages = e.extend(!0,
27
33
  kendo.ui.DateTimePicker.prototype.options.messages,
28
34
  {
29
- apply: "AAAAA",
30
- cancel: "AAAA",
31
- now: "no color",
32
- clearColor: "Clear color",
33
- previewInput: "Color Hexadecimal Code"
35
+ set: "Применить",
36
+ cancel: "Отмена",
37
+ now: "Сейчас",
38
+ today: "Сегодня",
39
+ date: "Дата",
40
+ time: "Время",
41
+ hour: "Час",
42
+ minute: "Минута"
34
43
  })),
35
44
  kendo.ui.TimePicker && (kendo.ui.TimePicker.prototype.options.messages = e.extend(!0,
36
45
  kendo.ui.TimePicker.prototype.options.messages,
@@ -10560,15 +10560,24 @@ e===V?d=C:e===U&&(d=E),r=d(s.offset()/l),o=T(a.minSnap,D(-r*l,a.maxSnap)),r!=a.p
10560
10560
 
10561
10561
 
10562
10562
  */
10563
- !function (e) { "function" == typeof define && define.amd ? define(["kendo.core.min"], e) : e() }(function () { !function(e, t) {
10563
+ !function (e) { "function" == typeof define && define.amd ? define(["kendo.core.min"], e) : e(); }(function () {
10564
+ !function (e, t) {
10565
+ kendo.ui.Calendar && (kendo.ui.Calendar.prototype.options.messages = e.extend(!0,
10566
+ kendo.ui.Calendar.prototype.options.messages,
10567
+ {
10568
+ today: "Сегодня"
10569
+ })),
10564
10570
  kendo.ui.DateTimePicker && (kendo.ui.DateTimePicker.prototype.options.messages = e.extend(!0,
10565
10571
  kendo.ui.DateTimePicker.prototype.options.messages,
10566
10572
  {
10567
- apply: "AAAAA",
10568
- cancel: "AAAA",
10569
- now: "no color",
10570
- clearColor: "Clear color",
10571
- previewInput: "Color Hexadecimal Code"
10573
+ set: "Применить",
10574
+ cancel: "Отмена",
10575
+ now: "Сейчас",
10576
+ today: "Сегодня",
10577
+ date: "Дата",
10578
+ time: "Время",
10579
+ hour: "Час",
10580
+ minute: "Минута"
10572
10581
  })),
10573
10582
  kendo.ui.TimePicker && (kendo.ui.TimePicker.prototype.options.messages = e.extend(!0,
10574
10583
  kendo.ui.TimePicker.prototype.options.messages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.252",
3
+ "version": "1.1.254",
4
4
  "description": "vitro software common ui ts",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
- import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.252';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.254';
2
2
 
3
3
  import {
4
4
  Viewer, XKTLoaderPlugin, NavCubePlugin, SectionPlanesPlugin, math, BCFViewpointsPlugin, AnnotationsPlugin,
5
5
  ContextMenu, TreeViewPlugin, StoreyViewsPlugin, AngleMeasurementsPlugin, CameraMemento, DistanceMeasurementsPlugin,
6
6
  GLTFLoaderPlugin, utils, FastNavPlugin, MetaObject, parsers
7
7
  }
8
- from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.252';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.254';
9
9
 
10
10
 
11
11
  //----------------------------------------------------------------------------------------------------------------------
@@ -1,18 +1,18 @@
1
- import * as three from '/resource/dxfViewer/js/three/three.module.js?version=1.1.252';
2
- import { Matrix3, Vector2 } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.252';
3
- import { Batch, DxfViewer, Layer } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.252';
4
- import { Block as SceneBlock } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.252';
5
- import { Block } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.252';
6
- import { DxfScene, Entity, ColorCode } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.252';
7
- import { TextRenderer, ParseSpecialChars, HAlign, VAlign } from '/resource/dxfViewer/js/viewer/TextRenderer.js?version=1.1.252';
8
- import { DxfWorker } from '/resource/dxfViewer/js/viewer/DxfWorker.js?version=1.1.252';
9
- import { DxfFetcher } from '/resource/dxfViewer/js/viewer/DxfFetcher.js?version=1.1.252';
10
- import DxfParser from '/resource/dxfViewer/js/viewer/parser/DxfParser.js?version=1.1.252';
11
- import { RenderBatch } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.252';
12
- import { DynamicBuffer, NativeType } from '/resource/dxfViewer/js/viewer/DynamicBuffer.js?version=1.1.252';
13
- import { OrbitControls } from '/resource/dxfViewer/js/viewer/OrbitControls.js?version=1.1.252';
14
- import { CSS2DRenderer, CSS2DObject } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.252';
15
- import * as fflate from '/resource/dxfViewer/js/fflate/fflate.module.js?version=1.1.252'
1
+ import * as three from '/resource/dxfViewer/js/three/three.module.js?version=1.1.254';
2
+ import { Matrix3, Vector2 } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.254';
3
+ import { Batch, DxfViewer, Layer } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.254';
4
+ import { Block as SceneBlock } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.254';
5
+ import { Block } from '/resource/dxfViewer/js/viewer/DxfViewer.js?version=1.1.254';
6
+ import { DxfScene, Entity, ColorCode } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.254';
7
+ import { TextRenderer, ParseSpecialChars, HAlign, VAlign } from '/resource/dxfViewer/js/viewer/TextRenderer.js?version=1.1.254';
8
+ import { DxfWorker } from '/resource/dxfViewer/js/viewer/DxfWorker.js?version=1.1.254';
9
+ import { DxfFetcher } from '/resource/dxfViewer/js/viewer/DxfFetcher.js?version=1.1.254';
10
+ import DxfParser from '/resource/dxfViewer/js/viewer/parser/DxfParser.js?version=1.1.254';
11
+ import { RenderBatch } from '/resource/dxfViewer/js/viewer/DxfScene.js?version=1.1.254';
12
+ import { DynamicBuffer, NativeType } from '/resource/dxfViewer/js/viewer/DynamicBuffer.js?version=1.1.254';
13
+ import { OrbitControls } from '/resource/dxfViewer/js/viewer/OrbitControls.js?version=1.1.254';
14
+ import { CSS2DRenderer, CSS2DObject } from '/resource/dxfViewer/js/three/three.module.js?version=1.1.254';
15
+ import * as fflate from '/resource/dxfViewer/js/fflate/fflate.module.js?version=1.1.254'
16
16
 
17
17
  let treeViewData = [];
18
18
  let notes = [];
@@ -21208,7 +21208,7 @@ const defaultOptions = {
21208
21208
  kind: OptionKind.WORKER
21209
21209
  },
21210
21210
  workerSrc: {
21211
- value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.252",
21211
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.254",
21212
21212
  kind: OptionKind.WORKER
21213
21213
  }
21214
21214
  };