@ni/nimble-angular 1.0.0-beta.99 → 1.1.1
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/README.md +87 -21
- package/bundles/ni-nimble-angular.umd.js +1422 -1045
- package/bundles/ni-nimble-angular.umd.js.map +1 -1
- package/directives/button/nimble-button.directive.d.ts +17 -5
- package/directives/button/nimble-button.module.d.ts +0 -6
- package/directives/button/nimble-button.module.ngfactory.d.ts +3 -0
- package/directives/checkbox/nimble-checkbox-control-value-accessor.directive.d.ts +1 -4
- package/directives/checkbox/nimble-checkbox.directive.d.ts +2 -3
- package/directives/checkbox/nimble-checkbox.module.d.ts +0 -7
- package/directives/checkbox/nimble-checkbox.module.ngfactory.d.ts +3 -0
- package/directives/drawer/nimble-drawer.directive.d.ts +25 -0
- package/directives/drawer/nimble-drawer.module.d.ts +3 -0
- package/directives/drawer/nimble-drawer.module.ngfactory.d.ts +3 -0
- package/directives/listbox-option/nimble-listbox-option.directive.d.ts +9 -7
- package/directives/listbox-option/nimble-listbox-option.module.d.ts +0 -6
- package/directives/listbox-option/nimble-listbox-option.module.ngfactory.d.ts +3 -0
- package/directives/menu/nimble-menu.directive.d.ts +7 -0
- package/directives/menu/nimble-menu.module.d.ts +3 -0
- package/directives/menu/nimble-menu.module.ngfactory.d.ts +3 -0
- package/directives/menu-item/nimble-menu-item.directive.d.ts +14 -0
- package/directives/menu-item/nimble-menu-item.module.d.ts +3 -0
- package/directives/menu-item/nimble-menu-item.module.ngfactory.d.ts +3 -0
- package/directives/number-field/nimble-number-field-control-value-accessor.directive.d.ts +9 -0
- package/directives/number-field/nimble-number-field.directive.d.ts +17 -8
- package/directives/number-field/nimble-number-field.module.d.ts +0 -7
- package/directives/number-field/nimble-number-field.module.ngfactory.d.ts +3 -0
- package/directives/select/nimble-select-control-value-accessor.directive.d.ts +0 -3
- package/directives/select/nimble-select.directive.d.ts +2 -3
- package/directives/select/nimble-select.module.d.ts +0 -7
- package/directives/select/nimble-select.module.ngfactory.d.ts +3 -0
- package/directives/tab/nimble-tab.directive.d.ts +9 -4
- package/directives/tab/nimble-tab.module.d.ts +0 -6
- package/directives/tab/nimble-tab.module.ngfactory.d.ts +3 -0
- package/directives/tab-panel/nimble-tab-panel.directive.d.ts +2 -3
- package/directives/tab-panel/nimble-tab-panel.module.d.ts +0 -6
- package/directives/tab-panel/nimble-tab-panel.module.ngfactory.d.ts +3 -0
- package/directives/tabs/nimble-tabs.directive.d.ts +9 -9
- package/directives/tabs/nimble-tabs.module.d.ts +0 -6
- package/directives/tabs/nimble-tabs.module.ngfactory.d.ts +3 -0
- package/directives/tabs-toolbar/nimble-tabs-toolbar.directive.d.ts +2 -3
- package/directives/tabs-toolbar/nimble-tabs-toolbar.module.d.ts +0 -6
- package/directives/tabs-toolbar/nimble-tabs-toolbar.module.ngfactory.d.ts +3 -0
- package/directives/text-field/nimble-text-field-control-value-accessor.directive.d.ts +9 -0
- package/directives/text-field/nimble-text-field.directive.d.ts +14 -4
- package/directives/text-field/nimble-text-field.module.d.ts +0 -7
- package/directives/text-field/nimble-text-field.module.ngfactory.d.ts +3 -0
- package/directives/theme-provider/nimble-theme-provider.directive.d.ts +11 -4
- package/directives/theme-provider/nimble-theme-provider.module.d.ts +0 -6
- package/directives/theme-provider/nimble-theme-provider.module.ngfactory.d.ts +3 -0
- package/directives/toggle-button/nimble-toggle-button-control-value-accessor.directive.d.ts +9 -0
- package/directives/toggle-button/nimble-toggle-button.directive.d.ts +22 -0
- package/directives/toggle-button/nimble-toggle-button.module.d.ts +3 -0
- package/directives/toggle-button/nimble-toggle-button.module.ngfactory.d.ts +3 -0
- package/directives/tree-item/nimble-tree-item.directive.d.ts +14 -13
- package/directives/tree-item/nimble-tree-item.module.d.ts +0 -6
- package/directives/tree-item/nimble-tree-item.module.ngfactory.d.ts +3 -0
- package/directives/tree-view/nimble-tree-view.directive.d.ts +11 -3
- package/directives/tree-view/nimble-tree-view.module.d.ts +0 -6
- package/directives/tree-view/nimble-tree-view.module.ngfactory.d.ts +3 -0
- package/directives/utilities/template-value-helpers.d.ts +20 -0
- package/esm2015/directives/button/nimble-button.directive.js +50 -21
- package/esm2015/directives/button/nimble-button.directive.ngsummary.json +1 -0
- package/esm2015/directives/button/nimble-button.module.js +8 -13
- package/esm2015/directives/button/nimble-button.module.ngfactory.js +12 -0
- package/esm2015/directives/button/nimble-button.module.ngsummary.json +1 -0
- package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.js +15 -23
- package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.ngsummary.json +1 -0
- package/esm2015/directives/checkbox/nimble-checkbox.directive.js +6 -10
- package/esm2015/directives/checkbox/nimble-checkbox.directive.ngsummary.json +1 -0
- package/esm2015/directives/checkbox/nimble-checkbox.module.js +8 -13
- package/esm2015/directives/checkbox/nimble-checkbox.module.ngfactory.js +12 -0
- package/esm2015/directives/checkbox/nimble-checkbox.module.ngsummary.json +1 -0
- package/esm2015/directives/drawer/nimble-drawer.directive.js +60 -0
- package/esm2015/directives/drawer/nimble-drawer.directive.ngsummary.json +1 -0
- package/esm2015/directives/drawer/nimble-drawer.module.js +14 -0
- package/esm2015/directives/drawer/nimble-drawer.module.ngfactory.js +12 -0
- package/esm2015/directives/drawer/nimble-drawer.module.ngsummary.json +1 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.directive.js +27 -23
- package/esm2015/directives/listbox-option/nimble-listbox-option.directive.ngsummary.json +1 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.module.js +8 -13
- package/esm2015/directives/listbox-option/nimble-listbox-option.module.ngfactory.js +12 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.module.ngsummary.json +1 -0
- package/esm2015/directives/menu/nimble-menu.directive.js +12 -0
- package/esm2015/directives/menu/nimble-menu.directive.ngsummary.json +1 -0
- package/esm2015/directives/menu/nimble-menu.module.js +14 -0
- package/esm2015/directives/menu/nimble-menu.module.ngfactory.js +12 -0
- package/esm2015/directives/menu/nimble-menu.module.ngsummary.json +1 -0
- package/esm2015/directives/menu-item/nimble-menu-item.directive.js +30 -0
- package/esm2015/directives/menu-item/nimble-menu-item.directive.ngsummary.json +1 -0
- package/esm2015/directives/menu-item/nimble-menu-item.module.js +14 -0
- package/esm2015/directives/menu-item/nimble-menu-item.module.ngfactory.js +12 -0
- package/esm2015/directives/menu-item/nimble-menu-item.module.ngsummary.json +1 -0
- package/esm2015/directives/number-field/nimble-number-field-control-value-accessor.directive.js +24 -0
- package/esm2015/directives/number-field/nimble-number-field-control-value-accessor.directive.ngsummary.json +1 -0
- package/esm2015/directives/number-field/nimble-number-field.directive.js +56 -36
- package/esm2015/directives/number-field/nimble-number-field.directive.ngsummary.json +1 -0
- package/esm2015/directives/number-field/nimble-number-field.module.js +9 -15
- package/esm2015/directives/number-field/nimble-number-field.module.ngfactory.js +12 -0
- package/esm2015/directives/number-field/nimble-number-field.module.ngsummary.json +1 -0
- package/esm2015/directives/select/nimble-select-control-value-accessor.directive.js +14 -22
- package/esm2015/directives/select/nimble-select-control-value-accessor.directive.ngsummary.json +1 -0
- package/esm2015/directives/select/nimble-select.directive.js +6 -10
- package/esm2015/directives/select/nimble-select.directive.ngsummary.json +1 -0
- package/esm2015/directives/select/nimble-select.module.js +8 -13
- package/esm2015/directives/select/nimble-select.module.ngfactory.js +12 -0
- package/esm2015/directives/select/nimble-select.module.ngsummary.json +1 -0
- package/esm2015/directives/tab/nimble-tab.directive.js +25 -16
- package/esm2015/directives/tab/nimble-tab.directive.ngsummary.json +1 -0
- package/esm2015/directives/tab/nimble-tab.module.js +8 -13
- package/esm2015/directives/tab/nimble-tab.module.ngfactory.js +12 -0
- package/esm2015/directives/tab/nimble-tab.module.ngsummary.json +1 -0
- package/esm2015/directives/tab-panel/nimble-tab-panel.directive.js +6 -10
- package/esm2015/directives/tab-panel/nimble-tab-panel.directive.ngsummary.json +1 -0
- package/esm2015/directives/tab-panel/nimble-tab-panel.module.js +8 -13
- package/esm2015/directives/tab-panel/nimble-tab-panel.module.ngfactory.js +12 -0
- package/esm2015/directives/tab-panel/nimble-tab-panel.module.ngsummary.json +1 -0
- package/esm2015/directives/tabs/nimble-tabs.directive.js +29 -25
- package/esm2015/directives/tabs/nimble-tabs.directive.ngsummary.json +1 -0
- package/esm2015/directives/tabs/nimble-tabs.module.js +8 -13
- package/esm2015/directives/tabs/nimble-tabs.module.ngfactory.js +12 -0
- package/esm2015/directives/tabs/nimble-tabs.module.ngsummary.json +1 -0
- package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.directive.js +6 -10
- package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.directive.ngsummary.json +1 -0
- package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.module.js +8 -13
- package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.module.ngfactory.js +12 -0
- package/esm2015/directives/tabs-toolbar/nimble-tabs-toolbar.module.ngsummary.json +1 -0
- package/esm2015/directives/text-field/nimble-text-field-control-value-accessor.directive.js +29 -0
- package/esm2015/directives/text-field/nimble-text-field-control-value-accessor.directive.ngsummary.json +1 -0
- package/esm2015/directives/text-field/nimble-text-field.directive.js +37 -16
- package/esm2015/directives/text-field/nimble-text-field.directive.ngsummary.json +1 -0
- package/esm2015/directives/text-field/nimble-text-field.module.js +9 -15
- package/esm2015/directives/text-field/nimble-text-field.module.ngfactory.js +12 -0
- package/esm2015/directives/text-field/nimble-text-field.module.ngsummary.json +1 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.directive.js +26 -16
- package/esm2015/directives/theme-provider/nimble-theme-provider.directive.ngsummary.json +1 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.module.js +8 -13
- package/esm2015/directives/theme-provider/nimble-theme-provider.module.ngfactory.js +12 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.module.ngsummary.json +1 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button-control-value-accessor.directive.js +24 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button-control-value-accessor.directive.ngsummary.json +1 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button.directive.js +53 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button.directive.ngsummary.json +1 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button.module.js +15 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button.module.ngfactory.js +12 -0
- package/esm2015/directives/toggle-button/nimble-toggle-button.module.ngsummary.json +1 -0
- package/esm2015/directives/tree-item/nimble-tree-item.directive.js +43 -52
- package/esm2015/directives/tree-item/nimble-tree-item.directive.ngsummary.json +1 -0
- package/esm2015/directives/tree-item/nimble-tree-item.module.js +8 -13
- package/esm2015/directives/tree-item/nimble-tree-item.module.ngfactory.js +12 -0
- package/esm2015/directives/tree-item/nimble-tree-item.module.ngsummary.json +1 -0
- package/esm2015/directives/tree-view/nimble-tree-view.directive.js +28 -11
- package/esm2015/directives/tree-view/nimble-tree-view.directive.ngsummary.json +1 -0
- package/esm2015/directives/tree-view/nimble-tree-view.module.js +8 -13
- package/esm2015/directives/tree-view/nimble-tree-view.module.ngfactory.js +12 -0
- package/esm2015/directives/tree-view/nimble-tree-view.module.ngsummary.json +1 -0
- package/esm2015/directives/utilities/template-value-helpers.js +37 -0
- package/esm2015/directives/utilities/template-value-helpers.ngsummary.json +1 -0
- package/esm2015/ni-nimble-angular.js +2 -1
- package/esm2015/ni-nimble-angular.ngsummary.json +1 -0
- package/esm2015/public-api.js +40 -15
- package/esm2015/public-api.ngsummary.json +1 -0
- package/esm2015/testing/async-helpers.js +12 -0
- package/esm2015/testing/async-helpers.ngsummary.json +1 -0
- package/fesm2015/ni-nimble-angular.js +798 -540
- package/fesm2015/ni-nimble-angular.js.map +1 -1
- package/ni-nimble-angular.d.ts +1 -1
- package/ni-nimble-angular.metadata.json +1 -0
- package/package.json +4 -20
- package/public-api.d.ts +39 -14
- package/styles/fonts.scss +4 -0
- package/styles/tokens.scss +6 -0
- package/testing/async-helpers.d.ts +11 -0
- package/directives/button/index.d.ts +0 -2
- package/directives/checkbox/index.d.ts +0 -3
- package/directives/control-value-accessor/index.d.ts +0 -3
- package/directives/control-value-accessor/nimble-control-value-accessor.module.d.ts +0 -9
- package/directives/control-value-accessor/nimble-default-control-value-accessor.directive.d.ts +0 -12
- package/directives/control-value-accessor/nimble-number-control-value-accessor.directive.d.ts +0 -12
- package/directives/listbox-option/index.d.ts +0 -2
- package/directives/number-field/index.d.ts +0 -2
- package/directives/select/index.d.ts +0 -3
- package/directives/tab/index.d.ts +0 -2
- package/directives/tab-panel/index.d.ts +0 -2
- package/directives/tabs/index.d.ts +0 -2
- package/directives/tabs-toolbar/index.d.ts +0 -2
- package/directives/text-field/index.d.ts +0 -2
- package/directives/theme-provider/index.d.ts +0 -2
- package/directives/tree-item/index.d.ts +0 -2
- package/directives/tree-view/index.d.ts +0 -2
- package/esm2015/directives/button/index.js +0 -3
- package/esm2015/directives/checkbox/index.js +0 -4
- package/esm2015/directives/control-value-accessor/index.js +0 -4
- package/esm2015/directives/control-value-accessor/nimble-control-value-accessor.module.js +0 -19
- package/esm2015/directives/control-value-accessor/nimble-default-control-value-accessor.directive.js +0 -37
- package/esm2015/directives/control-value-accessor/nimble-number-control-value-accessor.directive.js +0 -32
- package/esm2015/directives/listbox-option/index.js +0 -3
- package/esm2015/directives/number-field/index.js +0 -3
- package/esm2015/directives/select/index.js +0 -4
- package/esm2015/directives/tab/index.js +0 -3
- package/esm2015/directives/tab-panel/index.js +0 -3
- package/esm2015/directives/tabs/index.js +0 -3
- package/esm2015/directives/tabs-toolbar/index.js +0 -3
- package/esm2015/directives/text-field/index.js +0 -3
- package/esm2015/directives/theme-provider/index.js +0 -3
- package/esm2015/directives/tree-item/index.js +0 -3
- package/esm2015/directives/tree-view/index.js +0 -3
|
@@ -1,1117 +1,1494 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ni/nimble-components/dist/esm/button/types'), require('@angular/common'), require('@ni/nimble-components/dist/esm/button'), require('@angular/forms'), require('@ni/nimble-components/dist/esm/checkbox'), require('@ni/nimble-components/dist/esm/drawer/types'), require('@ni/nimble-components/dist/esm/drawer'), require('@ni/nimble-components/dist/esm/listbox-option'), require('@ni/nimble-components/dist/esm/menu'), require('@ni/nimble-components/dist/esm/menu-item'), require('@ni/nimble-components/dist/esm/number-field'), require('@ni/nimble-components/dist/esm/select'), require('@ni/nimble-components/dist/esm/tab'), require('@ni/nimble-components/dist/esm/tab-panel'), require('@ni/nimble-components/dist/esm/tabs'), require('@ni/nimble-components/dist/esm/tabs-toolbar'), require('@ni/nimble-components/dist/esm/text-field/types'), require('@ni/nimble-components/dist/esm/text-field'), require('@ni/nimble-components/dist/esm/theme-provider/types'), require('@ni/nimble-components/dist/esm/theme-provider'), require('@ni/nimble-components/dist/esm/toggle-button'), require('@ni/nimble-components/dist/esm/tree-item'), require('@ni/nimble-components/dist/esm/tree-view/types'), require('@ni/nimble-components/dist/esm/tree-view'), require('@ni/nimble-components/dist/esm/testing/async-helpers')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ni/nimble-angular', ['exports', '@angular/core', '@ni/nimble-components/dist/esm/button/types', '@angular/common', '@ni/nimble-components/dist/esm/button', '@angular/forms', '@ni/nimble-components/dist/esm/checkbox', '@ni/nimble-components/dist/esm/drawer/types', '@ni/nimble-components/dist/esm/drawer', '@ni/nimble-components/dist/esm/listbox-option', '@ni/nimble-components/dist/esm/menu', '@ni/nimble-components/dist/esm/menu-item', '@ni/nimble-components/dist/esm/number-field', '@ni/nimble-components/dist/esm/select', '@ni/nimble-components/dist/esm/tab', '@ni/nimble-components/dist/esm/tab-panel', '@ni/nimble-components/dist/esm/tabs', '@ni/nimble-components/dist/esm/tabs-toolbar', '@ni/nimble-components/dist/esm/text-field/types', '@ni/nimble-components/dist/esm/text-field', '@ni/nimble-components/dist/esm/theme-provider/types', '@ni/nimble-components/dist/esm/theme-provider', '@ni/nimble-components/dist/esm/toggle-button', '@ni/nimble-components/dist/esm/tree-item', '@ni/nimble-components/dist/esm/tree-view/types', '@ni/nimble-components/dist/esm/tree-view', '@ni/nimble-components/dist/esm/testing/async-helpers'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ni = global.ni || {}, global.ni["nimble-angular"] = {}), global.ng.core, global.types, global.ng.common, null, global.ng.forms, null, global.types$1, null, null, null, null, null, null, null, null, null, null, global.types$2, null, global.types$3, null, null, null, global.types$4, null, global.asyncHelpers));
|
|
5
|
+
})(this, (function (exports, core, types, common, button, forms, checkbox, types$1, drawer, listboxOption, menu, menuItem, numberField, select, tab, tabPanel, tabs, tabsToolbar, types$2, textField, types$3, themeProvider, toggleButton, treeItem, types$4, treeView, asyncHelpers) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
7
|
+
/**
|
|
8
|
+
* Conversion helpers for values coming from template attributes or property bindings
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Converts values from templates (empty string or null) or boolean bindings to a boolean property representation
|
|
12
|
+
*/
|
|
13
|
+
var toBooleanProperty = function (value) {
|
|
14
|
+
if (value === false || value === null) {
|
|
15
|
+
return false;
|
|
25
16
|
}
|
|
17
|
+
// For boolean attributes the empty string value is true
|
|
18
|
+
return true;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Converts values from templates (empty string or null) or boolean bindings to an Aria boolean
|
|
22
|
+
* attribute representation (the strings "true" or "false")
|
|
23
|
+
*/
|
|
24
|
+
var toBooleanAriaAttribute = function (value) {
|
|
25
|
+
if (value === false || value === null) {
|
|
26
|
+
return 'false';
|
|
27
|
+
}
|
|
28
|
+
// For boolean attributes the empty string value is true
|
|
29
|
+
return 'true';
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Converts values from templates (number representation as a string) or number bindings to a number property representation
|
|
33
|
+
*/
|
|
34
|
+
var toNumberProperty = function (value) {
|
|
35
|
+
// Angular: https://github.com/angular/angular/blob/2664bc2b3ef4ee5fd671f915828cfcc274a36c77/packages/forms/src/directives/number_value_accessor.ts#L67
|
|
36
|
+
// And Fast: https://github.com/microsoft/fast/blob/46bb6d9aab2c37105f4434db3795e176c2354a4f/packages/web-components/fast-element/src/components/attributes.ts#L100
|
|
37
|
+
// Handle numeric conversions from the view differently
|
|
38
|
+
// Since Number(val) https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number-constructor-number-value
|
|
39
|
+
// and val * 1 https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-applystringornumericbinaryoperator
|
|
40
|
+
// Are identical (use ToNumeric algorithm), went with Number() for clarity
|
|
41
|
+
return Number(value);
|
|
42
|
+
};
|
|
26
43
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Directive to provide Angular integration for the button.
|
|
46
|
+
*/
|
|
47
|
+
var NimbleButtonDirective = /** @class */ (function () {
|
|
48
|
+
function NimbleButtonDirective(renderer, elementRef) {
|
|
49
|
+
this.renderer = renderer;
|
|
50
|
+
this.elementRef = elementRef;
|
|
51
|
+
}
|
|
52
|
+
Object.defineProperty(NimbleButtonDirective.prototype, "appearance", {
|
|
53
|
+
get: function () {
|
|
54
|
+
return this.elementRef.nativeElement.appearance;
|
|
55
|
+
},
|
|
56
|
+
set: function (value) {
|
|
57
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);
|
|
58
|
+
},
|
|
59
|
+
enumerable: false,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(NimbleButtonDirective.prototype, "disabled", {
|
|
63
|
+
get: function () {
|
|
64
|
+
return this.elementRef.nativeElement.disabled;
|
|
65
|
+
},
|
|
66
|
+
set: function (value) {
|
|
67
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
68
|
+
},
|
|
69
|
+
enumerable: false,
|
|
70
|
+
configurable: true
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(NimbleButtonDirective.prototype, "type", {
|
|
73
|
+
get: function () {
|
|
74
|
+
return this.elementRef.nativeElement.type;
|
|
75
|
+
},
|
|
76
|
+
set: function (value) {
|
|
77
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'type', value);
|
|
78
|
+
},
|
|
79
|
+
enumerable: false,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(NimbleButtonDirective.prototype, "contentHidden", {
|
|
83
|
+
get: function () {
|
|
84
|
+
return this.elementRef.nativeElement.contentHidden;
|
|
85
|
+
},
|
|
86
|
+
// contentHidden property intentionally maps to the content-hidden attribute
|
|
87
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
88
|
+
set: function (value) {
|
|
89
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'contentHidden', toBooleanProperty(value));
|
|
90
|
+
},
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true
|
|
93
|
+
});
|
|
94
|
+
return NimbleButtonDirective;
|
|
95
|
+
}());
|
|
96
|
+
NimbleButtonDirective.decorators = [
|
|
97
|
+
{ type: core.Directive, args: [{
|
|
98
|
+
selector: 'nimble-button'
|
|
99
|
+
},] }
|
|
100
|
+
];
|
|
101
|
+
NimbleButtonDirective.ctorParameters = function () { return [
|
|
102
|
+
{ type: core.Renderer2 },
|
|
103
|
+
{ type: core.ElementRef }
|
|
104
|
+
]; };
|
|
105
|
+
NimbleButtonDirective.propDecorators = {
|
|
106
|
+
appearance: [{ type: core.Input }],
|
|
107
|
+
disabled: [{ type: core.Input }],
|
|
108
|
+
type: [{ type: core.Input }],
|
|
109
|
+
contentHidden: [{ type: core.Input, args: ['content-hidden',] }]
|
|
110
|
+
};
|
|
67
111
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
args: [{
|
|
81
|
-
selector: 'nimble-text-field'
|
|
82
|
-
}]
|
|
83
|
-
}], propDecorators: { readonly: [{
|
|
84
|
-
type: i0.HostBinding,
|
|
85
|
-
args: ['attr.readonly']
|
|
86
|
-
}, {
|
|
87
|
-
type: i0.Input
|
|
88
|
-
}] } });
|
|
112
|
+
var NimbleButtonModule = /** @class */ (function () {
|
|
113
|
+
function NimbleButtonModule() {
|
|
114
|
+
}
|
|
115
|
+
return NimbleButtonModule;
|
|
116
|
+
}());
|
|
117
|
+
NimbleButtonModule.decorators = [
|
|
118
|
+
{ type: core.NgModule, args: [{
|
|
119
|
+
declarations: [NimbleButtonDirective],
|
|
120
|
+
imports: [common.CommonModule],
|
|
121
|
+
exports: [NimbleButtonDirective]
|
|
122
|
+
},] }
|
|
123
|
+
];
|
|
89
124
|
|
|
90
|
-
|
|
91
|
-
|
|
125
|
+
/*! *****************************************************************************
|
|
126
|
+
Copyright (c) Microsoft Corporation.
|
|
92
127
|
|
|
93
|
-
|
|
94
|
-
|
|
128
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
129
|
+
purpose with or without fee is hereby granted.
|
|
95
130
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return t;
|
|
129
|
-
};
|
|
130
|
-
return __assign.apply(this, arguments);
|
|
131
|
-
};
|
|
132
|
-
function __rest(s, e) {
|
|
133
|
-
var t = {};
|
|
134
|
-
for (var p in s)
|
|
135
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
136
|
-
t[p] = s[p];
|
|
137
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
138
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
139
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
140
|
-
t[p[i]] = s[p[i]];
|
|
141
|
-
}
|
|
131
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
132
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
133
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
134
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
135
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
136
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
137
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
138
|
+
***************************************************************************** */
|
|
139
|
+
/* global Reflect, Promise */
|
|
140
|
+
var extendStatics = function (d, b) {
|
|
141
|
+
extendStatics = Object.setPrototypeOf ||
|
|
142
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
143
|
+
function (d, b) { for (var p in b)
|
|
144
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
145
|
+
d[p] = b[p]; };
|
|
146
|
+
return extendStatics(d, b);
|
|
147
|
+
};
|
|
148
|
+
function __extends(d, b) {
|
|
149
|
+
if (typeof b !== "function" && b !== null)
|
|
150
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
151
|
+
extendStatics(d, b);
|
|
152
|
+
function __() { this.constructor = d; }
|
|
153
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
154
|
+
}
|
|
155
|
+
var __assign = function () {
|
|
156
|
+
__assign = Object.assign || function __assign(t) {
|
|
157
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
158
|
+
s = arguments[i];
|
|
159
|
+
for (var p in s)
|
|
160
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
161
|
+
t[p] = s[p];
|
|
162
|
+
}
|
|
142
163
|
return t;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
function
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
164
|
+
};
|
|
165
|
+
return __assign.apply(this, arguments);
|
|
166
|
+
};
|
|
167
|
+
function __rest(s, e) {
|
|
168
|
+
var t = {};
|
|
169
|
+
for (var p in s)
|
|
170
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
171
|
+
t[p] = s[p];
|
|
172
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
173
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
174
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
175
|
+
t[p[i]] = s[p[i]];
|
|
176
|
+
}
|
|
177
|
+
return t;
|
|
178
|
+
}
|
|
179
|
+
function __decorate(decorators, target, key, desc) {
|
|
180
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
181
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
182
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
183
|
+
else
|
|
184
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
185
|
+
if (d = decorators[i])
|
|
186
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
187
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
188
|
+
}
|
|
189
|
+
function __param(paramIndex, decorator) {
|
|
190
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
191
|
+
}
|
|
192
|
+
function __metadata(metadataKey, metadataValue) {
|
|
193
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
194
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
195
|
+
}
|
|
196
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
197
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
198
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
199
|
+
function fulfilled(value) { try {
|
|
200
|
+
step(generator.next(value));
|
|
201
|
+
}
|
|
202
|
+
catch (e) {
|
|
203
|
+
reject(e);
|
|
204
|
+
} }
|
|
205
|
+
function rejected(value) { try {
|
|
206
|
+
step(generator["throw"](value));
|
|
207
|
+
}
|
|
208
|
+
catch (e) {
|
|
209
|
+
reject(e);
|
|
210
|
+
} }
|
|
211
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
212
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
function __generator(thisArg, body) {
|
|
216
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
217
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
218
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
219
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
220
|
+
function step(op) {
|
|
221
|
+
if (f)
|
|
222
|
+
throw new TypeError("Generator is already executing.");
|
|
223
|
+
while (_)
|
|
224
|
+
try {
|
|
225
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
226
|
+
return t;
|
|
227
|
+
if (y = 0, t)
|
|
228
|
+
op = [op[0] & 2, t.value];
|
|
229
|
+
switch (op[0]) {
|
|
230
|
+
case 0:
|
|
231
|
+
case 1:
|
|
232
|
+
t = op;
|
|
233
|
+
break;
|
|
234
|
+
case 4:
|
|
235
|
+
_.label++;
|
|
236
|
+
return { value: op[1], done: false };
|
|
237
|
+
case 5:
|
|
238
|
+
_.label++;
|
|
239
|
+
y = op[1];
|
|
240
|
+
op = [0];
|
|
241
|
+
continue;
|
|
242
|
+
case 7:
|
|
243
|
+
op = _.ops.pop();
|
|
244
|
+
_.trys.pop();
|
|
245
|
+
continue;
|
|
246
|
+
default:
|
|
247
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
248
|
+
_ = 0;
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
252
|
+
_.label = op[1];
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
256
|
+
_.label = t[1];
|
|
197
257
|
t = op;
|
|
198
258
|
break;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
_.trys.pop();
|
|
210
|
-
continue;
|
|
211
|
-
default:
|
|
212
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
213
|
-
_ = 0;
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
217
|
-
_.label = op[1];
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
221
|
-
_.label = t[1];
|
|
222
|
-
t = op;
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
if (t && _.label < t[2]) {
|
|
226
|
-
_.label = t[2];
|
|
227
|
-
_.ops.push(op);
|
|
228
|
-
break;
|
|
229
|
-
}
|
|
230
|
-
if (t[2])
|
|
231
|
-
_.ops.pop();
|
|
232
|
-
_.trys.pop();
|
|
233
|
-
continue;
|
|
234
|
-
}
|
|
235
|
-
op = body.call(thisArg, _);
|
|
236
|
-
}
|
|
237
|
-
catch (e) {
|
|
238
|
-
op = [6, e];
|
|
239
|
-
y = 0;
|
|
240
|
-
}
|
|
241
|
-
finally {
|
|
242
|
-
f = t = 0;
|
|
259
|
+
}
|
|
260
|
+
if (t && _.label < t[2]) {
|
|
261
|
+
_.label = t[2];
|
|
262
|
+
_.ops.push(op);
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
if (t[2])
|
|
266
|
+
_.ops.pop();
|
|
267
|
+
_.trys.pop();
|
|
268
|
+
continue;
|
|
243
269
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
270
|
+
op = body.call(thisArg, _);
|
|
271
|
+
}
|
|
272
|
+
catch (e) {
|
|
273
|
+
op = [6, e];
|
|
274
|
+
y = 0;
|
|
275
|
+
}
|
|
276
|
+
finally {
|
|
277
|
+
f = t = 0;
|
|
278
|
+
}
|
|
279
|
+
if (op[0] & 5)
|
|
280
|
+
throw op[1];
|
|
281
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
248
282
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
283
|
+
}
|
|
284
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
285
|
+
if (k2 === undefined)
|
|
286
|
+
k2 = k;
|
|
287
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
288
|
+
}) : (function (o, m, k, k2) {
|
|
289
|
+
if (k2 === undefined)
|
|
290
|
+
k2 = k;
|
|
291
|
+
o[k2] = m[k];
|
|
292
|
+
});
|
|
293
|
+
function __exportStar(m, o) {
|
|
294
|
+
for (var p in m)
|
|
295
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
296
|
+
__createBinding(o, m, p);
|
|
297
|
+
}
|
|
298
|
+
function __values(o) {
|
|
299
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
300
|
+
if (m)
|
|
301
|
+
return m.call(o);
|
|
302
|
+
if (o && typeof o.length === "number")
|
|
303
|
+
return {
|
|
304
|
+
next: function () {
|
|
305
|
+
if (o && i >= o.length)
|
|
306
|
+
o = void 0;
|
|
307
|
+
return { value: o && o[i++], done: !o };
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
311
|
+
}
|
|
312
|
+
function __read(o, n) {
|
|
313
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
314
|
+
if (!m)
|
|
315
|
+
return o;
|
|
316
|
+
var i = m.call(o), r, ar = [], e;
|
|
317
|
+
try {
|
|
318
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
319
|
+
ar.push(r.value);
|
|
262
320
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
if (m)
|
|
266
|
-
return m.call(o);
|
|
267
|
-
if (o && typeof o.length === "number")
|
|
268
|
-
return {
|
|
269
|
-
next: function () {
|
|
270
|
-
if (o && i >= o.length)
|
|
271
|
-
o = void 0;
|
|
272
|
-
return { value: o && o[i++], done: !o };
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
321
|
+
catch (error) {
|
|
322
|
+
e = { error: error };
|
|
276
323
|
}
|
|
277
|
-
|
|
278
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
279
|
-
if (!m)
|
|
280
|
-
return o;
|
|
281
|
-
var i = m.call(o), r, ar = [], e;
|
|
324
|
+
finally {
|
|
282
325
|
try {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
catch (error) {
|
|
287
|
-
e = { error: error };
|
|
326
|
+
if (r && !r.done && (m = i["return"]))
|
|
327
|
+
m.call(i);
|
|
288
328
|
}
|
|
289
329
|
finally {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
m.call(i);
|
|
293
|
-
}
|
|
294
|
-
finally {
|
|
295
|
-
if (e)
|
|
296
|
-
throw e.error;
|
|
297
|
-
}
|
|
330
|
+
if (e)
|
|
331
|
+
throw e.error;
|
|
298
332
|
}
|
|
299
|
-
return ar;
|
|
300
333
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
334
|
+
return ar;
|
|
335
|
+
}
|
|
336
|
+
/** @deprecated */
|
|
337
|
+
function __spread() {
|
|
338
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
339
|
+
ar = ar.concat(__read(arguments[i]));
|
|
340
|
+
return ar;
|
|
341
|
+
}
|
|
342
|
+
/** @deprecated */
|
|
343
|
+
function __spreadArrays() {
|
|
344
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
345
|
+
s += arguments[i].length;
|
|
346
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
347
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
348
|
+
r[k] = a[j];
|
|
349
|
+
return r;
|
|
350
|
+
}
|
|
351
|
+
function __spreadArray(to, from, pack) {
|
|
352
|
+
if (pack || arguments.length === 2)
|
|
353
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
354
|
+
if (ar || !(i in from)) {
|
|
355
|
+
if (!ar)
|
|
356
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
357
|
+
ar[i] = from[i];
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
361
|
+
}
|
|
362
|
+
function __await(v) {
|
|
363
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
364
|
+
}
|
|
365
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
366
|
+
if (!Symbol.asyncIterator)
|
|
367
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
368
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
369
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
370
|
+
function verb(n) { if (g[n])
|
|
371
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
372
|
+
function resume(n, v) { try {
|
|
373
|
+
step(g[n](v));
|
|
306
374
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
375
|
+
catch (e) {
|
|
376
|
+
settle(q[0][3], e);
|
|
377
|
+
} }
|
|
378
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
379
|
+
function fulfill(value) { resume("next", value); }
|
|
380
|
+
function reject(value) { resume("throw", value); }
|
|
381
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
382
|
+
resume(q[0][0], q[0][1]); }
|
|
383
|
+
}
|
|
384
|
+
function __asyncDelegator(o) {
|
|
385
|
+
var i, p;
|
|
386
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
387
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
388
|
+
}
|
|
389
|
+
function __asyncValues(o) {
|
|
390
|
+
if (!Symbol.asyncIterator)
|
|
391
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
392
|
+
var m = o[Symbol.asyncIterator], i;
|
|
393
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
394
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
395
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
396
|
+
}
|
|
397
|
+
function __makeTemplateObject(cooked, raw) {
|
|
398
|
+
if (Object.defineProperty) {
|
|
399
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
315
400
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
319
|
-
if (ar || !(i in from)) {
|
|
320
|
-
if (!ar)
|
|
321
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
322
|
-
ar[i] = from[i];
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
401
|
+
else {
|
|
402
|
+
cooked.raw = raw;
|
|
326
403
|
}
|
|
327
|
-
|
|
328
|
-
|
|
404
|
+
return cooked;
|
|
405
|
+
}
|
|
406
|
+
;
|
|
407
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
408
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
409
|
+
}) : function (o, v) {
|
|
410
|
+
o["default"] = v;
|
|
411
|
+
};
|
|
412
|
+
function __importStar(mod) {
|
|
413
|
+
if (mod && mod.__esModule)
|
|
414
|
+
return mod;
|
|
415
|
+
var result = {};
|
|
416
|
+
if (mod != null)
|
|
417
|
+
for (var k in mod)
|
|
418
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
419
|
+
__createBinding(result, mod, k);
|
|
420
|
+
__setModuleDefault(result, mod);
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
function __importDefault(mod) {
|
|
424
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
425
|
+
}
|
|
426
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
427
|
+
if (kind === "a" && !f)
|
|
428
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
429
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
430
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
431
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
432
|
+
}
|
|
433
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
434
|
+
if (kind === "m")
|
|
435
|
+
throw new TypeError("Private method is not writable");
|
|
436
|
+
if (kind === "a" && !f)
|
|
437
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
438
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
439
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
440
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Extension of Angular's CheckboxControlValueAccessor to target the Nimble checkbox control.
|
|
445
|
+
*
|
|
446
|
+
* Directive decorator based on CheckboxControlValueAccessor decorator
|
|
447
|
+
* https://github.com/angular/angular/blob/bbababe5900ea8f4c8fccd88238f6fe08a2ceb63/packages/forms/src/directives/checkbox_value_accessor.ts#L42
|
|
448
|
+
*/
|
|
449
|
+
var NimbleCheckboxControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
450
|
+
__extends(NimbleCheckboxControlValueAccessorDirective, _super);
|
|
451
|
+
function NimbleCheckboxControlValueAccessorDirective() {
|
|
452
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
329
453
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
454
|
+
return NimbleCheckboxControlValueAccessorDirective;
|
|
455
|
+
}(forms.CheckboxControlValueAccessor));
|
|
456
|
+
NimbleCheckboxControlValueAccessorDirective.decorators = [
|
|
457
|
+
{ type: core.Directive, args: [{
|
|
458
|
+
selector: 'nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]',
|
|
459
|
+
// The following host metadata is duplicated from CheckboxControlValueAccessor
|
|
460
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
461
|
+
host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
|
|
462
|
+
providers: [{
|
|
463
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
464
|
+
useExisting: core.forwardRef(function () { return NimbleCheckboxControlValueAccessorDirective; }),
|
|
465
|
+
multi: true
|
|
466
|
+
}]
|
|
467
|
+
},] }
|
|
468
|
+
];
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Directive to provide Angular integration for the checkbox.
|
|
472
|
+
*/
|
|
473
|
+
var NimbleCheckboxDirective = /** @class */ (function () {
|
|
474
|
+
function NimbleCheckboxDirective() {
|
|
348
475
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
476
|
+
return NimbleCheckboxDirective;
|
|
477
|
+
}());
|
|
478
|
+
NimbleCheckboxDirective.decorators = [
|
|
479
|
+
{ type: core.Directive, args: [{
|
|
480
|
+
selector: 'nimble-checkbox'
|
|
481
|
+
},] }
|
|
482
|
+
];
|
|
483
|
+
|
|
484
|
+
var NimbleCheckboxModule = /** @class */ (function () {
|
|
485
|
+
function NimbleCheckboxModule() {
|
|
353
486
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
487
|
+
return NimbleCheckboxModule;
|
|
488
|
+
}());
|
|
489
|
+
NimbleCheckboxModule.decorators = [
|
|
490
|
+
{ type: core.NgModule, args: [{
|
|
491
|
+
declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective],
|
|
492
|
+
imports: [common.CommonModule],
|
|
493
|
+
exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]
|
|
494
|
+
},] }
|
|
495
|
+
];
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Directive to provide Angular integration for the drawer.
|
|
499
|
+
*/
|
|
500
|
+
var NimbleDrawerDirective = /** @class */ (function () {
|
|
501
|
+
function NimbleDrawerDirective(renderer, elementRef) {
|
|
502
|
+
this.renderer = renderer;
|
|
503
|
+
this.elementRef = elementRef;
|
|
504
|
+
this.stateChange = new core.EventEmitter();
|
|
361
505
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
506
|
+
Object.defineProperty(NimbleDrawerDirective.prototype, "location", {
|
|
507
|
+
get: function () {
|
|
508
|
+
return this.elementRef.nativeElement.location;
|
|
509
|
+
},
|
|
510
|
+
set: function (value) {
|
|
511
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'location', value);
|
|
512
|
+
},
|
|
513
|
+
enumerable: false,
|
|
514
|
+
configurable: true
|
|
515
|
+
});
|
|
516
|
+
Object.defineProperty(NimbleDrawerDirective.prototype, "state", {
|
|
517
|
+
get: function () {
|
|
518
|
+
return this.elementRef.nativeElement.state;
|
|
519
|
+
},
|
|
520
|
+
set: function (value) {
|
|
521
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'state', value);
|
|
522
|
+
},
|
|
523
|
+
enumerable: false,
|
|
524
|
+
configurable: true
|
|
525
|
+
});
|
|
526
|
+
Object.defineProperty(NimbleDrawerDirective.prototype, "modal", {
|
|
527
|
+
get: function () {
|
|
528
|
+
return this.elementRef.nativeElement.modal;
|
|
529
|
+
},
|
|
530
|
+
set: function (value) {
|
|
531
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'modal', toBooleanProperty(value));
|
|
532
|
+
},
|
|
533
|
+
enumerable: false,
|
|
534
|
+
configurable: true
|
|
535
|
+
});
|
|
536
|
+
NimbleDrawerDirective.prototype.show = function () {
|
|
537
|
+
this.state = types$1.DrawerState.Opening;
|
|
538
|
+
};
|
|
539
|
+
NimbleDrawerDirective.prototype.hide = function () {
|
|
540
|
+
this.state = types$1.DrawerState.Closing;
|
|
541
|
+
};
|
|
542
|
+
NimbleDrawerDirective.prototype.onStateChanged = function ($event) {
|
|
543
|
+
if ($event.target === this.elementRef.nativeElement) {
|
|
544
|
+
this.stateChange.emit(this.state);
|
|
368
545
|
}
|
|
369
|
-
return cooked;
|
|
370
|
-
}
|
|
371
|
-
;
|
|
372
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
373
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
374
|
-
}) : function (o, v) {
|
|
375
|
-
o["default"] = v;
|
|
376
546
|
};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
547
|
+
return NimbleDrawerDirective;
|
|
548
|
+
}());
|
|
549
|
+
NimbleDrawerDirective.decorators = [
|
|
550
|
+
{ type: core.Directive, args: [{
|
|
551
|
+
selector: 'nimble-drawer'
|
|
552
|
+
},] }
|
|
553
|
+
];
|
|
554
|
+
NimbleDrawerDirective.ctorParameters = function () { return [
|
|
555
|
+
{ type: core.Renderer2 },
|
|
556
|
+
{ type: core.ElementRef }
|
|
557
|
+
]; };
|
|
558
|
+
NimbleDrawerDirective.propDecorators = {
|
|
559
|
+
location: [{ type: core.Input }],
|
|
560
|
+
state: [{ type: core.Input }],
|
|
561
|
+
modal: [{ type: core.Input }],
|
|
562
|
+
stateChange: [{ type: core.Output }],
|
|
563
|
+
onStateChanged: [{ type: core.HostListener, args: ['state-change', ['$event'],] }]
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
var NimbleDrawerModule = /** @class */ (function () {
|
|
567
|
+
function NimbleDrawerModule() {
|
|
387
568
|
}
|
|
388
|
-
|
|
389
|
-
|
|
569
|
+
return NimbleDrawerModule;
|
|
570
|
+
}());
|
|
571
|
+
NimbleDrawerModule.decorators = [
|
|
572
|
+
{ type: core.NgModule, args: [{
|
|
573
|
+
declarations: [NimbleDrawerDirective],
|
|
574
|
+
imports: [common.CommonModule],
|
|
575
|
+
exports: [NimbleDrawerDirective]
|
|
576
|
+
},] }
|
|
577
|
+
];
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Extension of Angular's SelectControlValueAccessor to target the Nimble select control.
|
|
581
|
+
*
|
|
582
|
+
* @see NimbleSelectOptionDirective
|
|
583
|
+
*
|
|
584
|
+
* Directive decorator based on SelectControlValueAccessor decorator
|
|
585
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/select_control_value_accessor.ts#L85
|
|
586
|
+
*/
|
|
587
|
+
var NimbleSelectControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
588
|
+
__extends(NimbleSelectControlValueAccessorDirective, _super);
|
|
589
|
+
function NimbleSelectControlValueAccessorDirective() {
|
|
590
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
390
591
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
592
|
+
return NimbleSelectControlValueAccessorDirective;
|
|
593
|
+
}(forms.SelectControlValueAccessor));
|
|
594
|
+
NimbleSelectControlValueAccessorDirective.decorators = [
|
|
595
|
+
{ type: core.Directive, args: [{
|
|
596
|
+
selector: 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',
|
|
597
|
+
// The following host metadata is duplicated from SelectControlValueAccessor
|
|
598
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
599
|
+
host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
600
|
+
providers: [{
|
|
601
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
602
|
+
useExisting: core.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
|
|
603
|
+
multi: true
|
|
604
|
+
}]
|
|
605
|
+
},] }
|
|
606
|
+
];
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Directive to provide Angular integration for the listbox option.
|
|
610
|
+
*/
|
|
611
|
+
var NimbleListboxOptionDirective = /** @class */ (function (_super) {
|
|
612
|
+
__extends(NimbleListboxOptionDirective, _super);
|
|
613
|
+
function NimbleListboxOptionDirective(elementRef, renderer, select) {
|
|
614
|
+
var _this = _super.call(this, elementRef, renderer, select) || this;
|
|
615
|
+
_this.elementRef = elementRef;
|
|
616
|
+
_this.renderer = renderer;
|
|
617
|
+
return _this;
|
|
397
618
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
619
|
+
Object.defineProperty(NimbleListboxOptionDirective.prototype, "disabled", {
|
|
620
|
+
get: function () {
|
|
621
|
+
return this.elementRef.nativeElement.disabled;
|
|
622
|
+
},
|
|
623
|
+
set: function (value) {
|
|
624
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
625
|
+
},
|
|
626
|
+
enumerable: false,
|
|
627
|
+
configurable: true
|
|
628
|
+
});
|
|
629
|
+
return NimbleListboxOptionDirective;
|
|
630
|
+
}(forms.NgSelectOption));
|
|
631
|
+
NimbleListboxOptionDirective.decorators = [
|
|
632
|
+
{ type: core.Directive, args: [{
|
|
633
|
+
selector: 'nimble-listbox-option'
|
|
634
|
+
},] }
|
|
635
|
+
];
|
|
636
|
+
NimbleListboxOptionDirective.ctorParameters = function () { return [
|
|
637
|
+
{ type: core.ElementRef },
|
|
638
|
+
{ type: core.Renderer2 },
|
|
639
|
+
{ type: NimbleSelectControlValueAccessorDirective, decorators: [{ type: core.Inject, args: [NimbleSelectControlValueAccessorDirective,] }, { type: core.Optional }, { type: core.Host }] }
|
|
640
|
+
]; };
|
|
641
|
+
NimbleListboxOptionDirective.propDecorators = {
|
|
642
|
+
disabled: [{ type: core.Input }]
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
var NimbleListboxOptionModule = /** @class */ (function () {
|
|
646
|
+
function NimbleListboxOptionModule() {
|
|
406
647
|
}
|
|
648
|
+
return NimbleListboxOptionModule;
|
|
649
|
+
}());
|
|
650
|
+
NimbleListboxOptionModule.decorators = [
|
|
651
|
+
{ type: core.NgModule, args: [{
|
|
652
|
+
declarations: [NimbleListboxOptionDirective],
|
|
653
|
+
imports: [common.CommonModule],
|
|
654
|
+
exports: [NimbleListboxOptionDirective]
|
|
655
|
+
},] }
|
|
656
|
+
];
|
|
407
657
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
NimbleDefaultControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleDefaultControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
422
|
-
NimbleDefaultControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleDefaultControlValueAccessorDirective, selector: "nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [{
|
|
423
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
424
|
-
useExisting: i0.forwardRef(function () { return NimbleDefaultControlValueAccessorDirective; }),
|
|
425
|
-
multi: true
|
|
426
|
-
}], usesInheritance: true, ngImport: i0__namespace });
|
|
427
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleDefaultControlValueAccessorDirective, decorators: [{
|
|
428
|
-
type: i0.Directive,
|
|
429
|
-
args: [{
|
|
430
|
-
selector: 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',
|
|
431
|
-
// The following host metadata is duplicated from DefaultValueAccessor
|
|
432
|
-
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
433
|
-
host: {
|
|
434
|
-
'(input)': '$any(this)._handleInput($event.target.value)',
|
|
435
|
-
'(blur)': 'onTouched()',
|
|
436
|
-
'(compositionstart)': '$any(this)._compositionStart()',
|
|
437
|
-
'(compositionend)': '$any(this)._compositionEnd($event.target.value)'
|
|
438
|
-
},
|
|
439
|
-
providers: [{
|
|
440
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
441
|
-
useExisting: i0.forwardRef(function () { return NimbleDefaultControlValueAccessorDirective; }),
|
|
442
|
-
multi: true
|
|
443
|
-
}]
|
|
444
|
-
}]
|
|
445
|
-
}] });
|
|
658
|
+
/**
|
|
659
|
+
* Directive to provide Angular integration for the menu.
|
|
660
|
+
*/
|
|
661
|
+
var NimbleMenuDirective = /** @class */ (function () {
|
|
662
|
+
function NimbleMenuDirective() {
|
|
663
|
+
}
|
|
664
|
+
return NimbleMenuDirective;
|
|
665
|
+
}());
|
|
666
|
+
NimbleMenuDirective.decorators = [
|
|
667
|
+
{ type: core.Directive, args: [{
|
|
668
|
+
selector: 'nimble-menu'
|
|
669
|
+
},] }
|
|
670
|
+
];
|
|
446
671
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}(forms.NumberValueAccessor));
|
|
460
|
-
NimbleNumberControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
461
|
-
NimbleNumberControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberControlValueAccessorDirective, selector: "nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
|
|
462
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
463
|
-
useExisting: i0.forwardRef(function () { return NimbleNumberControlValueAccessorDirective; }),
|
|
464
|
-
multi: true
|
|
465
|
-
}], usesInheritance: true, ngImport: i0__namespace });
|
|
466
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleNumberControlValueAccessorDirective, decorators: [{
|
|
467
|
-
type: i0.Directive,
|
|
468
|
-
args: [{
|
|
469
|
-
selector: 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',
|
|
470
|
-
// The following host metadata is duplicated from NumberValueAccessor
|
|
471
|
-
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
472
|
-
host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
473
|
-
providers: [{
|
|
474
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
475
|
-
useExisting: i0.forwardRef(function () { return NimbleNumberControlValueAccessorDirective; }),
|
|
476
|
-
multi: true
|
|
477
|
-
}]
|
|
478
|
-
}]
|
|
479
|
-
}] });
|
|
672
|
+
var NimbleMenuModule = /** @class */ (function () {
|
|
673
|
+
function NimbleMenuModule() {
|
|
674
|
+
}
|
|
675
|
+
return NimbleMenuModule;
|
|
676
|
+
}());
|
|
677
|
+
NimbleMenuModule.decorators = [
|
|
678
|
+
{ type: core.NgModule, args: [{
|
|
679
|
+
declarations: [NimbleMenuDirective],
|
|
680
|
+
imports: [common.CommonModule],
|
|
681
|
+
exports: [NimbleMenuDirective]
|
|
682
|
+
},] }
|
|
683
|
+
];
|
|
480
684
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
685
|
+
/**
|
|
686
|
+
* Directive to provide Angular integration for the menu.
|
|
687
|
+
*/
|
|
688
|
+
var NimbleMenuItemDirective = /** @class */ (function () {
|
|
689
|
+
function NimbleMenuItemDirective(renderer, elementRef) {
|
|
690
|
+
this.renderer = renderer;
|
|
691
|
+
this.elementRef = elementRef;
|
|
692
|
+
}
|
|
693
|
+
Object.defineProperty(NimbleMenuItemDirective.prototype, "disabled", {
|
|
694
|
+
get: function () {
|
|
695
|
+
return this.elementRef.nativeElement.disabled;
|
|
696
|
+
},
|
|
697
|
+
set: function (value) {
|
|
698
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
699
|
+
},
|
|
700
|
+
enumerable: false,
|
|
701
|
+
configurable: true
|
|
702
|
+
});
|
|
703
|
+
return NimbleMenuItemDirective;
|
|
704
|
+
}());
|
|
705
|
+
NimbleMenuItemDirective.decorators = [
|
|
706
|
+
{ type: core.Directive, args: [{
|
|
707
|
+
selector: 'nimble-menu-item'
|
|
708
|
+
},] }
|
|
709
|
+
];
|
|
710
|
+
NimbleMenuItemDirective.ctorParameters = function () { return [
|
|
711
|
+
{ type: core.Renderer2 },
|
|
712
|
+
{ type: core.ElementRef }
|
|
713
|
+
]; };
|
|
714
|
+
NimbleMenuItemDirective.propDecorators = {
|
|
715
|
+
disabled: [{ type: core.Input }]
|
|
716
|
+
};
|
|
497
717
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
imports: [common.CommonModule, NimbleControlValueAccessorModule],
|
|
511
|
-
providers: [],
|
|
512
|
-
exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule]
|
|
513
|
-
}]
|
|
514
|
-
}] });
|
|
718
|
+
var NimbleMenuItemModule = /** @class */ (function () {
|
|
719
|
+
function NimbleMenuItemModule() {
|
|
720
|
+
}
|
|
721
|
+
return NimbleMenuItemModule;
|
|
722
|
+
}());
|
|
723
|
+
NimbleMenuItemModule.decorators = [
|
|
724
|
+
{ type: core.NgModule, args: [{
|
|
725
|
+
declarations: [NimbleMenuItemDirective],
|
|
726
|
+
imports: [common.CommonModule],
|
|
727
|
+
exports: [NimbleMenuItemDirective]
|
|
728
|
+
},] }
|
|
729
|
+
];
|
|
515
730
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
731
|
+
/**
|
|
732
|
+
* Extension of Angular's NumberValueAccessor to target the number-based inputs.
|
|
733
|
+
*
|
|
734
|
+
* Directive decorator based on NumberValueAccessor decorator
|
|
735
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/number_value_accessor.ts#L43
|
|
736
|
+
*/
|
|
737
|
+
var NimbleNumberFieldControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
738
|
+
__extends(NimbleNumberFieldControlValueAccessorDirective, _super);
|
|
739
|
+
function NimbleNumberFieldControlValueAccessorDirective() {
|
|
740
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
741
|
+
}
|
|
742
|
+
return NimbleNumberFieldControlValueAccessorDirective;
|
|
743
|
+
}(forms.NumberValueAccessor));
|
|
744
|
+
NimbleNumberFieldControlValueAccessorDirective.decorators = [
|
|
745
|
+
{ type: core.Directive, args: [{
|
|
746
|
+
selector: 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',
|
|
747
|
+
// The following host metadata is duplicated from NumberValueAccessor
|
|
748
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
749
|
+
host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
750
|
+
providers: [{
|
|
751
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
752
|
+
useExisting: core.forwardRef(function () { return NimbleNumberFieldControlValueAccessorDirective; }),
|
|
753
|
+
multi: true
|
|
530
754
|
}]
|
|
531
|
-
}]
|
|
532
|
-
|
|
533
|
-
args: ['attr.readonly']
|
|
534
|
-
}, {
|
|
535
|
-
type: i0.Input
|
|
536
|
-
}], min: [{
|
|
537
|
-
type: i0.HostBinding,
|
|
538
|
-
args: ['attr.min']
|
|
539
|
-
}, {
|
|
540
|
-
type: i0.Input
|
|
541
|
-
}], max: [{
|
|
542
|
-
type: i0.HostBinding,
|
|
543
|
-
args: ['attr.max']
|
|
544
|
-
}, {
|
|
545
|
-
type: i0.Input
|
|
546
|
-
}], step: [{
|
|
547
|
-
type: i0.HostBinding,
|
|
548
|
-
args: ['attr.step']
|
|
549
|
-
}, {
|
|
550
|
-
type: i0.Input
|
|
551
|
-
}], placeholder: [{
|
|
552
|
-
type: i0.HostBinding,
|
|
553
|
-
args: ['attr.placeholder']
|
|
554
|
-
}, {
|
|
555
|
-
type: i0.Input
|
|
556
|
-
}] } });
|
|
755
|
+
},] }
|
|
756
|
+
];
|
|
557
757
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
758
|
+
/**
|
|
759
|
+
* Directive to provide Angular integration for the number field.
|
|
760
|
+
*/
|
|
761
|
+
var NimbleNumberFieldDirective = /** @class */ (function () {
|
|
762
|
+
function NimbleNumberFieldDirective(renderer, elementRef) {
|
|
763
|
+
this.renderer = renderer;
|
|
764
|
+
this.elementRef = elementRef;
|
|
765
|
+
}
|
|
766
|
+
Object.defineProperty(NimbleNumberFieldDirective.prototype, "readOnly", {
|
|
767
|
+
get: function () {
|
|
768
|
+
return this.elementRef.nativeElement.readOnly;
|
|
769
|
+
},
|
|
770
|
+
// readOnly property maps to the readonly attribute
|
|
771
|
+
// https://github.com/microsoft/fast/blob/46bb6d9aab2c37105f4434db3795e176c2354a4f/packages/web-components/fast-foundation/src/number-field/number-field.ts#L38
|
|
772
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
773
|
+
set: function (value) {
|
|
774
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'readOnly', toBooleanProperty(value));
|
|
775
|
+
},
|
|
776
|
+
enumerable: false,
|
|
777
|
+
configurable: true
|
|
778
|
+
});
|
|
779
|
+
Object.defineProperty(NimbleNumberFieldDirective.prototype, "min", {
|
|
780
|
+
get: function () {
|
|
781
|
+
return this.elementRef.nativeElement.min;
|
|
782
|
+
},
|
|
783
|
+
set: function (value) {
|
|
784
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'min', toNumberProperty(value));
|
|
785
|
+
},
|
|
786
|
+
enumerable: false,
|
|
787
|
+
configurable: true
|
|
788
|
+
});
|
|
789
|
+
Object.defineProperty(NimbleNumberFieldDirective.prototype, "max", {
|
|
790
|
+
get: function () {
|
|
791
|
+
return this.elementRef.nativeElement.max;
|
|
792
|
+
},
|
|
793
|
+
set: function (value) {
|
|
794
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'max', toNumberProperty(value));
|
|
795
|
+
},
|
|
796
|
+
enumerable: false,
|
|
797
|
+
configurable: true
|
|
798
|
+
});
|
|
799
|
+
Object.defineProperty(NimbleNumberFieldDirective.prototype, "step", {
|
|
800
|
+
get: function () {
|
|
801
|
+
return this.elementRef.nativeElement.step;
|
|
802
|
+
},
|
|
803
|
+
set: function (value) {
|
|
804
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'step', toNumberProperty(value));
|
|
805
|
+
},
|
|
806
|
+
enumerable: false,
|
|
807
|
+
configurable: true
|
|
808
|
+
});
|
|
809
|
+
Object.defineProperty(NimbleNumberFieldDirective.prototype, "placeholder", {
|
|
810
|
+
get: function () {
|
|
811
|
+
return this.elementRef.nativeElement.placeholder;
|
|
812
|
+
},
|
|
813
|
+
set: function (value) {
|
|
814
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'placeholder', value);
|
|
815
|
+
},
|
|
816
|
+
enumerable: false,
|
|
817
|
+
configurable: true
|
|
818
|
+
});
|
|
819
|
+
return NimbleNumberFieldDirective;
|
|
820
|
+
}());
|
|
821
|
+
NimbleNumberFieldDirective.decorators = [
|
|
822
|
+
{ type: core.Directive, args: [{
|
|
823
|
+
selector: 'nimble-number-field'
|
|
824
|
+
},] }
|
|
825
|
+
];
|
|
826
|
+
NimbleNumberFieldDirective.ctorParameters = function () { return [
|
|
827
|
+
{ type: core.Renderer2 },
|
|
828
|
+
{ type: core.ElementRef }
|
|
829
|
+
]; };
|
|
830
|
+
NimbleNumberFieldDirective.propDecorators = {
|
|
831
|
+
readOnly: [{ type: core.Input, args: ['readonly',] }],
|
|
832
|
+
min: [{ type: core.Input }],
|
|
833
|
+
max: [{ type: core.Input }],
|
|
834
|
+
step: [{ type: core.Input }],
|
|
835
|
+
placeholder: [{ type: core.Input }]
|
|
836
|
+
};
|
|
575
837
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
args: [{
|
|
589
|
-
selector: 'nimble-select',
|
|
590
|
-
}]
|
|
591
|
-
}] });
|
|
838
|
+
var NimbleNumberFieldModule = /** @class */ (function () {
|
|
839
|
+
function NimbleNumberFieldModule() {
|
|
840
|
+
}
|
|
841
|
+
return NimbleNumberFieldModule;
|
|
842
|
+
}());
|
|
843
|
+
NimbleNumberFieldModule.decorators = [
|
|
844
|
+
{ type: core.NgModule, args: [{
|
|
845
|
+
declarations: [NimbleNumberFieldDirective, NimbleNumberFieldControlValueAccessorDirective],
|
|
846
|
+
imports: [common.CommonModule],
|
|
847
|
+
exports: [NimbleNumberFieldDirective, NimbleNumberFieldControlValueAccessorDirective]
|
|
848
|
+
},] }
|
|
849
|
+
];
|
|
592
850
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
return NimbleSelectControlValueAccessorDirective;
|
|
607
|
-
}(forms.SelectControlValueAccessor));
|
|
608
|
-
NimbleSelectControlValueAccessorDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectControlValueAccessorDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
609
|
-
NimbleSelectControlValueAccessorDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectControlValueAccessorDirective, selector: "nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
|
|
610
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
611
|
-
useExisting: i0.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
|
|
612
|
-
multi: true
|
|
613
|
-
}], usesInheritance: true, ngImport: i0__namespace });
|
|
614
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleSelectControlValueAccessorDirective, decorators: [{
|
|
615
|
-
type: i0.Directive,
|
|
616
|
-
args: [{
|
|
617
|
-
selector: 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',
|
|
618
|
-
// The following host metadata is duplicated from SelectControlValueAccessor
|
|
619
|
-
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
620
|
-
host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
621
|
-
providers: [{
|
|
622
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
623
|
-
useExisting: i0.forwardRef(function () { return NimbleSelectControlValueAccessorDirective; }),
|
|
624
|
-
multi: true
|
|
625
|
-
}]
|
|
626
|
-
}]
|
|
627
|
-
}] });
|
|
851
|
+
/**
|
|
852
|
+
* Directive for Nimble select control Angular integration
|
|
853
|
+
*/
|
|
854
|
+
var NimbleSelectDirective = /** @class */ (function () {
|
|
855
|
+
function NimbleSelectDirective() {
|
|
856
|
+
}
|
|
857
|
+
return NimbleSelectDirective;
|
|
858
|
+
}());
|
|
859
|
+
NimbleSelectDirective.decorators = [
|
|
860
|
+
{ type: core.Directive, args: [{
|
|
861
|
+
selector: 'nimble-select',
|
|
862
|
+
},] }
|
|
863
|
+
];
|
|
628
864
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
imports: [common.CommonModule],
|
|
642
|
-
exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]
|
|
643
|
-
}]
|
|
644
|
-
}] });
|
|
865
|
+
var NimbleSelectModule = /** @class */ (function () {
|
|
866
|
+
function NimbleSelectModule() {
|
|
867
|
+
}
|
|
868
|
+
return NimbleSelectModule;
|
|
869
|
+
}());
|
|
870
|
+
NimbleSelectModule.decorators = [
|
|
871
|
+
{ type: core.NgModule, args: [{
|
|
872
|
+
declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective],
|
|
873
|
+
imports: [common.CommonModule],
|
|
874
|
+
exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]
|
|
875
|
+
},] }
|
|
876
|
+
];
|
|
645
877
|
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
878
|
+
/**
|
|
879
|
+
* Directive to provide Angular integration for the tab element.
|
|
880
|
+
*/
|
|
881
|
+
var NimbleTabDirective = /** @class */ (function () {
|
|
882
|
+
function NimbleTabDirective(renderer, elementRef) {
|
|
883
|
+
this.renderer = renderer;
|
|
884
|
+
this.elementRef = elementRef;
|
|
885
|
+
}
|
|
886
|
+
Object.defineProperty(NimbleTabDirective.prototype, "disabled", {
|
|
887
|
+
get: function () {
|
|
888
|
+
return this.elementRef.nativeElement.disabled;
|
|
889
|
+
},
|
|
890
|
+
set: function (value) {
|
|
891
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
892
|
+
},
|
|
893
|
+
enumerable: false,
|
|
894
|
+
configurable: true
|
|
895
|
+
});
|
|
896
|
+
return NimbleTabDirective;
|
|
897
|
+
}());
|
|
898
|
+
NimbleTabDirective.decorators = [
|
|
899
|
+
{ type: core.Directive, args: [{
|
|
900
|
+
selector: 'nimble-tab'
|
|
901
|
+
},] }
|
|
902
|
+
];
|
|
903
|
+
NimbleTabDirective.ctorParameters = function () { return [
|
|
904
|
+
{ type: core.Renderer2 },
|
|
905
|
+
{ type: core.ElementRef }
|
|
906
|
+
]; };
|
|
907
|
+
NimbleTabDirective.propDecorators = {
|
|
908
|
+
disabled: [{ type: core.Input }]
|
|
909
|
+
};
|
|
675
910
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
imports: [common.CommonModule],
|
|
689
|
-
exports: [NimbleListboxOptionDirective]
|
|
690
|
-
}]
|
|
691
|
-
}] });
|
|
911
|
+
var NimbleTabModule = /** @class */ (function () {
|
|
912
|
+
function NimbleTabModule() {
|
|
913
|
+
}
|
|
914
|
+
return NimbleTabModule;
|
|
915
|
+
}());
|
|
916
|
+
NimbleTabModule.decorators = [
|
|
917
|
+
{ type: core.NgModule, args: [{
|
|
918
|
+
declarations: [NimbleTabDirective],
|
|
919
|
+
imports: [common.CommonModule],
|
|
920
|
+
exports: [NimbleTabDirective]
|
|
921
|
+
},] }
|
|
922
|
+
];
|
|
692
923
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
selector: 'nimble-button'
|
|
707
|
-
}]
|
|
708
|
-
}], propDecorators: { disabled: [{
|
|
709
|
-
type: i0.HostBinding,
|
|
710
|
-
args: ['disabled']
|
|
711
|
-
}, {
|
|
712
|
-
type: i0.Input
|
|
713
|
-
}], appearance: [{
|
|
714
|
-
type: i0.HostBinding,
|
|
715
|
-
args: ['appearance']
|
|
716
|
-
}, {
|
|
717
|
-
type: i0.Input
|
|
718
|
-
}] } });
|
|
924
|
+
/**
|
|
925
|
+
* Directive to provide Angular integration for the tab panel.
|
|
926
|
+
*/
|
|
927
|
+
var NimbleTabPanelDirective = /** @class */ (function () {
|
|
928
|
+
function NimbleTabPanelDirective() {
|
|
929
|
+
}
|
|
930
|
+
return NimbleTabPanelDirective;
|
|
931
|
+
}());
|
|
932
|
+
NimbleTabPanelDirective.decorators = [
|
|
933
|
+
{ type: core.Directive, args: [{
|
|
934
|
+
selector: 'nimble-tab-panel'
|
|
935
|
+
},] }
|
|
936
|
+
];
|
|
719
937
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
imports: [common.CommonModule],
|
|
733
|
-
exports: [NimbleButtonDirective]
|
|
734
|
-
}]
|
|
735
|
-
}] });
|
|
938
|
+
var NimbleTabPanelModule = /** @class */ (function () {
|
|
939
|
+
function NimbleTabPanelModule() {
|
|
940
|
+
}
|
|
941
|
+
return NimbleTabPanelModule;
|
|
942
|
+
}());
|
|
943
|
+
NimbleTabPanelModule.decorators = [
|
|
944
|
+
{ type: core.NgModule, args: [{
|
|
945
|
+
declarations: [NimbleTabPanelDirective],
|
|
946
|
+
imports: [common.CommonModule],
|
|
947
|
+
exports: [NimbleTabPanelDirective]
|
|
948
|
+
},] }
|
|
949
|
+
];
|
|
736
950
|
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
951
|
+
/**
|
|
952
|
+
* Directive to provide Angular integration for the tabs element.
|
|
953
|
+
*/
|
|
954
|
+
var NimbleTabsDirective = /** @class */ (function () {
|
|
955
|
+
function NimbleTabsDirective(renderer, elementRef) {
|
|
956
|
+
this.renderer = renderer;
|
|
957
|
+
this.elementRef = elementRef;
|
|
958
|
+
this.activeidChange = new core.EventEmitter();
|
|
959
|
+
}
|
|
960
|
+
Object.defineProperty(NimbleTabsDirective.prototype, "activeid", {
|
|
961
|
+
get: function () {
|
|
962
|
+
return this.elementRef.nativeElement.activeid;
|
|
963
|
+
},
|
|
964
|
+
set: function (value) {
|
|
965
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'activeid', value);
|
|
966
|
+
},
|
|
967
|
+
enumerable: false,
|
|
968
|
+
configurable: true
|
|
969
|
+
});
|
|
970
|
+
NimbleTabsDirective.prototype.onChange = function ($event) {
|
|
971
|
+
if ($event.target === this.elementRef.nativeElement) {
|
|
972
|
+
this.activeidChange.emit(this.activeid);
|
|
742
973
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
974
|
+
};
|
|
975
|
+
return NimbleTabsDirective;
|
|
976
|
+
}());
|
|
977
|
+
NimbleTabsDirective.decorators = [
|
|
978
|
+
{ type: core.Directive, args: [{
|
|
979
|
+
selector: 'nimble-tabs'
|
|
980
|
+
},] }
|
|
981
|
+
];
|
|
982
|
+
NimbleTabsDirective.ctorParameters = function () { return [
|
|
983
|
+
{ type: core.Renderer2 },
|
|
984
|
+
{ type: core.ElementRef }
|
|
985
|
+
]; };
|
|
986
|
+
NimbleTabsDirective.propDecorators = {
|
|
987
|
+
activeid: [{ type: core.Input }],
|
|
988
|
+
activeidChange: [{ type: core.Output }],
|
|
989
|
+
onChange: [{ type: core.HostListener, args: ['change', ['$event'],] }]
|
|
990
|
+
};
|
|
753
991
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
imports: [common.CommonModule],
|
|
767
|
-
exports: [NimbleTreeViewDirective]
|
|
768
|
-
}]
|
|
769
|
-
}] });
|
|
992
|
+
var NimbleTabsModule = /** @class */ (function () {
|
|
993
|
+
function NimbleTabsModule() {
|
|
994
|
+
}
|
|
995
|
+
return NimbleTabsModule;
|
|
996
|
+
}());
|
|
997
|
+
NimbleTabsModule.decorators = [
|
|
998
|
+
{ type: core.NgModule, args: [{
|
|
999
|
+
declarations: [NimbleTabsDirective],
|
|
1000
|
+
imports: [common.CommonModule],
|
|
1001
|
+
exports: [NimbleTabsDirective]
|
|
1002
|
+
},] }
|
|
1003
|
+
];
|
|
770
1004
|
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
this.selectedChange.emit(this.selected);
|
|
785
|
-
}
|
|
786
|
-
};
|
|
787
|
-
NimbleTreeItemDirective.prototype.onExpandedChange = function ($event) {
|
|
788
|
-
var treeItemElement = this.treeItemReference.nativeElement;
|
|
789
|
-
if ($event.target === treeItemElement) {
|
|
790
|
-
this.expanded = treeItemElement.expanded;
|
|
791
|
-
this.expandedChange.emit(treeItemElement.expanded);
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
|
-
return NimbleTreeItemDirective;
|
|
795
|
-
}());
|
|
796
|
-
NimbleTreeItemDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
797
|
-
NimbleTreeItemDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeItemDirective, selector: "nimble-tree-item", inputs: { disabled: "disabled", expanded: "expanded", selected: "selected" }, outputs: { selectedChange: "selectedChange", expandedChange: "expandedChange" }, host: { listeners: { "selected-change": "onSelectedChange($event)", "expanded-change": "onExpandedChange($event)" }, properties: { "disabled": "this.disabled", "expanded": "this.expanded", "selected": "this.selected", "attr.aria-selected": "this.selected" } }, ngImport: i0__namespace });
|
|
798
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: NimbleTreeItemDirective, decorators: [{
|
|
799
|
-
type: i0.Directive,
|
|
800
|
-
args: [{
|
|
801
|
-
selector: 'nimble-tree-item'
|
|
802
|
-
}]
|
|
803
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { disabled: [{
|
|
804
|
-
type: i0.HostBinding,
|
|
805
|
-
args: ['disabled']
|
|
806
|
-
}, {
|
|
807
|
-
type: i0.Input
|
|
808
|
-
}], expanded: [{
|
|
809
|
-
type: i0.HostBinding,
|
|
810
|
-
args: ['expanded']
|
|
811
|
-
}, {
|
|
812
|
-
type: i0.Input
|
|
813
|
-
}], selected: [{
|
|
814
|
-
type: i0.HostBinding,
|
|
815
|
-
args: ['selected']
|
|
816
|
-
}, {
|
|
817
|
-
type: i0.HostBinding,
|
|
818
|
-
args: ['attr.aria-selected']
|
|
819
|
-
}, {
|
|
820
|
-
type: i0.Input
|
|
821
|
-
}], selectedChange: [{
|
|
822
|
-
type: i0.Output
|
|
823
|
-
}], expandedChange: [{
|
|
824
|
-
type: i0.Output
|
|
825
|
-
}], onSelectedChange: [{
|
|
826
|
-
type: i0.HostListener,
|
|
827
|
-
args: ['selected-change', ['$event']]
|
|
828
|
-
}], onExpandedChange: [{
|
|
829
|
-
type: i0.HostListener,
|
|
830
|
-
args: ['expanded-change', ['$event']]
|
|
831
|
-
}] } });
|
|
1005
|
+
/**
|
|
1006
|
+
* Directive to provide Angular integration for the tabs toolbar.
|
|
1007
|
+
*/
|
|
1008
|
+
var NimbleTabsToolbarDirective = /** @class */ (function () {
|
|
1009
|
+
function NimbleTabsToolbarDirective() {
|
|
1010
|
+
}
|
|
1011
|
+
return NimbleTabsToolbarDirective;
|
|
1012
|
+
}());
|
|
1013
|
+
NimbleTabsToolbarDirective.decorators = [
|
|
1014
|
+
{ type: core.Directive, args: [{
|
|
1015
|
+
selector: 'nimble-tabs-toolbar'
|
|
1016
|
+
},] }
|
|
1017
|
+
];
|
|
832
1018
|
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
imports: [common.CommonModule],
|
|
846
|
-
exports: [NimbleTreeItemDirective]
|
|
847
|
-
}]
|
|
848
|
-
}] });
|
|
1019
|
+
var NimbleTabsToolbarModule = /** @class */ (function () {
|
|
1020
|
+
function NimbleTabsToolbarModule() {
|
|
1021
|
+
}
|
|
1022
|
+
return NimbleTabsToolbarModule;
|
|
1023
|
+
}());
|
|
1024
|
+
NimbleTabsToolbarModule.decorators = [
|
|
1025
|
+
{ type: core.NgModule, args: [{
|
|
1026
|
+
declarations: [NimbleTabsToolbarDirective],
|
|
1027
|
+
imports: [common.CommonModule],
|
|
1028
|
+
exports: [NimbleTabsToolbarDirective]
|
|
1029
|
+
},] }
|
|
1030
|
+
];
|
|
849
1031
|
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
1032
|
+
/**
|
|
1033
|
+
* Extension of Angular's DefaultValueAccessor to target the text-based inputs.
|
|
1034
|
+
*
|
|
1035
|
+
* Directive decorator based on DefaultValueAccessor decorator
|
|
1036
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/default_value_accessor.ts#L72
|
|
1037
|
+
*/
|
|
1038
|
+
var NimbleTextFieldControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
1039
|
+
__extends(NimbleTextFieldControlValueAccessorDirective, _super);
|
|
1040
|
+
function NimbleTextFieldControlValueAccessorDirective() {
|
|
1041
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1042
|
+
}
|
|
1043
|
+
return NimbleTextFieldControlValueAccessorDirective;
|
|
1044
|
+
}(forms.DefaultValueAccessor));
|
|
1045
|
+
NimbleTextFieldControlValueAccessorDirective.decorators = [
|
|
1046
|
+
{ type: core.Directive, args: [{
|
|
1047
|
+
selector: 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',
|
|
1048
|
+
// The following host metadata is duplicated from DefaultValueAccessor
|
|
1049
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
1050
|
+
host: {
|
|
1051
|
+
'(input)': '$any(this)._handleInput($event.target.value)',
|
|
1052
|
+
'(blur)': 'onTouched()',
|
|
1053
|
+
'(compositionstart)': '$any(this)._compositionStart()',
|
|
1054
|
+
'(compositionend)': '$any(this)._compositionEnd($event.target.value)'
|
|
1055
|
+
},
|
|
1056
|
+
providers: [{
|
|
1057
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
1058
|
+
useExisting: core.forwardRef(function () { return NimbleTextFieldControlValueAccessorDirective; }),
|
|
1059
|
+
multi: true
|
|
864
1060
|
}]
|
|
865
|
-
}] }
|
|
1061
|
+
},] }
|
|
1062
|
+
];
|
|
866
1063
|
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
1064
|
+
/**
|
|
1065
|
+
* Directive to provide Angular integration for the text field
|
|
1066
|
+
*/
|
|
1067
|
+
var NimbleTextFieldDirective = /** @class */ (function () {
|
|
1068
|
+
function NimbleTextFieldDirective(renderer, elementRef) {
|
|
1069
|
+
this.renderer = renderer;
|
|
1070
|
+
this.elementRef = elementRef;
|
|
1071
|
+
}
|
|
1072
|
+
Object.defineProperty(NimbleTextFieldDirective.prototype, "readOnly", {
|
|
1073
|
+
get: function () {
|
|
1074
|
+
return this.elementRef.nativeElement.readOnly;
|
|
1075
|
+
},
|
|
1076
|
+
// readOnly property maps to the readonly attribute
|
|
1077
|
+
// See: https://github.com/microsoft/fast/blob/46bb6d9aab2c37105f4434db3795e176c2354a4f/packages/web-components/fast-foundation/src/text-field/text-field.ts#L33
|
|
1078
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1079
|
+
set: function (value) {
|
|
1080
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'readOnly', toBooleanProperty(value));
|
|
1081
|
+
},
|
|
1082
|
+
enumerable: false,
|
|
1083
|
+
configurable: true
|
|
1084
|
+
});
|
|
1085
|
+
Object.defineProperty(NimbleTextFieldDirective.prototype, "type", {
|
|
1086
|
+
get: function () {
|
|
1087
|
+
return this.elementRef.nativeElement.type;
|
|
1088
|
+
},
|
|
1089
|
+
set: function (value) {
|
|
1090
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'type', value);
|
|
1091
|
+
},
|
|
1092
|
+
enumerable: false,
|
|
1093
|
+
configurable: true
|
|
1094
|
+
});
|
|
1095
|
+
return NimbleTextFieldDirective;
|
|
1096
|
+
}());
|
|
1097
|
+
NimbleTextFieldDirective.decorators = [
|
|
1098
|
+
{ type: core.Directive, args: [{
|
|
1099
|
+
selector: 'nimble-text-field'
|
|
1100
|
+
},] }
|
|
1101
|
+
];
|
|
1102
|
+
NimbleTextFieldDirective.ctorParameters = function () { return [
|
|
1103
|
+
{ type: core.Renderer2 },
|
|
1104
|
+
{ type: core.ElementRef }
|
|
1105
|
+
]; };
|
|
1106
|
+
NimbleTextFieldDirective.propDecorators = {
|
|
1107
|
+
readOnly: [{ type: core.Input, args: ['readonly',] }],
|
|
1108
|
+
type: [{ type: core.Input }]
|
|
1109
|
+
};
|
|
900
1110
|
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
imports: [common.CommonModule],
|
|
914
|
-
exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]
|
|
915
|
-
}]
|
|
916
|
-
}] });
|
|
1111
|
+
var NimbleTextFieldModule = /** @class */ (function () {
|
|
1112
|
+
function NimbleTextFieldModule() {
|
|
1113
|
+
}
|
|
1114
|
+
return NimbleTextFieldModule;
|
|
1115
|
+
}());
|
|
1116
|
+
NimbleTextFieldModule.decorators = [
|
|
1117
|
+
{ type: core.NgModule, args: [{
|
|
1118
|
+
declarations: [NimbleTextFieldDirective, NimbleTextFieldControlValueAccessorDirective],
|
|
1119
|
+
imports: [common.CommonModule],
|
|
1120
|
+
exports: [NimbleTextFieldDirective, NimbleTextFieldControlValueAccessorDirective]
|
|
1121
|
+
},] }
|
|
1122
|
+
];
|
|
917
1123
|
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1124
|
+
/**
|
|
1125
|
+
* Directive for Angular integration for the theme provider
|
|
1126
|
+
*/
|
|
1127
|
+
var NimbleThemeProviderDirective = /** @class */ (function () {
|
|
1128
|
+
function NimbleThemeProviderDirective(renderer, elementRef) {
|
|
1129
|
+
this.renderer = renderer;
|
|
1130
|
+
this.elementRef = elementRef;
|
|
1131
|
+
}
|
|
1132
|
+
Object.defineProperty(NimbleThemeProviderDirective.prototype, "theme", {
|
|
1133
|
+
get: function () {
|
|
1134
|
+
return this.elementRef.nativeElement.theme;
|
|
1135
|
+
},
|
|
1136
|
+
set: function (value) {
|
|
1137
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'theme', value);
|
|
1138
|
+
},
|
|
1139
|
+
enumerable: false,
|
|
1140
|
+
configurable: true
|
|
1141
|
+
});
|
|
1142
|
+
return NimbleThemeProviderDirective;
|
|
1143
|
+
}());
|
|
1144
|
+
NimbleThemeProviderDirective.decorators = [
|
|
1145
|
+
{ type: core.Directive, args: [{
|
|
1146
|
+
selector: 'nimble-theme-provider'
|
|
1147
|
+
},] }
|
|
1148
|
+
];
|
|
1149
|
+
NimbleThemeProviderDirective.ctorParameters = function () { return [
|
|
1150
|
+
{ type: core.Renderer2 },
|
|
1151
|
+
{ type: core.ElementRef }
|
|
1152
|
+
]; };
|
|
1153
|
+
NimbleThemeProviderDirective.propDecorators = {
|
|
1154
|
+
theme: [{ type: core.Input }]
|
|
1155
|
+
};
|
|
949
1156
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
imports: [common.CommonModule],
|
|
963
|
-
exports: [NimbleTabsDirective]
|
|
964
|
-
}]
|
|
965
|
-
}] });
|
|
1157
|
+
var NimbleThemeProviderModule = /** @class */ (function () {
|
|
1158
|
+
function NimbleThemeProviderModule() {
|
|
1159
|
+
}
|
|
1160
|
+
return NimbleThemeProviderModule;
|
|
1161
|
+
}());
|
|
1162
|
+
NimbleThemeProviderModule.decorators = [
|
|
1163
|
+
{ type: core.NgModule, args: [{
|
|
1164
|
+
declarations: [NimbleThemeProviderDirective],
|
|
1165
|
+
imports: [common.CommonModule],
|
|
1166
|
+
exports: [NimbleThemeProviderDirective]
|
|
1167
|
+
},] }
|
|
1168
|
+
];
|
|
966
1169
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* Directive to provide Angular integration for the toggle button.
|
|
1172
|
+
*/
|
|
1173
|
+
var NimbleToggleButtonDirective = /** @class */ (function () {
|
|
1174
|
+
function NimbleToggleButtonDirective(renderer, elementRef) {
|
|
1175
|
+
this.renderer = renderer;
|
|
1176
|
+
this.elementRef = elementRef;
|
|
1177
|
+
}
|
|
1178
|
+
Object.defineProperty(NimbleToggleButtonDirective.prototype, "appearance", {
|
|
1179
|
+
get: function () {
|
|
1180
|
+
return this.elementRef.nativeElement.appearance;
|
|
1181
|
+
},
|
|
1182
|
+
set: function (value) {
|
|
1183
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);
|
|
1184
|
+
},
|
|
1185
|
+
enumerable: false,
|
|
1186
|
+
configurable: true
|
|
1187
|
+
});
|
|
1188
|
+
Object.defineProperty(NimbleToggleButtonDirective.prototype, "disabled", {
|
|
1189
|
+
get: function () {
|
|
1190
|
+
return this.elementRef.nativeElement.disabled;
|
|
1191
|
+
},
|
|
1192
|
+
set: function (value) {
|
|
1193
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
1194
|
+
},
|
|
1195
|
+
enumerable: false,
|
|
1196
|
+
configurable: true
|
|
1197
|
+
});
|
|
1198
|
+
Object.defineProperty(NimbleToggleButtonDirective.prototype, "contentHidden", {
|
|
1199
|
+
get: function () {
|
|
1200
|
+
return this.elementRef.nativeElement.contentHidden;
|
|
1201
|
+
},
|
|
1202
|
+
// contentHidden property intentionally maps to the content-hidden attribute
|
|
1203
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1204
|
+
set: function (value) {
|
|
1205
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'contentHidden', toBooleanProperty(value));
|
|
1206
|
+
},
|
|
1207
|
+
enumerable: false,
|
|
1208
|
+
configurable: true
|
|
1209
|
+
});
|
|
1210
|
+
Object.defineProperty(NimbleToggleButtonDirective.prototype, "checked", {
|
|
1211
|
+
get: function () {
|
|
1212
|
+
return this.elementRef.nativeElement.checked;
|
|
1213
|
+
},
|
|
1214
|
+
set: function (value) {
|
|
1215
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'checked', toBooleanProperty(value));
|
|
1216
|
+
},
|
|
1217
|
+
enumerable: false,
|
|
1218
|
+
configurable: true
|
|
1219
|
+
});
|
|
1220
|
+
return NimbleToggleButtonDirective;
|
|
1221
|
+
}());
|
|
1222
|
+
NimbleToggleButtonDirective.decorators = [
|
|
1223
|
+
{ type: core.Directive, args: [{
|
|
1224
|
+
selector: 'nimble-toggle-button'
|
|
1225
|
+
},] }
|
|
1226
|
+
];
|
|
1227
|
+
NimbleToggleButtonDirective.ctorParameters = function () { return [
|
|
1228
|
+
{ type: core.Renderer2 },
|
|
1229
|
+
{ type: core.ElementRef }
|
|
1230
|
+
]; };
|
|
1231
|
+
NimbleToggleButtonDirective.propDecorators = {
|
|
1232
|
+
appearance: [{ type: core.Input }],
|
|
1233
|
+
disabled: [{ type: core.Input }],
|
|
1234
|
+
contentHidden: [{ type: core.Input, args: ['content-hidden',] }],
|
|
1235
|
+
checked: [{ type: core.Input }]
|
|
1236
|
+
};
|
|
988
1237
|
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1238
|
+
/**
|
|
1239
|
+
* Extension of Angular's CheckboxControlValueAccessor to target the Nimble toggle button control.
|
|
1240
|
+
*
|
|
1241
|
+
* Directive decorator based on CheckboxControlValueAccessor decorator
|
|
1242
|
+
* https://github.com/angular/angular/blob/bbababe5900ea8f4c8fccd88238f6fe08a2ceb63/packages/forms/src/directives/checkbox_value_accessor.ts#L42
|
|
1243
|
+
*/
|
|
1244
|
+
var NimbleToggleButtonControlValueAccessorDirective = /** @class */ (function (_super) {
|
|
1245
|
+
__extends(NimbleToggleButtonControlValueAccessorDirective, _super);
|
|
1246
|
+
function NimbleToggleButtonControlValueAccessorDirective() {
|
|
1247
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1248
|
+
}
|
|
1249
|
+
return NimbleToggleButtonControlValueAccessorDirective;
|
|
1250
|
+
}(forms.CheckboxControlValueAccessor));
|
|
1251
|
+
NimbleToggleButtonControlValueAccessorDirective.decorators = [
|
|
1252
|
+
{ type: core.Directive, args: [{
|
|
1253
|
+
selector: 'nimble-toggle-button[formControlName],nimble-toggle-button[formControl],nimble-toggle-button[ngModel]',
|
|
1254
|
+
// The following host metadata is duplicated from CheckboxControlValueAccessor
|
|
1255
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
1256
|
+
host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
|
|
1257
|
+
providers: [{
|
|
1258
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
1259
|
+
useExisting: core.forwardRef(function () { return NimbleToggleButtonControlValueAccessorDirective; }),
|
|
1260
|
+
multi: true
|
|
1003
1261
|
}]
|
|
1004
|
-
}] }
|
|
1262
|
+
},] }
|
|
1263
|
+
];
|
|
1005
1264
|
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
args: [{
|
|
1019
|
-
selector: 'nimble-tab-panel'
|
|
1020
|
-
}]
|
|
1021
|
-
}] });
|
|
1265
|
+
var NimbleToggleButtonModule = /** @class */ (function () {
|
|
1266
|
+
function NimbleToggleButtonModule() {
|
|
1267
|
+
}
|
|
1268
|
+
return NimbleToggleButtonModule;
|
|
1269
|
+
}());
|
|
1270
|
+
NimbleToggleButtonModule.decorators = [
|
|
1271
|
+
{ type: core.NgModule, args: [{
|
|
1272
|
+
declarations: [NimbleToggleButtonDirective, NimbleToggleButtonControlValueAccessorDirective],
|
|
1273
|
+
imports: [common.CommonModule],
|
|
1274
|
+
exports: [NimbleToggleButtonDirective, NimbleToggleButtonControlValueAccessorDirective]
|
|
1275
|
+
},] }
|
|
1276
|
+
];
|
|
1022
1277
|
|
|
1023
|
-
|
|
1024
|
-
|
|
1278
|
+
/**
|
|
1279
|
+
* Directive to provide Angular integration for the tree item.
|
|
1280
|
+
*/
|
|
1281
|
+
var NimbleTreeItemDirective = /** @class */ (function () {
|
|
1282
|
+
function NimbleTreeItemDirective(renderer, elementRef) {
|
|
1283
|
+
this.renderer = renderer;
|
|
1284
|
+
this.elementRef = elementRef;
|
|
1285
|
+
this.expandedChange = new core.EventEmitter();
|
|
1286
|
+
}
|
|
1287
|
+
Object.defineProperty(NimbleTreeItemDirective.prototype, "disabled", {
|
|
1288
|
+
get: function () {
|
|
1289
|
+
return this.elementRef.nativeElement.disabled;
|
|
1290
|
+
},
|
|
1291
|
+
set: function (value) {
|
|
1292
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
1293
|
+
},
|
|
1294
|
+
enumerable: false,
|
|
1295
|
+
configurable: true
|
|
1296
|
+
});
|
|
1297
|
+
Object.defineProperty(NimbleTreeItemDirective.prototype, "expanded", {
|
|
1298
|
+
get: function () {
|
|
1299
|
+
return this.elementRef.nativeElement.expanded;
|
|
1300
|
+
},
|
|
1301
|
+
set: function (value) {
|
|
1302
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'expanded', toBooleanProperty(value));
|
|
1303
|
+
},
|
|
1304
|
+
enumerable: false,
|
|
1305
|
+
configurable: true
|
|
1306
|
+
});
|
|
1307
|
+
Object.defineProperty(NimbleTreeItemDirective.prototype, "selected", {
|
|
1308
|
+
get: function () {
|
|
1309
|
+
return this.elementRef.nativeElement.selected;
|
|
1310
|
+
},
|
|
1311
|
+
set: function (value) {
|
|
1312
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'selected', toBooleanProperty(value));
|
|
1313
|
+
// Needed because fast-foundation TreeView sets initial selection with an aria-selected query
|
|
1314
|
+
this.renderer.setAttribute(this.elementRef.nativeElement, 'selected', toBooleanAriaAttribute(value));
|
|
1315
|
+
},
|
|
1316
|
+
enumerable: false,
|
|
1317
|
+
configurable: true
|
|
1318
|
+
});
|
|
1319
|
+
NimbleTreeItemDirective.prototype.onExpandedChange = function ($event) {
|
|
1320
|
+
if ($event.target === this.elementRef.nativeElement) {
|
|
1321
|
+
this.expandedChange.emit(this.expanded);
|
|
1025
1322
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1323
|
+
};
|
|
1324
|
+
return NimbleTreeItemDirective;
|
|
1325
|
+
}());
|
|
1326
|
+
NimbleTreeItemDirective.decorators = [
|
|
1327
|
+
{ type: core.Directive, args: [{
|
|
1328
|
+
selector: 'nimble-tree-item'
|
|
1329
|
+
},] }
|
|
1330
|
+
];
|
|
1331
|
+
NimbleTreeItemDirective.ctorParameters = function () { return [
|
|
1332
|
+
{ type: core.Renderer2 },
|
|
1333
|
+
{ type: core.ElementRef }
|
|
1334
|
+
]; };
|
|
1335
|
+
NimbleTreeItemDirective.propDecorators = {
|
|
1336
|
+
disabled: [{ type: core.Input }],
|
|
1337
|
+
expanded: [{ type: core.Input }],
|
|
1338
|
+
selected: [{ type: core.Input }],
|
|
1339
|
+
expandedChange: [{ type: core.Output }],
|
|
1340
|
+
onExpandedChange: [{ type: core.HostListener, args: ['expanded-change', ['$event'],] }]
|
|
1341
|
+
};
|
|
1039
1342
|
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
args: [{
|
|
1053
|
-
selector: 'nimble-tabs-toolbar'
|
|
1054
|
-
}]
|
|
1055
|
-
}] });
|
|
1343
|
+
var NimbleTreeItemModule = /** @class */ (function () {
|
|
1344
|
+
function NimbleTreeItemModule() {
|
|
1345
|
+
}
|
|
1346
|
+
return NimbleTreeItemModule;
|
|
1347
|
+
}());
|
|
1348
|
+
NimbleTreeItemModule.decorators = [
|
|
1349
|
+
{ type: core.NgModule, args: [{
|
|
1350
|
+
declarations: [NimbleTreeItemDirective],
|
|
1351
|
+
imports: [common.CommonModule],
|
|
1352
|
+
exports: [NimbleTreeItemDirective]
|
|
1353
|
+
},] }
|
|
1354
|
+
];
|
|
1056
1355
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1356
|
+
/**
|
|
1357
|
+
* Directive to provide Angular integration for the tree view.
|
|
1358
|
+
*/
|
|
1359
|
+
var NimbleTreeViewDirective = /** @class */ (function () {
|
|
1360
|
+
function NimbleTreeViewDirective(renderer, elementRef) {
|
|
1361
|
+
this.renderer = renderer;
|
|
1362
|
+
this.elementRef = elementRef;
|
|
1363
|
+
}
|
|
1364
|
+
Object.defineProperty(NimbleTreeViewDirective.prototype, "selectionMode", {
|
|
1365
|
+
get: function () {
|
|
1366
|
+
return this.elementRef.nativeElement.selectionMode;
|
|
1367
|
+
},
|
|
1368
|
+
// selectionMode property intentionally maps to the selection-mode attribute
|
|
1369
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1370
|
+
set: function (value) {
|
|
1371
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'selectionMode', value);
|
|
1372
|
+
},
|
|
1373
|
+
enumerable: false,
|
|
1374
|
+
configurable: true
|
|
1375
|
+
});
|
|
1376
|
+
return NimbleTreeViewDirective;
|
|
1377
|
+
}());
|
|
1378
|
+
NimbleTreeViewDirective.decorators = [
|
|
1379
|
+
{ type: core.Directive, args: [{
|
|
1380
|
+
selector: 'nimble-tree-view'
|
|
1381
|
+
},] }
|
|
1382
|
+
];
|
|
1383
|
+
NimbleTreeViewDirective.ctorParameters = function () { return [
|
|
1384
|
+
{ type: core.Renderer2 },
|
|
1385
|
+
{ type: core.ElementRef }
|
|
1386
|
+
]; };
|
|
1387
|
+
NimbleTreeViewDirective.propDecorators = {
|
|
1388
|
+
selectionMode: [{ type: core.Input, args: ['selection-mode',] }]
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
var NimbleTreeViewModule = /** @class */ (function () {
|
|
1392
|
+
function NimbleTreeViewModule() {
|
|
1393
|
+
}
|
|
1394
|
+
return NimbleTreeViewModule;
|
|
1395
|
+
}());
|
|
1396
|
+
NimbleTreeViewModule.decorators = [
|
|
1397
|
+
{ type: core.NgModule, args: [{
|
|
1398
|
+
declarations: [NimbleTreeViewDirective],
|
|
1399
|
+
imports: [common.CommonModule],
|
|
1400
|
+
exports: [NimbleTreeViewDirective]
|
|
1401
|
+
},] }
|
|
1402
|
+
];
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Immediately processes all updates in queue.
|
|
1406
|
+
*
|
|
1407
|
+
* Useful for synchronously testing Nimble elements. Call this in fakeAsync tests to
|
|
1408
|
+
* immediately resolve tasks which otherwise would require waiting for an animation
|
|
1409
|
+
* frame. This should also be called after every fakeAsync test to clear the internal
|
|
1410
|
+
* process queue and allow subsequent tests to run normally.
|
|
1411
|
+
*/
|
|
1412
|
+
var waitForUpdatesAsync = asyncHelpers.waitForUpdatesAsync;
|
|
1073
1413
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1414
|
+
/*
|
|
1415
|
+
* Public API Surface of nimble-angular
|
|
1416
|
+
*/
|
|
1077
1417
|
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1418
|
+
/**
|
|
1419
|
+
* Generated bundle index. Do not edit.
|
|
1420
|
+
*/
|
|
1081
1421
|
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1422
|
+
Object.defineProperty(exports, 'ButtonAppearance', {
|
|
1423
|
+
enumerable: true,
|
|
1424
|
+
get: function () { return types.ButtonAppearance; }
|
|
1425
|
+
});
|
|
1426
|
+
Object.defineProperty(exports, 'DrawerLocation', {
|
|
1427
|
+
enumerable: true,
|
|
1428
|
+
get: function () { return types$1.DrawerLocation; }
|
|
1429
|
+
});
|
|
1430
|
+
Object.defineProperty(exports, 'DrawerState', {
|
|
1431
|
+
enumerable: true,
|
|
1432
|
+
get: function () { return types$1.DrawerState; }
|
|
1433
|
+
});
|
|
1434
|
+
Object.defineProperty(exports, 'TextFieldType', {
|
|
1435
|
+
enumerable: true,
|
|
1436
|
+
get: function () { return types$2.TextFieldType; }
|
|
1437
|
+
});
|
|
1438
|
+
Object.defineProperty(exports, 'Theme', {
|
|
1439
|
+
enumerable: true,
|
|
1440
|
+
get: function () { return types$3.Theme; }
|
|
1441
|
+
});
|
|
1442
|
+
Object.defineProperty(exports, 'TreeViewSelectionMode', {
|
|
1443
|
+
enumerable: true,
|
|
1444
|
+
get: function () { return types$4.TreeViewSelectionMode; }
|
|
1445
|
+
});
|
|
1446
|
+
Object.defineProperty(exports, 'processUpdates', {
|
|
1447
|
+
enumerable: true,
|
|
1448
|
+
get: function () { return asyncHelpers.processUpdates; }
|
|
1449
|
+
});
|
|
1450
|
+
exports.NimbleButtonDirective = NimbleButtonDirective;
|
|
1451
|
+
exports.NimbleButtonModule = NimbleButtonModule;
|
|
1452
|
+
exports.NimbleCheckboxControlValueAccessorDirective = NimbleCheckboxControlValueAccessorDirective;
|
|
1453
|
+
exports.NimbleCheckboxDirective = NimbleCheckboxDirective;
|
|
1454
|
+
exports.NimbleCheckboxModule = NimbleCheckboxModule;
|
|
1455
|
+
exports.NimbleDrawerDirective = NimbleDrawerDirective;
|
|
1456
|
+
exports.NimbleDrawerModule = NimbleDrawerModule;
|
|
1457
|
+
exports.NimbleListboxOptionDirective = NimbleListboxOptionDirective;
|
|
1458
|
+
exports.NimbleListboxOptionModule = NimbleListboxOptionModule;
|
|
1459
|
+
exports.NimbleMenuDirective = NimbleMenuDirective;
|
|
1460
|
+
exports.NimbleMenuItemDirective = NimbleMenuItemDirective;
|
|
1461
|
+
exports.NimbleMenuItemModule = NimbleMenuItemModule;
|
|
1462
|
+
exports.NimbleMenuModule = NimbleMenuModule;
|
|
1463
|
+
exports.NimbleNumberFieldControlValueAccessorDirective = NimbleNumberFieldControlValueAccessorDirective;
|
|
1464
|
+
exports.NimbleNumberFieldDirective = NimbleNumberFieldDirective;
|
|
1465
|
+
exports.NimbleNumberFieldModule = NimbleNumberFieldModule;
|
|
1466
|
+
exports.NimbleSelectControlValueAccessorDirective = NimbleSelectControlValueAccessorDirective;
|
|
1467
|
+
exports.NimbleSelectDirective = NimbleSelectDirective;
|
|
1468
|
+
exports.NimbleSelectModule = NimbleSelectModule;
|
|
1469
|
+
exports.NimbleTabDirective = NimbleTabDirective;
|
|
1470
|
+
exports.NimbleTabModule = NimbleTabModule;
|
|
1471
|
+
exports.NimbleTabPanelDirective = NimbleTabPanelDirective;
|
|
1472
|
+
exports.NimbleTabPanelModule = NimbleTabPanelModule;
|
|
1473
|
+
exports.NimbleTabsDirective = NimbleTabsDirective;
|
|
1474
|
+
exports.NimbleTabsModule = NimbleTabsModule;
|
|
1475
|
+
exports.NimbleTabsToolbarDirective = NimbleTabsToolbarDirective;
|
|
1476
|
+
exports.NimbleTabsToolbarModule = NimbleTabsToolbarModule;
|
|
1477
|
+
exports.NimbleTextFieldControlValueAccessorDirective = NimbleTextFieldControlValueAccessorDirective;
|
|
1478
|
+
exports.NimbleTextFieldDirective = NimbleTextFieldDirective;
|
|
1479
|
+
exports.NimbleTextFieldModule = NimbleTextFieldModule;
|
|
1480
|
+
exports.NimbleThemeProviderDirective = NimbleThemeProviderDirective;
|
|
1481
|
+
exports.NimbleThemeProviderModule = NimbleThemeProviderModule;
|
|
1482
|
+
exports.NimbleToggleButtonDirective = NimbleToggleButtonDirective;
|
|
1483
|
+
exports.NimbleToggleButtonModule = NimbleToggleButtonModule;
|
|
1484
|
+
exports.NimbleTreeItemDirective = NimbleTreeItemDirective;
|
|
1485
|
+
exports.NimbleTreeItemModule = NimbleTreeItemModule;
|
|
1486
|
+
exports.NimbleTreeViewDirective = NimbleTreeViewDirective;
|
|
1487
|
+
exports.NimbleTreeViewModule = NimbleTreeViewModule;
|
|
1488
|
+
exports.waitForUpdatesAsync = waitForUpdatesAsync;
|
|
1489
|
+
exports["ɵa"] = NimbleToggleButtonControlValueAccessorDirective;
|
|
1113
1490
|
|
|
1114
|
-
|
|
1491
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1115
1492
|
|
|
1116
|
-
}))
|
|
1493
|
+
}));
|
|
1117
1494
|
//# sourceMappingURL=ni-nimble-angular.umd.js.map
|