architwin 1.15.2 → 1.15.3

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.
@@ -191,6 +191,8 @@ i18n
191
191
  "Chemical": "Chemical",
192
192
  "Submeter": "Submeter",
193
193
  "Frequency": "Frequency",
194
+ "Camera": "Camera",
195
+ "Others": "Others",
194
196
  "DeleteDevice": "Delete Device",
195
197
  "ConfirmDeleteDevice": "Are you sure you want to delete this device? This action cannot be reversed",
196
198
  "SuccessDeleteDevice": "Successfully deleted device",
@@ -272,7 +274,8 @@ i18n
272
274
  "MoveTagCancelled": "Move Tag Cancelled",
273
275
  "Window": "Window",
274
276
  "CannotBackDrawingMode": "Cannot go back while drawing mode is active.",
275
- "PleaseOffDrawingMode": "Action cannot be done, please turn off drawing mode."
277
+ "PleaseOffDrawingMode": "Action cannot be done, please turn off drawing mode.",
278
+ "IotCategoryRequired": "IoT Category is required"
276
279
  }
277
280
  },
278
281
  ja: {
@@ -464,6 +467,8 @@ i18n
464
467
  "Chemical": "化学物質",
465
468
  "Submeter": "サブメーター",
466
469
  "Frequency": "周波数",
470
+ "Camera": "カメラ",
471
+ "Others": "その他",
467
472
  "DeleteDevice": "デバイス削除",
468
473
  "ConfirmDeleteDevice": "この操作は元に戻せません。このデバイスを削除しますか?",
469
474
  "SuccessDeleteDevice": "デバイスを削除しました",
@@ -539,7 +544,8 @@ i18n
539
544
  "Window": "建具",
540
545
  "CannotBackDrawingMode": "描画モードがアクティブな間は戻ることができません。",
541
546
  "PleaseOffDrawingMode": "操作を行う前に、描画モードをオフにしてください。",
542
- "Successfully Deleted Tag": "タグを削除しました"
547
+ "Successfully Deleted Tag": "タグを削除しました",
548
+ "IotCategoryRequired": "IoTカテゴリは必須です"
543
549
  }
544
550
  }
545
551
  },
@@ -23,7 +23,7 @@ export let selectedIotTag = undefined;
23
23
  let tagIotName, iotModelName, iotSerialNumber, iotMfrName, iotSystemLink;
24
24
  let selectedIoTCat;
25
25
  let linkedDevicesArray = [];
26
- let iotCategoryIconList = ['mdi-power', 'mdi-thermometer', 'mdi-water-percent', 'mdi-gauge', 'mdi-leak', 'mdi-water', 'mdi-lightbulb-on', 'mdi-gas-cylinder', 'mdi-flask', 'mdi-meter-electric', 'mdi-information-symbol', 'mdi-sine-wave'];
26
+ let iotCategoryIconList = ['mdi-power', 'mdi-thermometer', 'mdi-water-percent', 'mdi-gauge', 'mdi-leak', 'mdi-water', 'mdi-lightbulb-on', 'mdi-gas-cylinder', 'mdi-flask', 'mdi-meter-electric', 'mdi-information-symbol', 'mdi-sine-wave', 'mdi-camera', 'mdi-dots-horizontal'];
27
27
  let notify = new Notyf({ position: { x: 'left', y: 'bottom' } });
28
28
  export function renderTagIOTFormPane() {
29
29
  const element = document.createElement('div');
@@ -544,7 +544,7 @@ export function getIotTagFormData() {
544
544
  serialNumber: iotSerialNumber.value,
545
545
  tagMf: iotMfrName.value,
546
546
  // tagCategoryId: selectedIoTCat.uuid,
547
- tagCategoryId: selectedIoTCat.name,
547
+ tagCategoryId: selectedIoTCat ? selectedIoTCat.name : undefined,
548
548
  systemLink: iotSystemLink.value,
549
549
  linkedDevices: linkedDevicesArray,
550
550
  iotSystem: selectedIoTSystem,
@@ -678,6 +678,7 @@ export function clearIotFields() {
678
678
  iotSystemLink.innerText = '';
679
679
  linkedDevicesArray = [];
680
680
  selectedIoTSystem = '';
681
+ selectedIoTCat = undefined;
681
682
  setSelectedIoTSystemRadio(IOT_LINKED_SYSTEMS.BEMAC);
682
683
  deviceContainer.innerHTML = '';
683
684
  iotTagFormMode = "ADD" /* FORM_MODE.ADD */;
@@ -28,7 +28,7 @@ import { toggleDrawPartitionButton, displayPartitionFormMode, setPartitionFormMo
28
28
  import { actionSettingsSelectOption, getTempCoordinateSystem, getTempMeasurementUnit, getTempRotationUnit, setCoordinateSystem, setMeasurementUnit, setRotationUnit, initSettingsValues, setTempCoordinateSystem, setTempMeasurementUnit, setTempRotationUnit, toggleActionSettingsDropdown, toggleCalibrateBasepoint, setScaleFactor, getTempScaleFactor, setTempScaleFactor, setBasepoint, getTempBasepoint, setTempBasepoint, getBasepoint, toggleActionSettings, getBasepointObjectPayload, displayConvertedCoordinates, getCoordinateSystem, getScaleFactor, getMeasurementUnit, getRotationUnit, setBasepointObjectPayload } from "./components/toolbar/actionSettingsPane";
29
29
  import { getBasepointCalibrateBpCoordinateValues, getBasepointCalibrateMpCoordinateValues, initBsepointCalibratePane, toggleBasepointCalibratePane } from "./components/toolbar/basepointCalibratePane";
30
30
  import { toggleGeneralMapOptions, initGeneralSelectedMap, getSelectedMapOption } from './components/toolbar/generalSettingsMenuPane';
31
- import { searchTagList, setSearchTagTerm, searchClearfield, getSearchTagTerm, sortTags, updateSelectedTagSortOption, resetSelectedTagSortOption, filterIotTagList, setTagPaneActive, isTagPaneActive, setCurrentTagPaneMode, currentTagPaneMode } from './components/toolbar/tagListPane';
31
+ import { searchTagList, setSearchTagTerm, searchClearfield, getSearchTagTerm, sortTags, updateSelectedTagSortOption, resetSelectedTagSortOption, filterIotTagList, setTagPaneActive, isTagPaneActive, setCurrentTagPaneMode, currentTagPaneMode, selectedTagSortOption } from './components/toolbar/tagListPane';
32
32
  import { renderUserRows } from "./components/toolbar/spaceUserListPane";
33
33
  import { handleRemoteViewResponsiveChanges, renderRemoteSpaceViewing } from "./components/toolbar/viewingRemoteSpace";
34
34
  import { PipeList } from "./components/toolbar/pipeListPane";
@@ -343,19 +343,25 @@ function renderTagPaneContent() {
343
343
  log.info("1 content", tags);
344
344
  setTagPaneActive(true);
345
345
  setCurrentTagPaneMode(TAG_TYPE.MP);
346
- renderTags(filterTagList(tags));
346
+ resetSelectedTagSortOption();
347
+ const sortedTagsToDisplay = sortTags(tags, selectedTagSortOption);
348
+ renderTags(filterTagList(sortedTagsToDisplay));
347
349
  }
348
350
  else if (tags.length > 0 && isTagPaneActive) {
349
351
  log.info("2 content", tags);
350
352
  setTagPaneActive(true);
351
353
  setCurrentTagPaneMode(TAG_TYPE.MP);
352
- renderTags(tags, true);
354
+ resetSelectedTagSortOption();
355
+ const sortedTagsToDisplay = sortTags(tags, selectedTagSortOption);
356
+ renderTags(sortedTagsToDisplay, true);
353
357
  }
354
358
  else if (!isTagPaneActive) {
355
359
  log.info("3 content", tags);
356
360
  setTagPaneActive(false);
357
361
  setCurrentTagPaneMode(TAG_TYPE.IOT);
358
- renderTags(filterIotTagList(tags));
362
+ resetSelectedTagSortOption();
363
+ const sortedTagsToDisplay = sortTags(tags, selectedTagSortOption);
364
+ renderTags(filterIotTagList(sortedTagsToDisplay));
359
365
  dispatchSpaceEvent(SPACE_EVENTS.GET_IOT_TAG_ICON, { payload: 'hello from library' });
360
366
  }
361
367
  if ((_tagCategories === null || _tagCategories === void 0 ? void 0 : _tagCategories.length) > 0) {
@@ -3476,7 +3482,12 @@ function handlePlaceIotTag() {
3476
3482
  }
3477
3483
  }
3478
3484
  else {
3479
- notyf.error(`${i18n.t('RequiredFieldsEmpty')}`);
3485
+ if (!payload.tagCategoryId) {
3486
+ notyf.error(`${i18n.t('IotCategoryRequired')}`);
3487
+ }
3488
+ else {
3489
+ notyf.error(`${i18n.t('RequiredFieldsEmpty')}`);
3490
+ }
3480
3491
  isPlacingTag = false;
3481
3492
  }
3482
3493
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architwin",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "description": "ArchiTwin Library for Matterport",
5
5
  "main": "./lib/architwin.js",
6
6
  "types": "./lib/architwin.d.ts",