@itwin/appui-abstract 5.0.0-dev.5 → 5.0.0-dev.50
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.
- package/CHANGELOG.md +38 -1
- package/lib/cjs/appui-abstract/UiAdmin.js +2 -2
- package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
- package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
- package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
- package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +91 -91
- package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +0 -4
- package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +7 -7
- package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
- package/lib/cjs/appui-abstract/items/AbstractItemProps.js.map +1 -1
- package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
- package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
- package/lib/cjs/appui-abstract/items/BadgeType.js.map +1 -1
- package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
- package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
- package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
- package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
- package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
- package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +15 -37
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +3 -20
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/filter/filters.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/misc.js.map +1 -1
- package/lib/cjs/appui-abstract.d.ts +1 -28
- package/lib/cjs/appui-abstract.d.ts.map +1 -1
- package/lib/cjs/appui-abstract.js +1 -28
- package/lib/cjs/appui-abstract.js.map +1 -1
- package/lib/esm/appui-abstract/UiAdmin.js +2 -2
- package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
- package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
- package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
- package/lib/esm/appui-abstract/content/StandardContentLayouts.js +91 -91
- package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
- package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +0 -4
- package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts.map +1 -1
- package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
- package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
- package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +7 -7
- package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
- package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
- package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
- package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
- package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
- package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
- package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
- package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
- package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
- package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
- package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
- package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
- package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
- package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
- package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +3 -27
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts.map +1 -1
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +14 -36
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +0 -10
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts.map +1 -1
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +3 -20
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
- package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
- package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
- package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
- package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
- package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
- package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
- package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
- package/lib/esm/appui-abstract.d.ts +1 -28
- package/lib/esm/appui-abstract.d.ts.map +1 -1
- package/lib/esm/appui-abstract.js +1 -28
- package/lib/esm/appui-abstract.js.map +1 -1
- package/package.json +8 -8
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +0 -80
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +0 -1
- package/lib/cjs/appui-abstract/UiItemsManager.d.ts +0 -111
- package/lib/cjs/appui-abstract/UiItemsManager.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/UiItemsManager.js +0 -194
- package/lib/cjs/appui-abstract/UiItemsManager.js.map +0 -1
- package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +0 -30
- package/lib/cjs/appui-abstract/UiItemsProvider.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/UiItemsProvider.js +0 -10
- package/lib/cjs/appui-abstract/UiItemsProvider.js.map +0 -1
- package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +0 -92
- package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/backstage/BackstageItem.js +0 -69
- package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +0 -1
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +0 -136
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
- package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +0 -12
- package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/items/ProvidedItem.js +0 -10
- package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +0 -1
- package/lib/cjs/appui-abstract/items/StageUsage.d.ts +0 -17
- package/lib/cjs/appui-abstract/items/StageUsage.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/items/StageUsage.js +0 -25
- package/lib/cjs/appui-abstract/items/StageUsage.js.map +0 -1
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +0 -88
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +0 -136
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +0 -236
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +0 -10
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
- package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +0 -37
- package/lib/cjs/appui-abstract/widget/StagePanel.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/widget/StagePanel.js +0 -47
- package/lib/cjs/appui-abstract/widget/StagePanel.js.map +0 -1
- package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +0 -20
- package/lib/cjs/appui-abstract/widget/WidgetState.d.ts.map +0 -1
- package/lib/cjs/appui-abstract/widget/WidgetState.js +0 -28
- package/lib/cjs/appui-abstract/widget/WidgetState.js.map +0 -1
- package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +0 -31
- package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts.map +0 -1
- package/lib/esm/appui-abstract/BaseUiItemsProvider.js +0 -76
- package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +0 -1
- package/lib/esm/appui-abstract/UiItemsManager.d.ts +0 -111
- package/lib/esm/appui-abstract/UiItemsManager.d.ts.map +0 -1
- package/lib/esm/appui-abstract/UiItemsManager.js +0 -190
- package/lib/esm/appui-abstract/UiItemsManager.js.map +0 -1
- package/lib/esm/appui-abstract/UiItemsProvider.d.ts +0 -30
- package/lib/esm/appui-abstract/UiItemsProvider.d.ts.map +0 -1
- package/lib/esm/appui-abstract/UiItemsProvider.js +0 -9
- package/lib/esm/appui-abstract/UiItemsProvider.js.map +0 -1
- package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +0 -92
- package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts.map +0 -1
- package/lib/esm/appui-abstract/backstage/BackstageItem.js +0 -63
- package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +0 -1
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +0 -43
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts.map +0 -1
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +0 -132
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +0 -1
- package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +0 -12
- package/lib/esm/appui-abstract/items/ProvidedItem.d.ts.map +0 -1
- package/lib/esm/appui-abstract/items/ProvidedItem.js +0 -9
- package/lib/esm/appui-abstract/items/ProvidedItem.js.map +0 -1
- package/lib/esm/appui-abstract/items/StageUsage.d.ts +0 -17
- package/lib/esm/appui-abstract/items/StageUsage.d.ts.map +0 -1
- package/lib/esm/appui-abstract/items/StageUsage.js +0 -22
- package/lib/esm/appui-abstract/items/StageUsage.js.map +0 -1
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +0 -129
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts.map +0 -1
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +0 -81
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +0 -1
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +0 -40
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts.map +0 -1
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +0 -132
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +0 -1
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +0 -46
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts.map +0 -1
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +0 -232
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +0 -1
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +0 -87
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts.map +0 -1
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +0 -9
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +0 -1
- package/lib/esm/appui-abstract/widget/StagePanel.d.ts +0 -37
- package/lib/esm/appui-abstract/widget/StagePanel.d.ts.map +0 -1
- package/lib/esm/appui-abstract/widget/StagePanel.js +0 -44
- package/lib/esm/appui-abstract/widget/StagePanel.js.map +0 -1
- package/lib/esm/appui-abstract/widget/WidgetState.d.ts +0 -20
- package/lib/esm/appui-abstract/widget/WidgetState.d.ts.map +0 -1
- package/lib/esm/appui-abstract/widget/WidgetState.js +0 -25
- package/lib/esm/appui-abstract/widget/WidgetState.js.map +0 -1
@@ -7,33 +7,25 @@
|
|
7
7
|
* @module Toolbar
|
8
8
|
*/
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.ToolbarItemUtilities =
|
11
|
-
/** Used to specify the usage of the toolbar which determine the toolbar position.
|
12
|
-
* @deprecated in 3.6. Use [ToolbarUsage]($appui-react) instead.
|
13
|
-
* @public
|
14
|
-
*/
|
15
|
-
var ToolbarUsage;
|
16
|
-
(function (ToolbarUsage) {
|
17
|
-
/** Contains tools to Create Update and Delete content - in ninezone this is in top left of content area. */
|
18
|
-
ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
|
19
|
-
/** Manipulate view/camera - in ninezone this is in top right of content area. */
|
20
|
-
ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
|
21
|
-
})(ToolbarUsage || (exports.ToolbarUsage = ToolbarUsage = {}));
|
22
|
-
/** Used to specify the orientation of the toolbar.
|
23
|
-
* @deprecated in 3.6. Use [ToolbarOrientation]($appui-react) instead.
|
24
|
-
* @public
|
25
|
-
*/
|
26
|
-
var ToolbarOrientation;
|
27
|
-
(function (ToolbarOrientation) {
|
28
|
-
/** Horizontal toolbar. */
|
29
|
-
ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
|
30
|
-
/** Vertical toolbar. */
|
31
|
-
ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
|
32
|
-
})(ToolbarOrientation || (exports.ToolbarOrientation = ToolbarOrientation = {}));
|
10
|
+
exports.ToolbarItemUtilities = void 0;
|
33
11
|
/** Helper class to create Abstract StatusBar Item definitions.
|
34
12
|
* @public
|
35
13
|
*/
|
36
14
|
class ToolbarItemUtilities {
|
15
|
+
/** Creates an Action Button */
|
16
|
+
static { this.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
|
17
|
+
id, itemPriority,
|
18
|
+
icon, label,
|
19
|
+
execute,
|
20
|
+
...overrides,
|
21
|
+
}); }
|
22
|
+
/** Creates a Group button. */
|
23
|
+
static { this.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
|
24
|
+
id, itemPriority,
|
25
|
+
icon, label,
|
26
|
+
items,
|
27
|
+
...overrides,
|
28
|
+
}); }
|
37
29
|
/** ActionButton type guard. */
|
38
30
|
static isActionButton(item) {
|
39
31
|
return item.execute !== undefined;
|
@@ -48,18 +40,4 @@ class ToolbarItemUtilities {
|
|
48
40
|
}
|
49
41
|
}
|
50
42
|
exports.ToolbarItemUtilities = ToolbarItemUtilities;
|
51
|
-
/** Creates an Action Button */
|
52
|
-
ToolbarItemUtilities.createActionButton = (id, itemPriority, icon, label, execute, overrides) => ({
|
53
|
-
id, itemPriority,
|
54
|
-
icon, label,
|
55
|
-
execute,
|
56
|
-
...overrides,
|
57
|
-
});
|
58
|
-
/** Creates a Group button. */
|
59
|
-
ToolbarItemUtilities.createGroupButton = (id, itemPriority, icon, label, items, overrides) => ({
|
60
|
-
id, itemPriority,
|
61
|
-
icon, label,
|
62
|
-
items,
|
63
|
-
...overrides,
|
64
|
-
});
|
65
43
|
//# sourceMappingURL=ToolbarItem.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;
|
1
|
+
{"version":3,"file":"ToolbarItem.js","sourceRoot":"","sources":["../../../../src/appui-abstract/toolbars/ToolbarItem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAuFH;;GAEG;AACH,MAAa,oBAAoB;IAC/B,+BAA+B;aACjB,uBAAkB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,OAAmB,EAAE,SAAiC,EAAgB,EAAE,CAAC,CAAC;QAC7N,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,KAAK;QACX,OAAO;QACP,GAAG,SAAS;KACb,CAAC,CAAC;IAEH,8BAA8B;aAChB,sBAAiB,GAAG,CAAC,EAAU,EAAE,YAAoB,EAAE,IAAqC,EAAE,KAAsC,EAAE,KAAgD,EAAE,SAAgC,EAAe,EAAE,CAAC,CAAC;QACvP,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,KAAK;QACX,KAAK;QACL,GAAG,SAAS;KACb,CAAC,CAAC;IAEH,+BAA+B;IACxB,MAAM,CAAC,cAAc,CAAC,IAAuB;QAClD,OAAQ,IAAqB,CAAC,OAAO,KAAK,SAAS,CAAC;IACtD,CAAC;IAED,8BAA8B;IACvB,MAAM,CAAC,aAAa,CAAC,IAAuB;QACjD,OAAQ,IAAoB,CAAC,KAAK,KAAK,SAAS,CAAC;IACnD,CAAC;IAED,yCAAyC;IAClC,MAAM,CAAC,kBAAkB,CAAC,IAAuB;QACtD,OAAO,CAAC,CAAE,IAA+B,CAAC,QAAQ,CAAC;IACrD,CAAC;;AA9BH,oDA+BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Toolbar\n */\n\nimport { BadgeType } from \"../items/BadgeType\";\nimport { ConditionalBooleanValue } from \"../items/ConditionalBooleanValue\";\nimport { ConditionalStringValue } from \"../items/ConditionalStringValue\";\n\n/** Describes the data needed to insert a UI items into an existing set of UI items.\n * @public\n */\nexport interface ToolbarItem {\n /** can be used by application to store miscellaneous data. */\n readonly applicationData?: any;\n /** id of UiItemsProvider */\n readonly providerId?: string;\n /** Describes badge. Renders no badge if not specified. */\n readonly badgeType?: BadgeType;\n /** Optional description */\n readonly description?: string | ConditionalStringValue;\n /** Require uniqueId for the item. To ensure uniqueness it is suggested that a namespace prefix of the extension name be used. */\n readonly id: string;\n /** optional data to used by item implementor. */\n readonly internalData?: Map<string, any>;\n /** Defines if the item is active (shown with an active stripe/bar). */\n readonly isActive?: boolean;\n /** Describes if the item is visible or hidden. The default is for the item to be visible. */\n readonly isHidden?: boolean | ConditionalBooleanValue;\n /** Describes if the item is enabled or disabled. The default is for the item to be enabled. */\n readonly isDisabled?: boolean | ConditionalBooleanValue;\n /** Describes if the item should appear pressed (used for displaying toggle state). This property is NOT used by Toolbars\n * constructed using the `ToolbarWithOverflow` component, which are used in AppUi 2.0 and later. For these later toolbars\n * the icon is usually changed to denote the state of a toggle.\n */\n readonly isPressed?: boolean;\n /** Specifies the item's grouping value. Items are sorted by group and then item priority. When\n * group priority changes a separator is inserted. It is recommended using values 10 through 100, incrementing by 10. This\n * allows extensions enough gaps to insert their own groups. If the value is not specified a groupPriority of 0 is used.\n */\n readonly groupPriority?: number;\n /** Priority within a toolbar or group. */\n readonly itemPriority: number;\n /** Optional parent tool group to add tool. */\n readonly parentToolGroupId?: string;\n}\n\n/** Describes the data needed to insert an action button into a toolbar.\n * @public\n */\nexport interface ActionButton extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: string | ConditionalStringValue;\n /** label, shown as tool tip on a button or an item label in a group. */\n readonly label: string | ConditionalStringValue;\n /** function to run when the button is pressed. */\n readonly execute: () => void;\n}\n\n/** Describes the data needed to insert a group button into a toolbar.\n * @public\n */\nexport interface GroupButton extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon: string | ConditionalStringValue;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label: string | ConditionalStringValue;\n /** label shown as the title in at top of group panel. */\n readonly panelLabel?: string | ConditionalStringValue;\n /** children of the group */\n readonly items: ReadonlyArray<ActionButton | GroupButton>;\n}\n\n/** Describes the data needed to insert a custom button into a toolbar.\n * @public\n */\nexport interface CustomButtonDefinition extends ToolbarItem {\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n readonly icon?: string | ConditionalStringValue;\n /** label, shown as tool tip on group button or a group button label in a group panel. */\n readonly label?: string | ConditionalStringValue;\n /** parameter that marks data as being a custom definition. */\n readonly isCustom: true;\n}\n\n/** Any Button Type that can be inserted into a toolbar.\n * @public\n */\nexport type CommonToolbarItem = ActionButton | GroupButton | CustomButtonDefinition;\n\n/** Helper class to create Abstract StatusBar Item definitions.\n * @public\n */\nexport class ToolbarItemUtilities {\n /** Creates an Action Button */\n public static createActionButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>): ActionButton => ({\n id, itemPriority,\n icon, label,\n execute,\n ...overrides,\n });\n\n /** Creates a Group button. */\n public static createGroupButton = (id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: ReadonlyArray<ActionButton | GroupButton>, overrides?: Partial<GroupButton>): GroupButton => ({\n id, itemPriority,\n icon, label,\n items,\n ...overrides,\n });\n\n /** ActionButton type guard. */\n public static isActionButton(item: CommonToolbarItem): item is ActionButton {\n return (item as ActionButton).execute !== undefined;\n }\n\n /** GroupButton type guard. */\n public static isGroupButton(item: CommonToolbarItem): item is GroupButton {\n return (item as GroupButton).items !== undefined;\n }\n\n /** CustomButtonDefinition type guard. */\n public static isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition {\n return !!(item as CustomButtonDefinition).isCustom;\n }\n}"]}
|
@@ -8,20 +8,10 @@ export declare class IconSpecUtilities {
|
|
8
8
|
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
9
9
|
static readonly SVG_PREFIX = "svg:";
|
10
10
|
static readonly WEB_COMPONENT_PREFIX = "webSvg:";
|
11
|
-
/** Create an IconSpec for an SVG loaded into web component with sprite loader
|
12
|
-
* This method is deprecated -- use createWebComponentIconSpec()
|
13
|
-
* @public @deprecated in 3.2. Please avoid using the Sprite loader and use IconSpecUtilities.createWebComponentIconSpec() instead.
|
14
|
-
*/
|
15
|
-
static createSvgIconSpec(svgSrc: string): string;
|
16
11
|
/** Create an IconSpec for an SVG loaded into web component with svg-loader
|
17
12
|
* @public @deprecated in 4.3. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
|
18
13
|
*/
|
19
14
|
static createWebComponentIconSpec(srcString: string): string;
|
20
|
-
/** Get the SVG Source from an sprite IconSpec
|
21
|
-
* This method is deprecated -- use getWebComponentSource()
|
22
|
-
* @public @deprecated in 3.2. avoid using the Sprite loader and use IconSpecUtilities.getWebComponentSource() instead.
|
23
|
-
*/
|
24
|
-
static getSvgSource(iconSpec: string): string | undefined;
|
25
15
|
/** Get the SVG Source from an svg-loader IconSpec
|
26
16
|
* @public @deprecated in 4.3. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
|
27
17
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IconSpecUtilities.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/IconSpecUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,+DAA+D;IAC/D,gBAAuB,UAAU,UAAU;IAC3C,gBAAuB,oBAAoB,aAAa;IAExD
|
1
|
+
{"version":3,"file":"IconSpecUtilities.d.ts","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/IconSpecUtilities.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,+DAA+D;IAC/D,gBAAuB,UAAU,UAAU;IAC3C,gBAAuB,oBAAoB,aAAa;IAExD;;MAEE;WACY,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAInE;;MAEE;WAEY,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAQ1E"}
|
@@ -13,29 +13,15 @@ exports.IconSpecUtilities = void 0;
|
|
13
13
|
* @public @deprecated in 4.3. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
|
14
14
|
*/
|
15
15
|
class IconSpecUtilities {
|
16
|
-
/**
|
17
|
-
|
18
|
-
|
19
|
-
*/
|
20
|
-
static createSvgIconSpec(svgSrc) {
|
21
|
-
return `${IconSpecUtilities.SVG_PREFIX}${svgSrc}`;
|
22
|
-
}
|
16
|
+
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
17
|
+
static { this.SVG_PREFIX = "svg:"; }
|
18
|
+
static { this.WEB_COMPONENT_PREFIX = "webSvg:"; }
|
23
19
|
/** Create an IconSpec for an SVG loaded into web component with svg-loader
|
24
20
|
* @public @deprecated in 4.3. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
|
25
21
|
*/
|
26
22
|
static createWebComponentIconSpec(srcString) {
|
27
23
|
return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;
|
28
24
|
}
|
29
|
-
/** Get the SVG Source from an sprite IconSpec
|
30
|
-
* This method is deprecated -- use getWebComponentSource()
|
31
|
-
* @public @deprecated in 3.2. avoid using the Sprite loader and use IconSpecUtilities.getWebComponentSource() instead.
|
32
|
-
*/
|
33
|
-
static getSvgSource(iconSpec) {
|
34
|
-
if (iconSpec.startsWith(IconSpecUtilities.SVG_PREFIX) && iconSpec.length > 4) {
|
35
|
-
return iconSpec.slice(4);
|
36
|
-
}
|
37
|
-
return undefined;
|
38
|
-
}
|
39
25
|
/** Get the SVG Source from an svg-loader IconSpec
|
40
26
|
* @public @deprecated in 4.3. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
|
41
27
|
*/
|
@@ -47,7 +33,4 @@ class IconSpecUtilities {
|
|
47
33
|
}
|
48
34
|
}
|
49
35
|
exports.IconSpecUtilities = IconSpecUtilities;
|
50
|
-
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
51
|
-
IconSpecUtilities.SVG_PREFIX = "svg:";
|
52
|
-
IconSpecUtilities.WEB_COMPONENT_PREFIX = "webSvg:";
|
53
36
|
//# sourceMappingURL=IconSpecUtilities.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IconSpecUtilities.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/IconSpecUtilities.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,qDAAqD;AAErD;;GAEG;AACH,MAAa,iBAAiB;
|
1
|
+
{"version":3,"file":"IconSpecUtilities.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/IconSpecUtilities.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,qDAAqD;AAErD;;GAEG;AACH,MAAa,iBAAiB;IAC5B,+DAA+D;aACxC,eAAU,GAAG,MAAM,CAAC;aACpB,yBAAoB,GAAG,SAAS,CAAC;IAExD;;MAEE;IACK,MAAM,CAAC,0BAA0B,CAAC,SAAiB;QACxD,OAAO,GAAG,iBAAiB,CAAC,oBAAoB,GAAG,SAAS,EAAE,CAAC;IACjE,CAAC;IAED;;MAEE;IAEK,MAAM,CAAC,qBAAqB,CAAC,QAAgB;QAClD,IAAI,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvF,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC;QAED,OAAO,SAAS,CAAC;IAEnB,CAAC;;AAvBH,8CAwBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.\n * @public @deprecated in 4.3. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.\n */\nexport class IconSpecUtilities {\n /** Prefix for an SVG IconSpec loaded with the Sprite loader */\n public static readonly SVG_PREFIX = \"svg:\";\n public static readonly WEB_COMPONENT_PREFIX = \"webSvg:\";\n\n /** Create an IconSpec for an SVG loaded into web component with svg-loader\n * @public @deprecated in 4.3. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.\n */\n public static createWebComponentIconSpec(srcString: string): string {\n return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;\n }\n\n /** Get the SVG Source from an svg-loader IconSpec\n * @public @deprecated in 4.3. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.\n */\n\n public static getWebComponentSource(iconSpec: string): string | undefined {\n if (iconSpec.startsWith(IconSpecUtilities.WEB_COMPONENT_PREFIX) && iconSpec.length > 7) {\n return iconSpec.slice(7);\n }\n\n return undefined;\n\n }\n}"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PointProps.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/PointProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"PointProps.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/PointProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\n/** Describes 2d points.\n * @public @deprecated in 4.2.x. Use @core/geometry [[Geometry.XAndY]] or your own custom type.\n */\nexport interface PointProps {\n readonly x: number;\n readonly y: number;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UiError.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiError.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAuF;AAEvF;;GAEG;AACH,MAAa,OAAQ,SAAQ,2BAAY;IAEvC,6CAA6C;IAC7C,YAA0B,QAAgB,EAAE,OAAe,EAAE,cAAsB,4BAAa,CAAC,KAAK,EAAE,WAAiC;QACvI,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QADjB,aAAQ,GAAR,QAAQ,CAAQ;IAE1C,CAAC;CACF;AAND,0BAMC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"UiError.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiError.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAuF;AAEvF;;GAEG;AACH,MAAa,OAAQ,SAAQ,2BAAY;IAEvC,6CAA6C;IAC7C,YAA0B,QAAgB,EAAE,OAAe,EAAE,cAAsB,4BAAa,CAAC,KAAK,EAAE,WAAiC;QACvI,KAAK,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;QADjB,aAAQ,GAAR,QAAQ,CAAQ;IAE1C,CAAC;CACF;AAND,0BAMC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport { BentleyError, BentleyStatus, GetMetaDataFunction } from \"@itwin/core-bentley\";\n\n/** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.\n * @public @deprecated in 4.3. Use [[Bentley.BentleyError]] instead.\n */\nexport class UiError extends BentleyError {\n\n /** Constructs UiError using BentleyError. */\n public constructor(public category: string, message: string, errorNumber: number = BentleyStatus.ERROR, getMetaData?: GetMetaDataFunction) {\n super(errorNumber, message, getMetaData);\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UiEvent.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiEvent.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAgD;AAEhD;;;GAGG;AACH,MAAa,OAAoB,SAAQ,wBAAqB;CAAI;AAAlE,0BAAkE","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"UiEvent.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiEvent.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAgD;AAEhD;;;GAGG;AACH,MAAa,OAAoB,SAAQ,wBAAqB;CAAI;AAAlE,0BAAkE","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport { BeUiEvent } from \"@itwin/core-bentley\";\n\n/** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.\n * @public\n * @deprecated in 4.2. This type is a duplicate of [[BeUiEvent]], which should be used instead.\n */\nexport class UiEvent<TEventArgs> extends BeUiEvent<TEventArgs> { }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UiEventDispatcher.js","sourceRoot":"","sources":["../../../../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AuB;QACvB,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACpH,CAAC;IAED,kFAAkF;IAC3E,kBAAkB,CAAC,QAAqB,EAAE,aAAuB;QACtE,0BAA0B;QAC1B,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;YACjH,OAAO,IAAI,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA/HD,8CA+HC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"UiEventDispatcher.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/UiEventDispatcher.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAgD;AAUhD;;;GAGG;AACH,MAAa,WAAY,SAAQ,wBAA0B;CAAI;AAA/D,kCAA+D;AAE/D;;;;GAIG;AACH,MAAa,iBAAiB;IAS5B;QACE,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,4DAA4D;QAC5D,IAAI,CAAC,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;QAC1B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;IACzD,CAAC;IAED,wCAAwC;IACxC,0BAA0B;IACnB,gBAAgB,CAAC,MAAc;QACpC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC;QAC7B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,KAAK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C/B,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;gBACnC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC1D,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;gBACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;YACD,OAAO;QACT,CAAC;QAED,uBAAuB;QACvB,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC5C,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;QACrC,CAAC;QACD,uBAAuB;QACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,yHAAyH;QACzH,uBAAuB;QACvB,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACpH,CAAC;IAED,kFAAkF;IAC3E,kBAAkB,CAAC,QAAqB,EAAE,aAAuB;QACtE,0BAA0B;QAC1B,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;YACjH,OAAO,IAAI,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA/HD,8CA+HC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport { BeUiEvent } from \"@itwin/core-bentley\";\n\n/** UiSync Event arguments. Contains a set of lower case event Ids.\n * @public\n * @deprecated in 4.2.x Please use [[UiSyncEventArgs]] in @itwin/appui-react\n */\nexport interface UiSyncEventArgs {\n eventIds: Set<string>;\n}\n\n/** UiSync Event class.\n * @public\n * @deprecated in 4.2.x Use [[UiSyncEvent]] from @itwin/appui-react.\n */\nexport class UiSyncEvent extends BeUiEvent<UiSyncEventArgs> { }\n\n/** This class is used to send eventIds to interested UI components so the component can determine if it needs\n * to refresh its display by calling setState on itself.\n * @public\n * @deprecated in 4.2.x Use [[SyncUiEventDispatcher]] from @itwin/appui-react.\n */\nexport class UiEventDispatcher {\n private _syncEventTimerId: number | undefined;\n private _eventIds: Set<string>;\n private _eventIdAdded;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n private _uiSyncEvent: UiSyncEvent;\n private _timeoutPeriod;\n private _secondaryTimeoutPeriod;\n\n constructor() {\n this._eventIds = new Set<string>();\n this._eventIdAdded = false;\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n this._uiSyncEvent = new UiSyncEvent();\n this._timeoutPeriod = 100;\n this._secondaryTimeoutPeriod = this._timeoutPeriod / 2;\n }\n\n /** @internal - used for testing only */\n /* istanbul ignore next */\n public setTimeoutPeriod(period: number): void {\n this._timeoutPeriod = period;\n this._secondaryTimeoutPeriod = Math.floor(this._timeoutPeriod / 2);\n if (this._secondaryTimeoutPeriod < 1)\n this._secondaryTimeoutPeriod = 1;\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n if (this._eventIds)\n this._eventIds.clear();\n\n this._eventIdAdded = false;\n }\n\n /** The current timeout period */\n public get timeoutPeriod(): number {\n return this._timeoutPeriod;\n }\n /** Return set of event ids that will be sent to listeners/. */\n public get syncEventIds(): Set<string> {\n return this._eventIds;\n }\n\n /** Return UiSyncEvent so callers can register an event callback. */\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n public get onSyncUiEvent(): UiSyncEvent {\n return this._uiSyncEvent;\n }\n\n /** Immediately trigger sync event processing. */\n public dispatchImmediateSyncUiEvent(eventId: string): void {\n const eventIds = new Set<string>();\n eventIds.add(eventId.toLowerCase());\n this.onSyncUiEvent.emit({ eventIds });\n }\n\n /** Save eventId in Set for processing. */\n public dispatchSyncUiEvent(eventId: string): void {\n // istanbul ignore if\n if (0 === this._timeoutPeriod) {\n return;\n }\n\n this.syncEventIds.add(eventId.toLowerCase());\n if (!this._syncEventTimerId) { // if there is not a timer active, create one\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._timeoutPeriod);\n } else {\n this._eventIdAdded = true;\n }\n }\n\n /** Save multiple eventIds in Set for processing. */\n public dispatchSyncUiEvents(eventIds: string[]): void {\n // istanbul ignore if\n if (0 === this._timeoutPeriod) {\n return;\n }\n\n eventIds.forEach((id) => this.syncEventIds.add(id.toLowerCase()));\n // istanbul ignore else\n if (!this._syncEventTimerId) { // if there is not a timer active, create one\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._timeoutPeriod);\n } else {\n this._eventIdAdded = true;\n }\n }\n\n /** Trigger registered event processing when timer has expired and no addition eventId are added. */\n public checkForAdditionalIds() {\n /* istanbul ignore else */\n if (!this._eventIdAdded) {\n // istanbul ignore else\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n this._eventIdAdded = false;\n // istanbul ignore else\n if (this.syncEventIds.size > 0) {\n const eventIds = new Set<string>();\n this.syncEventIds.forEach((value) => eventIds.add(value));\n this._eventIds.clear();\n this.onSyncUiEvent.emit({ eventIds });\n }\n return;\n }\n\n // istanbul ignore next\n if (this._syncEventTimerId) {\n window.clearTimeout(this._syncEventTimerId);\n this._syncEventTimerId = undefined;\n }\n // istanbul ignore next\n this._eventIdAdded = false;\n // if events have been added before the initial timer expired wait half that time to see if events are still being added.\n // istanbul ignore next\n this._syncEventTimerId = window.setTimeout(() => { this.checkForAdditionalIds(); }, this._secondaryTimeoutPeriod);\n }\n\n /** Checks to see if an eventId of interest is contained in the set of eventIds */\n public hasEventOfInterest(eventIds: Set<string>, idsOfInterest: string[]) {\n /* istanbul ignore else */\n if ((idsOfInterest.length > 0) && idsOfInterest.some((value: string): boolean => eventIds.has(value.toLowerCase())))\n return true;\n return false;\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"callbacks.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/callbacks.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"callbacks.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/callbacks.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport { Primitives } from \"../properties/PrimitiveTypes\";\n\n/** Signature for number onCommit function.\n * @public\n */\nexport type OnNumberCommitFunc = (value: number) => void;\n\n/** Signature for value onCommit function.\n * @public\n */\nexport type OnValueCommitFunc = (value: Primitives.Value) => void;\n\n/** Signature for onCancel function.\n * @public\n */\nexport type OnCancelFunc = () => void;\n\n/** Signature for onItemExecuted function.\n * @public\n */\nexport type OnItemExecutedFunc = (item: any) => void;\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../src/appui-abstract/utils/filter/filters.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;AA6DH,oCAeC;AA/DD,IAAK,QAKJ;AALD,WAAK,QAAQ;IACX,0CAAU,CAAA;IACV,qCAAO,CAAA;IACP,gD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,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC;QAC/D,uBAAuB;QACvB,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,CAAC,MAAM,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;gBACpF,MAAM,GAAG,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;gBACvE,aAAa,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;QACD,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY,EAAE,KAAa;IAC3C,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACrC,CAAC,CAAC,GAAG,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACrD,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../src/appui-abstract/utils/filter/filters.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;AA6DH,oCAeC;AA/DD,IAAK,QAKJ;AALD,WAAK,QAAQ;IACX,0CAAU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AI,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC,CAAC;QAC/D,uBAAuB;QACvB,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,CAAC,MAAM,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;gBACpF,MAAM,GAAG,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;gBACvE,aAAa,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;QACD,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY,EAAE,KAAa;IAC3C,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACrC,CAAC,CAAC,GAAG,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACrD,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\n// file copied from https://github.com/microsoft/vscode/blob/master/src/vs/base/common/filters.ts\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** Interface that returns indices of matches\n * @public @deprecated in 4.3.x. A rarely used interface. If needed, please add a custom implementation.\n */\nexport interface IMatch {\n start: number;\n end: number;\n}\n\nenum CharCode {\n Space = 32,\n Tab = 9,\n LineFeed = 10,\n CarriageReturn = 13\n}\n\nfunction isWhitespace(code: number): boolean {\n return (\n code === CharCode.Space\n || code === CharCode.Tab\n || code === CharCode.LineFeed\n || code === CharCode.CarriageReturn\n );\n}\nconst wordSeparators = new Set<number>();\n'`~!@#$%^&*()-=+[{]}\\\\|;:\\'\",.<>/?'\n .split(\"\")\n .forEach((s) => wordSeparators.add(s.charCodeAt(0)));\n\nfunction isWordSeparator(code: number): boolean {\n return isWhitespace(code) || wordSeparators.has(code);\n}\n\nfunction charactersMatch(codeA: number, codeB: number): boolean {\n return (codeA === codeB) || (isWordSeparator(codeA) && isWordSeparator(codeB));\n}\n\nfunction join(head: IMatch, tail: IMatch[]): IMatch[] {\n if (tail.length === 0) {\n tail = [head];\n } else if (head.end === tail[0].start) {\n tail[0].start = head.start;\n } else {\n tail.unshift(head);\n }\n return tail;\n}\n\n/**\n * Matches beginning of words supporting non-ASCII languages.\n * @param word Filter string\n * @param target String being searched\n * @param contiguous - If true the filter string must be found \"contiguous\" in the searched string (E.g. \"pul\" will match \"Git: Pull\").\n * Otherwise also matches sub string of the word with beginnings of the words in the target (e.g. \"gp\" or \"g p\" will match \"Git: Pull\").\n * Useful in cases where the target is words (e.g. command labels)\n * @internal @deprecated in 4.3. Use `matchesWords` from @itwin/core-react instead. Though internal, this requires deprecation due to known public usage in @itwin/core-react.\n */\nexport function matchesWords(word: string, target: string, contiguous: boolean = false): IMatch[] | null {\n if (!target || target.length === 0) {\n return null;\n }\n\n let result: IMatch[] | null = null;\n let i = 0;\n\n word = word.toLowerCase();\n target = target.toLowerCase();\n while (i < target.length && (result = _matchesWords(word, target, 0, i, contiguous)) === null) {\n i = nextWord(target, i + 1);\n }\n\n return result;\n}\n\nfunction _matchesWords(word: string, target: string, i: number, j: number, contiguous: boolean): IMatch[] | null {\n if (i === word.length) {\n return [];\n } else if (j === target.length) {\n return null;\n } else if (!charactersMatch(word.charCodeAt(i), target.charCodeAt(j))) {\n return null;\n } else {\n let result: IMatch[] | null = null;\n let nextWordIndex = j + 1;\n result = _matchesWords(word, target, i + 1, j + 1, contiguous);\n // istanbul ignore else\n if (!contiguous) {\n while (!result && (nextWordIndex = nextWord(target, nextWordIndex)) < target.length) {\n result = _matchesWords(word, target, i + 1, nextWordIndex, contiguous);\n nextWordIndex++;\n }\n }\n return result === null ? null : join({ start: j, end: j + 1 }, result);\n }\n}\n\nfunction nextWord(word: string, start: number): number {\n for (let i = start; i < word.length; i++) {\n if (isWordSeparator(word.charCodeAt(i)) ||\n (i > 0 && isWordSeparator(word.charCodeAt(i - 1)))) {\n return i;\n }\n }\n return word.length;\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/misc.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;GAGG;AACI,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAU,EAAE;IAC/C,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,IAAI,GAAG,EAAE,CAAC;QACR,IAAI,GAAG,CAAC,IAAI;YACV,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC;aAClB,CAAC;YACJ,uBAAuB;YACvB,IAAI,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,WAAW,CAAC,IAAI;gBACzC,SAAS,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../../src/appui-abstract/utils/misc.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;GAGG;AACI,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAU,EAAE;IAC/C,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,IAAI,GAAG,EAAE,CAAC;QACR,IAAI,GAAG,CAAC,IAAI;YACV,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC;aAClB,CAAC;YACJ,uBAAuB;YACvB,IAAI,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,WAAW,CAAC,IAAI;gBACzC,SAAS,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAdW,QAAA,YAAY,gBAcvB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\n/** Gets the class name for an object.\n * @internal\n * @deprecated in 4.3. Please use your own implementation in the future. Though internal, this requires deprecation due to known public usage in @itwin/core-react.\n */\nexport const getClassName = (obj: any): string => {\n let className = \"\";\n\n if (obj) {\n if (obj.name)\n className = obj.name;\n else {\n // istanbul ignore else\n if (obj.constructor && obj.constructor.name)\n className = obj.constructor.name;\n }\n }\n\n return className;\n};\n\n"]}
|
@@ -1,9 +1,4 @@
|
|
1
|
-
export * from "./appui-abstract/BaseUiItemsProvider";
|
2
1
|
export * from "./appui-abstract/UiAdmin";
|
3
|
-
export * from "./appui-abstract/UiItemsManager";
|
4
|
-
export * from "./appui-abstract/UiItemsProvider";
|
5
|
-
export * from "./appui-abstract/backstage/BackstageItem";
|
6
|
-
export * from "./appui-abstract/backstage/BackstageItemsManager";
|
7
2
|
export * from "./appui-abstract/common/KeyboardKey";
|
8
3
|
export * from "./appui-abstract/content/ContentLayoutProps";
|
9
4
|
export * from "./appui-abstract/content/StandardContentLayouts";
|
@@ -16,9 +11,7 @@ export * from "./appui-abstract/items/AbstractToolbarProps";
|
|
16
11
|
export * from "./appui-abstract/items/BadgeType";
|
17
12
|
export * from "./appui-abstract/items/ConditionalBooleanValue";
|
18
13
|
export * from "./appui-abstract/items/ConditionalStringValue";
|
19
|
-
export * from "./appui-abstract/items/ProvidedItem";
|
20
14
|
export * from "./appui-abstract/items/RelativePosition";
|
21
|
-
export * from "./appui-abstract/items/StageUsage";
|
22
15
|
export * from "./appui-abstract/notification/MessagePresenter";
|
23
16
|
export * from "./appui-abstract/notification/MessageSeverity";
|
24
17
|
export * from "./appui-abstract/properties/Description";
|
@@ -29,12 +22,7 @@ export * from "./appui-abstract/properties/StandardEditorNames";
|
|
29
22
|
export * from "./appui-abstract/properties/StandardTypeNames";
|
30
23
|
export * from "./appui-abstract/properties/Value";
|
31
24
|
export * from "./appui-abstract/quantity/BaseQuantityDescription";
|
32
|
-
export * from "./appui-abstract/statusbar/StatusBarItem";
|
33
|
-
export * from "./appui-abstract/statusbar/StatusBarItemsManager";
|
34
25
|
export * from "./appui-abstract/toolbars/ToolbarItem";
|
35
|
-
export * from "./appui-abstract/toolbars/ToolbarItemsManager";
|
36
|
-
export * from "./appui-abstract/statusbar/StatusBarItem";
|
37
|
-
export * from "./appui-abstract/statusbar/StatusBarItemsManager";
|
38
26
|
export * from "./appui-abstract/utils/callbacks";
|
39
27
|
export * from "./appui-abstract/utils/misc";
|
40
28
|
export * from "./appui-abstract/utils/IconSpecUtilities";
|
@@ -43,17 +31,10 @@ export * from "./appui-abstract/utils/UiError";
|
|
43
31
|
export * from "./appui-abstract/utils/UiEventDispatcher";
|
44
32
|
export * from "./appui-abstract/utils/UiEvent";
|
45
33
|
export * from "./appui-abstract/utils/filter/filters";
|
46
|
-
export * from "./appui-abstract/widget/AbstractWidgetProps";
|
47
|
-
export * from "./appui-abstract/widget/StagePanel";
|
48
|
-
export * from "./appui-abstract/widget/WidgetState";
|
49
34
|
/** @docs-package-description
|
50
35
|
* The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.
|
51
36
|
* For more information, see [UI]($docs/ui/index.md).
|
52
37
|
*/
|
53
|
-
/**
|
54
|
-
* @docs-group-description Backstage
|
55
|
-
* Abstractions used by appui-react package to create and manage the display Backstage menu items.
|
56
|
-
*/
|
57
38
|
/**
|
58
39
|
* @docs-group-description ContentView
|
59
40
|
* Classes and interfaces used with Content Layouts.
|
@@ -74,10 +55,6 @@ export * from "./appui-abstract/widget/WidgetState";
|
|
74
55
|
* @docs-group-description Properties
|
75
56
|
* Properties system for data input and formatting.
|
76
57
|
*/
|
77
|
-
/**
|
78
|
-
* @docs-group-description StatusBar
|
79
|
-
* Classes for creating and managing items in the status bar.
|
80
|
-
*/
|
81
58
|
/**
|
82
59
|
* @docs-group-description Toolbar
|
83
60
|
* Classes for creating and managing items in a toolbar.
|
@@ -93,9 +70,5 @@ export * from "./appui-abstract/widget/WidgetState";
|
|
93
70
|
/**
|
94
71
|
* @docs-group-description Utilities
|
95
72
|
* Various utility classes for working with a UI.
|
96
|
-
*/
|
97
|
-
/**
|
98
|
-
* @docs-group-description Widget
|
99
|
-
* Classes for creating and providing Widgets.
|
100
|
-
*/
|
73
|
+
*/
|
101
74
|
//# sourceMappingURL=appui-abstract.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appui-abstract.d.ts","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":"AAKA,cAAc,
|
1
|
+
{"version":3,"file":"appui-abstract.d.ts","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":"AAKA,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qCAAqC,CAAC;AAEpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AAExD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kCAAkC,CAAC;AACjD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AAExD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAE9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAElD,cAAc,mDAAmD,CAAC;AAElE,cAAc,uCAAuC,CAAC;AAEtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AAEtD;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
|
@@ -18,12 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
19
19
|
};
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
21
|
-
__exportStar(require("./appui-abstract/BaseUiItemsProvider"), exports);
|
22
21
|
__exportStar(require("./appui-abstract/UiAdmin"), exports);
|
23
|
-
__exportStar(require("./appui-abstract/UiItemsManager"), exports);
|
24
|
-
__exportStar(require("./appui-abstract/UiItemsProvider"), exports);
|
25
|
-
__exportStar(require("./appui-abstract/backstage/BackstageItem"), exports);
|
26
|
-
__exportStar(require("./appui-abstract/backstage/BackstageItemsManager"), exports);
|
27
22
|
__exportStar(require("./appui-abstract/common/KeyboardKey"), exports);
|
28
23
|
__exportStar(require("./appui-abstract/content/ContentLayoutProps"), exports);
|
29
24
|
__exportStar(require("./appui-abstract/content/StandardContentLayouts"), exports);
|
@@ -36,9 +31,7 @@ __exportStar(require("./appui-abstract/items/AbstractToolbarProps"), exports);
|
|
36
31
|
__exportStar(require("./appui-abstract/items/BadgeType"), exports);
|
37
32
|
__exportStar(require("./appui-abstract/items/ConditionalBooleanValue"), exports);
|
38
33
|
__exportStar(require("./appui-abstract/items/ConditionalStringValue"), exports);
|
39
|
-
__exportStar(require("./appui-abstract/items/ProvidedItem"), exports);
|
40
34
|
__exportStar(require("./appui-abstract/items/RelativePosition"), exports);
|
41
|
-
__exportStar(require("./appui-abstract/items/StageUsage"), exports);
|
42
35
|
__exportStar(require("./appui-abstract/notification/MessagePresenter"), exports);
|
43
36
|
__exportStar(require("./appui-abstract/notification/MessageSeverity"), exports);
|
44
37
|
__exportStar(require("./appui-abstract/properties/Description"), exports);
|
@@ -49,12 +42,7 @@ __exportStar(require("./appui-abstract/properties/StandardEditorNames"), exports
|
|
49
42
|
__exportStar(require("./appui-abstract/properties/StandardTypeNames"), exports);
|
50
43
|
__exportStar(require("./appui-abstract/properties/Value"), exports);
|
51
44
|
__exportStar(require("./appui-abstract/quantity/BaseQuantityDescription"), exports);
|
52
|
-
__exportStar(require("./appui-abstract/statusbar/StatusBarItem"), exports);
|
53
|
-
__exportStar(require("./appui-abstract/statusbar/StatusBarItemsManager"), exports);
|
54
45
|
__exportStar(require("./appui-abstract/toolbars/ToolbarItem"), exports);
|
55
|
-
__exportStar(require("./appui-abstract/toolbars/ToolbarItemsManager"), exports);
|
56
|
-
__exportStar(require("./appui-abstract/statusbar/StatusBarItem"), exports);
|
57
|
-
__exportStar(require("./appui-abstract/statusbar/StatusBarItemsManager"), exports);
|
58
46
|
__exportStar(require("./appui-abstract/utils/callbacks"), exports);
|
59
47
|
__exportStar(require("./appui-abstract/utils/misc"), exports);
|
60
48
|
__exportStar(require("./appui-abstract/utils/IconSpecUtilities"), exports);
|
@@ -63,17 +51,10 @@ __exportStar(require("./appui-abstract/utils/UiError"), exports);
|
|
63
51
|
__exportStar(require("./appui-abstract/utils/UiEventDispatcher"), exports);
|
64
52
|
__exportStar(require("./appui-abstract/utils/UiEvent"), exports);
|
65
53
|
__exportStar(require("./appui-abstract/utils/filter/filters"), exports);
|
66
|
-
__exportStar(require("./appui-abstract/widget/AbstractWidgetProps"), exports);
|
67
|
-
__exportStar(require("./appui-abstract/widget/StagePanel"), exports);
|
68
|
-
__exportStar(require("./appui-abstract/widget/WidgetState"), exports);
|
69
54
|
/** @docs-package-description
|
70
55
|
* The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.
|
71
56
|
* For more information, see [UI]($docs/ui/index.md).
|
72
57
|
*/
|
73
|
-
/**
|
74
|
-
* @docs-group-description Backstage
|
75
|
-
* Abstractions used by appui-react package to create and manage the display Backstage menu items.
|
76
|
-
*/
|
77
58
|
/**
|
78
59
|
* @docs-group-description ContentView
|
79
60
|
* Classes and interfaces used with Content Layouts.
|
@@ -94,10 +75,6 @@ __exportStar(require("./appui-abstract/widget/WidgetState"), exports);
|
|
94
75
|
* @docs-group-description Properties
|
95
76
|
* Properties system for data input and formatting.
|
96
77
|
*/
|
97
|
-
/**
|
98
|
-
* @docs-group-description StatusBar
|
99
|
-
* Classes for creating and managing items in the status bar.
|
100
|
-
*/
|
101
78
|
/**
|
102
79
|
* @docs-group-description Toolbar
|
103
80
|
* Classes for creating and managing items in a toolbar.
|
@@ -113,9 +90,5 @@ __exportStar(require("./appui-abstract/widget/WidgetState"), exports);
|
|
113
90
|
/**
|
114
91
|
* @docs-group-description Utilities
|
115
92
|
* Various utility classes for working with a UI.
|
116
|
-
*/
|
117
|
-
/**
|
118
|
-
* @docs-group-description Widget
|
119
|
-
* Classes for creating and providing Widgets.
|
120
|
-
*/
|
93
|
+
*/
|
121
94
|
//# sourceMappingURL=appui-abstract.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appui-abstract.js","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,
|
1
|
+
{"version":3,"file":"appui-abstract.js","sourceRoot":"","sources":["../../src/appui-abstract.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;AAE/F,2DAAyC;AAEzC,sEAAoD;AAEpD,8EAA4D;AAC5D,kFAAgE;AAEhE,sEAAoD;AACpD,gFAA8D;AAC9D,0EAAwD;AAExD,2EAAyD;AACzD,+EAA6D;AAC7D,8EAA4D;AAC5D,mEAAiD;AACjD,iFAA+D;AAC/D,gFAA8D;AAC9D,0EAAwD;AAExD,iFAA+D;AAC/D,gFAA8D;AAE9D,0EAAwD;AACxD,2EAAyD;AACzD,6EAA2D;AAC3D,qEAAmD;AACnD,kFAAgE;AAChE,gFAA8D;AAC9D,oEAAkD;AAElD,oFAAkE;AAElE,wEAAsD;AAEtD,mEAAiD;AACjD,8DAA4C;AAC5C,2EAAyD;AACzD,oEAAkD;AAClD,iEAA+C;AAC/C,2EAAyD;AACzD,iEAA+C;AAC/C,wEAAsD;AAEtD;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nexport * from \"./appui-abstract/UiAdmin\";\n\nexport * from \"./appui-abstract/common/KeyboardKey\";\n\nexport * from \"./appui-abstract/content/ContentLayoutProps\";\nexport * from \"./appui-abstract/content/StandardContentLayouts\";\n\nexport * from \"./appui-abstract/dialogs/DialogItem\";\nexport * from \"./appui-abstract/dialogs/UiLayoutDataProvider\";\nexport * from \"./appui-abstract/dialogs/UiDataProvider\";\n\nexport * from \"./appui-abstract/items/AbstractItemProps\";\nexport * from \"./appui-abstract/items/AbstractMenuItemProps\";\nexport * from \"./appui-abstract/items/AbstractToolbarProps\";\nexport * from \"./appui-abstract/items/BadgeType\";\nexport * from \"./appui-abstract/items/ConditionalBooleanValue\";\nexport * from \"./appui-abstract/items/ConditionalStringValue\";\nexport * from \"./appui-abstract/items/RelativePosition\";\n\nexport * from \"./appui-abstract/notification/MessagePresenter\";\nexport * from \"./appui-abstract/notification/MessageSeverity\";\n\nexport * from \"./appui-abstract/properties/Description\";\nexport * from \"./appui-abstract/properties/EditorParams\";\nexport * from \"./appui-abstract/properties/PrimitiveTypes\";\nexport * from \"./appui-abstract/properties/Record\";\nexport * from \"./appui-abstract/properties/StandardEditorNames\";\nexport * from \"./appui-abstract/properties/StandardTypeNames\";\nexport * from \"./appui-abstract/properties/Value\";\n\nexport * from \"./appui-abstract/quantity/BaseQuantityDescription\";\n\nexport * from \"./appui-abstract/toolbars/ToolbarItem\";\n\nexport * from \"./appui-abstract/utils/callbacks\";\nexport * from \"./appui-abstract/utils/misc\";\nexport * from \"./appui-abstract/utils/IconSpecUtilities\";\nexport * from \"./appui-abstract/utils/PointProps\";\nexport * from \"./appui-abstract/utils/UiError\";\nexport * from \"./appui-abstract/utils/UiEventDispatcher\";\nexport * from \"./appui-abstract/utils/UiEvent\";\nexport * from \"./appui-abstract/utils/filter/filters\";\n\n/** @docs-package-description\n * The appui-abstract package contains abstractions for UI controls, such as toolbars, buttons and menus.\n * For more information, see [UI]($docs/ui/index.md).\n */\n/**\n * @docs-group-description ContentView\n * Classes and interfaces used with Content Layouts.\n */\n/**\n * @docs-group-description Dialog\n * Interfaces and classes for generating UI items for Dialogs.\n */\n/**\n * @docs-group-description Item\n * Classes for working with an Item in a Toolbar, Widget, Backstage or Context Menu\n */\n/**\n * @docs-group-description Notification\n * Interfaces and enums for working with a message\n */\n/**\n * @docs-group-description Properties\n * Properties system for data input and formatting.\n */\n/**\n * @docs-group-description Toolbar\n * Classes for creating and managing items in a toolbar.\n */\n/**\n * @docs-group-description UiAdmin\n * Abstractions for UI controls, such as toolbars, buttons and menus and are callable from IModelApp.uiAdmin in core-frontend.\n */\n/**\n * @docs-group-description UiItemsProvider\n * Interface for specifying UI items to be inserted at runtime.\n */\n/**\n * @docs-group-description Utilities\n * Various utility classes for working with a UI.\n */"]}
|
@@ -204,6 +204,8 @@ export class UiAdmin {
|
|
204
204
|
static sendUiEvent(args) {
|
205
205
|
UiAdmin.onGenericUiEvent.emit(args);
|
206
206
|
}
|
207
|
+
/** GenericUiEvent */
|
208
|
+
static { this.onGenericUiEvent = new GenericUiEvent(); }
|
207
209
|
/** Opens a Dialog and automatically populates it using the properties defined by the UiDataProvider.
|
208
210
|
* @param _uiDataProvider The DialogLayoutDataProvider for the dialog
|
209
211
|
* @param _title Specify title for dialog.
|
@@ -218,6 +220,4 @@ export class UiAdmin {
|
|
218
220
|
/** Closes the Dialog with a given Id. */
|
219
221
|
closeDialog(_dialogId) { return false; }
|
220
222
|
}
|
221
|
-
/** GenericUiEvent */
|
222
|
-
UiAdmin.onGenericUiEvent = new GenericUiEvent();
|
223
223
|
//# sourceMappingURL=UiAdmin.js.map
|