@3t-transform/threeteeui 0.0.3 → 0.0.5
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/dist/cjs/{index-eb8fc323.js → index-8a7479e4.js} +22 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/qualifications-list.cjs.entry.js +7149 -0
- package/dist/cjs/toolbar-02115550.js +864 -0
- package/dist/cjs/tttx-icon.cjs.entry.js +21 -0
- package/dist/cjs/tttx-page.cjs.entry.js +59 -58
- package/dist/cjs/tttx-worksheet.cjs.entry.js +4 -3
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/cjs/{toolbar-656be6e6.js → ui.popover-27780a1d.js} +9546 -10229
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.css +89 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.js +59 -0
- package/dist/collection/components/components/tttx-icon/tttx-icon.stories.js +40 -0
- package/dist/collection/components/patterns/qualifications-list/qualifications-list.js +32 -0
- package/dist/collection/components/patterns/qualifications-list/qualifications-list.stories.js +7 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/qualifications-list.d.ts +11 -0
- package/dist/components/qualifications-list.js +7162 -0
- package/dist/components/tttx-icon.d.ts +11 -0
- package/dist/components/tttx-icon.js +37 -0
- package/dist/components/tttx-page.js +2 -1
- package/dist/components/tttx-worksheet.js +1 -1
- package/dist/components/tttx-worksheet2.js +61 -33431
- package/dist/{esm/toolbar-cede4385.js → components/ui.popover.js} +9447 -10229
- package/dist/esm/{index-4c11a593.js → index-854ff56f.js} +22 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/qualifications-list.entry.js +7145 -0
- package/dist/esm/toolbar-b147a3aa.js +862 -0
- package/dist/esm/tttx-icon.entry.js +17 -0
- package/dist/esm/tttx-page.entry.js +3 -2
- package/dist/esm/tttx-worksheet.entry.js +3 -2
- package/dist/esm/tttx.js +2 -2
- package/dist/esm/ui.popover-0c8f8d79.js +33449 -0
- package/dist/tttx/p-4f4963aa.entry.js +1 -0
- package/dist/tttx/p-69ca02f6.entry.js +1 -0
- package/dist/tttx/p-7244abd4.entry.js +1 -0
- package/dist/tttx/p-7eb8146c.entry.js +1 -0
- package/dist/tttx/p-81cad444.js +1 -0
- package/dist/tttx/p-955d89ac.js +1 -0
- package/dist/tttx/p-ddfeb0ba.js +2 -0
- package/dist/tttx/tttx.css +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/components/tttx-icon/tttx-icon.d.ts +5 -0
- package/dist/types/components/components/tttx-icon/tttx-icon.stories.d.ts +24 -0
- package/dist/types/components/patterns/qualifications-list/qualifications-list.d.ts +6 -0
- package/dist/types/components/patterns/qualifications-list/qualifications-list.stories.d.ts +5 -0
- package/dist/types/components.d.ts +30 -0
- package/package.json +2 -3
- package/dist/tttx/p-2681b874.js +0 -2
- package/dist/tttx/p-285977b3.entry.js +0 -1
- package/dist/tttx/p-997a8339.entry.js +0 -1
- package/dist/tttx/p-d038fe18.js +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-8a7479e4.js');
|
|
6
|
+
|
|
7
|
+
const tttxIconCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");@import url(\"https://fonts.googleapis.com/css2?family=Material+Icons+Round\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.material-icons-round{vertical-align:-6px;color:var(--ui-color-lt)}";
|
|
8
|
+
|
|
9
|
+
const TttxIcon = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.name = undefined;
|
|
13
|
+
this.color = undefined;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h("span", { class: "material-icons-round", style: { color: this.color } }, this.name));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
TttxIcon.style = tttxIconCss;
|
|
20
|
+
|
|
21
|
+
exports.tttx_icon = TttxIcon;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const toolbar = require('./toolbar-
|
|
5
|
+
const index = require('./index-8a7479e4.js');
|
|
6
|
+
const toolbar = require('./toolbar-02115550.js');
|
|
7
|
+
const ui_popover = require('./ui.popover-27780a1d.js');
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* DevExtreme (esm/ui/button_group.js)
|
|
@@ -20,14 +21,14 @@ var BUTTON_GROUP_FIRST_ITEM_CLASS = BUTTON_GROUP_CLASS + "-first-item";
|
|
|
20
21
|
var BUTTON_GROUP_LAST_ITEM_CLASS = BUTTON_GROUP_CLASS + "-last-item";
|
|
21
22
|
var BUTTON_GROUP_ITEM_HAS_WIDTH = BUTTON_GROUP_ITEM_CLASS + "-has-width";
|
|
22
23
|
var SHAPE_STANDARD_CLASS = "dx-shape-standard";
|
|
23
|
-
var ButtonCollection =
|
|
24
|
+
var ButtonCollection = ui_popover.CollectionWidget.inherit({
|
|
24
25
|
_initTemplates() {
|
|
25
26
|
this.callBase();
|
|
26
27
|
this._templateManager.addDefaultTemplates({
|
|
27
|
-
item: new
|
|
28
|
+
item: new ui_popover.BindableTemplate(($container, data, model) => {
|
|
28
29
|
this._prepareItemStyles($container);
|
|
29
30
|
var template = this.option("buttonTemplate");
|
|
30
|
-
this._createComponent($container,
|
|
31
|
+
this._createComponent($container, ui_popover.Button, ui_popover.extend({}, model, data, this._getBasicButtonOptions(), {
|
|
31
32
|
_templateData: this._hasCustomTemplate(template) ? model : {},
|
|
32
33
|
template: model.template || template
|
|
33
34
|
}));
|
|
@@ -44,12 +45,12 @@ var ButtonCollection = toolbar.CollectionWidget.inherit({
|
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
_getDefaultOptions: function() {
|
|
47
|
-
return
|
|
48
|
+
return ui_popover.extend(this.callBase(), {
|
|
48
49
|
itemTemplateProperty: null
|
|
49
50
|
})
|
|
50
51
|
},
|
|
51
52
|
_hasCustomTemplate(template) {
|
|
52
|
-
return
|
|
53
|
+
return ui_popover.isFunction(template) || this.option("integrationOptions.templates")[template]
|
|
53
54
|
},
|
|
54
55
|
_prepareItemStyles($item) {
|
|
55
56
|
var itemIndex = $item.data("dxItemIndex");
|
|
@@ -59,11 +60,11 @@ var ButtonCollection = toolbar.CollectionWidget.inherit({
|
|
|
59
60
|
$item.addClass(SHAPE_STANDARD_CLASS);
|
|
60
61
|
},
|
|
61
62
|
_renderItemContent(args) {
|
|
62
|
-
args.container =
|
|
63
|
+
args.container = ui_popover.$(args.container).parent();
|
|
63
64
|
return this.callBase(args)
|
|
64
65
|
},
|
|
65
66
|
_renderItemContentByNode: function(args, $node) {
|
|
66
|
-
args.container =
|
|
67
|
+
args.container = ui_popover.$(args.container.children().first());
|
|
67
68
|
return this.callBase(args, $node)
|
|
68
69
|
},
|
|
69
70
|
_focusTarget() {
|
|
@@ -84,9 +85,9 @@ var ButtonCollection = toolbar.CollectionWidget.inherit({
|
|
|
84
85
|
this.callBase(e);
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
|
-
var ButtonGroup =
|
|
88
|
+
var ButtonGroup = ui_popover.Widget.inherit({
|
|
88
89
|
_getDefaultOptions() {
|
|
89
|
-
return
|
|
90
|
+
return ui_popover.extend(this.callBase(), {
|
|
90
91
|
hoverStateEnabled: true,
|
|
91
92
|
focusStateEnabled: true,
|
|
92
93
|
selectionMode: "single",
|
|
@@ -123,7 +124,7 @@ var ButtonGroup = toolbar.Widget.inherit({
|
|
|
123
124
|
});
|
|
124
125
|
},
|
|
125
126
|
_renderButtons() {
|
|
126
|
-
var $buttons =
|
|
127
|
+
var $buttons = ui_popover.$("<div>").addClass(BUTTON_GROUP_WRAPPER_CLASS).appendTo(this.$element());
|
|
127
128
|
var selectedItems = this.option("selectedItems");
|
|
128
129
|
var options = {
|
|
129
130
|
selectionMode: this.option("selectionMode"),
|
|
@@ -142,7 +143,7 @@ var ButtonGroup = toolbar.Widget.inherit({
|
|
|
142
143
|
selectionRequired: false,
|
|
143
144
|
onItemRendered: e => {
|
|
144
145
|
var width = this.option("width");
|
|
145
|
-
|
|
146
|
+
ui_popover.isDefined(width) && ui_popover.$(e.itemElement).addClass(BUTTON_GROUP_ITEM_HAS_WIDTH);
|
|
146
147
|
},
|
|
147
148
|
onSelectionChanged: e => {
|
|
148
149
|
this._syncSelectionOptions();
|
|
@@ -152,7 +153,7 @@ var ButtonGroup = toolbar.Widget.inherit({
|
|
|
152
153
|
this._itemClickAction(e);
|
|
153
154
|
}
|
|
154
155
|
};
|
|
155
|
-
if (
|
|
156
|
+
if (ui_popover.isDefined(selectedItems) && selectedItems.length) {
|
|
156
157
|
options.selectedItems = selectedItems;
|
|
157
158
|
}
|
|
158
159
|
this._buttonsCollection = this._createComponent($buttons, ButtonCollection, options);
|
|
@@ -192,7 +193,7 @@ var ButtonGroup = toolbar.Widget.inherit({
|
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
});
|
|
195
|
-
|
|
196
|
+
ui_popover.registerComponent("dxButtonGroup", ButtonGroup);
|
|
196
197
|
|
|
197
198
|
/**
|
|
198
199
|
* DevExtreme (esm/ui/drop_down_editor/utils.js)
|
|
@@ -203,8 +204,8 @@ toolbar.registerComponent("dxButtonGroup", ButtonGroup);
|
|
|
203
204
|
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
|
|
204
205
|
*/
|
|
205
206
|
var getElementWidth = function($element) {
|
|
206
|
-
if (
|
|
207
|
-
return
|
|
207
|
+
if (ui_popover.hasWindow()) {
|
|
208
|
+
return ui_popover.getOuterWidth($element)
|
|
208
209
|
}
|
|
209
210
|
};
|
|
210
211
|
var getSizeValue = function(size) {
|
|
@@ -234,9 +235,9 @@ var DROP_DOWN_BUTTON_POPUP_WRAPPER_CLASS = "dx-dropdownbutton-popup-wrapper";
|
|
|
234
235
|
var DROP_DOWN_EDITOR_OVERLAY_CLASS = "dx-dropdowneditor-overlay";
|
|
235
236
|
var DX_BUTTON_TEXT_CLASS = "dx-button-text";
|
|
236
237
|
var DX_ICON_RIGHT_CLASS = "dx-icon-right";
|
|
237
|
-
var DropDownButton =
|
|
238
|
+
var DropDownButton = ui_popover.Widget.inherit({
|
|
238
239
|
_getDefaultOptions() {
|
|
239
|
-
return
|
|
240
|
+
return ui_popover.extend(this.callBase(), {
|
|
240
241
|
itemTemplate: "item",
|
|
241
242
|
keyExpr: "this",
|
|
242
243
|
displayExpr: void 0,
|
|
@@ -244,7 +245,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
244
245
|
selectedItemKey: null,
|
|
245
246
|
stylingMode: "outlined",
|
|
246
247
|
deferRendering: true,
|
|
247
|
-
noDataText:
|
|
248
|
+
noDataText: ui_popover.messageLocalization.format("dxCollectionWidget-noDataText"),
|
|
248
249
|
useSelectMode: false,
|
|
249
250
|
splitButton: false,
|
|
250
251
|
showArrowIcon: true,
|
|
@@ -269,7 +270,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
269
270
|
},
|
|
270
271
|
_setOptionsByReference() {
|
|
271
272
|
this.callBase();
|
|
272
|
-
|
|
273
|
+
ui_popover.extend(this._optionsByReference, {
|
|
273
274
|
selectedItem: true
|
|
274
275
|
});
|
|
275
276
|
},
|
|
@@ -287,10 +288,10 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
287
288
|
},
|
|
288
289
|
_initTemplates() {
|
|
289
290
|
this._templateManager.addDefaultTemplates({
|
|
290
|
-
content: new
|
|
291
|
-
var $popupContent =
|
|
292
|
-
var $listContainer =
|
|
293
|
-
this._list = this._createComponent($listContainer,
|
|
291
|
+
content: new ui_popover.FunctionTemplate(options => {
|
|
292
|
+
var $popupContent = ui_popover.$(options.container);
|
|
293
|
+
var $listContainer = ui_popover.$("<div>").appendTo($popupContent);
|
|
294
|
+
this._list = this._createComponent($listContainer, ui_popover.ListSearch, this._listOptions());
|
|
294
295
|
this._list.registerKeyHandler("escape", this._escHandler.bind(this));
|
|
295
296
|
this._list.registerKeyHandler("tab", this._escHandler.bind(this));
|
|
296
297
|
this._list.registerKeyHandler("leftArrow", this._escHandler.bind(this));
|
|
@@ -301,8 +302,8 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
301
302
|
},
|
|
302
303
|
_itemsToDataSource: function(value) {
|
|
303
304
|
if (!this._dataSource) {
|
|
304
|
-
this._dataSource = new
|
|
305
|
-
store: new
|
|
305
|
+
this._dataSource = new ui_popover.DataSource({
|
|
306
|
+
store: new ui_popover.ArrayStore({
|
|
306
307
|
key: this._getKey(),
|
|
307
308
|
data: value
|
|
308
309
|
}),
|
|
@@ -314,24 +315,24 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
314
315
|
var _this$_dataSource;
|
|
315
316
|
var keyExpr = this.option("keyExpr");
|
|
316
317
|
var storeKey = null === (_this$_dataSource = this._dataSource) || void 0 === _this$_dataSource ? void 0 : _this$_dataSource.key();
|
|
317
|
-
return
|
|
318
|
+
return ui_popover.isDefined(storeKey) && (!ui_popover.isDefined(keyExpr) || "this" === keyExpr) ? storeKey : keyExpr
|
|
318
319
|
},
|
|
319
320
|
_compileKeyGetter() {
|
|
320
|
-
this._keyGetter =
|
|
321
|
+
this._keyGetter = ui_popover.compileGetter(this._getKey());
|
|
321
322
|
},
|
|
322
323
|
_compileDisplayGetter() {
|
|
323
|
-
this._displayGetter =
|
|
324
|
+
this._displayGetter = ui_popover.compileGetter(this.option("displayExpr"));
|
|
324
325
|
},
|
|
325
326
|
_initMarkup() {
|
|
326
327
|
this.callBase();
|
|
327
328
|
this.$element().addClass(DROP_DOWN_BUTTON_CLASS);
|
|
328
329
|
this._renderButtonGroup();
|
|
329
330
|
this._updateArrowClass();
|
|
330
|
-
if (
|
|
331
|
+
if (ui_popover.isDefined(this.option("selectedItemKey"))) {
|
|
331
332
|
this._loadSelectedItem().done(this._updateActionButton.bind(this));
|
|
332
333
|
}
|
|
333
334
|
},
|
|
334
|
-
_renderFocusTarget:
|
|
335
|
+
_renderFocusTarget: ui_popover.noop,
|
|
335
336
|
_render() {
|
|
336
337
|
if (!this.option("deferRendering") || this.option("opened")) {
|
|
337
338
|
this._renderPopup();
|
|
@@ -347,7 +348,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
347
348
|
_loadSelectedItem() {
|
|
348
349
|
var _this$_loadSingleDefe;
|
|
349
350
|
null === (_this$_loadSingleDefe = this._loadSingleDeferred) || void 0 === _this$_loadSingleDefe ? void 0 : _this$_loadSingleDefe.reject();
|
|
350
|
-
var d = new
|
|
351
|
+
var d = new ui_popover.Deferred;
|
|
351
352
|
if (this._list && void 0 !== this._lastSelectedItemData) {
|
|
352
353
|
var cachedResult = this.option("useSelectMode") ? this._list.option("selectedItem") : this._lastSelectedItemData;
|
|
353
354
|
return d.resolve(cachedResult)
|
|
@@ -447,12 +448,12 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
447
448
|
text: text,
|
|
448
449
|
icon: icon
|
|
449
450
|
} = _ref4;
|
|
450
|
-
var $firstIcon =
|
|
451
|
-
var $textContainer = text ?
|
|
452
|
-
var $secondIcon =
|
|
453
|
-
|
|
451
|
+
var $firstIcon = ui_popover.getImageContainer(icon);
|
|
452
|
+
var $textContainer = text ? ui_popover.$("<span>").text(text).addClass(DX_BUTTON_TEXT_CLASS) : void 0;
|
|
453
|
+
var $secondIcon = ui_popover.getImageContainer("spindown").addClass(DX_ICON_RIGHT_CLASS);
|
|
454
|
+
ui_popover.$(buttonContent).append($firstIcon, $textContainer, $secondIcon);
|
|
454
455
|
};
|
|
455
|
-
return
|
|
456
|
+
return ui_popover.extend({
|
|
456
457
|
items: this._getButtonGroupItems(),
|
|
457
458
|
onItemClick: this._buttonGroupItemClick.bind(this),
|
|
458
459
|
width: "100%",
|
|
@@ -471,22 +472,22 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
471
472
|
var $content = this._popup.$content();
|
|
472
473
|
var template = this._getTemplateByOption("dropDownContentTemplate");
|
|
473
474
|
$content.empty();
|
|
474
|
-
this._popupContentId = "dx-" + new
|
|
475
|
+
this._popupContentId = "dx-" + new ui_popover.Guid;
|
|
475
476
|
this.setAria("id", this._popupContentId, $content);
|
|
476
477
|
return template.render({
|
|
477
|
-
container:
|
|
478
|
+
container: ui_popover.getPublicElement($content),
|
|
478
479
|
model: this.option("items") || this._dataSource
|
|
479
480
|
})
|
|
480
481
|
},
|
|
481
482
|
_popupOptions() {
|
|
482
483
|
var horizontalAlignment = this.option("rtlEnabled") ? "right" : "left";
|
|
483
|
-
return
|
|
484
|
+
return ui_popover.extend({
|
|
484
485
|
dragEnabled: false,
|
|
485
486
|
focusStateEnabled: false,
|
|
486
487
|
deferRendering: this.option("deferRendering"),
|
|
487
488
|
hideOnOutsideClick: e => {
|
|
488
489
|
var $element = this.$element();
|
|
489
|
-
var $buttonClicked =
|
|
490
|
+
var $buttonClicked = ui_popover.$(e.target).closest(".".concat(DROP_DOWN_BUTTON_CLASS));
|
|
490
491
|
return !$buttonClicked.is($element)
|
|
491
492
|
},
|
|
492
493
|
showTitle: false,
|
|
@@ -531,7 +532,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
531
532
|
hoverStateEnabled: this.option("hoverStateEnabled"),
|
|
532
533
|
useItemTextAsTitle: this.option("useItemTextAsTitle"),
|
|
533
534
|
onContentReady: () => this._fireContentReadyAction(),
|
|
534
|
-
selectedItemKeys:
|
|
535
|
+
selectedItemKeys: ui_popover.isDefined(selectedItemKey) && useSelectMode ? [selectedItemKey] : [],
|
|
535
536
|
grouped: this.option("grouped"),
|
|
536
537
|
groupTemplate: this.option("groupTemplate"),
|
|
537
538
|
keyExpr: this._getKey(),
|
|
@@ -571,9 +572,9 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
571
572
|
return true
|
|
572
573
|
},
|
|
573
574
|
_renderPopup() {
|
|
574
|
-
var $popup =
|
|
575
|
+
var $popup = ui_popover.$("<div>");
|
|
575
576
|
this.$element().append($popup);
|
|
576
|
-
this._popup = this._createComponent($popup,
|
|
577
|
+
this._popup = this._createComponent($popup, ui_popover.Popup, this._popupOptions());
|
|
577
578
|
this._popup.$content().addClass(DROP_DOWN_BUTTON_CONTENT);
|
|
578
579
|
this._popup.$wrapper().addClass(DROP_DOWN_BUTTON_POPUP_WRAPPER_CLASS);
|
|
579
580
|
this._popup.on("hiding", this._popupHidingHandler.bind(this));
|
|
@@ -585,7 +586,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
585
586
|
this._setAriaExpanded(false);
|
|
586
587
|
},
|
|
587
588
|
_popupOptionChanged: function(args) {
|
|
588
|
-
var options =
|
|
589
|
+
var options = ui_popover.Widget.getOptionsFromContainer(args);
|
|
589
590
|
this._setPopupOption(options);
|
|
590
591
|
var optionsKeys = Object.keys(options);
|
|
591
592
|
if (-1 !== optionsKeys.indexOf("width") || -1 !== optionsKeys.indexOf("height")) {
|
|
@@ -610,11 +611,11 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
610
611
|
this.setAria({
|
|
611
612
|
expanded: value,
|
|
612
613
|
owns: value ? this._popupContentId : void 0
|
|
613
|
-
},
|
|
614
|
+
}, ui_popover.$(ariaElement));
|
|
614
615
|
});
|
|
615
616
|
},
|
|
616
617
|
_renderButtonGroup() {
|
|
617
|
-
var $buttonGroup = this._buttonGroup && this._buttonGroup.$element() ||
|
|
618
|
+
var $buttonGroup = this._buttonGroup && this._buttonGroup.$element() || ui_popover.$("<div>");
|
|
618
619
|
if (!this._buttonGroup) {
|
|
619
620
|
this.$element().append($buttonGroup);
|
|
620
621
|
}
|
|
@@ -649,15 +650,15 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
649
650
|
this._list && this._list.option(name, value);
|
|
650
651
|
},
|
|
651
652
|
_getDisplayValue(item) {
|
|
652
|
-
var isPrimitiveItem = !
|
|
653
|
+
var isPrimitiveItem = !ui_popover.isPlainObject(item);
|
|
653
654
|
var displayValue = isPrimitiveItem ? item : this._displayGetter(item);
|
|
654
|
-
return !
|
|
655
|
+
return !ui_popover.isPlainObject(displayValue) ? String(ui_popover.ensureDefined(displayValue, "")) : ""
|
|
655
656
|
},
|
|
656
657
|
_updateActionButton(selectedItem) {
|
|
657
658
|
if (this.option("useSelectMode")) {
|
|
658
659
|
this.option({
|
|
659
660
|
text: this._getDisplayValue(selectedItem),
|
|
660
|
-
icon:
|
|
661
|
+
icon: ui_popover.isPlainObject(selectedItem) ? selectedItem.icon : void 0
|
|
661
662
|
});
|
|
662
663
|
}
|
|
663
664
|
this._setOptionWithoutOptionChange("selectedItem", selectedItem);
|
|
@@ -668,7 +669,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
668
669
|
this._popup && this._popup.$element().remove();
|
|
669
670
|
},
|
|
670
671
|
_selectedItemKeyChanged(value) {
|
|
671
|
-
this._setListOption("selectedItemKeys", this.option("useSelectMode") &&
|
|
672
|
+
this._setListOption("selectedItemKeys", this.option("useSelectMode") && ui_popover.isDefined(value) ? [value] : []);
|
|
672
673
|
var previousItem = this.option("selectedItem");
|
|
673
674
|
this._loadSelectedItem().done(selectedItem => {
|
|
674
675
|
this._updateActionButton(selectedItem);
|
|
@@ -687,14 +688,14 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
687
688
|
} = _ref5;
|
|
688
689
|
var newConfig = {};
|
|
689
690
|
newConfig[name] = value;
|
|
690
|
-
this._buttonGroup.option("items[0]",
|
|
691
|
+
this._buttonGroup.option("items[0]", ui_popover.extend({}, this._actionButtonConfig(), newConfig));
|
|
691
692
|
this._popup && this._popup.repaint();
|
|
692
693
|
},
|
|
693
694
|
_selectModeChanged(value) {
|
|
694
695
|
if (value) {
|
|
695
696
|
this._setListOption("selectionMode", "single");
|
|
696
697
|
var selectedItemKey = this.option("selectedItemKey");
|
|
697
|
-
this._setListOption("selectedItemKeys",
|
|
698
|
+
this._setListOption("selectedItemKeys", ui_popover.isDefined(selectedItemKey) ? [selectedItemKey] : []);
|
|
698
699
|
this._selectedItemKeyChanged(this.option("selectedItemKey"));
|
|
699
700
|
} else {
|
|
700
701
|
this._setListOption("selectionMode", "none");
|
|
@@ -711,7 +712,7 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
711
712
|
var selectedItemKey = this.option("selectedItemKey");
|
|
712
713
|
this._setListOption("selectedItem", null);
|
|
713
714
|
this._setWidgetOption("_list", [optionName]);
|
|
714
|
-
if (
|
|
715
|
+
if (ui_popover.isDefined(selectedItemKey)) {
|
|
715
716
|
this._loadSelectedItem().done(selectedItem => {
|
|
716
717
|
this._setListOption("selectedItemKeys", [selectedItemKey]);
|
|
717
718
|
this._setListOption("selectedItem", selectedItem);
|
|
@@ -842,8 +843,8 @@ var DropDownButton = toolbar.Widget.inherit({
|
|
|
842
843
|
this.callBase(args);
|
|
843
844
|
}
|
|
844
845
|
}
|
|
845
|
-
}).include(
|
|
846
|
-
|
|
846
|
+
}).include(ui_popover.DataHelperMixin);
|
|
847
|
+
ui_popover.registerComponent("dxDropDownButton", DropDownButton);
|
|
847
848
|
|
|
848
849
|
const tttxPageCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.page{background-color:#F0F0F0;width:100%;height:100%}.page__platform-bar.dx-toolbar{position:fixed;top:0px;left:0px;right:0px;background-color:#142748;color:#ffffff;font-size:24px;padding:0 8px}.page__title-bar__container,.page__title-bar__container--large,.page__title-bar__container--medium,.page__title-bar__container--small{position:fixed;top:52px;left:0px;right:0px}.page__title-bar__container .dx-toolbar,.page__title-bar__container--large .dx-toolbar,.page__title-bar__container--medium .dx-toolbar,.page__title-bar__container--small .dx-toolbar{color:#212121;background-color:#F0F0F0;font-size:24px}.page__title-bar__container,.page__title-bar__container--medium,.page__title-bar__container--small{margin:0px auto}.page__title-bar__container--large{margin:0px 16px}.page__title-bar__container--medium{width:900px}.page__title-bar__container--small{width:600px}.page__title-bar__after-container__label{font-size:14px;color:#757575;font-weight:300}.page__title-bar__after-container__value{font-size:14px;color:#111111;font-weight:400;margin:0 10px 0 0}.page__platform-bar__button .dx-button-mode-text .dx-icon{color:white}.page__platform-bar__button__dropdown-options .dx-dropdownbutton-content .dx-list .dx-list-item:last-of-type::before{width:90%;margin:auto 5%;height:1px;content:\"\";position:absolute;background:grey}";
|
|
849
850
|
|
|
@@ -894,7 +895,7 @@ const TttxPage = class {
|
|
|
894
895
|
},
|
|
895
896
|
{
|
|
896
897
|
location: 'after',
|
|
897
|
-
widget:
|
|
898
|
+
widget: ui_popover.Button,
|
|
898
899
|
options: {
|
|
899
900
|
text: 'help',
|
|
900
901
|
icon: 'help',
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const toolbar = require('./toolbar-
|
|
5
|
+
const index = require('./index-8a7479e4.js');
|
|
6
|
+
const toolbar = require('./toolbar-02115550.js');
|
|
7
|
+
const ui_popover = require('./ui.popover-27780a1d.js');
|
|
7
8
|
|
|
8
9
|
const tttxWorksheetCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto&display=swap\");*{box-sizing:border-box}.flex-start{justify-content:start}.flex-end{justify-content:end}.flex-centre{justify-content:center}[class^=col-]{display:flex;padding-left:8px !important;padding-right:8px !important}h1,h2,h3,h4,h5,h6,p,label,small{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p,label{display:block}*{font-family:\"Roboto\", sans-serif}html,body{font-weight:normal;font-size:16px}h1{font-weight:700;font-size:24px}h2{font-weight:700;font-size:20px}h3{font-weight:700;font-size:18px}h4{font-weight:normal;font-size:14px;text-transform:uppercase}button{font-weight:500;font-size:14px;text-transform:uppercase}small{font-weight:normal;font-size:14px}label{font-weight:700;font-size:16px}:host{display:block}.worksheet__container,.worksheet__container--large,.worksheet__container--medium,.worksheet__container--small{position:absolute;top:104px;bottom:8px;left:0px;right:0px;overflow:auto;background-color:#ffffff;clear:both}.worksheet__container,.worksheet__container--medium,.worksheet__container--small,.worksheet__footer--medium,.worksheet__footer--small{margin:0px auto}.worksheet__container--large{margin:0px 16px}.worksheet__container--medium{width:900px}.worksheet__container--small{width:600px}.worksheet__footer--medium.dx-toolbar,.worksheet__footer--small.dx-toolbar{position:fixed;bottom:0px;left:0px;right:0px;padding:0 8px}.worksheet__footer--medium.dx-toolbar{width:900px}.worksheet__footer--small.dx-toolbar{width:600px}";
|
|
9
10
|
|
|
@@ -29,7 +30,7 @@ const TttxWorksheet = class {
|
|
|
29
30
|
items: [
|
|
30
31
|
{
|
|
31
32
|
location: 'after',
|
|
32
|
-
widget:
|
|
33
|
+
widget: ui_popover.Button,
|
|
33
34
|
options: {
|
|
34
35
|
text: 'save'
|
|
35
36
|
}
|
package/dist/cjs/tttx.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-8a7479e4.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["tttx-
|
|
18
|
+
return index.bootstrapLazy([["tttx-page.cjs",[[4,"tttx-page",{"appName":[1,"app-name"],"pageTitle":[1,"page-title"],"lastUpdated":[1,"last-updated"],"manageAccountsUrl":[1,"manage-accounts-url"],"logoutUrl":[1,"logout-url"],"pageSize":[1,"page-size"],"helpUrl":[1,"help-url"]}]]],["qualifications-list.cjs",[[0,"qualifications-list"]]],["tttx-icon.cjs",[[0,"tttx-icon",{"name":[1],"color":[1]}]]],["tttx-worksheet.cjs",[[4,"tttx-worksheet",{"pageSize":[1,"page-size"]}]]]], options);
|
|
19
19
|
});
|