@pacem/pacem-ui 2.0.0-chebyshev → 2.0.0-euler
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/browser/pacem-ui.js +43 -10
- package/dist/browser/pacem-ui.js.map +1 -1
- package/dist/browser/pacem-ui.min.js +2 -2
- package/dist/bundle/pacem-ui.min.mjs +39 -38
- package/dist/bundle/pacem-ui.mjs +62 -27
- package/dist/bundle/pacem-ui.mjs.map +3 -3
- package/dist/docs/pacem-ui.json +1 -1
- package/dist/esm/adapter.js +1 -1
- package/dist/esm/anchor.js +3 -2
- package/dist/esm/balloon.js +5 -1
- package/dist/esm/binder.js +1 -1
- package/dist/esm/blade.js +1 -1
- package/dist/esm/bottom-sheet.js +2 -2
- package/dist/esm/button.js +3 -2
- package/dist/esm/buttonset.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/collapse.js +1 -1
- package/dist/esm/dialog-abstractions.js +1 -1
- package/dist/esm/dialog.js +1 -1
- package/dist/esm/divider.js +1 -1
- package/dist/esm/icon.js +1 -1
- package/dist/esm/image.js +1 -1
- package/dist/esm/index-components-ui.js +1 -1
- package/dist/esm/index-components.js +1 -1
- package/dist/esm/index-iife.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/infinite-scroller.js +1 -1
- package/dist/esm/iterative.js +1 -1
- package/dist/esm/lightbox-abstractions.js +1 -1
- package/dist/esm/lightbox.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/markdown-svc.js +23 -3
- package/dist/esm/markdown.js +1 -1
- package/dist/esm/marquee.js +1 -1
- package/dist/esm/media-query.js +1 -1
- package/dist/esm/menu.js +1 -1
- package/dist/esm/pager.js +1 -1
- package/dist/esm/picture.js +1 -1
- package/dist/esm/progressbar.js +5 -2
- package/dist/esm/sidebar.js +5 -2
- package/dist/esm/slideshow.js +1 -1
- package/dist/esm/social-twitter.js +1 -1
- package/dist/esm/sticky-header.js +1 -1
- package/dist/esm/tabs.js +1 -1
- package/dist/esm/ticker.js +1 -1
- package/dist/esm/toast.js +3 -2
- package/dist/esm/toc.js +1 -1
- package/dist/esm/tuner.js +1 -1
- package/dist/esm/types.js +1 -1
- package/dist/esm/vibration.js +1 -1
- package/dist/esm/view.js +1 -1
- package/dist/esm/window.js +1 -1
- package/package.json +1 -1
- package/typings/index.d.ts +7 -1
package/dist/bundle/pacem-ui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @pacem/pacem-ui v2.0.0-
|
|
2
|
+
* @pacem/pacem-ui v2.0.0-euler (https://js.pacem.it)
|
|
3
3
|
* Pacem (https://pacem.it)
|
|
4
4
|
* Licensed under Apache-2.0
|
|
5
5
|
*/
|
|
@@ -585,7 +585,8 @@ __decorate2([
|
|
|
585
585
|
], PacemAnchorElement.prototype, "router", void 0);
|
|
586
586
|
PacemAnchorElement = __decorate2([
|
|
587
587
|
CustomElement2({
|
|
588
|
-
tagName: P2 + "-a"
|
|
588
|
+
tagName: P2 + "-a",
|
|
589
|
+
modifiers: ["hoverable", "focusable", "pressable"]
|
|
589
590
|
})
|
|
590
591
|
], PacemAnchorElement);
|
|
591
592
|
|
|
@@ -1121,6 +1122,9 @@ var PacemBalloonElement = class PacemBalloonElement2 extends Components3.PacemEl
|
|
|
1121
1122
|
}
|
|
1122
1123
|
}
|
|
1123
1124
|
};
|
|
1125
|
+
__decorate3([
|
|
1126
|
+
ViewChild2(`.${PCSS3}-balloon-face`, true, false)
|
|
1127
|
+
], PacemBalloonElement.prototype, "_face", void 0);
|
|
1124
1128
|
__decorate3([
|
|
1125
1129
|
ViewChild2(`.${PCSS3}-balloon`)
|
|
1126
1130
|
], PacemBalloonElement.prototype, "_container", void 0);
|
|
@@ -1141,6 +1145,7 @@ PacemBalloonElement = __decorate3([
|
|
|
1141
1145
|
tagName: P3 + "-balloon",
|
|
1142
1146
|
shadow: true,
|
|
1143
1147
|
template: `<${P3}-resize target="{{ :host.target }}" disabled="true" watch-position="true" on-${Components3.ResizeEventName}=":host._onLayoutChange($event)"></${P3}-resize>
|
|
1148
|
+
<div class="${PCSS3}-balloon-face"></div>
|
|
1144
1149
|
<div class="${PCSS3}-balloon"><${P3}-resize on-${Components3.ResizeEventName}=":host._onLayoutChange($event)" disabled="true" content><slot></slot></${P3}-resize></div>
|
|
1145
1150
|
<div class="corner top-left" part="corner-topleft"></div><div class="corner bottom-left" part="corner-bottomleft"></div><div class="corner top-right" part="corner-topright"></div><div class="corner bottom-right" part="corner-bottomright"></div>`
|
|
1146
1151
|
})
|
|
@@ -2165,7 +2170,7 @@ __decorate6([
|
|
|
2165
2170
|
ViewChild3(P6 + "-resize[handle]")
|
|
2166
2171
|
], PacemBottomSheetElement.prototype, "_handleResizer", void 0);
|
|
2167
2172
|
__decorate6([
|
|
2168
|
-
ViewChild3(P6 + "-panel.bottom-sheet")
|
|
2173
|
+
ViewChild3(P6 + "-panel.bottom-sheet", true)
|
|
2169
2174
|
], PacemBottomSheetElement.prototype, "_sheet", void 0);
|
|
2170
2175
|
__decorate6([
|
|
2171
2176
|
Watch6({ emit: false, converter: PropertyConverters6.Boolean })
|
|
@@ -2347,7 +2352,8 @@ __decorate8([
|
|
|
2347
2352
|
], PacemButtonElement.prototype, "confirmationDialog", void 0);
|
|
2348
2353
|
PacemButtonElement = __decorate8([
|
|
2349
2354
|
CustomElement7({
|
|
2350
|
-
tagName: P7 + "-button"
|
|
2355
|
+
tagName: P7 + "-button",
|
|
2356
|
+
modifiers: ["hoverable", "focusable", "clickable"]
|
|
2351
2357
|
})
|
|
2352
2358
|
], PacemButtonElement);
|
|
2353
2359
|
|
|
@@ -3858,7 +3864,7 @@ __decorate18([
|
|
|
3858
3864
|
ViewChild7("." + PCSS11 + "-lightbox-wrapper")
|
|
3859
3865
|
], PacemLightboxElement.prototype, "_wrapperElement", void 0);
|
|
3860
3866
|
__decorate18([
|
|
3861
|
-
ViewChild7("." + PCSS11 + "-lightbox")
|
|
3867
|
+
ViewChild7("." + PCSS11 + "-lightbox", true)
|
|
3862
3868
|
], PacemLightboxElement.prototype, "_container", void 0);
|
|
3863
3869
|
__decorate18([
|
|
3864
3870
|
ViewChild7("slot[name=close]")
|
|
@@ -3953,7 +3959,7 @@ var PacemLoaderElement = class PacemLoaderElement2 extends Components17.PacemEle
|
|
|
3953
3959
|
}
|
|
3954
3960
|
};
|
|
3955
3961
|
__decorate19([
|
|
3956
|
-
ViewChild8("div." + PCSS12 + "-spinner")
|
|
3962
|
+
ViewChild8("div." + PCSS12 + "-spinner", true)
|
|
3957
3963
|
], PacemLoaderElement.prototype, "_spinner", void 0);
|
|
3958
3964
|
__decorate19([
|
|
3959
3965
|
ViewChild8("div." + PCSS12 + "-loader")
|
|
@@ -4028,6 +4034,25 @@ var YOUTUBE_RULE = {
|
|
|
4028
4034
|
},
|
|
4029
4035
|
type: "inline"
|
|
4030
4036
|
};
|
|
4037
|
+
var ANCHOR_RULE = {
|
|
4038
|
+
rule: {
|
|
4039
|
+
exec: (input) => {
|
|
4040
|
+
const arr = /\{route\}\(([^:\s)]+):([^\s")]+)(?:\s+"([^"]*)")?\)/.exec(input);
|
|
4041
|
+
if (arr && arr.length > 2) {
|
|
4042
|
+
return [{
|
|
4043
|
+
type: "route",
|
|
4044
|
+
raw: arr[0],
|
|
4045
|
+
text: arr[3] || arr[2],
|
|
4046
|
+
index: arr.index,
|
|
4047
|
+
router: arr[1],
|
|
4048
|
+
href: arr[2]
|
|
4049
|
+
}];
|
|
4050
|
+
}
|
|
4051
|
+
return null;
|
|
4052
|
+
}
|
|
4053
|
+
},
|
|
4054
|
+
type: "inline"
|
|
4055
|
+
};
|
|
4031
4056
|
var RULES_TO_HTML = (token) => {
|
|
4032
4057
|
switch (token.type) {
|
|
4033
4058
|
case "youtube":
|
|
@@ -4036,12 +4061,15 @@ var RULES_TO_HTML = (token) => {
|
|
|
4036
4061
|
case "tweet":
|
|
4037
4062
|
return `<!-- twitter embed -->
|
|
4038
4063
|
<${P18}-tweetembed tweetid="${token.text}"></${P18}-tweetembed>`;
|
|
4064
|
+
case "route":
|
|
4065
|
+
return `<${P18}-a href="${token["href"]}" router="${token["router"]}">${token.text}</${P18}-a>`;
|
|
4039
4066
|
}
|
|
4040
4067
|
};
|
|
4041
4068
|
var MarkdownService = class {
|
|
4042
4069
|
#grammar = [
|
|
4043
4070
|
TWITTER_RULE,
|
|
4044
|
-
YOUTUBE_RULE
|
|
4071
|
+
YOUTUBE_RULE,
|
|
4072
|
+
ANCHOR_RULE
|
|
4045
4073
|
];
|
|
4046
4074
|
#md = new Compile.Markdown.Parser();
|
|
4047
4075
|
_escape(md) {
|
|
@@ -4734,7 +4762,10 @@ var PacemProgressbarElement = class PacemProgressbarElement2 extends Components2
|
|
|
4734
4762
|
}
|
|
4735
4763
|
};
|
|
4736
4764
|
__decorate26([
|
|
4737
|
-
ViewChild13(".progressbar-
|
|
4765
|
+
ViewChild13(".progressbar-track", true, false)
|
|
4766
|
+
], PacemProgressbarElement.prototype, "_face", void 0);
|
|
4767
|
+
__decorate26([
|
|
4768
|
+
ViewChild13(".progressbar-bar", false, true)
|
|
4738
4769
|
], PacemProgressbarElement.prototype, "_bar", void 0);
|
|
4739
4770
|
__decorate26([
|
|
4740
4771
|
ViewChild13(".progressbar-glow")
|
|
@@ -4759,7 +4790,7 @@ PacemProgressbarElement = __decorate26([
|
|
|
4759
4790
|
], PacemProgressbarElement);
|
|
4760
4791
|
|
|
4761
4792
|
// packages/ui/dist/esm/sidebar.js
|
|
4762
|
-
import { P as P26, PCSS as PCSS16, Utils as Utils24, CustomElement as CustomElement25, Watch as Watch26, PropertyConverters as PropertyConverters25, Components as Components24, CustomElementUtils as CustomElementUtils7 } from "@pacem/pacem-core";
|
|
4793
|
+
import { P as P26, PCSS as PCSS16, Utils as Utils24, CustomElement as CustomElement25, Watch as Watch26, ViewChild as ViewChild14, PropertyConverters as PropertyConverters25, Components as Components24, CustomElementUtils as CustomElementUtils7 } from "@pacem/pacem-core";
|
|
4763
4794
|
var __decorate27 = function(decorators, target, key, desc) {
|
|
4764
4795
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4765
4796
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4802,6 +4833,9 @@ var PacemSidebarElement = class PacemSidebarElement2 extends Components24.PacemE
|
|
|
4802
4833
|
this.#shell = CustomElementUtils7.findAncestorShell(this);
|
|
4803
4834
|
}
|
|
4804
4835
|
};
|
|
4836
|
+
__decorate27([
|
|
4837
|
+
ViewChild14(".sidebar-drawer", true)
|
|
4838
|
+
], PacemSidebarElement.prototype, "_drawer", void 0);
|
|
4805
4839
|
__decorate27([
|
|
4806
4840
|
Watch26({ converter: PropertyConverters25.Boolean })
|
|
4807
4841
|
], PacemSidebarElement.prototype, "open", void 0);
|
|
@@ -4989,7 +5023,7 @@ PacemStickyHeaderElement = __decorate30([
|
|
|
4989
5023
|
], PacemStickyHeaderElement);
|
|
4990
5024
|
|
|
4991
5025
|
// packages/ui/dist/esm/tabs.js
|
|
4992
|
-
import { P as P30, PCSS as PCSS17, CustomElement as CustomElement29, Watch as Watch29, ViewChild as
|
|
5026
|
+
import { P as P30, PCSS as PCSS17, CustomElement as CustomElement29, Watch as Watch29, ViewChild as ViewChild15, PropertyConverters as PropertyConverters28, Components as Components28, Utils as Utils26, PropertyChangeEvent as PropertyChangeEvent4, Animations } from "@pacem/pacem-core";
|
|
4993
5027
|
var __decorate31 = function(decorators, target, key, desc) {
|
|
4994
5028
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4995
5029
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5033,7 +5067,7 @@ var PacemTabElement = class PacemTabElement2 extends Components28.PacemIterableE
|
|
|
5033
5067
|
}
|
|
5034
5068
|
};
|
|
5035
5069
|
__decorate31([
|
|
5036
|
-
|
|
5070
|
+
ViewChild15("slot[name=label]")
|
|
5037
5071
|
], PacemTabElement.prototype, "_slotLabel", void 0);
|
|
5038
5072
|
__decorate31([
|
|
5039
5073
|
Watch29({ converter: StringOrNodePropertyConverter })
|
|
@@ -5144,13 +5178,13 @@ var PacemTabsElement = class PacemTabsElement2 extends Components28.PacemIterati
|
|
|
5144
5178
|
}
|
|
5145
5179
|
};
|
|
5146
5180
|
__decorate31([
|
|
5147
|
-
|
|
5181
|
+
ViewChild15(P30 + "-adapter")
|
|
5148
5182
|
], PacemTabsElement.prototype, "_defaultTabAdapter", void 0);
|
|
5149
5183
|
__decorate31([
|
|
5150
|
-
|
|
5184
|
+
ViewChild15("." + PCSS17 + "-tabs")
|
|
5151
5185
|
], PacemTabsElement.prototype, "_tabs", void 0);
|
|
5152
5186
|
__decorate31([
|
|
5153
|
-
|
|
5187
|
+
ViewChild15("." + PCSS17 + "-tabs-content")
|
|
5154
5188
|
], PacemTabsElement.prototype, "_container", void 0);
|
|
5155
5189
|
__decorate31([
|
|
5156
5190
|
Watch29()
|
|
@@ -5172,7 +5206,7 @@ PacemTabsElement = __decorate31([
|
|
|
5172
5206
|
], PacemTabsElement);
|
|
5173
5207
|
|
|
5174
5208
|
// packages/ui/dist/esm/ticker.js
|
|
5175
|
-
import { P as P31, CustomElement as CustomElement30, ViewChild as
|
|
5209
|
+
import { P as P31, CustomElement as CustomElement30, ViewChild as ViewChild16, Components as Components29, Utils as Utils27 } from "@pacem/pacem-core";
|
|
5176
5210
|
var __decorate32 = function(decorators, target, key, desc) {
|
|
5177
5211
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5178
5212
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5233,13 +5267,13 @@ var PacemTickerElement = class PacemTickerElement2 extends Components29.PacemSaf
|
|
|
5233
5267
|
}
|
|
5234
5268
|
};
|
|
5235
5269
|
__decorate32([
|
|
5236
|
-
|
|
5270
|
+
ViewChild16("slot")
|
|
5237
5271
|
], PacemTickerElement.prototype, "_slot", void 0);
|
|
5238
5272
|
__decorate32([
|
|
5239
|
-
|
|
5273
|
+
ViewChild16("div[part=ticker-outgoing]")
|
|
5240
5274
|
], PacemTickerElement.prototype, "_outgoing", void 0);
|
|
5241
5275
|
__decorate32([
|
|
5242
|
-
|
|
5276
|
+
ViewChild16("div[part=ticker-incoming]")
|
|
5243
5277
|
], PacemTickerElement.prototype, "_incoming", void 0);
|
|
5244
5278
|
PacemTickerElement = __decorate32([
|
|
5245
5279
|
CustomElement30({ tagName: P31 + "-ticker", shadow: true, template: `<div part="ticker-outgoing"></div><div part="ticker-incoming"></div><slot hidden></slot>` })
|
|
@@ -5417,12 +5451,13 @@ __decorate33([
|
|
|
5417
5451
|
], PacemToastElement, "toast2", null);
|
|
5418
5452
|
PacemToastElement = PacemToastElement_1 = __decorate33([
|
|
5419
5453
|
CustomElement31({
|
|
5420
|
-
tagName: P32 + "-toast"
|
|
5454
|
+
tagName: P32 + "-toast",
|
|
5455
|
+
modifiers: ["clickable"]
|
|
5421
5456
|
})
|
|
5422
5457
|
], PacemToastElement);
|
|
5423
5458
|
|
|
5424
5459
|
// packages/ui/dist/esm/toc.js
|
|
5425
|
-
import { P as P33, PCSS as PCSS19, CustomElement as CustomElement32, Watch as Watch31, ViewChild as
|
|
5460
|
+
import { P as P33, PCSS as PCSS19, CustomElement as CustomElement32, Watch as Watch31, ViewChild as ViewChild17, Components as Components31, Utils as Utils29, PropertyConverters as PropertyConverters30, Defaults as Defaults9, Animations as Animations2, Debounce as Debounce5, avoidHandler as avoidHandler6 } from "@pacem/pacem-core";
|
|
5426
5461
|
var __decorate34 = function(decorators, target, key, desc) {
|
|
5427
5462
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5428
5463
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5566,7 +5601,7 @@ __decorate34([
|
|
|
5566
5601
|
Watch31({ converter: PropertyConverters30.Boolean })
|
|
5567
5602
|
], PacemTocElement.prototype, "hasContent", void 0);
|
|
5568
5603
|
__decorate34([
|
|
5569
|
-
|
|
5604
|
+
ViewChild17(P33 + "-repeater")
|
|
5570
5605
|
], PacemTocElement.prototype, "_repeater", void 0);
|
|
5571
5606
|
__decorate34([
|
|
5572
5607
|
Debounce5(100)
|
|
@@ -5587,7 +5622,7 @@ PacemTocElement = __decorate34([
|
|
|
5587
5622
|
], PacemTocElement);
|
|
5588
5623
|
|
|
5589
5624
|
// packages/ui/dist/esm/tuner.js
|
|
5590
|
-
import { P as P34, PCSS as PCSS20, CustomElement as CustomElement33, Watch as Watch32, ViewChild as
|
|
5625
|
+
import { P as P34, PCSS as PCSS20, CustomElement as CustomElement33, Watch as Watch32, ViewChild as ViewChild18, Components as Components32, Utils as Utils30, PropertyConverters as PropertyConverters31, UI as UI3, Animations as Animations3 } from "@pacem/pacem-core";
|
|
5591
5626
|
import { Angle } from "@pacem/pacem-foundation";
|
|
5592
5627
|
var __decorate35 = function(decorators, target, key, desc) {
|
|
5593
5628
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -5735,19 +5770,19 @@ var PacemTunerElement = class PacemTunerElement2 extends Components32.PacemEleme
|
|
|
5735
5770
|
}
|
|
5736
5771
|
};
|
|
5737
5772
|
__decorate35([
|
|
5738
|
-
|
|
5773
|
+
ViewChild18("svg")
|
|
5739
5774
|
], PacemTunerElement.prototype, "_canvas", void 0);
|
|
5740
5775
|
__decorate35([
|
|
5741
|
-
|
|
5776
|
+
ViewChild18("path[part=rail]")
|
|
5742
5777
|
], PacemTunerElement.prototype, "_rail", void 0);
|
|
5743
5778
|
__decorate35([
|
|
5744
|
-
|
|
5779
|
+
ViewChild18("path[part=complementary-rail]")
|
|
5745
5780
|
], PacemTunerElement.prototype, "_counterRail", void 0);
|
|
5746
5781
|
__decorate35([
|
|
5747
|
-
|
|
5782
|
+
ViewChild18(P34 + "-tween")
|
|
5748
5783
|
], PacemTunerElement.prototype, "_tween", void 0);
|
|
5749
5784
|
__decorate35([
|
|
5750
|
-
|
|
5785
|
+
ViewChild18(P34 + "-rotate")
|
|
5751
5786
|
], PacemTunerElement.prototype, "_rotate", void 0);
|
|
5752
5787
|
__decorate35([
|
|
5753
5788
|
Watch32({ converter: PropertyConverters31.Number })
|